次の方法で共有


StorageAccountDetails Class

public final class StorageAccountDetails
extends DataAccountDetails

Details for the storage account.

Constructor Summary

Constructor Description
StorageAccountDetails()

Creates an instance of StorageAccountDetails class.

Method Summary

Modifier and Type Method and Description
DataAccountType dataAccountType()

Get the dataAccountType property: Account Type of the data to be transferred.

static StorageAccountDetails fromJson(JsonReader jsonReader)

Reads an instance of StorageAccountDetails from the JsonReader.

String storageAccountId()

Get the storageAccountId property: Storage Account Resource Id.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageAccountDetails withSharePassword(String sharePassword)

Set the sharePassword property: Password for all the shares to be created on the device.

StorageAccountDetails withStorageAccountId(String storageAccountId)

Set the storageAccountId property: Storage Account Resource Id.

Methods inherited from DataAccountDetails

Methods inherited from java.lang.Object

Constructor Details

StorageAccountDetails

public StorageAccountDetails()

Creates an instance of StorageAccountDetails class.

Method Details

dataAccountType

public DataAccountType dataAccountType()

Get the dataAccountType property: Account Type of the data to be transferred.

Overrides:

StorageAccountDetails.dataAccountType()

Returns:

the dataAccountType value.

fromJson

public static StorageAccountDetails fromJson(JsonReader jsonReader)

Reads an instance of StorageAccountDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

storageAccountId

public String storageAccountId()

Get the storageAccountId property: Storage Account Resource Id.

Returns:

the storageAccountId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

StorageAccountDetails.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

StorageAccountDetails.validate()

withSharePassword

public StorageAccountDetails withSharePassword(String sharePassword)

Set the sharePassword property: Password for all the shares to be created on the device. 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 : @#\-$%^!+=;:_()]+.

Overrides:

StorageAccountDetails.withSharePassword(String sharePassword)

Parameters:

sharePassword

withStorageAccountId

public StorageAccountDetails withStorageAccountId(String storageAccountId)

Set the storageAccountId property: Storage Account Resource Id.

Parameters:

storageAccountId - the storageAccountId value to set.

Returns:

the StorageAccountDetails object itself.

Applies to