Package com.amazonaws.services.s3.model
Class SetBucketTaggingConfigurationRequest
java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.s3.model.SetBucketTaggingConfigurationRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class SetBucketTaggingConfigurationRequest
extends AmazonWebServiceRequest
implements Serializable
Contains options for setting the tagging configuration for a bucket.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionSetBucketTaggingConfigurationRequest
(String bucketName, BucketTaggingConfiguration taggingConfiguration) Constructs a newSetBucketTaggingConfigurationRequest
to set the bucket tagging configuration of the specified bucket. -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the bucket whose tagging configuration is being set.Gets the new tagging configuration for the specified bucket.void
setBucketName
(String bucketName) Sets the name of the bucket whose tagging configuration is being set.void
setTaggingConfiguration
(BucketTaggingConfiguration taggingConfiguration) Sets the new tagging configuration for the specified bucket.withBucketName
(String 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.withTaggingConfiguration
(BucketTaggingConfiguration taggingConfiguration) Sets the new tagging configuration for the specified bucket and returns this object, enabling additional method calls to be chained together.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
clone, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
SetBucketTaggingConfigurationRequest
public SetBucketTaggingConfigurationRequest(String bucketName, BucketTaggingConfiguration taggingConfiguration) Constructs a newSetBucketTaggingConfigurationRequest
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.
-
-
Method Details
-
getBucketName
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
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:
-
withBucketName
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:
-
getTaggingConfiguration
Gets the new tagging configuration for the specified bucket.- Returns:
- The new tagging configuration for the specified bucket.
- See Also:
-
setTaggingConfiguration
Sets the new tagging configuration for the specified bucket.- Parameters:
taggingConfiguration
- The new tagging configuration for the specified bucket.- See Also:
-
withTaggingConfiguration
public SetBucketTaggingConfigurationRequest withTaggingConfiguration(BucketTaggingConfiguration 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:
-