Class DiskRestorePointAttributes
java.lang.Object
com.azure.resourcemanager.compute.models.SubResourceReadOnly
com.azure.resourcemanager.compute.models.DiskRestorePointAttributes
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SubResourceReadOnly>
Disk Restore Point details.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DiskRestorePointAttributes class. -
Method Summary
Modifier and TypeMethodDescriptionGet the encryption property: Encryption at rest settings for disk restore point.static DiskRestorePointAttributesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DiskRestorePointAttributes from the JsonReader.id()Get the id property: Resource Id.Get the sourceDiskRestorePoint property: Resource Id of the source disk restore point.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEncryption(RestorePointEncryption encryption) Set the encryption property: Encryption at rest settings for disk restore point.withSourceDiskRestorePoint(ApiEntityReference sourceDiskRestorePoint) Set the sourceDiskRestorePoint property: Resource Id of the source 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
-
DiskRestorePointAttributes
public DiskRestorePointAttributes()Creates an instance of DiskRestorePointAttributes class.
-
-
Method Details
-
encryption
Get the encryption property: 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.- Returns:
- the encryption value.
-
withEncryption
Set the encryption property: 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.- Parameters:
encryption- the encryption value to set.- Returns:
- the DiskRestorePointAttributes object itself.
-
sourceDiskRestorePoint
Get the sourceDiskRestorePoint property: Resource Id of the source disk restore point.- Returns:
- the sourceDiskRestorePoint value.
-
withSourceDiskRestorePoint
public DiskRestorePointAttributes withSourceDiskRestorePoint(ApiEntityReference sourceDiskRestorePoint) Set the sourceDiskRestorePoint property: Resource Id of the source disk restore point.- Parameters:
sourceDiskRestorePoint- the sourceDiskRestorePoint value to set.- Returns:
- the DiskRestorePointAttributes object itself.
-
id
Get the id property: Resource Id.- Overrides:
idin classSubResourceReadOnly- Returns:
- the id value.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classSubResourceReadOnly- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SubResourceReadOnly>- Overrides:
toJsonin classSubResourceReadOnly- Throws:
IOException
-
fromJson
public static DiskRestorePointAttributes fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DiskRestorePointAttributes from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DiskRestorePointAttributes 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 DiskRestorePointAttributes.
-