RestorePointInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. compute. fluent. models. RestorePointInner
- com.
- com.
public final class RestorePointInner
extends ProxyResource
Restore Point details.
Constructor Summary
| Constructor | Description |
|---|---|
| RestorePointInner() |
Creates an instance of Restore |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Consistency |
consistencyMode()
Get the consistency |
|
List<Api |
excludeDisks()
Get the exclude |
|
static
Restore |
fromJson(JsonReader jsonReader)
Reads an instance of Restore |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
|
Restore |
instanceView()
Get the instance |
| Integer |
instantAccessDurationMinutes()
Get the instant |
| String |
name()
Get the name property: The name of the resource. |
| String |
provisioningState()
Get the provisioning |
|
Restore |
sourceMetadata()
Get the source |
|
Api |
sourceRestorePoint()
Get the source |
|
System |
systemData()
Get the system |
|
Offset |
timeCreated()
Get the time |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Restore |
withConsistencyMode(ConsistencyModeTypes consistencyMode)
Set the consistency |
|
Restore |
withExcludeDisks(List<ApiEntityReference> excludeDisks)
Set the exclude |
|
Restore |
withInstantAccessDurationMinutes(Integer instantAccessDurationMinutes)
Set the instant |
|
Restore |
withSourceMetadata(RestorePointSourceMetadata sourceMetadata)
Set the source |
|
Restore |
withSourceRestorePoint(ApiEntityReference sourceRestorePoint)
Set the source |
|
Restore |
withTimeCreated(OffsetDateTime timeCreated)
Set the time |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
RestorePointInner
public RestorePointInner()
Creates an instance of RestorePointInner class.
Method Details
consistencyMode
public ConsistencyModeTypes 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:
excludeDisks
public List<ApiEntityReference> 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:
fromJson
public static RestorePointInner fromJson(JsonReader jsonReader)
Reads an instance of RestorePointInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
RestorePointInner.id()Returns:
instanceView
public RestorePointInstanceView instanceView()
Get the instanceView property: The restore point instance view.
Returns:
instantAccessDurationMinutes
public Integer 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:
name
public String name()
Get the name property: The name of the resource.
Overrides:
RestorePointInner.name()Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: Gets the provisioning state of the restore point.
Returns:
sourceMetadata
public RestorePointSourceMetadata sourceMetadata()
Get the sourceMetadata property: Gets the details of the VM captured at the time of the restore point creation.
Returns:
sourceRestorePoint
public ApiEntityReference sourceRestorePoint()
Get the sourceRestorePoint property: Resource Id of the source restore point from which a copy needs to be created.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
timeCreated
public OffsetDateTime timeCreated()
Get the timeCreated property: Gets the creation time of the restore point.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RestorePointInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
RestorePointInner.type()Returns:
validate
public void validate()
Validates the instance.
withConsistencyMode
public RestorePointInner withConsistencyMode(ConsistencyModeTypes consistencyMode)
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:
Returns:
withExcludeDisks
public RestorePointInner withExcludeDisks(List<ApiEntityReference> excludeDisks)
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:
Returns:
withInstantAccessDurationMinutes
public RestorePointInner 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:
Returns:
withSourceMetadata
public RestorePointInner withSourceMetadata(RestorePointSourceMetadata sourceMetadata)
Set the sourceMetadata property: Gets the details of the VM captured at the time of the restore point creation.
Parameters:
Returns:
withSourceRestorePoint
public RestorePointInner withSourceRestorePoint(ApiEntityReference sourceRestorePoint)
Set the sourceRestorePoint property: Resource Id of the source restore point from which a copy needs to be created.
Parameters:
Returns:
withTimeCreated
public RestorePointInner withTimeCreated(OffsetDateTime timeCreated)
Set the timeCreated property: Gets the creation time of the restore point.
Parameters:
Returns: