VirtualMachineScaleSetManagedDiskParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.VirtualMachineScaleSetManagedDiskParameters

Implements

public final class VirtualMachineScaleSetManagedDiskParameters
implements JsonSerializable<VirtualMachineScaleSetManagedDiskParameters>

Describes the parameters of a ScaleSet managed disk.

Constructor Summary

Constructor Description
VirtualMachineScaleSetManagedDiskParameters()

Creates an instance of VirtualMachineScaleSetManagedDiskParameters class.

Method Summary

Modifier and Type Method and Description
AdditionalDiskProperties additionalDiskProperties()

Get the additionalDiskProperties property: Specifies additional properties for the managed disk that can be set at the time of implicit creation of the disk.

DiskEncryptionSetParameters diskEncryptionSet()

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

static VirtualMachineScaleSetManagedDiskParameters fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineScaleSetManagedDiskParameters 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.

VirtualMachineScaleSetManagedDiskParameters withAdditionalDiskProperties(AdditionalDiskProperties additionalDiskProperties)

Set the additionalDiskProperties property: Specifies additional properties for the managed disk that can be set at the time of implicit creation of the disk.

VirtualMachineScaleSetManagedDiskParameters withDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet)

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

VirtualMachineScaleSetManagedDiskParameters withSecurityProfile(VMDiskSecurityProfile securityProfile)

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

VirtualMachineScaleSetManagedDiskParameters withStorageAccountType(StorageAccountTypes storageAccountType)

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

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineScaleSetManagedDiskParameters

public VirtualMachineScaleSetManagedDiskParameters()

Creates an instance of VirtualMachineScaleSetManagedDiskParameters class.

Method Details

additionalDiskProperties

public AdditionalDiskProperties additionalDiskProperties()

Get the additionalDiskProperties property: Specifies additional properties for the managed disk that can be set at the time of implicit creation of the disk. This property is not captured for Restore Points.

Returns:

the additionalDiskProperties value.

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 VirtualMachineScaleSetManagedDiskParameters fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineScaleSetManagedDiskParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalDiskProperties

public VirtualMachineScaleSetManagedDiskParameters withAdditionalDiskProperties(AdditionalDiskProperties additionalDiskProperties)

Set the additionalDiskProperties property: Specifies additional properties for the managed disk that can be set at the time of implicit creation of the disk. This property is not captured for Restore Points.

Parameters:

additionalDiskProperties - the additionalDiskProperties value to set.

Returns:

the VirtualMachineScaleSetManagedDiskParameters object itself.

withDiskEncryptionSet

public VirtualMachineScaleSetManagedDiskParameters 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 VirtualMachineScaleSetManagedDiskParameters object itself.

withSecurityProfile

public VirtualMachineScaleSetManagedDiskParameters withSecurityProfile(VMDiskSecurityProfile securityProfile)

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

Parameters:

securityProfile - the securityProfile value to set.

Returns:

the VirtualMachineScaleSetManagedDiskParameters object itself.

withStorageAccountType

public VirtualMachineScaleSetManagedDiskParameters 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 VirtualMachineScaleSetManagedDiskParameters object itself.

Applies to