public class SetObjectLockConfigurationRequest extends AmazonWebServiceRequest implements Serializable
NOOP
Constructor and Description |
---|
SetObjectLockConfigurationRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getBucketName()
The S3 Bucket.
|
ObjectLockConfiguration |
getObjectLockConfiguration()
The Object Lock configuration that you want to apply to the specified bucket.
|
String |
getToken() |
boolean |
isRequesterPays()
Returns true if the user has enabled Requester Pays option when
downloading an object from Requester Pays Bucket; else false.
|
void |
setBucketName(String bucket)
The S3 Bucket.
|
void |
setObjectLockConfiguration(ObjectLockConfiguration objectLockConfiguration)
The Object Lock configuration that you want to apply to the specified bucket.
|
void |
setRequesterPays(boolean isRequesterPays)
Used for downloading an Amazon S3 Object from a Requester Pays Bucket.
|
void |
setToken(String token) |
SetObjectLockConfigurationRequest |
withBucketName(String bucket)
The S3 Bucket.
|
SetObjectLockConfigurationRequest |
withObjectLockConfiguration(ObjectLockConfiguration objectLockConfiguration)
The Object Lock configuration that you want to apply to the specified bucket.
|
SetObjectLockConfigurationRequest |
withRequesterPays(boolean isRequesterPays)
Used for conducting this operation from a Requester Pays Bucket.
|
SetObjectLockConfigurationRequest |
withToken(String token) |
addHandlerContext, clone, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public String getBucketName()
public SetObjectLockConfigurationRequest withBucketName(String bucket)
public void setBucketName(String bucket)
public ObjectLockConfiguration getObjectLockConfiguration()
public SetObjectLockConfigurationRequest withObjectLockConfiguration(ObjectLockConfiguration objectLockConfiguration)
public void setObjectLockConfiguration(ObjectLockConfiguration objectLockConfiguration)
public boolean isRequesterPays()
If a bucket is enabled for Requester Pays, then any attempt to read 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
public SetObjectLockConfigurationRequest withRequesterPays(boolean isRequesterPays)
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.
isRequesterPays
- Enable Requester Pays option for the operation.public void setRequesterPays(boolean isRequesterPays)
If a bucket is enabled for Requester Pays, then any attempt to read 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
isRequesterPays
- Enable Requester Pays option for the operation.public String getToken()
public SetObjectLockConfigurationRequest withToken(String token)
public void setToken(String token)
Copyright © 2019. All rights reserved.