BackupRequestProperties Class

public final class BackupRequestProperties
extends BackupRestoreRequestBaseProperties

Backup properties.

Constructor Summary

Constructor Description
BackupRequestProperties()

Creates an instance of BackupRequestProperties class.

Method Summary

Modifier and Type Method and Description
static BackupRequestProperties fromJson(JsonReader jsonReader)

Reads an instance of BackupRequestProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BackupRequestProperties withAzureStorageBlobContainerUri(String azureStorageBlobContainerUri)

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

BackupRequestProperties 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

BackupRequestProperties

public BackupRequestProperties()

Creates an instance of BackupRequestProperties class.

Method Details

fromJson

public static BackupRequestProperties fromJson(JsonReader jsonReader)

Reads an instance of BackupRequestProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BackupRequestProperties 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:

BackupRequestProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

BackupRequestProperties.validate()

withAzureStorageBlobContainerUri

public BackupRequestProperties withAzureStorageBlobContainerUri(String azureStorageBlobContainerUri)

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

Overrides:

BackupRequestProperties.withAzureStorageBlobContainerUri(String azureStorageBlobContainerUri)

Parameters:

azureStorageBlobContainerUri

withToken

public BackupRequestProperties 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:

BackupRequestProperties.withToken(String token)

Parameters:

token

Applies to