Package com.amazonaws.services.s3.model
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A successfully deleted object. -
Constructor Summary
ConstructorsConstructorDescriptionDeleteObjectsResult
(List<DeleteObjectsResult.DeletedObject> deletedObjects) DeleteObjectsResult
(List<DeleteObjectsResult.DeletedObject> deletedObjects, boolean isRequesterCharged) -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of successfully deleted objects from this request.boolean
Returns true if the user has enabled Requester Pays option when conducting this operation from Requester Pays Bucket; else false.void
setRequesterCharged
(boolean isRequesterCharged) Used for conducting this operation from a Requester Pays Bucket.
-
Constructor Details
-
DeleteObjectsResult
-
DeleteObjectsResult
public DeleteObjectsResult(List<DeleteObjectsResult.DeletedObject> deletedObjects, boolean isRequesterCharged)
-
-
Method Details
-
getDeletedObjects
Returns the list of successfully deleted objects from this request. IfDeleteObjectsRequest.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 interfacecom.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 interfacecom.amazonaws.services.s3.internal.S3RequesterChargedResult
- Parameters:
isRequesterCharged
- Indicates requester is charged for this operation.
-