isRequesterPays

public boolean isRequesterPays()

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 to upload or
download an object 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

Returns:

true if the user has enabled Requester Pays option for
conducting this operation from Requester Pays Bucket.

setRequesterPays

public void setRequesterPays(boolean isRequesterPays)

Used for conducting this operation from a Requester Pays Bucket. If
set the requester is charged for requests from the bucket.

If a bucket is enabled for Requester Pays, then any attempt to upload or
download an object 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.

Parameters:

isRequesterPays - Enable Requester Pays option for the operation.

withRequesterPays

Used for conducting this operation from a Requester Pays Bucket. If
set the requester is charged for requests from the bucket. It returns this
updated DeleteObjectRequest object so that additional method calls can be
chained together.

If a bucket is enabled for Requester Pays, then any attempt to upload or
download an object 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.