Class ManagedDiskParameters
- java.lang.Object
-
- com.azure.core.management.SubResource
-
- com.azure.resourcemanager.compute.models.ManagedDiskParameters
-
public final class ManagedDiskParameters extends com.azure.core.management.SubResourceThe parameters of a managed disk.
-
-
Constructor Summary
Constructors Constructor Description ManagedDiskParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiskEncryptionSetParametersdiskEncryptionSet()Get the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed disk.VMDiskSecurityProfilesecurityProfile()Get the securityProfile property: Specifies the security profile for the managed disk.StorageAccountTypesstorageAccountType()Get the storageAccountType property: Specifies the storage account type for the managed disk.voidvalidate()Validates the instance.ManagedDiskParameterswithDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet)Set the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed disk.ManagedDiskParameterswithId(String id)ManagedDiskParameterswithSecurityProfile(VMDiskSecurityProfile securityProfile)Set the securityProfile property: Specifies the security profile for the managed disk.ManagedDiskParameterswithStorageAccountType(StorageAccountTypes storageAccountType)Set the storageAccountType property: Specifies the storage account type for the managed disk.
-
-
-
Method Detail
-
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.
-
withStorageAccountType
public ManagedDiskParameters 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 ManagedDiskParameters object itself.
-
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.
-
withDiskEncryptionSet
public ManagedDiskParameters 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 ManagedDiskParameters object itself.
-
securityProfile
public VMDiskSecurityProfile securityProfile()
Get the securityProfile property: Specifies the security profile for the managed disk.- Returns:
- the securityProfile value.
-
withSecurityProfile
public ManagedDiskParameters withSecurityProfile(VMDiskSecurityProfile securityProfile)
Set the securityProfile property: Specifies the security profile for the managed disk.- Parameters:
securityProfile- the securityProfile value to set.- Returns:
- the ManagedDiskParameters object itself.
-
withId
public ManagedDiskParameters withId(String id)
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-