BackupRestoreBaseResultProperties Class

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

Implements

public class BackupRestoreBaseResultProperties
implements JsonSerializable<BackupRestoreBaseResultProperties>

Backup and Restore operation common properties.

Constructor Summary

Constructor Description
BackupRestoreBaseResultProperties()

Creates an instance of BackupRestoreBaseResultProperties class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endTime()

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

ManagementError error()

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

static BackupRestoreBaseResultProperties fromJson(JsonReader jsonReader)

Reads an instance of BackupRestoreBaseResultProperties from the JsonReader.

String jobId()

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

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.

String statusDetails()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BackupRestoreBaseResultProperties withError(ManagementError error)

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

BackupRestoreBaseResultProperties withJobId(String jobId)

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

BackupRestoreBaseResultProperties withStatusDetails(String statusDetails)

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

Methods inherited from java.lang.Object

Constructor Details

BackupRestoreBaseResultProperties

public BackupRestoreBaseResultProperties()

Creates an instance of BackupRestoreBaseResultProperties class.

Method Details

endTime

public OffsetDateTime endTime()

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

Returns:

the endTime value.

error

public ManagementError error()

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

Returns:

the error value.

fromJson

public static BackupRestoreBaseResultProperties fromJson(JsonReader jsonReader)

Reads an instance of BackupRestoreBaseResultProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

jobId

public String jobId()

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

Returns:

the jobId value.

startTime

public OffsetDateTime startTime()

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

Returns:

the startTime value.

status

public BackupRestoreOperationStatus status()

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

Returns:

the status value.

statusDetails

public String statusDetails()

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

Returns:

the statusDetails value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withError

public BackupRestoreBaseResultProperties withError(ManagementError error)

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

Parameters:

error - the error value to set.

Returns:

the BackupRestoreBaseResultProperties object itself.

withJobId

public BackupRestoreBaseResultProperties withJobId(String jobId)

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

Parameters:

jobId - the jobId value to set.

Returns:

the BackupRestoreBaseResultProperties object itself.

withStatusDetails

public BackupRestoreBaseResultProperties withStatusDetails(String statusDetails)

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

Parameters:

statusDetails - the statusDetails value to set.

Returns:

the BackupRestoreBaseResultProperties object itself.

Applies to