Class BucketDeletionStatus


  • public class BucketDeletionStatus
    extends java.lang.Object
    • Constructor Detail

      • BucketDeletionStatus

        public BucketDeletionStatus()
    • Method Detail

      • getStatus

        public java.lang.String getStatus()
        Overall status of the bucket delete task Valid values: PENDING, IN_PROGRESS, POST_PROCESSING, DONE, FAILED, ABORT_IN_PROGRESS, ABORTED
        PENDING - The task has been created and will start execution once it is successfully configured.
        IN_PROGRESS - The task is executing normally.
        POST_PROCESSING - The task is finsished processing and is finalizing before moving to the DONE or FAILED state.
        DONE - The task successfully completed and the bucket was deleted.
        ABORT_IN_PROGRESS - The tasks is aborting and is finalizing before moving to the ABORTED state.
        ABORTED - The task was stopped before it could complete and should be retried.
        FAILED - The task completed but not all items associated with the bucket could be removed.

        When the status is FAILED the failed_to_delete_n counts give an indication of why certain items could not be removed by the task.
      • setStatus

        public void setStatus​(java.lang.String status)
      • getCreated

        public java.util.Date getCreated()
        Timestamp when the operation was created
      • setCreated

        public void setCreated​(java.util.Date created)
      • getLastUpdated

        public java.util.Date getLastUpdated()
        Timestamp of the last time the operation status was updated
      • setLastUpdated

        public void setLastUpdated​(java.util.Date lastUpdated)
      • getEntriesDeleted

        public java.lang.Long getEntriesDeleted()
        Number of entries deleted
      • setEntriesDeleted

        public void setEntriesDeleted​(java.lang.Long entriesDeleted)
      • getFailedToDeleteRetention

        public java.lang.Long getFailedToDeleteRetention()
        Number of entries unable to delete due to retention
      • setFailedToDeleteRetention

        public void setFailedToDeleteRetention​(java.lang.Long failedToDeleteRetention)
      • getFailedToDeletePermission

        public java.lang.Long getFailedToDeletePermission()
        Number of entries failed to delete due to permission
      • setFailedToDeletePermission

        public void setFailedToDeletePermission​(java.lang.Long failedToDeletePermission)
      • getFailedToDeleteDangling

        public java.lang.Long getFailedToDeleteDangling()
        Number of entries failed to delete due to failed dangling cleanup
      • setFailedToDeleteDangling

        public void setFailedToDeleteDangling​(java.lang.Long failedToDeleteDangling)
      • getFailedToDeleteOther

        public java.lang.Long getFailedToDeleteOther()
        Number of entries failed to delete due to other reasons
      • setFailedToDeleteOther

        public void setFailedToDeleteOther​(java.lang.Long failedToDeleteOther)
      • getApproximateObjectCount

        public java.lang.Long getApproximateObjectCount()
        Approximate count of objects in the bucket before deletion
      • setApproximateObjectCount

        public void setApproximateObjectCount​(java.lang.Long approximateObjectCount)
      • getApproximateTotalSize

        public java.lang.Double getApproximateTotalSize()
        Approximate total size of the bucket before deletion
      • setApproximateTotalSize

        public void setApproximateTotalSize​(java.lang.Double approximateTotalSize)
      • getApproximateTotalSizeUnitString

        public java.lang.String getApproximateTotalSizeUnitString()
        Unit of the approximate bucket total size
      • getMessage

        public java.lang.String getMessage()
        Optional additional information about the status
      • setMessage

        public void setMessage​(java.lang.String message)
      • withEntriesDeleted

        public BucketDeletionStatus withEntriesDeleted​(java.lang.Long entriesDeleted)
      • withFailedToDeleteRetention

        public BucketDeletionStatus withFailedToDeleteRetention​(java.lang.Long failedToDeleteRetention)
      • withFailedToDeletePermission

        public BucketDeletionStatus withFailedToDeletePermission​(java.lang.Long failedToDeletePermission)
      • withFailedToDeleteDangling

        public BucketDeletionStatus withFailedToDeleteDangling​(java.lang.Long failedToDeleteDangling)
      • withFailedToDeleteOther

        public BucketDeletionStatus withFailedToDeleteOther​(java.lang.Long failedToDeleteOther)
      • withApproximateObjectCount

        public BucketDeletionStatus withApproximateObjectCount​(java.lang.Long approximateObjectCount)
      • withApproximateTotalSize

        public BucketDeletionStatus withApproximateTotalSize​(java.lang.Double approximateTotalSize)
      • withApproximateTotalSizeUnitString

        public BucketDeletionStatus withApproximateTotalSizeUnitString​(java.lang.String approximateTotalSizeUnitString)