Class RestorePointEncryption
java.lang.Object
com.azure.resourcemanager.compute.models.RestorePointEncryption
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RestorePointEncryption>
public final class RestorePointEncryption
extends Object
implements com.azure.json.JsonSerializable<RestorePointEncryption>
Encryption at rest settings for disk restore point. It is an optional property that can be specified in the input
while creating a restore point.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RestorePointEncryption class. -
Method Summary
Modifier and TypeMethodDescriptionGet the diskEncryptionSet property: Describes the parameter of customer managed disk encryption set resource id that can be specified for disk.static RestorePointEncryptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RestorePointEncryption from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of key used to encrypt the data of the disk restore point.voidvalidate()Validates the instance.withDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet) Set the diskEncryptionSet property: Describes the parameter of customer managed disk encryption set resource id that can be specified for disk.Set the type property: The type of key used to encrypt the data of the disk restore point.Methods inherited from class 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
-
RestorePointEncryption
public RestorePointEncryption()Creates an instance of RestorePointEncryption class.
-
-
Method Details
-
diskEncryptionSet
Get the diskEncryptionSet property: Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.- Returns:
- the diskEncryptionSet value.
-
withDiskEncryptionSet
Set the diskEncryptionSet property: Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.- Parameters:
diskEncryptionSet- the diskEncryptionSet value to set.- Returns:
- the RestorePointEncryption object itself.
-
type
Get the type property: The type of key used to encrypt the data of the disk restore point.- Returns:
- the type value.
-
withType
Set the type property: The type of key used to encrypt the data of the disk restore point.- Parameters:
type- the type value to set.- Returns:
- the RestorePointEncryption 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<RestorePointEncryption>- Throws:
IOException
-
fromJson
public static RestorePointEncryption fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RestorePointEncryption from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RestorePointEncryption 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 RestorePointEncryption.
-