Preferences Class

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

Implements

public final class Preferences
implements JsonSerializable<Preferences>

Preferences related to the order.

Constructor Summary

Constructor Description
Preferences()

Creates an instance of Preferences class.

Method Summary

Modifier and Type Method and Description
EncryptionPreferences encryptionPreferences()

Get the encryptionPreferences property: Preferences related to the Encryption.

static Preferences fromJson(JsonReader jsonReader)

Reads an instance of Preferences from the JsonReader.

List<String> preferredDataCenterRegion()

Get the preferredDataCenterRegion property: Preferred data center region.

TransportPreferences reverseTransportPreferences()

Get the reverseTransportPreferences property: Optional Preferences related to the reverse shipment logistics of the sku.

List<String> storageAccountAccessTierPreferences()

Get the storageAccountAccessTierPreferences property: Preferences related to the Access Tier of storage accounts.

JsonWriter toJson(JsonWriter jsonWriter)
TransportPreferences transportPreferences()

Get the transportPreferences property: Preferences related to the shipment logistics of the sku.

void validate()

Validates the instance.

Preferences withEncryptionPreferences(EncryptionPreferences encryptionPreferences)

Set the encryptionPreferences property: Preferences related to the Encryption.

Preferences withPreferredDataCenterRegion(List<String> preferredDataCenterRegion)

Set the preferredDataCenterRegion property: Preferred data center region.

Preferences withReverseTransportPreferences(TransportPreferences reverseTransportPreferences)

Set the reverseTransportPreferences property: Optional Preferences related to the reverse shipment logistics of the sku.

Preferences withStorageAccountAccessTierPreferences(List<String> storageAccountAccessTierPreferences)

Set the storageAccountAccessTierPreferences property: Preferences related to the Access Tier of storage accounts.

Preferences withTransportPreferences(TransportPreferences transportPreferences)

Set the transportPreferences property: Preferences related to the shipment logistics of the sku.

Methods inherited from java.lang.Object

Constructor Details

Preferences

public Preferences()

Creates an instance of Preferences class.

Method Details

encryptionPreferences

public EncryptionPreferences encryptionPreferences()

Get the encryptionPreferences property: Preferences related to the Encryption.

Returns:

the encryptionPreferences value.

fromJson

public static Preferences fromJson(JsonReader jsonReader)

Reads an instance of Preferences from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the Preferences.

preferredDataCenterRegion

public List<String> preferredDataCenterRegion()

Get the preferredDataCenterRegion property: Preferred data center region.

Returns:

the preferredDataCenterRegion value.

reverseTransportPreferences

public TransportPreferences reverseTransportPreferences()

Get the reverseTransportPreferences property: Optional Preferences related to the reverse shipment logistics of the sku.

Returns:

the reverseTransportPreferences value.

storageAccountAccessTierPreferences

public List<String> storageAccountAccessTierPreferences()

Get the storageAccountAccessTierPreferences property: Preferences related to the Access Tier of storage accounts.

Returns:

the storageAccountAccessTierPreferences value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

transportPreferences

public TransportPreferences transportPreferences()

Get the transportPreferences property: Preferences related to the shipment logistics of the sku.

Returns:

the transportPreferences value.

validate

public void validate()

Validates the instance.

withEncryptionPreferences

public Preferences withEncryptionPreferences(EncryptionPreferences encryptionPreferences)

Set the encryptionPreferences property: Preferences related to the Encryption.

Parameters:

encryptionPreferences - the encryptionPreferences value to set.

Returns:

the Preferences object itself.

withPreferredDataCenterRegion

public Preferences withPreferredDataCenterRegion(List<String> preferredDataCenterRegion)

Set the preferredDataCenterRegion property: Preferred data center region.

Parameters:

preferredDataCenterRegion - the preferredDataCenterRegion value to set.

Returns:

the Preferences object itself.

withReverseTransportPreferences

public Preferences withReverseTransportPreferences(TransportPreferences reverseTransportPreferences)

Set the reverseTransportPreferences property: Optional Preferences related to the reverse shipment logistics of the sku.

Parameters:

reverseTransportPreferences - the reverseTransportPreferences value to set.

Returns:

the Preferences object itself.

withStorageAccountAccessTierPreferences

public Preferences withStorageAccountAccessTierPreferences(List<String> storageAccountAccessTierPreferences)

Set the storageAccountAccessTierPreferences property: Preferences related to the Access Tier of storage accounts.

Parameters:

storageAccountAccessTierPreferences - the storageAccountAccessTierPreferences value to set.

Returns:

the Preferences object itself.

withTransportPreferences

public Preferences withTransportPreferences(TransportPreferences transportPreferences)

Set the transportPreferences property: Preferences related to the shipment logistics of the sku.

Parameters:

transportPreferences - the transportPreferences value to set.

Returns:

the Preferences object itself.

Applies to