RestoreRequestProperties Class

public final class RestoreRequestProperties
extends BackupRestoreRequestBaseProperties

Cloud Hsm Cluster restore information.

Constructor Summary

Constructor Description
RestoreRequestProperties()

Creates an instance of RestoreRequestProperties class.

Method Summary

Modifier and Type Method and Description
String backupId()

Get the backupId property: An autogenerated unique string ID for labeling the backup.

static RestoreRequestProperties fromJson(JsonReader jsonReader)

Reads an instance of RestoreRequestProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RestoreRequestProperties withAzureStorageBlobContainerUri(String azureStorageBlobContainerUri)

Set the azureStorageBlobContainerUri property: The Azure blob storage container Uri which contains the backup.

RestoreRequestProperties withBackupId(String backupId)

Set the backupId property: An autogenerated unique string ID for labeling the backup.

RestoreRequestProperties withToken(String token)

Set the token property: The SAS token pointing to an Azure blob storage container.

Methods inherited from BackupRestoreRequestBaseProperties

Methods inherited from java.lang.Object

Constructor Details

RestoreRequestProperties

public RestoreRequestProperties()

Creates an instance of RestoreRequestProperties class.

Method Details

backupId

public String backupId()

Get the backupId property: An autogenerated unique string ID for labeling the backup. It contains both a UUID and a date timestamp.

Returns:

the backupId value.

fromJson

public static RestoreRequestProperties fromJson(JsonReader jsonReader)

Reads an instance of RestoreRequestProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RestoreRequestProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

RestoreRequestProperties.validate()

withAzureStorageBlobContainerUri

public RestoreRequestProperties withAzureStorageBlobContainerUri(String azureStorageBlobContainerUri)

Set the azureStorageBlobContainerUri property: The Azure blob storage container Uri which contains the backup.

Overrides:

RestoreRequestProperties.withAzureStorageBlobContainerUri(String azureStorageBlobContainerUri)

Parameters:

azureStorageBlobContainerUri

withBackupId

public RestoreRequestProperties withBackupId(String backupId)

Set the backupId property: An autogenerated unique string ID for labeling the backup. It contains both a UUID and a date timestamp.

Parameters:

backupId - the backupId value to set.

Returns:

the RestoreRequestProperties object itself.

withToken

public RestoreRequestProperties withToken(String token)

Set the token property: The SAS token pointing to an Azure blob storage container. This property is reserved for Azure Backup Service.

Overrides:

RestoreRequestProperties.withToken(String token)

Parameters:

token

Applies to