Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License").
   * You may not use this file except in compliance with the License.
   * A copy of the License is located at
   * 
   *  http://aws.amazon.com/apache2.0
   * 
  * or in the "license" file accompanying this file. This file is distributed
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
 package com.amazonaws.services.s3.model;
 
Contains options for setting the lifecycle configuration for a bucket.

 
 public class SetBucketLifecycleConfigurationRequest extends AmazonWebServiceRequest {
    
    
The bucket whose lifecycle configuration is being set.
 
     private String bucketName;

    
The new lifecycle configuration for the specified bucket.
 
     private 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.
 
             String bucketNameBucketLifecycleConfiguration lifecycleConfiguration) {
         this. = bucketName;
         this. = lifecycleConfiguration;
     }

    
    
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(java.lang.String)
 
     public String getBucketName() {
         return ;
     }

    
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()
 
     public void setBucketName(String bucketName) {
         this. = 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(java.lang.String)
 
         setBucketName(bucketName);
         return this;
     }

    
Gets the new lifecycle configuration for the specified bucket.

Returns:
The new lifecycle configuration for the specified bucket.
See also:
withLifecycleConfiguration(com.amazonaws.services.s3.model.BucketLifecycleConfiguration)
        return ;
    }

    
Sets the new lifecycle configuration for the specified bucket.

Parameters:
lifecycleConfiguration The new lifecycle configuration for the specified bucket.
See also:
getLifecycleConfiguration()
withLifecycleConfiguration(com.amazonaws.services.s3.model.BucketLifecycleConfiguration)
    public void setLifecycleConfiguration(
            BucketLifecycleConfiguration lifecycleConfiguration) {
        this. = 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()
            BucketLifecycleConfiguration lifecycleConfiguration) {
        setLifecycleConfiguration(lifecycleConfiguration);
        return this;
    }
New to GrepCode? Check out our FAQ X