Dela via


RestorePointInner Class

public final class RestorePointInner
extends ProxyResource

Restore Point details.

Constructor Summary

Constructor Description
RestorePointInner()

Creates an instance of RestorePointInner class.

Method Summary

Modifier and Type Method and Description
ConsistencyModeTypes consistencyMode()

Get the consistencyMode property: ConsistencyMode of the RestorePoint.

List<ApiEntityReference> excludeDisks()

Get the excludeDisks property: List of disk resource ids that the customer wishes to exclude from the restore point.

static RestorePointInner fromJson(JsonReader jsonReader)

Reads an instance of RestorePointInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

RestorePointInstanceView instanceView()

Get the instanceView property: The restore point instance view.

String name()

Get the name property: The name of the resource.

String provisioningState()

Get the provisioningState property: Gets the provisioning state of the restore point.

RestorePointSourceMetadata sourceMetadata()

Get the sourceMetadata property: Gets the details of the VM captured at the time of the restore point creation.

ApiEntityReference sourceRestorePoint()

Get the sourceRestorePoint property: Resource Id of the source restore point from which a copy needs to be created.

OffsetDateTime timeCreated()

Get the timeCreated property: Gets the creation time of the restore point.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

RestorePointInner withConsistencyMode(ConsistencyModeTypes consistencyMode)

Set the consistencyMode property: ConsistencyMode of the RestorePoint.

RestorePointInner withExcludeDisks(List<ApiEntityReference> excludeDisks)

Set the excludeDisks property: List of disk resource ids that the customer wishes to exclude from the restore point.

RestorePointInner withSourceMetadata(RestorePointSourceMetadata sourceMetadata)

Set the sourceMetadata property: Gets the details of the VM captured at the time of the restore point creation.

RestorePointInner withSourceRestorePoint(ApiEntityReference sourceRestorePoint)

Set the sourceRestorePoint property: Resource Id of the source restore point from which a copy needs to be created.

RestorePointInner withTimeCreated(OffsetDateTime timeCreated)

Set the timeCreated property: Gets the creation time of the restore point.

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:

the consistencyMode value.

excludeDisks

public List 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.

fromJson

public static RestorePointInner fromJson(JsonReader jsonReader)

Reads an instance of RestorePointInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RestorePointInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

RestorePointInner.id()

Returns:

the id value.

instanceView

public RestorePointInstanceView instanceView()

Get the instanceView property: The restore point instance view.

Returns:

the instanceView value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

RestorePointInner.name()

Returns:

the name value.

provisioningState

public String provisioningState()

Get the provisioningState property: Gets the provisioning state of the restore point.

Returns:

the provisioningState value.

sourceMetadata

public RestorePointSourceMetadata sourceMetadata()

Get the sourceMetadata property: Gets the details of the VM captured at the time of the restore point creation.

Returns:

the sourceMetadata value.

sourceRestorePoint

public ApiEntityReference sourceRestorePoint()

Get the sourceRestorePoint property: Resource Id of the source restore point from which a copy needs to be created.

Returns:

the sourceRestorePoint value.

timeCreated

public OffsetDateTime timeCreated()

Get the timeCreated property: Gets the creation time of the restore point.

Returns:

the timeCreated value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RestorePointInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

RestorePointInner.type()

Returns:

the type value.

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:

consistencyMode - the consistencyMode value to set.

Returns:

the RestorePointInner object itself.

withExcludeDisks

public RestorePointInner withExcludeDisks(List 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:

excludeDisks - the excludeDisks value to set.

Returns:

the RestorePointInner object itself.

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:

sourceMetadata - the sourceMetadata value to set.

Returns:

the RestorePointInner object itself.

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:

sourceRestorePoint - the sourceRestorePoint value to set.

Returns:

the RestorePointInner object itself.

withTimeCreated

public RestorePointInner withTimeCreated(OffsetDateTime timeCreated)

Set the timeCreated property: Gets the creation time of the restore point.

Parameters:

timeCreated - the timeCreated value to set.

Returns:

the RestorePointInner object itself.

Applies to