다음을 통해 공유


ManagedDiskParameters Class

public final class ManagedDiskParameters
extends SubResource

The parameters of a managed disk.

Constructor Summary

Constructor Description
ManagedDiskParameters()

Creates an instance of ManagedDiskParameters class.

Method Summary

Modifier and Type Method and Description
DiskEncryptionSetParameters diskEncryptionSet()

Get the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed disk.

static ManagedDiskParameters fromJson(JsonReader jsonReader)

Reads an instance of ManagedDiskParameters from the JsonReader.

VMDiskSecurityProfile securityProfile()

Get the securityProfile property: Specifies the security profile for the managed disk.

StorageAccountTypes storageAccountType()

Get the storageAccountType property: Specifies the storage account type for the managed disk.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedDiskParameters withDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet)

Set the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed disk.

ManagedDiskParameters withId(String id)
ManagedDiskParameters withSecurityProfile(VMDiskSecurityProfile securityProfile)

Set the securityProfile property: Specifies the security profile for the managed disk.

ManagedDiskParameters withStorageAccountType(StorageAccountTypes storageAccountType)

Set the storageAccountType property: Specifies the storage account type for the managed disk.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

ManagedDiskParameters

public ManagedDiskParameters()

Creates an instance of ManagedDiskParameters class.

Method Details

diskEncryptionSet

public DiskEncryptionSetParameters diskEncryptionSet()

Get the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed disk.

Returns:

the diskEncryptionSet value.

fromJson

public static ManagedDiskParameters fromJson(JsonReader jsonReader)

Reads an instance of ManagedDiskParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

securityProfile

public VMDiskSecurityProfile securityProfile()

Get the securityProfile property: Specifies the security profile for the managed disk.

Returns:

the securityProfile value.

storageAccountType

public StorageAccountTypes storageAccountType()

Get the storageAccountType property: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk.

Returns:

the storageAccountType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ManagedDiskParameters.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDiskEncryptionSet

public ManagedDiskParameters withDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet)

Set the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed disk.

Parameters:

diskEncryptionSet - the diskEncryptionSet value to set.

Returns:

the ManagedDiskParameters object itself.

withId

public ManagedDiskParameters withId(String id)

Overrides:

ManagedDiskParameters.withId(String id)

Parameters:

id

withSecurityProfile

public ManagedDiskParameters withSecurityProfile(VMDiskSecurityProfile securityProfile)

Set the securityProfile property: Specifies the security profile for the managed disk.

Parameters:

securityProfile - the securityProfile value to set.

Returns:

the ManagedDiskParameters object itself.

withStorageAccountType

public ManagedDiskParameters withStorageAccountType(StorageAccountTypes storageAccountType)

Set the storageAccountType property: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk.

Parameters:

storageAccountType - the storageAccountType value to set.

Returns:

the ManagedDiskParameters object itself.

Applies to