@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateBucketRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateBucketRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateBucketRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
BucketAccessLogConfig |
getAccessLogConfig()
An object that describes the access log configuration for the bucket.
|
AccessRules |
getAccessRules()
An object that sets the public accessibility of objects in the specified bucket.
|
String |
getBucketName()
The name of the bucket to update.
|
List<String> |
getReadonlyAccessAccounts()
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
|
String |
getVersioning()
Specifies whether to enable or suspend versioning of objects in the bucket.
|
int |
hashCode() |
void |
setAccessLogConfig(BucketAccessLogConfig accessLogConfig)
An object that describes the access log configuration for the bucket.
|
void |
setAccessRules(AccessRules accessRules)
An object that sets the public accessibility of objects in the specified bucket.
|
void |
setBucketName(String bucketName)
The name of the bucket to update.
|
void |
setReadonlyAccessAccounts(Collection<String> readonlyAccessAccounts)
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
|
void |
setVersioning(String versioning)
Specifies whether to enable or suspend versioning of objects in the bucket.
|
String |
toString()
Returns a string representation of this object.
|
UpdateBucketRequest |
withAccessLogConfig(BucketAccessLogConfig accessLogConfig)
An object that describes the access log configuration for the bucket.
|
UpdateBucketRequest |
withAccessRules(AccessRules accessRules)
An object that sets the public accessibility of objects in the specified bucket.
|
UpdateBucketRequest |
withBucketName(String bucketName)
The name of the bucket to update.
|
UpdateBucketRequest |
withReadonlyAccessAccounts(Collection<String> readonlyAccessAccounts)
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
|
UpdateBucketRequest |
withReadonlyAccessAccounts(String... readonlyAccessAccounts)
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
|
UpdateBucketRequest |
withVersioning(String versioning)
Specifies whether to enable or suspend versioning of objects in the bucket.
|
addHandlerContext, 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 void setBucketName(String bucketName)
The name of the bucket to update.
bucketName
- The name of the bucket to update.public String getBucketName()
The name of the bucket to update.
public UpdateBucketRequest withBucketName(String bucketName)
The name of the bucket to update.
bucketName
- The name of the bucket to update.public void setAccessRules(AccessRules accessRules)
An object that sets the public accessibility of objects in the specified bucket.
accessRules
- An object that sets the public accessibility of objects in the specified bucket.public AccessRules getAccessRules()
An object that sets the public accessibility of objects in the specified bucket.
public UpdateBucketRequest withAccessRules(AccessRules accessRules)
An object that sets the public accessibility of objects in the specified bucket.
accessRules
- An object that sets the public accessibility of objects in the specified bucket.public void setVersioning(String versioning)
Specifies whether to enable or suspend versioning of objects in the bucket.
The following options can be specified:
Enabled
- Enables versioning of objects in the specified bucket.
Suspended
- Suspends versioning of objects in the specified bucket. Existing object versions are
retained.
versioning
- Specifies whether to enable or suspend versioning of objects in the bucket.
The following options can be specified:
Enabled
- Enables versioning of objects in the specified bucket.
Suspended
- Suspends versioning of objects in the specified bucket. Existing object versions
are retained.
public String getVersioning()
Specifies whether to enable or suspend versioning of objects in the bucket.
The following options can be specified:
Enabled
- Enables versioning of objects in the specified bucket.
Suspended
- Suspends versioning of objects in the specified bucket. Existing object versions are
retained.
The following options can be specified:
Enabled
- Enables versioning of objects in the specified bucket.
Suspended
- Suspends versioning of objects in the specified bucket. Existing object versions
are retained.
public UpdateBucketRequest withVersioning(String versioning)
Specifies whether to enable or suspend versioning of objects in the bucket.
The following options can be specified:
Enabled
- Enables versioning of objects in the specified bucket.
Suspended
- Suspends versioning of objects in the specified bucket. Existing object versions are
retained.
versioning
- Specifies whether to enable or suspend versioning of objects in the bucket.
The following options can be specified:
Enabled
- Enables versioning of objects in the specified bucket.
Suspended
- Suspends versioning of objects in the specified bucket. Existing object versions
are retained.
public List<String> getReadonlyAccessAccounts()
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
public void setReadonlyAccessAccounts(Collection<String> readonlyAccessAccounts)
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
readonlyAccessAccounts
- An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
public UpdateBucketRequest withReadonlyAccessAccounts(String... readonlyAccessAccounts)
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
NOTE: This method appends the values to the existing list (if any). Use
setReadonlyAccessAccounts(java.util.Collection)
or
withReadonlyAccessAccounts(java.util.Collection)
if you want to override the existing values.
readonlyAccessAccounts
- An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
public UpdateBucketRequest withReadonlyAccessAccounts(Collection<String> readonlyAccessAccounts)
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
readonlyAccessAccounts
- An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
public void setAccessLogConfig(BucketAccessLogConfig accessLogConfig)
An object that describes the access log configuration for the bucket.
accessLogConfig
- An object that describes the access log configuration for the bucket.public BucketAccessLogConfig getAccessLogConfig()
An object that describes the access log configuration for the bucket.
public UpdateBucketRequest withAccessLogConfig(BucketAccessLogConfig accessLogConfig)
An object that describes the access log configuration for the bucket.
accessLogConfig
- An object that describes the access log configuration for the bucket.public String toString()
toString
in class Object
Object.toString()
public UpdateBucketRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()