Class DeleteObjectsResult

java.lang.Object
com.amazonaws.services.s3.model.DeleteObjectsResult
All Implemented Interfaces:
com.amazonaws.services.s3.internal.S3RequesterChargedResult, Serializable

public class DeleteObjectsResult extends Object implements Serializable, com.amazonaws.services.s3.internal.S3RequesterChargedResult
Successful response to AmazonS3.deleteObjects(DeleteObjectsRequest). If one or more objects couldn't be deleted as instructed, a MultiObjectDeleteException is thrown instead.
See Also:
  • Constructor Details

  • Method Details

    • getDeletedObjects

      public List<DeleteObjectsResult.DeletedObject> getDeletedObjects()
      Returns the list of successfully deleted objects from this request. If DeleteObjectsRequest.getQuiet() is true, only error responses will be returned from s3, so this list will be empty.
    • isRequesterCharged

      public boolean isRequesterCharged()
      Description copied from interface: com.amazonaws.services.s3.internal.S3RequesterChargedResult
      Returns true if the user has enabled Requester Pays option when conducting this operation from Requester Pays Bucket; else false.

      If a bucket is enabled for Requester Pays, then any attempt of operation from it without Requester Pays enabled will result in a 403 error and the bucket owner will be charged for the request.

      Enabling Requester Pays disables the ability to have anonymous access to this bucket

      Specified by:
      isRequesterCharged in interface com.amazonaws.services.s3.internal.S3RequesterChargedResult
      Returns:
      true if the user has enabled Requester Pays option for conducting this operation from Requester Pays Bucket.
    • setRequesterCharged

      public void setRequesterCharged(boolean isRequesterCharged)
      Description copied from interface: com.amazonaws.services.s3.internal.S3RequesterChargedResult
      Used for conducting this operation from a Requester Pays Bucket. If set the requester is charged for conducting the operation from the bucket.

      If a bucket is enabled for Requester Pays, then any attempt of operation from it without Requester Pays enabled will result in a 403 error and the bucket owner will be charged for the request.

      Specified by:
      setRequesterCharged in interface com.amazonaws.services.s3.internal.S3RequesterChargedResult
      Parameters:
      isRequesterCharged - Indicates requester is charged for this operation.