public class DeleteObjectsResponse extends java.lang.Object implements S3RequesterChargedResult
Modifier and Type | Field and Description |
---|---|
private java.util.List<DeleteObjectsResult.DeletedObject> |
deletedObjects |
private java.util.List<MultiObjectDeleteException.DeleteError> |
errors |
private boolean |
isRequesterCharged
Indicate if the requester is charged for conducting this operation from
Requester Pays Buckets.
|
Constructor and Description |
---|
DeleteObjectsResponse() |
DeleteObjectsResponse(java.util.List<DeleteObjectsResult.DeletedObject> deletedObjects,
java.util.List<MultiObjectDeleteException.DeleteError> errors) |
Modifier and Type | Method and Description |
---|---|
java.util.List<DeleteObjectsResult.DeletedObject> |
getDeletedObjects() |
java.util.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(java.util.List<DeleteObjectsResult.DeletedObject> deletedObjects) |
void |
setErrors(java.util.List<MultiObjectDeleteException.DeleteError> errors) |
void |
setRequesterCharged(boolean isRequesterCharged)
Used for conducting this operation from a Requester Pays Bucket.
|
private java.util.List<DeleteObjectsResult.DeletedObject> deletedObjects
private java.util.List<MultiObjectDeleteException.DeleteError> errors
private boolean isRequesterCharged
public DeleteObjectsResponse()
public DeleteObjectsResponse(java.util.List<DeleteObjectsResult.DeletedObject> deletedObjects, java.util.List<MultiObjectDeleteException.DeleteError> errors)
public java.util.List<DeleteObjectsResult.DeletedObject> getDeletedObjects()
public void setDeletedObjects(java.util.List<DeleteObjectsResult.DeletedObject> deletedObjects)
public java.util.List<MultiObjectDeleteException.DeleteError> getErrors()
public void setErrors(java.util.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.