Share via


ManagedDisk Class

  • java.lang.Object
    • com.azure.compute.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
static ManagedDisk fromJson(JsonReader jsonReader)

Reads an instance of ManagedDisk from the JsonReader.

BatchVmDiskSecurityProfile getSecurityProfile()

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

StorageAccountType getStorageAccountType()

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

ManagedDisk setSecurityProfile(BatchVmDiskSecurityProfile securityProfile)

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

ManagedDisk setStorageAccountType(StorageAccountType storageAccountType)

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

JsonWriter toJson(JsonWriter jsonWriter)

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.

getSecurityProfile

public BatchVmDiskSecurityProfile getSecurityProfile()

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

Returns:

the securityProfile value.

getStorageAccountType

public StorageAccountType getStorageAccountType()

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

Returns:

the storageAccountType value.

setSecurityProfile

public ManagedDisk setSecurityProfile(BatchVmDiskSecurityProfile securityProfile)

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

Parameters:

securityProfile - the securityProfile value to set.

Returns:

the ManagedDisk object itself.

setStorageAccountType

public ManagedDisk setStorageAccountType(StorageAccountType storageAccountType)

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

Parameters:

storageAccountType - the storageAccountType value to set.

Returns:

the ManagedDisk object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to