Class OSDiskImageEncryption
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.DiskImageEncryption
-
- com.azure.resourcemanager.compute.models.OSDiskImageEncryption
-
public final class OSDiskImageEncryption extends DiskImageEncryption
Contains encryption settings for an OS disk image.
-
-
Constructor Summary
Constructors Constructor Description OSDiskImageEncryption()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OSDiskImageSecurityProfilesecurityProfile()Get the securityProfile property: This property specifies the security profile of an OS disk image.voidvalidate()Validates the instance.OSDiskImageEncryptionwithDiskEncryptionSetId(String diskEncryptionSetId)Set the diskEncryptionSetId property: A relative URI containing the resource ID of the disk encryption set.OSDiskImageEncryptionwithSecurityProfile(OSDiskImageSecurityProfile securityProfile)Set the securityProfile property: This property specifies the security profile of an OS disk image.-
Methods inherited from class com.azure.resourcemanager.compute.models.DiskImageEncryption
diskEncryptionSetId
-
-
-
-
Method Detail
-
securityProfile
public OSDiskImageSecurityProfile securityProfile()
Get the securityProfile property: This property specifies the security profile of an OS disk image.- Returns:
- the securityProfile value.
-
withSecurityProfile
public OSDiskImageEncryption withSecurityProfile(OSDiskImageSecurityProfile securityProfile)
Set the securityProfile property: This property specifies the security profile of an OS disk image.- Parameters:
securityProfile- the securityProfile value to set.- Returns:
- the OSDiskImageEncryption object itself.
-
withDiskEncryptionSetId
public OSDiskImageEncryption withDiskEncryptionSetId(String diskEncryptionSetId)
Set the diskEncryptionSetId property: A relative URI containing the resource ID of the disk encryption set.- Overrides:
withDiskEncryptionSetIdin classDiskImageEncryption- Parameters:
diskEncryptionSetId- the diskEncryptionSetId value to set.- Returns:
- the DiskImageEncryption object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classDiskImageEncryption- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-