Class BackupsLongTermRetentionOperationInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.BackupsLongTermRetentionOperationInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class BackupsLongTermRetentionOperationInner
extends com.azure.core.management.ProxyResource
Response for the LTR backup Operation API call.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BackupsLongTermRetentionOperationInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the backupMetadata property: Metadata to be stored in RP.Get the backupName property: Name of Backup operation.Get the datasourceSizeInBytes property: Size of datasource in bytes.Get the dataTransferredInBytes property: Data transferred in bytes.endTime()Get the endTime property: End time of the operation.Get the errorCode property: The error code.Get the errorMessage property: The error message.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BackupsLongTermRetentionOperationInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.name()Get the name property: The name of the resource.Get the percentComplete property: PercentageCompleted.Get the startTime property: Start time of the operation.status()Get the status property: Service-set extensible enum indicating the status of operation.com.azure.core.management.SystemDataGet the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withBackupMetadata(String backupMetadata) Set the backupMetadata property: Metadata to be stored in RP.withBackupName(String backupName) Set the backupName property: Name of Backup operation.withDatasourceSizeInBytes(Long datasourceSizeInBytes) Set the datasourceSizeInBytes property: Size of datasource in bytes.withDataTransferredInBytes(Long dataTransferredInBytes) Set the dataTransferredInBytes property: Data transferred in bytes.withEndTime(OffsetDateTime endTime) Set the endTime property: End time of the operation.withPercentComplete(Double percentComplete) Set the percentComplete property: PercentageCompleted.withStartTime(OffsetDateTime startTime) Set the startTime property: Start time of the operation.withStatus(ExecutionStatus status) Set the status property: Service-set extensible enum indicating the status of operation.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BackupsLongTermRetentionOperationInner
public BackupsLongTermRetentionOperationInner()Creates an instance of BackupsLongTermRetentionOperationInner class.
-
-
Method Details
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Returns:
- the systemData value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
datasourceSizeInBytes
Get the datasourceSizeInBytes property: Size of datasource in bytes.- Returns:
- the datasourceSizeInBytes value.
-
withDatasourceSizeInBytes
Set the datasourceSizeInBytes property: Size of datasource in bytes.- Parameters:
datasourceSizeInBytes- the datasourceSizeInBytes value to set.- Returns:
- the BackupsLongTermRetentionOperationInner object itself.
-
dataTransferredInBytes
Get the dataTransferredInBytes property: Data transferred in bytes.- Returns:
- the dataTransferredInBytes value.
-
withDataTransferredInBytes
public BackupsLongTermRetentionOperationInner withDataTransferredInBytes(Long dataTransferredInBytes) Set the dataTransferredInBytes property: Data transferred in bytes.- Parameters:
dataTransferredInBytes- the dataTransferredInBytes value to set.- Returns:
- the BackupsLongTermRetentionOperationInner object itself.
-
backupName
Get the backupName property: Name of Backup operation.- Returns:
- the backupName value.
-
withBackupName
Set the backupName property: Name of Backup operation.- Parameters:
backupName- the backupName value to set.- Returns:
- the BackupsLongTermRetentionOperationInner object itself.
-
backupMetadata
Get the backupMetadata property: Metadata to be stored in RP. Store everything that will be required to perform a successful restore using this Recovery point. e.g. Versions, DataFormat etc.- Returns:
- the backupMetadata value.
-
withBackupMetadata
Set the backupMetadata property: Metadata to be stored in RP. Store everything that will be required to perform a successful restore using this Recovery point. e.g. Versions, DataFormat etc.- Parameters:
backupMetadata- the backupMetadata value to set.- Returns:
- the BackupsLongTermRetentionOperationInner object itself.
-
status
Get the status property: Service-set extensible enum indicating the status of operation.- Returns:
- the status value.
-
withStatus
Set the status property: Service-set extensible enum indicating the status of operation.- Parameters:
status- the status value to set.- Returns:
- the BackupsLongTermRetentionOperationInner object itself.
-
startTime
Get the startTime property: Start time of the operation.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: Start time of the operation.- Parameters:
startTime- the startTime value to set.- Returns:
- the BackupsLongTermRetentionOperationInner object itself.
-
endTime
Get the endTime property: End time of the operation.- Returns:
- the endTime value.
-
withEndTime
Set the endTime property: End time of the operation.- Parameters:
endTime- the endTime value to set.- Returns:
- the BackupsLongTermRetentionOperationInner object itself.
-
percentComplete
Get the percentComplete property: PercentageCompleted.- Returns:
- the percentComplete value.
-
withPercentComplete
Set the percentComplete property: PercentageCompleted.- Parameters:
percentComplete- the percentComplete value to set.- Returns:
- the BackupsLongTermRetentionOperationInner object itself.
-
errorCode
-
errorMessage
Get the errorMessage property: The error message.- Returns:
- the errorMessage value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
public static BackupsLongTermRetentionOperationInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BackupsLongTermRetentionOperationInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BackupsLongTermRetentionOperationInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the BackupsLongTermRetentionOperationInner.
-