public class SetBucketVersioningConfigurationRequest extends CosServiceRequest implements Serializable
| Constructor and Description |
|---|
SetBucketVersioningConfigurationRequest(String bucketName,
BucketVersioningConfiguration configuration)
Constructs a new
SetBucketVersioningConfigurationRequest
to set the bucket versioning configuration of
the specified bucket. |
| Modifier and Type | Method and Description |
|---|---|
String |
getBucketName()
Gets the name of the bucket whose versioning configuration is being
set.
|
BucketVersioningConfiguration |
getVersioningConfiguration()
Gets the new versioning configuration for the specified bucket.
|
void |
setBucketName(String bucketName)
Sets the name of the bucket whose versioning configuration is being set.
|
void |
setVersioningConfiguration(BucketVersioningConfiguration versioningConfiguration)
Sets the new versioning configuration for the specified bucket.
|
SetBucketVersioningConfigurationRequest |
withBucketName(String bucketName)
Sets the name of the bucket whose versioning configuration is being set,
and returns this object so that additional method calls may be chained
together.
|
SetBucketVersioningConfigurationRequest |
withVersioningConfiguration(BucketVersioningConfiguration versioningConfiguration)
Sets the new versioning configuration for the specified bucket and
returns this object, enabling additional method calls to be chained
together.
|
clone, copyBaseTo, getCiSpecialEndParameter, getCloneRoot, getCloneSource, getCosCredentials, getCustomQueryParameters, getCustomRequestHeaders, getFixedEndpointAddr, getGeneralProgressListener, getReadLimit, getRequestClientOptions, putCustomQueryParameter, putCustomRequestHeader, setCiSpecialEndParameter, setCosCredentials, setFixedEndpointAddr, setGeneralProgressListener, withGeneralProgressListenerpublic SetBucketVersioningConfigurationRequest(String bucketName, BucketVersioningConfiguration configuration)
SetBucketVersioningConfigurationRequest
to set the bucket versioning configuration of
the specified bucket.bucketName - The name of the bucket whose versioning configuration is being
set.configuration - The new versioning configuration for the specified bucket.SetBucketVersioningConfigurationRequest#SetBucketVersioningConfigurationRequest(String, BucketVersioningConfiguration, MultiFactorAuthentication)public String getBucketName()
setBucketName(String)public void setBucketName(String bucketName)
bucketName - The name of the bucket whose versioning configuration is being
set.getBucketName()public SetBucketVersioningConfigurationRequest withBucketName(String bucketName)
bucketName - The name of the bucket whose versioning configuration is being
set.SetBucketVersioningConfigurationRequest object so that
additional method calls may be chained together.setBucketName(String)public BucketVersioningConfiguration getVersioningConfiguration()
setVersioningConfiguration(BucketVersioningConfiguration),
withVersioningConfiguration(BucketVersioningConfiguration)public void setVersioningConfiguration(BucketVersioningConfiguration versioningConfiguration)
versioningConfiguration - The new versioning configuration for the specified bucket.getVersioningConfiguration(),
withVersioningConfiguration(BucketVersioningConfiguration)public SetBucketVersioningConfigurationRequest withVersioningConfiguration(BucketVersioningConfiguration versioningConfiguration)
versioningConfiguration - The new versioning configuration for the specified bucket.SetBucketVersioningConfigurationRequest object, enabling that
additional method calls may be chained together.getVersioningConfiguration(),
getVersioningConfiguration()Copyright © 2023. All rights reserved.