public class SetBucketLifecycleConfigurationRequest extends AmazonWebServiceRequest implements Serializable, ExpectedBucketOwnerRequest
NOOP| Constructor and Description |
|---|
SetBucketLifecycleConfigurationRequest(String bucketName,
BucketLifecycleConfiguration lifecycleConfiguration)
Constructs a new
SetBucketLifecycleConfigurationRequest
to set the bucket lifecycle configuration of
the specified bucket. |
| Modifier and Type | Method and Description |
|---|---|
String |
getBucketName()
Gets the name of the bucket whose lifecycle configuration is being
set.
|
String |
getExpectedBucketOwner()
Returns he account id of the expected bucket owner.
|
BucketLifecycleConfiguration |
getLifecycleConfiguration()
Gets the new lifecycle configuration for the specified bucket.
|
void |
setBucketName(String bucketName)
Sets the name of the bucket whose lifecycle configuration is being set.
|
void |
setExpectedBucketOwner(String expectedBucketOwner)
Set the account id of the expected bucket owner.
|
void |
setLifecycleConfiguration(BucketLifecycleConfiguration lifecycleConfiguration)
Sets the new lifecycle configuration for the specified bucket.
|
SetBucketLifecycleConfigurationRequest |
withBucketName(String bucketName)
Sets the name of the bucket whose lifecycle configuration is being set,
and returns this object so that additional method calls may be chained
together.
|
SetBucketLifecycleConfigurationRequest |
withExpectedBucketOwner(String expectedBucketOwner)
Set the account id of the expected bucket owner.
|
SetBucketLifecycleConfigurationRequest |
withLifecycleConfiguration(BucketLifecycleConfiguration lifecycleConfiguration)
Sets the new lifecycle configuration for the specified bucket and
returns this object, enabling additional method calls to be chained
together.
|
addHandlerContext, clone, 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, withSdkRequestTimeoutpublic SetBucketLifecycleConfigurationRequest(String bucketName, BucketLifecycleConfiguration lifecycleConfiguration)
SetBucketLifecycleConfigurationRequest
to set the bucket lifecycle configuration of
the specified bucket.bucketName - The name of the bucket for which to set the lifecycle
configuration.lifecycleConfiguration - The new lifecycle configuration for this bucket, which
completely replaces any existing configuration.public String getExpectedBucketOwner()
ExpectedBucketOwnerRequest403 (Access Denied) error.getExpectedBucketOwner in interface ExpectedBucketOwnerRequestpublic SetBucketLifecycleConfigurationRequest withExpectedBucketOwner(String expectedBucketOwner)
ExpectedBucketOwnerRequest403 (Access Denied) error.withExpectedBucketOwner in interface ExpectedBucketOwnerRequestpublic void setExpectedBucketOwner(String expectedBucketOwner)
ExpectedBucketOwnerRequest403 (Access Denied) error.setExpectedBucketOwner in interface ExpectedBucketOwnerRequestpublic String getBucketName()
setBucketName(String)public void setBucketName(String bucketName)
bucketName - The name of the bucket whose lifecycle configuration is being
set.getBucketName()public SetBucketLifecycleConfigurationRequest withBucketName(String bucketName)
bucketName - The name of the bucket whose lifecycle configuration is being
set.SetBucketLifecycleConfigurationRequest object so that
additional method calls may be chained together.setBucketName(String)public BucketLifecycleConfiguration getLifecycleConfiguration()
withLifecycleConfiguration(BucketLifecycleConfiguration)public void setLifecycleConfiguration(BucketLifecycleConfiguration lifecycleConfiguration)
lifecycleConfiguration - The new lifecycle configuration for the specified bucket.getLifecycleConfiguration(),
withLifecycleConfiguration(BucketLifecycleConfiguration)public SetBucketLifecycleConfigurationRequest withLifecycleConfiguration(BucketLifecycleConfiguration lifecycleConfiguration)
lifecycleConfiguration - The new lifecycle configuration for the specified bucket.SetBucketLifecycleConfigurationRequest object, enabling that
additional method calls may be chained together.getLifecycleConfiguration()