public class DeleteObjectsResult
extends java.lang.Object
implements java.io.Serializable, com.amazonaws.services.s3.internal.S3RequesterChargedResult
AmazonS3.deleteObjects(DeleteObjectsRequest)
.
If one or more objects couldn't be deleted as instructed, a
MultiObjectDeleteException
is thrown instead.Modifier and Type | Class and Description |
---|---|
static class |
DeleteObjectsResult.DeletedObject
A successfully deleted object.
|
Constructor and Description |
---|
DeleteObjectsResult(java.util.List<DeleteObjectsResult.DeletedObject> deletedObjects) |
DeleteObjectsResult(java.util.List<DeleteObjectsResult.DeletedObject> deletedObjects,
boolean isRequesterCharged) |
Modifier and Type | Method and Description |
---|---|
java.util.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.
|
public DeleteObjectsResult(java.util.List<DeleteObjectsResult.DeletedObject> deletedObjects)
public DeleteObjectsResult(java.util.List<DeleteObjectsResult.DeletedObject> deletedObjects, boolean isRequesterCharged)
public java.util.List<DeleteObjectsResult.DeletedObject> getDeletedObjects()
DeleteObjectsRequest.getQuiet()
is true, only error responses
will be returned from s3, so this list will be empty.public boolean isRequesterCharged()
com.amazonaws.services.s3.internal.S3RequesterChargedResult
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
isRequesterCharged
in interface com.amazonaws.services.s3.internal.S3RequesterChargedResult
public void setRequesterCharged(boolean isRequesterCharged)
com.amazonaws.services.s3.internal.S3RequesterChargedResult
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.
setRequesterCharged
in interface com.amazonaws.services.s3.internal.S3RequesterChargedResult
isRequesterCharged
- Indicates requester is charged for this
operation.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.