Class LtrServerBackupOperationInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.LtrServerBackupOperationInner

public final class LtrServerBackupOperationInner extends com.azure.core.management.ProxyResource
Response for the LTR backup Operation API call.
  • Constructor Details

    • LtrServerBackupOperationInner

      public LtrServerBackupOperationInner()
      Creates an instance of LtrServerBackupOperationInner 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.
    • datasourceSizeInBytes

      public Long datasourceSizeInBytes()
      Get the datasourceSizeInBytes property: Size of datasource in bytes.
      Returns:
      the datasourceSizeInBytes value.
    • withDatasourceSizeInBytes

      public LtrServerBackupOperationInner withDatasourceSizeInBytes(Long datasourceSizeInBytes)
      Set the datasourceSizeInBytes property: Size of datasource in bytes.
      Parameters:
      datasourceSizeInBytes - the datasourceSizeInBytes value to set.
      Returns:
      the LtrServerBackupOperationInner object itself.
    • dataTransferredInBytes

      public Long dataTransferredInBytes()
      Get the dataTransferredInBytes property: Data transferred in bytes.
      Returns:
      the dataTransferredInBytes value.
    • withDataTransferredInBytes

      public LtrServerBackupOperationInner withDataTransferredInBytes(Long dataTransferredInBytes)
      Set the dataTransferredInBytes property: Data transferred in bytes.
      Parameters:
      dataTransferredInBytes - the dataTransferredInBytes value to set.
      Returns:
      the LtrServerBackupOperationInner object itself.
    • backupName

      public String backupName()
      Get the backupName property: Name of Backup operation.
      Returns:
      the backupName value.
    • withBackupName

      public LtrServerBackupOperationInner withBackupName(String backupName)
      Set the backupName property: Name of Backup operation.
      Parameters:
      backupName - the backupName value to set.
      Returns:
      the LtrServerBackupOperationInner object itself.
    • backupMetadata

      public String 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

      public LtrServerBackupOperationInner withBackupMetadata(String backupMetadata)
      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 LtrServerBackupOperationInner object itself.
    • status

      public ExecutionStatus status()
      Get the status property: Service-set extensible enum indicating the status of operation.
      Returns:
      the status value.
    • withStatus

      public LtrServerBackupOperationInner withStatus(ExecutionStatus status)
      Set the status property: Service-set extensible enum indicating the status of operation.
      Parameters:
      status - the status value to set.
      Returns:
      the LtrServerBackupOperationInner object itself.
    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: Start time of the operation.
      Returns:
      the startTime value.
    • withStartTime

      public LtrServerBackupOperationInner withStartTime(OffsetDateTime startTime)
      Set the startTime property: Start time of the operation.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the LtrServerBackupOperationInner object itself.
    • endTime

      public OffsetDateTime endTime()
      Get the endTime property: End time of the operation.
      Returns:
      the endTime value.
    • withEndTime

      public LtrServerBackupOperationInner withEndTime(OffsetDateTime endTime)
      Set the endTime property: End time of the operation.
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the LtrServerBackupOperationInner object itself.
    • percentComplete

      public Double percentComplete()
      Get the percentComplete property: PercentageCompleted.
      Returns:
      the percentComplete value.
    • withPercentComplete

      public LtrServerBackupOperationInner withPercentComplete(Double percentComplete)
      Set the percentComplete property: PercentageCompleted.
      Parameters:
      percentComplete - the percentComplete value to set.
      Returns:
      the LtrServerBackupOperationInner object itself.
    • errorCode

      public String errorCode()
      Get the errorCode property: The error code.
      Returns:
      the errorCode value.
    • errorMessage

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