ManagedDisk Class

  • java.lang.Object
    • com.azure.resourcemanager.batch.models.ManagedDisk

Implements

public final class ManagedDisk
implements JsonSerializable<ManagedDisk>

The managed disk parameters.

Constructor Summary

Constructor Description
ManagedDisk()

Creates an instance of ManagedDisk 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 ManagedDisk fromJson(JsonReader jsonReader)

Reads an instance of ManagedDisk from the JsonReader.

VMDiskSecurityProfile securityProfile()

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

StorageAccountType storageAccountType()

Get the storageAccountType property: The storage account type for use in creating data disks or OS disk.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedDisk withDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet)

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

ManagedDisk withSecurityProfile(VMDiskSecurityProfile securityProfile)

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

ManagedDisk withStorageAccountType(StorageAccountType storageAccountType)

Set the storageAccountType property: The storage account type for use in creating data disks or OS disk.

Methods inherited from java.lang.Object

Constructor Details

ManagedDisk

public ManagedDisk()

Creates an instance of ManagedDisk class.

Method Details

diskEncryptionSet

public DiskEncryptionSetParameters diskEncryptionSet()

Get the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed disk. It can be set only in UserSubscription mode.

Returns:

the diskEncryptionSet value.

fromJson

public static ManagedDisk fromJson(JsonReader jsonReader)

Reads an instance of ManagedDisk from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

securityProfile

public VMDiskSecurityProfile securityProfile()

Get the securityProfile property: Specifies the security profile for the managed disk. Specifies the security profile settings for the managed disk. **Note**: It can only be set for Confidential VMs and is required when using Confidential VMs.

Returns:

the securityProfile value.

storageAccountType

public StorageAccountType storageAccountType()

Get the storageAccountType property: The storage account type for use in creating data disks or OS disk.

Returns:

the storageAccountType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDiskEncryptionSet

public ManagedDisk withDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet)

Set the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed disk. It can be set only in UserSubscription mode.

Parameters:

diskEncryptionSet - the diskEncryptionSet value to set.

Returns:

the ManagedDisk object itself.

withSecurityProfile

public ManagedDisk withSecurityProfile(VMDiskSecurityProfile securityProfile)

Set the securityProfile property: Specifies the security profile for the managed disk. Specifies the security profile settings for the managed disk. **Note**: It can only be set for Confidential VMs and is required when using Confidential VMs.

Parameters:

securityProfile - the securityProfile value to set.

Returns:

the ManagedDisk object itself.

withStorageAccountType

public ManagedDisk withStorageAccountType(StorageAccountType storageAccountType)

Set the storageAccountType property: The storage account type for use in creating data disks or OS disk.

Parameters:

storageAccountType - the storageAccountType value to set.

Returns:

the ManagedDisk object itself.

Applies to