Encryption Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. Encryption
- com.
Implements
public final class Encryption
implements JsonSerializable<Encryption>
Encryption at rest settings for disk or snapshot.
Constructor Summary
Constructor | Description |
---|---|
Encryption() |
Creates an instance of Encryption class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
diskEncryptionSetId()
Get the disk |
static Encryption |
fromJson(JsonReader jsonReader)
Reads an instance of Encryption from the Json |
Json |
toJson(JsonWriter jsonWriter) |
Encryption |
type()
Get the type property: The type of key used to encrypt the data of the disk. |
void |
validate()
Validates the instance. |
Encryption |
withDiskEncryptionSetId(String diskEncryptionSetId)
Set the disk |
Encryption |
withType(EncryptionType type)
Set the type property: The type of key used to encrypt the data of the disk. |
Methods inherited from java.lang.Object
Constructor Details
Encryption
public Encryption()
Creates an instance of Encryption class.
Method Details
diskEncryptionSetId
public String diskEncryptionSetId()
Get the diskEncryptionSetId property: ResourceId of the disk encryption set to use for enabling encryption at rest.
Returns:
fromJson
public static Encryption fromJson(JsonReader jsonReader)
Reads an instance of Encryption from the JsonReader.
Parameters:
Returns:
Throws:
toJson
type
public EncryptionType type()
Get the type property: The type of key used to encrypt the data of the disk.
Returns:
validate
public void validate()
Validates the instance.
withDiskEncryptionSetId
public Encryption withDiskEncryptionSetId(String diskEncryptionSetId)
Set the diskEncryptionSetId property: ResourceId of the disk encryption set to use for enabling encryption at rest.
Parameters:
Returns:
withType
public Encryption withType(EncryptionType type)
Set the type property: The type of key used to encrypt the data of the disk.
Parameters:
Returns:
Applies to
Azure SDK for Java