BackupResultProperties Class

public final class BackupResultProperties
extends BackupRestoreBaseResultProperties

Properties of the Cloud HSM Cluster.

Constructor Summary

Constructor Description
BackupResultProperties()

Creates an instance of BackupResultProperties 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.

String backupId()

Get the backupId property: The ID of the backup.

OffsetDateTime endTime()

Get the endTime property: The end time of the backup/restore operation in UTC.

static BackupResultProperties fromJson(JsonReader jsonReader)

Reads an instance of BackupResultProperties from the JsonReader.

OffsetDateTime startTime()

Get the startTime property: The start time of the backup/restore operation in UTC.

BackupRestoreOperationStatus status()

Get the status property: Status of the backup/restore operation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BackupResultProperties withAzureStorageBlobContainerUri(String azureStorageBlobContainerUri)

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

BackupResultProperties withBackupId(String backupId)

Set the backupId property: The ID of the backup.

BackupResultProperties withError(ManagementError error)

Set the error property: Error encountered, if any, during the backup/restore operation.

BackupResultProperties withJobId(String jobId)

Set the jobId property: Identifier for the backup/restore operation.

BackupResultProperties withStatusDetails(String statusDetails)

Set the statusDetails property: The status details of backup/restore operation.

Methods inherited from BackupRestoreBaseResultProperties

Methods inherited from java.lang.Object

Constructor Details

BackupResultProperties

public BackupResultProperties()

Creates an instance of BackupResultProperties 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.

backupId

public String backupId()

Get the backupId property: The ID of the backup.

Returns:

the backupId value.

endTime

public OffsetDateTime endTime()

Get the endTime property: The end time of the backup/restore operation in UTC.

Overrides:

BackupResultProperties.endTime()

Returns:

the endTime value.

fromJson

public static BackupResultProperties fromJson(JsonReader jsonReader)

Reads an instance of BackupResultProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

startTime

public OffsetDateTime startTime()

Get the startTime property: The start time of the backup/restore operation in UTC.

Overrides:

BackupResultProperties.startTime()

Returns:

the startTime value.

status

public BackupRestoreOperationStatus status()

Get the status property: Status of the backup/restore operation.

Overrides:

BackupResultProperties.status()

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

BackupResultProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

BackupResultProperties.validate()

withAzureStorageBlobContainerUri

public BackupResultProperties 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 BackupResultProperties object itself.

withBackupId

public BackupResultProperties withBackupId(String backupId)

Set the backupId property: The ID of the backup.

Parameters:

backupId - the backupId value to set.

Returns:

the BackupResultProperties object itself.

withError

public BackupResultProperties withError(ManagementError error)

Set the error property: Error encountered, if any, during the backup/restore operation.

Overrides:

BackupResultProperties.withError(ManagementError error)

Parameters:

error

withJobId

public BackupResultProperties withJobId(String jobId)

Set the jobId property: Identifier for the backup/restore operation.

Overrides:

BackupResultProperties.withJobId(String jobId)

Parameters:

jobId

withStatusDetails

public BackupResultProperties withStatusDetails(String statusDetails)

Set the statusDetails property: The status details of backup/restore operation.

Overrides:

BackupResultProperties.withStatusDetails(String statusDetails)

Parameters:

statusDetails

Applies to