PreRestoreRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.storagesync.models.PreRestoreRequest

Implements

public final class PreRestoreRequest
implements JsonSerializable<PreRestoreRequest>

Pre Restore request object.

Constructor Summary

Constructor Description
PreRestoreRequest()

Creates an instance of PreRestoreRequest class.

Method Summary

Modifier and Type Method and Description
String azureFileShareUri()

Get the azureFileShareUri property: Pre Restore Azure file share uri.

String backupMetadataPropertyBag()

Get the backupMetadataPropertyBag property: Pre Restore backup metadata property bag.

static PreRestoreRequest fromJson(JsonReader jsonReader)

Reads an instance of PreRestoreRequest from the JsonReader.

String partition()

Get the partition property: Pre Restore partition.

Integer pauseWaitForSyncDrainTimePeriodInSeconds()

Get the pauseWaitForSyncDrainTimePeriodInSeconds property: Pre Restore pause wait for sync drain time period in seconds.

String replicaGroup()

Get the replicaGroup property: Pre Restore replica group.

String requestId()

Get the requestId property: Pre Restore request id.

List<RestoreFileSpec> restoreFileSpec()

Get the restoreFileSpec property: Pre Restore restore file spec array.

String sourceAzureFileShareUri()

Get the sourceAzureFileShareUri property: Pre Restore Azure source azure file share uri.

String status()

Get the status property: Pre Restore Azure status.

JsonWriter toJson(JsonWriter jsonWriter)
PreRestoreRequest withAzureFileShareUri(String azureFileShareUri)

Set the azureFileShareUri property: Pre Restore Azure file share uri.

PreRestoreRequest withBackupMetadataPropertyBag(String backupMetadataPropertyBag)

Set the backupMetadataPropertyBag property: Pre Restore backup metadata property bag.

PreRestoreRequest withPartition(String partition)

Set the partition property: Pre Restore partition.

PreRestoreRequest withPauseWaitForSyncDrainTimePeriodInSeconds(Integer pauseWaitForSyncDrainTimePeriodInSeconds)

Set the pauseWaitForSyncDrainTimePeriodInSeconds property: Pre Restore pause wait for sync drain time period in seconds.

PreRestoreRequest withReplicaGroup(String replicaGroup)

Set the replicaGroup property: Pre Restore replica group.

PreRestoreRequest withRequestId(String requestId)

Set the requestId property: Pre Restore request id.

PreRestoreRequest withRestoreFileSpec(List<RestoreFileSpec> restoreFileSpec)

Set the restoreFileSpec property: Pre Restore restore file spec array.

PreRestoreRequest withSourceAzureFileShareUri(String sourceAzureFileShareUri)

Set the sourceAzureFileShareUri property: Pre Restore Azure source azure file share uri.

PreRestoreRequest withStatus(String status)

Set the status property: Pre Restore Azure status.

Methods inherited from java.lang.Object

Constructor Details

PreRestoreRequest

public PreRestoreRequest()

Creates an instance of PreRestoreRequest class.

Method Details

azureFileShareUri

public String azureFileShareUri()

Get the azureFileShareUri property: Pre Restore Azure file share uri.

Returns:

the azureFileShareUri value.

backupMetadataPropertyBag

public String backupMetadataPropertyBag()

Get the backupMetadataPropertyBag property: Pre Restore backup metadata property bag.

Returns:

the backupMetadataPropertyBag value.

fromJson

public static PreRestoreRequest fromJson(JsonReader jsonReader)

Reads an instance of PreRestoreRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PreRestoreRequest 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 PreRestoreRequest.

partition

public String partition()

Get the partition property: Pre Restore partition.

Returns:

the partition value.

pauseWaitForSyncDrainTimePeriodInSeconds

public Integer pauseWaitForSyncDrainTimePeriodInSeconds()

Get the pauseWaitForSyncDrainTimePeriodInSeconds property: Pre Restore pause wait for sync drain time period in seconds.

Returns:

the pauseWaitForSyncDrainTimePeriodInSeconds value.

replicaGroup

public String replicaGroup()

Get the replicaGroup property: Pre Restore replica group.

Returns:

the replicaGroup value.

requestId

public String requestId()

Get the requestId property: Pre Restore request id.

Returns:

the requestId value.

restoreFileSpec

public List<RestoreFileSpec> restoreFileSpec()

Get the restoreFileSpec property: Pre Restore restore file spec array.

Returns:

the restoreFileSpec value.

sourceAzureFileShareUri

public String sourceAzureFileShareUri()

Get the sourceAzureFileShareUri property: Pre Restore Azure source azure file share uri.

Returns:

the sourceAzureFileShareUri value.

status

public String status()

Get the status property: Pre Restore Azure status.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withAzureFileShareUri

public PreRestoreRequest withAzureFileShareUri(String azureFileShareUri)

Set the azureFileShareUri property: Pre Restore Azure file share uri.

Parameters:

azureFileShareUri - the azureFileShareUri value to set.

Returns:

the PreRestoreRequest object itself.

withBackupMetadataPropertyBag

public PreRestoreRequest withBackupMetadataPropertyBag(String backupMetadataPropertyBag)

Set the backupMetadataPropertyBag property: Pre Restore backup metadata property bag.

Parameters:

backupMetadataPropertyBag - the backupMetadataPropertyBag value to set.

Returns:

the PreRestoreRequest object itself.

withPartition

public PreRestoreRequest withPartition(String partition)

Set the partition property: Pre Restore partition.

Parameters:

partition - the partition value to set.

Returns:

the PreRestoreRequest object itself.

withPauseWaitForSyncDrainTimePeriodInSeconds

public PreRestoreRequest withPauseWaitForSyncDrainTimePeriodInSeconds(Integer pauseWaitForSyncDrainTimePeriodInSeconds)

Set the pauseWaitForSyncDrainTimePeriodInSeconds property: Pre Restore pause wait for sync drain time period in seconds.

Parameters:

pauseWaitForSyncDrainTimePeriodInSeconds - the pauseWaitForSyncDrainTimePeriodInSeconds value to set.

Returns:

the PreRestoreRequest object itself.

withReplicaGroup

public PreRestoreRequest withReplicaGroup(String replicaGroup)

Set the replicaGroup property: Pre Restore replica group.

Parameters:

replicaGroup - the replicaGroup value to set.

Returns:

the PreRestoreRequest object itself.

withRequestId

public PreRestoreRequest withRequestId(String requestId)

Set the requestId property: Pre Restore request id.

Parameters:

requestId - the requestId value to set.

Returns:

the PreRestoreRequest object itself.

withRestoreFileSpec

public PreRestoreRequest withRestoreFileSpec(List<RestoreFileSpec> restoreFileSpec)

Set the restoreFileSpec property: Pre Restore restore file spec array.

Parameters:

restoreFileSpec - the restoreFileSpec value to set.

Returns:

the PreRestoreRequest object itself.

withSourceAzureFileShareUri

public PreRestoreRequest withSourceAzureFileShareUri(String sourceAzureFileShareUri)

Set the sourceAzureFileShareUri property: Pre Restore Azure source azure file share uri.

Parameters:

sourceAzureFileShareUri - the sourceAzureFileShareUri value to set.

Returns:

the PreRestoreRequest object itself.

withStatus

public PreRestoreRequest withStatus(String status)

Set the status property: Pre Restore Azure status.

Parameters:

status - the status value to set.

Returns:

the PreRestoreRequest object itself.

Applies to