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 tagging configuration for a bucket.

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

    
The new tagging configuration for the specified bucket.
 
     private BucketTaggingConfiguration taggingConfiguration;
    
    
Constructs a new SetBucketTaggingConfigurationRequest to set the bucket tagging configuration of the specified bucket.

Parameters:
bucketName The name of the bucket for which to set the tagging configuration.
taggingConfiguration The new tagging configuration for this bucket, which completely replaces any existing configuration.
 
             String bucketNameBucketTaggingConfiguration taggingConfiguration) {
         this. = bucketName;
         this. = taggingConfiguration;
     }

    
Gets the name of the bucket whose tagging configuration is being set.

Returns:
The name of the bucket whose tagging configuration is being set.
See also:
setBucketName(java.lang.String)
 
     public String getBucketName() {
         return ;
     }

    
Sets the name of the bucket whose tagging configuration is being set.

Parameters:
bucketName The name of the bucket whose tagging configuration is being set.
See also:
getBucketName()
 
     public void setBucketName(String bucketName) {
         this. = bucketName;
     }

    
Sets the name of the bucket whose tagging 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 tagging configuration is being set.
Returns:
This SetBucketTaggingConfigurationRequest object so that additional method calls may be chained together.
See also:
setBucketName(java.lang.String)
 
         setBucketName(bucketName);
         return this;
     }

    
Gets the new tagging configuration for the specified bucket.

Returns:
The new tagging configuration for the specified bucket.
See also:
withTaggingConfiguration(com.amazonaws.services.s3.model.BucketTaggingConfiguration)
        return ;
    }

    
Sets the new tagging configuration for the specified bucket.

Parameters:
taggingConfiguration The new tagging configuration for the specified bucket.
See also:
getTaggingConfiguration()
withTaggingConfiguration(com.amazonaws.services.s3.model.BucketTaggingConfiguration)
    public void setTaggingConfiguration(
            BucketTaggingConfiguration taggingConfiguration) {
        this. = taggingConfiguration;
    }

    
Sets the new tagging configuration for the specified bucket and returns this object, enabling additional method calls to be chained together.

Parameters:
taggingConfiguration The new tagging configuration for the specified bucket.
Returns:
This SetBucketTaggingConfigurationRequest object, enabling that additional method calls may be chained together.
See also:
getTaggingConfiguration()
            BucketTaggingConfiguration taggingConfiguration) {
        setTaggingConfiguration(taggingConfiguration);
        return this;
    }
New to GrepCode? Check out our FAQ X