Share via


DataBoxJobDetails Class

public final class DataBoxJobDetails
extends JobDetails

Databox Job Details.

Constructor Summary

Constructor Description
DataBoxJobDetails()

Creates an instance of DataBoxJobDetails class.

Method Summary

Modifier and Type Method and Description
List<CopyProgress> copyProgress()

Get the copyProgress property: Copy progress per storage account.

String devicePassword()

Get the devicePassword property: Set Device password for unlocking Databox.

static DataBoxJobDetails fromJson(JsonReader jsonReader)

Reads an instance of DataBoxJobDetails from the JsonReader.

ClassDiscriminator jobDetailsType()

Get the jobDetailsType property: Indicates the type of job details.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DataBoxJobDetails withContactDetails(ContactDetails contactDetails)

Set the contactDetails property: Contact details for notification and shipping.

DataBoxJobDetails withDataExportDetails(List<DataExportDetails> dataExportDetails)

Set the dataExportDetails property: Details of the data to be exported from azure.

DataBoxJobDetails withDataImportDetails(List<DataImportDetails> dataImportDetails)

Set the dataImportDetails property: Details of the data to be imported into azure.

DataBoxJobDetails withDevicePassword(String devicePassword)

Set the devicePassword property: Set Device password for unlocking Databox.

DataBoxJobDetails withExpectedDataSizeInTeraBytes(Integer expectedDataSizeInTeraBytes)

Set the expectedDataSizeInTeraBytes property: The expected size of the data, which needs to be transferred in this job, in terabytes.

DataBoxJobDetails withKeyEncryptionKey(KeyEncryptionKey keyEncryptionKey)

Set the keyEncryptionKey property: Details about which key encryption type is being used.

DataBoxJobDetails withPreferences(Preferences preferences)

Set the preferences property: Preferences for the order.

DataBoxJobDetails withReverseShippingDetails(ReverseShippingDetails reverseShippingDetails)

Set the reverseShippingDetails property: Optional Reverse Shipping details for order.

DataBoxJobDetails withShippingAddress(ShippingAddress shippingAddress)

Set the shippingAddress property: Shipping address of the customer.

Methods inherited from JobDetails

Methods inherited from java.lang.Object

Constructor Details

DataBoxJobDetails

public DataBoxJobDetails()

Creates an instance of DataBoxJobDetails class.

Method Details

copyProgress

public List<CopyProgress> copyProgress()

Get the copyProgress property: Copy progress per storage account.

Returns:

the copyProgress value.

devicePassword

public String devicePassword()

Get the devicePassword property: Set Device password for unlocking Databox. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+.

Returns:

the devicePassword value.

fromJson

public static DataBoxJobDetails fromJson(JsonReader jsonReader)

Reads an instance of DataBoxJobDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DataBoxJobDetails 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.

jobDetailsType

public ClassDiscriminator jobDetailsType()

Get the jobDetailsType property: Indicates the type of job details.

Overrides:

DataBoxJobDetails.jobDetailsType()

Returns:

the jobDetailsType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DataBoxJobDetails.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DataBoxJobDetails.validate()

withContactDetails

public DataBoxJobDetails withContactDetails(ContactDetails contactDetails)

Set the contactDetails property: Contact details for notification and shipping.

Overrides:

DataBoxJobDetails.withContactDetails(ContactDetails contactDetails)

Parameters:

contactDetails

withDataExportDetails

public DataBoxJobDetails withDataExportDetails(List<DataExportDetails> dataExportDetails)

Set the dataExportDetails property: Details of the data to be exported from azure.

Overrides:

DataBoxJobDetails.withDataExportDetails(List<DataExportDetails> dataExportDetails)

Parameters:

dataExportDetails

withDataImportDetails

public DataBoxJobDetails withDataImportDetails(List<DataImportDetails> dataImportDetails)

Set the dataImportDetails property: Details of the data to be imported into azure.

Overrides:

DataBoxJobDetails.withDataImportDetails(List<DataImportDetails> dataImportDetails)

Parameters:

dataImportDetails

withDevicePassword

public DataBoxJobDetails withDevicePassword(String devicePassword)

Set the devicePassword property: Set Device password for unlocking Databox. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+.

Parameters:

devicePassword - the devicePassword value to set.

Returns:

the DataBoxJobDetails object itself.

withExpectedDataSizeInTeraBytes

public DataBoxJobDetails withExpectedDataSizeInTeraBytes(Integer expectedDataSizeInTeraBytes)

Set the expectedDataSizeInTeraBytes property: The expected size of the data, which needs to be transferred in this job, in terabytes.

Overrides:

DataBoxJobDetails.withExpectedDataSizeInTeraBytes(Integer expectedDataSizeInTeraBytes)

Parameters:

expectedDataSizeInTeraBytes

withKeyEncryptionKey

public DataBoxJobDetails withKeyEncryptionKey(KeyEncryptionKey keyEncryptionKey)

Set the keyEncryptionKey property: Details about which key encryption type is being used.

Overrides:

DataBoxJobDetails.withKeyEncryptionKey(KeyEncryptionKey keyEncryptionKey)

Parameters:

keyEncryptionKey

withPreferences

public DataBoxJobDetails withPreferences(Preferences preferences)

Set the preferences property: Preferences for the order.

Overrides:

DataBoxJobDetails.withPreferences(Preferences preferences)

Parameters:

preferences

withReverseShippingDetails

public DataBoxJobDetails withReverseShippingDetails(ReverseShippingDetails reverseShippingDetails)

Set the reverseShippingDetails property: Optional Reverse Shipping details for order.

Overrides:

DataBoxJobDetails.withReverseShippingDetails(ReverseShippingDetails reverseShippingDetails)

Parameters:

reverseShippingDetails

withShippingAddress

public DataBoxJobDetails withShippingAddress(ShippingAddress shippingAddress)

Set the shippingAddress property: Shipping address of the customer.

Overrides:

DataBoxJobDetails.withShippingAddress(ShippingAddress shippingAddress)

Parameters:

shippingAddress

Applies to