ManagedDisk Class

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

Implements

public final class ManagedDisk
implements JsonSerializable<ManagedDisk>

The ManagedDisk model.

Constructor Summary

Constructor Description
ManagedDisk()

Creates an instance of ManagedDisk class.

Method Summary

Modifier and Type Method and Description
static ManagedDisk fromJson(JsonReader jsonReader)

Reads an instance of ManagedDisk from the JsonReader.

VMDiskSecurityProfile securityProfile()

Get the securityProfile property: Specifies the security profile settings 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 withSecurityProfile(VMDiskSecurityProfile securityProfile)

Set the securityProfile property: Specifies the security profile settings 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

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 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.

withSecurityProfile

public ManagedDisk withSecurityProfile(VMDiskSecurityProfile securityProfile)

Set the securityProfile property: 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