public class DeleteObjectsResult extends Object implements Serializable, 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(List<DeleteObjectsResult.DeletedObject> deletedObjects) |
DeleteObjectsResult(List<DeleteObjectsResult.DeletedObject> deletedObjects,
boolean isRequesterCharged) |
Modifier and Type | Method and 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.
|
public DeleteObjectsResult(List<DeleteObjectsResult.DeletedObject> deletedObjects)
public DeleteObjectsResult(List<DeleteObjectsResult.DeletedObject> deletedObjects, boolean isRequesterCharged)
public 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()
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 S3RequesterChargedResult
public void setRequesterCharged(boolean isRequesterCharged)
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 S3RequesterChargedResult
isRequesterCharged
- Indicates requester is charged for this operation.Copyright © 2022. All rights reserved.