Class Encryption
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.Encryption
-
public final class Encryption extends Object
Encryption at rest settings for disk or snapshot.
-
-
Constructor Summary
Constructors Constructor Description Encryption()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdiskEncryptionSetId()Get the diskEncryptionSetId property: ResourceId of the disk encryption set to use for enabling encryption at rest.EncryptionTypetype()Get the type property: The type of key used to encrypt the data of the disk.voidvalidate()Validates the instance.EncryptionwithDiskEncryptionSetId(String diskEncryptionSetId)Set the diskEncryptionSetId property: ResourceId of the disk encryption set to use for enabling encryption at rest.EncryptionwithType(EncryptionType type)Set the type property: The type of key used to encrypt the data of the disk.
-
-
-
Method Detail
-
diskEncryptionSetId
public String diskEncryptionSetId()
Get the diskEncryptionSetId property: ResourceId of the disk encryption set to use for enabling encryption at rest.- Returns:
- the diskEncryptionSetId value.
-
withDiskEncryptionSetId
public Encryption withDiskEncryptionSetId(String diskEncryptionSetId)
Set the diskEncryptionSetId property: ResourceId of the disk encryption set to use for enabling encryption at rest.- Parameters:
diskEncryptionSetId- the diskEncryptionSetId value to set.- Returns:
- the Encryption object itself.
-
type
public EncryptionType type()
Get the type property: The type of key used to encrypt the data of the disk.- Returns:
- the type value.
-
withType
public Encryption withType(EncryptionType type)
Set the type property: The type of key used to encrypt the data of the disk.- Parameters:
type- the type value to set.- Returns:
- the Encryption object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-