Share via


ManagedDiskDetails Class

public final class ManagedDiskDetails
extends DataAccountDetails

Details of the managed disks.

Constructor Summary

Constructor Description
ManagedDiskDetails()

Creates an instance of ManagedDiskDetails class.

Method Summary

Modifier and Type Method and Description
DataAccountType dataAccountType()

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

static ManagedDiskDetails fromJson(JsonReader jsonReader)

Reads an instance of ManagedDiskDetails from the JsonReader.

String resourceGroupId()

Get the resourceGroupId property: Resource Group Id of the compute disks.

String stagingStorageAccountId()

Get the stagingStorageAccountId property: Resource Id of the storage account that can be used to copy the vhd for staging.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedDiskDetails withResourceGroupId(String resourceGroupId)

Set the resourceGroupId property: Resource Group Id of the compute disks.

ManagedDiskDetails withSharePassword(String sharePassword)

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

ManagedDiskDetails withStagingStorageAccountId(String stagingStorageAccountId)

Set the stagingStorageAccountId property: Resource Id of the storage account that can be used to copy the vhd for staging.

Methods inherited from DataAccountDetails

Methods inherited from java.lang.Object

Constructor Details

ManagedDiskDetails

public ManagedDiskDetails()

Creates an instance of ManagedDiskDetails class.

Method Details

dataAccountType

public DataAccountType dataAccountType()

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

Overrides:

ManagedDiskDetails.dataAccountType()

Returns:

the dataAccountType value.

fromJson

public static ManagedDiskDetails fromJson(JsonReader jsonReader)

Reads an instance of ManagedDiskDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

resourceGroupId

public String resourceGroupId()

Get the resourceGroupId property: Resource Group Id of the compute disks.

Returns:

the resourceGroupId value.

stagingStorageAccountId

public String stagingStorageAccountId()

Get the stagingStorageAccountId property: Resource Id of the storage account that can be used to copy the vhd for staging.

Returns:

the stagingStorageAccountId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ManagedDiskDetails.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

ManagedDiskDetails.validate()

withResourceGroupId

public ManagedDiskDetails withResourceGroupId(String resourceGroupId)

Set the resourceGroupId property: Resource Group Id of the compute disks.

Parameters:

resourceGroupId - the resourceGroupId value to set.

Returns:

the ManagedDiskDetails object itself.

withSharePassword

public ManagedDiskDetails 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:

ManagedDiskDetails.withSharePassword(String sharePassword)

Parameters:

sharePassword

withStagingStorageAccountId

public ManagedDiskDetails withStagingStorageAccountId(String stagingStorageAccountId)

Set the stagingStorageAccountId property: Resource Id of the storage account that can be used to copy the vhd for staging.

Parameters:

stagingStorageAccountId - the stagingStorageAccountId value to set.

Returns:

the ManagedDiskDetails object itself.

Applies to