BackupRestoreRequestBaseProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.hardwaresecuritymodules.models.BackupRestoreRequestBaseProperties

Implements

public class BackupRestoreRequestBaseProperties
implements JsonSerializable<BackupRestoreRequestBaseProperties>

Backup and Restore Common properties.

Constructor Summary

Constructor Description
BackupRestoreRequestBaseProperties()

Creates an instance of BackupRestoreRequestBaseProperties class.

Method Summary

Modifier and Type Method and Description
String azureStorageBlobContainerUri()

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

static BackupRestoreRequestBaseProperties fromJson(JsonReader jsonReader)

Reads an instance of BackupRestoreRequestBaseProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String token()

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

void validate()

Validates the instance.

BackupRestoreRequestBaseProperties withAzureStorageBlobContainerUri(String azureStorageBlobContainerUri)

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

BackupRestoreRequestBaseProperties withToken(String token)

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

Methods inherited from java.lang.Object

Constructor Details

BackupRestoreRequestBaseProperties

public BackupRestoreRequestBaseProperties()

Creates an instance of BackupRestoreRequestBaseProperties class.

Method Details

azureStorageBlobContainerUri

public String azureStorageBlobContainerUri()

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

Returns:

the azureStorageBlobContainerUri value.

fromJson

public static BackupRestoreRequestBaseProperties fromJson(JsonReader jsonReader)

Reads an instance of BackupRestoreRequestBaseProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BackupRestoreRequestBaseProperties 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)

Parameters:

jsonWriter

Throws:

token

public String token()

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

Returns:

the token value.

validate

public void validate()

Validates the instance.

withAzureStorageBlobContainerUri

public BackupRestoreRequestBaseProperties withAzureStorageBlobContainerUri(String azureStorageBlobContainerUri)

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

Parameters:

azureStorageBlobContainerUri - the azureStorageBlobContainerUri value to set.

Returns:

the BackupRestoreRequestBaseProperties object itself.

withToken

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

Parameters:

token - the token value to set.

Returns:

the BackupRestoreRequestBaseProperties object itself.

Applies to