public class SetObjectLockConfigurationResult extends Object implements Serializable, S3RequesterChargedResult
AmazonS3.setObjectLockConfiguration(SetObjectLockConfigurationRequest)
.Constructor and Description |
---|
SetObjectLockConfigurationResult() |
Modifier and Type | Method and Description |
---|---|
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.
|
SetObjectLockConfigurationResult |
withRequesterCharged(Boolean requesterCharged) |
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 SetObjectLockConfigurationResult withRequesterCharged(Boolean requesterCharged)
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 © 2018. All rights reserved.