com.amazonaws.services.s3.model
Class SetBucketLifecycleConfigurationRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.s3.model.SetBucketLifecycleConfigurationRequest

public class SetBucketLifecycleConfigurationRequest
extends AmazonWebServiceRequest

Contains options for setting the lifecycle configuration for a bucket.

See Also:
SetBucketLifecycleConfigurationRequest(String, BucketLifecycleConfiguration)

Constructor Summary
SetBucketLifecycleConfigurationRequest(java.lang.String bucketName, BucketLifecycleConfiguration lifecycleConfiguration)
          Constructs a new SetBucketLifecycleConfigurationRequest to set the bucket lifecycle configuration of the specified bucket.
 
Method Summary
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetBucketLifecycleConfigurationRequest

public SetBucketLifecycleConfigurationRequest(java.lang.String bucketName,
                                              BucketLifecycleConfiguration lifecycleConfiguration)
Constructs a new SetBucketLifecycleConfigurationRequest to set the bucket lifecycle configuration of the specified bucket.

Parameters:
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.
Method Detail

getBucketName

public java.lang.String getBucketName()
Gets the name of the bucket whose lifecycle configuration is being set.

Returns:
The name of the bucket whose lifecycle configuration is being set.
See Also:
setBucketName(String)

setBucketName

public void setBucketName(java.lang.String bucketName)
Sets the name of the bucket whose lifecycle configuration is being set.

Parameters:
bucketName - The name of the bucket whose lifecycle configuration is being set.
See Also:
getBucketName()

withBucketName

public 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.

Parameters:
bucketName - The name of the bucket whose lifecycle configuration is being set.
Returns:
This SetBucketLifecycleConfigurationRequest object so that additional method calls may be chained together.
See Also:
setBucketName(String)

getLifecycleConfiguration

public BucketLifecycleConfiguration getLifecycleConfiguration()
Gets the new lifecycle configuration for the specified bucket.

Returns:
The new lifecycle configuration for the specified bucket.
See Also:
withLifecycleConfiguration(BucketLifecycleConfiguration)

setLifecycleConfiguration

public void setLifecycleConfiguration(BucketLifecycleConfiguration lifecycleConfiguration)
Sets the new lifecycle configuration for the specified bucket.

Parameters:
lifecycleConfiguration - The new lifecycle configuration for the specified bucket.
See Also:
getLifecycleConfiguration(), withLifecycleConfiguration(BucketLifecycleConfiguration)

withLifecycleConfiguration

public 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.

Parameters:
lifecycleConfiguration - The new lifecycle configuration for the specified bucket.
Returns:
This SetBucketLifecycleConfigurationRequest object, enabling that additional method calls may be chained together.
See Also:
getLifecycleConfiguration()


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.