Share via


TransportPreferences Class

  • java.lang.Object
    • com.azure.resourcemanager.databox.models.TransportPreferences

Implements

public final class TransportPreferences
implements JsonSerializable<TransportPreferences>

Preferences related to the shipment logistics of the sku.

Constructor Summary

Constructor Description
TransportPreferences()

Creates an instance of TransportPreferences class.

Method Summary

Modifier and Type Method and Description
static TransportPreferences fromJson(JsonReader jsonReader)

Reads an instance of TransportPreferences from the JsonReader.

Boolean isUpdated()

Get the isUpdated property: Read only property which indicates whether transport preferences has been updated or not after device is prepared.

TransportShipmentTypes preferredShipmentType()

Get the preferredShipmentType property: Indicates Shipment Logistics type that the customer preferred.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TransportPreferences withPreferredShipmentType(TransportShipmentTypes preferredShipmentType)

Set the preferredShipmentType property: Indicates Shipment Logistics type that the customer preferred.

Methods inherited from java.lang.Object

Constructor Details

TransportPreferences

public TransportPreferences()

Creates an instance of TransportPreferences class.

Method Details

fromJson

public static TransportPreferences fromJson(JsonReader jsonReader)

Reads an instance of TransportPreferences from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TransportPreferences if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

isUpdated

public Boolean isUpdated()

Get the isUpdated property: Read only property which indicates whether transport preferences has been updated or not after device is prepared.

Returns:

the isUpdated value.

preferredShipmentType

public TransportShipmentTypes preferredShipmentType()

Get the preferredShipmentType property: Indicates Shipment Logistics type that the customer preferred.

Returns:

the preferredShipmentType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPreferredShipmentType

public TransportPreferences withPreferredShipmentType(TransportShipmentTypes preferredShipmentType)

Set the preferredShipmentType property: Indicates Shipment Logistics type that the customer preferred.

Parameters:

preferredShipmentType - the preferredShipmentType value to set.

Returns:

the TransportPreferences object itself.

Applies to