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, 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 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()
ExpectedBucketOwnerRequest
403 (Access Denied)
error.getExpectedBucketOwner
in interface ExpectedBucketOwnerRequest
public SetBucketLifecycleConfigurationRequest withExpectedBucketOwner(String expectedBucketOwner)
ExpectedBucketOwnerRequest
403 (Access Denied)
error.withExpectedBucketOwner
in interface ExpectedBucketOwnerRequest
public void setExpectedBucketOwner(String expectedBucketOwner)
ExpectedBucketOwnerRequest
403 (Access Denied)
error.setExpectedBucketOwner
in interface ExpectedBucketOwnerRequest
public 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()
Copyright © 2022. All rights reserved.