Class VirtualMachineScaleSetManagedDiskParameters
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineScaleSetManagedDiskParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineScaleSetManagedDiskParameters>
public final class VirtualMachineScaleSetManagedDiskParameters
extends Object
implements com.azure.json.JsonSerializable<VirtualMachineScaleSetManagedDiskParameters>
Describes the parameters of a ScaleSet managed disk.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineScaleSetManagedDiskParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed disk.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineScaleSetManagedDiskParameters from the JsonReader.Get the securityProfile property: Specifies the security profile for the managed disk.Get the storageAccountType property: Specifies the storage account type for the managed disk.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet) Set the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed disk.withSecurityProfile(VMDiskSecurityProfile securityProfile) Set the securityProfile property: Specifies the security profile for the managed disk.withStorageAccountType(StorageAccountTypes storageAccountType) Set the storageAccountType property: Specifies the storage account type for the managed disk.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VirtualMachineScaleSetManagedDiskParameters
public VirtualMachineScaleSetManagedDiskParameters()Creates an instance of VirtualMachineScaleSetManagedDiskParameters class.
-
-
Method Details
-
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.
-
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.
-
diskEncryptionSet
Get the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed disk.- Returns:
- the diskEncryptionSet value.
-
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.
-
securityProfile
Get the securityProfile property: Specifies the security profile for the managed disk.- Returns:
- the securityProfile value.
-
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VirtualMachineScaleSetManagedDiskParameters>- Throws:
IOException
-
fromJson
public static VirtualMachineScaleSetManagedDiskParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-