public class SetBucketLifecycleConfigurationRequest extends AmazonWebServiceRequest
Constructor and Description |
---|
SetBucketLifecycleConfigurationRequest(java.lang.String bucketName,
BucketLifecycleConfiguration lifecycleConfiguration)
Constructs a new
SetBucketLifecycleConfigurationRequest to set
the bucket lifecycle configuration of the specified bucket. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBucketName()
Gets the name of the bucket whose lifecycle configuration is being set.
|
BucketLifecycleConfiguration |
getLifecycleConfiguration()
Gets the new lifecycle configuration for the specified bucket.
|
void |
setBucketName(java.lang.String bucketName)
Sets the name of the bucket whose lifecycle configuration is being set.
|
void |
setLifecycleConfiguration(BucketLifecycleConfiguration lifecycleConfiguration)
Sets the new lifecycle configuration for the specified bucket.
|
SetBucketLifecycleConfigurationRequest |
withBucketName(java.lang.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 |
withLifecycleConfiguration(BucketLifecycleConfiguration lifecycleConfiguration)
Sets the new lifecycle configuration for the specified bucket and returns
this object, enabling additional method calls to be chained together.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public SetBucketLifecycleConfigurationRequest(java.lang.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 java.lang.String getBucketName()
setBucketName(String)
public void setBucketName(java.lang.String bucketName)
bucketName
- The name of the bucket whose lifecycle configuration is
being set.getBucketName()
public SetBucketLifecycleConfigurationRequest withBucketName(java.lang.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 © 2018 Amazon Web Services, Inc. All Rights Reserved.