Class RestorePointProperties
java.lang.Object
com.azure.resourcemanager.compute.fluent.models.RestorePointProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RestorePointProperties>
public final class RestorePointProperties
extends Object
implements com.azure.json.JsonSerializable<RestorePointProperties>
The restore point properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RestorePointProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the consistencyMode property: ConsistencyMode of the RestorePoint.Get the excludeDisks property: List of disk resource ids that the customer wishes to exclude from the restore point.static RestorePointPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RestorePointProperties from the JsonReader.Get the instanceView property: The restore point instance view.Get the instantAccessDurationMinutes property: This property determines the time in minutes the snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast restore performance in this restore point.Get the provisioningState property: Gets the provisioning state of the restore point.Get the sourceMetadata property: Gets the details of the VM captured at the time of the restore point creation.Get the sourceRestorePoint property: Resource Id of the source restore point from which a copy needs to be created.Get the timeCreated property: Gets the creation time of the restore point.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withConsistencyMode(ConsistencyModeTypes consistencyMode) Set the consistencyMode property: ConsistencyMode of the RestorePoint.withExcludeDisks(List<ApiEntityReference> excludeDisks) Set the excludeDisks property: List of disk resource ids that the customer wishes to exclude from the restore point.withInstantAccessDurationMinutes(Integer instantAccessDurationMinutes) Set the instantAccessDurationMinutes property: This property determines the time in minutes the snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast restore performance in this restore point.withSourceMetadata(RestorePointSourceMetadata sourceMetadata) Set the sourceMetadata property: Gets the details of the VM captured at the time of the restore point creation.withSourceRestorePoint(ApiEntityReference sourceRestorePoint) Set the sourceRestorePoint property: Resource Id of the source restore point from which a copy needs to be created.withTimeCreated(OffsetDateTime timeCreated) Set the timeCreated property: Gets the creation time of the 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
-
RestorePointProperties
public RestorePointProperties()Creates an instance of RestorePointProperties class.
-
-
Method Details
-
excludeDisks
Get the excludeDisks property: List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included.- Returns:
- the excludeDisks value.
-
withExcludeDisks
Set the excludeDisks property: List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included.- Parameters:
excludeDisks- the excludeDisks value to set.- Returns:
- the RestorePointProperties object itself.
-
sourceMetadata
Get the sourceMetadata property: Gets the details of the VM captured at the time of the restore point creation.- Returns:
- the sourceMetadata value.
-
withSourceMetadata
Set the sourceMetadata property: Gets the details of the VM captured at the time of the restore point creation.- Parameters:
sourceMetadata- the sourceMetadata value to set.- Returns:
- the RestorePointProperties object itself.
-
provisioningState
Get the provisioningState property: Gets the provisioning state of the restore point.- Returns:
- the provisioningState value.
-
consistencyMode
Get the consistencyMode property: ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please refer to https://aka.ms/RestorePoints for more details.- Returns:
- the consistencyMode value.
-
withConsistencyMode
Set the consistencyMode property: ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please refer to https://aka.ms/RestorePoints for more details.- Parameters:
consistencyMode- the consistencyMode value to set.- Returns:
- the RestorePointProperties object itself.
-
timeCreated
Get the timeCreated property: Gets the creation time of the restore point.- Returns:
- the timeCreated value.
-
withTimeCreated
Set the timeCreated property: Gets the creation time of the restore point.- Parameters:
timeCreated- the timeCreated value to set.- Returns:
- the RestorePointProperties object itself.
-
sourceRestorePoint
Get the sourceRestorePoint property: Resource Id of the source restore point from which a copy needs to be created.- Returns:
- the sourceRestorePoint value.
-
withSourceRestorePoint
Set the sourceRestorePoint property: Resource Id of the source restore point from which a copy needs to be created.- Parameters:
sourceRestorePoint- the sourceRestorePoint value to set.- Returns:
- the RestorePointProperties object itself.
-
instanceView
Get the instanceView property: The restore point instance view.- Returns:
- the instanceView value.
-
instantAccessDurationMinutes
Get the instantAccessDurationMinutes property: This property determines the time in minutes the snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast restore performance in this restore point.- Returns:
- the instantAccessDurationMinutes value.
-
withInstantAccessDurationMinutes
public RestorePointProperties withInstantAccessDurationMinutes(Integer instantAccessDurationMinutes) Set the instantAccessDurationMinutes property: This property determines the time in minutes the snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast restore performance in this restore point.- Parameters:
instantAccessDurationMinutes- the instantAccessDurationMinutes value to set.- Returns:
- the RestorePointProperties 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<RestorePointProperties>- Throws:
IOException
-
fromJson
public static RestorePointProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RestorePointProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RestorePointProperties 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 RestorePointProperties.
-