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 toAmazonS3.deleteObjects(DeleteObjectsRequest)
. If one or more objects couldn't be deleted as instructed, aMultiObjectDeleteException
is thrown instead.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeleteObjectsResult.DeletedObject
A successfully deleted object.
-
Constructor Summary
Constructors Constructor Description DeleteObjectsResult(List<DeleteObjectsResult.DeletedObject> deletedObjects)
DeleteObjectsResult(List<DeleteObjectsResult.DeletedObject> deletedObjects, boolean isRequesterCharged)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DeleteObjectsResult.DeletedObject>
getDeletedObjects()
Returns the list of successfully deleted objects from this request.boolean
isRequesterCharged()
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 Detail
-
DeleteObjectsResult
public DeleteObjectsResult(List<DeleteObjectsResult.DeletedObject> deletedObjects)
-
DeleteObjectsResult
public DeleteObjectsResult(List<DeleteObjectsResult.DeletedObject> deletedObjects, boolean isRequesterCharged)
-
-
Method Detail
-
getDeletedObjects
public List<DeleteObjectsResult.DeletedObject> 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.
-
-