public class SetBucketTaggingConfigurationRequest extends AmazonWebServiceRequest implements Serializable, ExpectedBucketOwnerRequest
NOOP
Constructor and Description |
---|
SetBucketTaggingConfigurationRequest(String bucketName,
BucketTaggingConfiguration taggingConfiguration)
Constructs a new
SetBucketTaggingConfigurationRequest
to set the bucket tagging configuration of
the specified bucket. |
Modifier and Type | Method and Description |
---|---|
String |
getBucketName()
Gets the name of the bucket whose tagging configuration is being
set.
|
String |
getExpectedBucketOwner()
Returns he account id of the expected bucket owner.
|
BucketTaggingConfiguration |
getTaggingConfiguration()
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 |
setExpectedBucketOwner(String expectedBucketOwner)
Set the account id of the expected bucket owner.
|
void |
setTaggingConfiguration(BucketTaggingConfiguration taggingConfiguration)
Sets the new tagging configuration for the specified bucket.
|
SetBucketTaggingConfigurationRequest |
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.
|
SetBucketTaggingConfigurationRequest |
withExpectedBucketOwner(String expectedBucketOwner)
Set the account id of the expected bucket owner.
|
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.
|
addHandlerContext, clone, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public SetBucketTaggingConfigurationRequest(String bucketName, BucketTaggingConfiguration taggingConfiguration)
SetBucketTaggingConfigurationRequest
to set the bucket tagging configuration of
the specified bucket.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.public String getExpectedBucketOwner()
ExpectedBucketOwnerRequest
403 (Access Denied)
error.getExpectedBucketOwner
in interface ExpectedBucketOwnerRequest
public SetBucketTaggingConfigurationRequest withExpectedBucketOwner(String expectedBucketOwner)
ExpectedBucketOwnerRequest
403 (Access Denied)
error.withExpectedBucketOwner
in interface ExpectedBucketOwnerRequest
public void setExpectedBucketOwner(String expectedBucketOwner)
ExpectedBucketOwnerRequest
403 (Access Denied)
error.setExpectedBucketOwner
in interface ExpectedBucketOwnerRequest
public String getBucketName()
setBucketName(String)
public void setBucketName(String bucketName)
bucketName
- The name of the bucket whose tagging configuration is being
set.getBucketName()
public SetBucketTaggingConfigurationRequest withBucketName(String bucketName)
bucketName
- The name of the bucket whose tagging configuration is being
set.SetBucketTaggingConfigurationRequest
object so that
additional method calls may be chained together.setBucketName(String)
public BucketTaggingConfiguration getTaggingConfiguration()
withTaggingConfiguration(BucketTaggingConfiguration)
public void setTaggingConfiguration(BucketTaggingConfiguration taggingConfiguration)
taggingConfiguration
- The new tagging configuration for the specified bucket.getTaggingConfiguration()
,
withTaggingConfiguration(BucketTaggingConfiguration)
public SetBucketTaggingConfigurationRequest withTaggingConfiguration(BucketTaggingConfiguration taggingConfiguration)
taggingConfiguration
- The new tagging configuration for the specified bucket.SetBucketTaggingConfigurationRequest
object, enabling that
additional method calls may be chained together.getTaggingConfiguration()