Class RestorePointInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.compute.fluent.models.RestorePointInner
public final class RestorePointInner
extends com.azure.core.management.ProxyResource
Restore Point details.
-
Constructor Summary
Constructors -
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.Get the instanceView property: The restore point instance view.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.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.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 com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
RestorePointInner
public RestorePointInner()
-
-
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 RestorePointInner 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.
-
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 RestorePointInner 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 RestorePointInner 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 RestorePointInner object itself.
-
instanceView
Get the instanceView property: The restore point instance view.- Returns:
- the instanceView value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-