public class DeleteObjectsResponse extends Object implements S3RequesterChargedResult
Constructor and Description |
---|
DeleteObjectsResponse() |
DeleteObjectsResponse(List<DeleteObjectsResult.DeletedObject> deletedObjects,
List<MultiObjectDeleteException.DeleteError> errors) |
Modifier and Type | Method and Description |
---|---|
List<DeleteObjectsResult.DeletedObject> |
getDeletedObjects() |
List<MultiObjectDeleteException.DeleteError> |
getErrors() |
boolean |
isRequesterCharged()
Returns true if the user has enabled Requester Pays option when
conducting this operation from Requester Pays Bucket; else false.
|
void |
setDeletedObjects(List<DeleteObjectsResult.DeletedObject> deletedObjects) |
void |
setErrors(List<MultiObjectDeleteException.DeleteError> errors) |
void |
setRequesterCharged(boolean isRequesterCharged)
Used for conducting this operation from a Requester Pays Bucket.
|
public DeleteObjectsResponse()
public DeleteObjectsResponse(List<DeleteObjectsResult.DeletedObject> deletedObjects, List<MultiObjectDeleteException.DeleteError> errors)
public List<DeleteObjectsResult.DeletedObject> getDeletedObjects()
public void setDeletedObjects(List<DeleteObjectsResult.DeletedObject> deletedObjects)
public List<MultiObjectDeleteException.DeleteError> getErrors()
public void setErrors(List<MultiObjectDeleteException.DeleteError> errors)
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 © 2023. All rights reserved.