@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateBucketRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateBucketRequest() |
Modifier and Type | Method and Description |
---|---|
CreateBucketRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getBucketName()
The name for the bucket.
|
String |
getBundleId()
The ID of the bundle to use for the bucket.
|
Boolean |
getEnableObjectVersioning()
A Boolean value that indicates whether to enable versioning of objects in the bucket.
|
List<Tag> |
getTags()
The tag keys and optional values to add to the bucket during creation.
|
int |
hashCode() |
Boolean |
isEnableObjectVersioning()
A Boolean value that indicates whether to enable versioning of objects in the bucket.
|
void |
setBucketName(String bucketName)
The name for the bucket.
|
void |
setBundleId(String bundleId)
The ID of the bundle to use for the bucket.
|
void |
setEnableObjectVersioning(Boolean enableObjectVersioning)
A Boolean value that indicates whether to enable versioning of objects in the bucket.
|
void |
setTags(Collection<Tag> tags)
The tag keys and optional values to add to the bucket during creation.
|
String |
toString()
Returns a string representation of this object.
|
CreateBucketRequest |
withBucketName(String bucketName)
The name for the bucket.
|
CreateBucketRequest |
withBundleId(String bundleId)
The ID of the bundle to use for the bucket.
|
CreateBucketRequest |
withEnableObjectVersioning(Boolean enableObjectVersioning)
A Boolean value that indicates whether to enable versioning of objects in the bucket.
|
CreateBucketRequest |
withTags(Collection<Tag> tags)
The tag keys and optional values to add to the bucket during creation.
|
CreateBucketRequest |
withTags(Tag... tags)
The tag keys and optional values to add to the bucket during creation.
|
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 for the bucket.
For more information about bucket names, see Bucket naming rules in Amazon Lightsail in the Amazon Lightsail Developer Guide.
bucketName
- The name for the bucket.
For more information about bucket names, see Bucket naming rules in Amazon Lightsail in the Amazon Lightsail Developer Guide.
public String getBucketName()
The name for the bucket.
For more information about bucket names, see Bucket naming rules in Amazon Lightsail in the Amazon Lightsail Developer Guide.
For more information about bucket names, see Bucket naming rules in Amazon Lightsail in the Amazon Lightsail Developer Guide.
public CreateBucketRequest withBucketName(String bucketName)
The name for the bucket.
For more information about bucket names, see Bucket naming rules in Amazon Lightsail in the Amazon Lightsail Developer Guide.
bucketName
- The name for the bucket.
For more information about bucket names, see Bucket naming rules in Amazon Lightsail in the Amazon Lightsail Developer Guide.
public void setBundleId(String bundleId)
The ID of the bundle to use for the bucket.
A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
Use the GetBucketBundles action to get a list of bundle IDs that you can specify.
Use the UpdateBucketBundle action to change the bundle after the bucket is created.
bundleId
- The ID of the bundle to use for the bucket.
A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
Use the GetBucketBundles action to get a list of bundle IDs that you can specify.
Use the UpdateBucketBundle action to change the bundle after the bucket is created.
public String getBundleId()
The ID of the bundle to use for the bucket.
A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
Use the GetBucketBundles action to get a list of bundle IDs that you can specify.
Use the UpdateBucketBundle action to change the bundle after the bucket is created.
A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
Use the GetBucketBundles action to get a list of bundle IDs that you can specify.
Use the UpdateBucketBundle action to change the bundle after the bucket is created.
public CreateBucketRequest withBundleId(String bundleId)
The ID of the bundle to use for the bucket.
A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
Use the GetBucketBundles action to get a list of bundle IDs that you can specify.
Use the UpdateBucketBundle action to change the bundle after the bucket is created.
bundleId
- The ID of the bundle to use for the bucket.
A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
Use the GetBucketBundles action to get a list of bundle IDs that you can specify.
Use the UpdateBucketBundle action to change the bundle after the bucket is created.
public List<Tag> getTags()
The tag keys and optional values to add to the bucket during creation.
Use the TagResource action to tag the bucket after it's created.
Use the TagResource action to tag the bucket after it's created.
public void setTags(Collection<Tag> tags)
The tag keys and optional values to add to the bucket during creation.
Use the TagResource action to tag the bucket after it's created.
tags
- The tag keys and optional values to add to the bucket during creation.
Use the TagResource action to tag the bucket after it's created.
public CreateBucketRequest withTags(Tag... tags)
The tag keys and optional values to add to the bucket during creation.
Use the TagResource action to tag the bucket after it's created.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tag keys and optional values to add to the bucket during creation.
Use the TagResource action to tag the bucket after it's created.
public CreateBucketRequest withTags(Collection<Tag> tags)
The tag keys and optional values to add to the bucket during creation.
Use the TagResource action to tag the bucket after it's created.
tags
- The tag keys and optional values to add to the bucket during creation.
Use the TagResource action to tag the bucket after it's created.
public void setEnableObjectVersioning(Boolean enableObjectVersioning)
A Boolean value that indicates whether to enable versioning of objects in the bucket.
For more information about versioning, see Enabling and suspending object versioning in a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.
enableObjectVersioning
- A Boolean value that indicates whether to enable versioning of objects in the bucket.
For more information about versioning, see Enabling and suspending object versioning in a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.
public Boolean getEnableObjectVersioning()
A Boolean value that indicates whether to enable versioning of objects in the bucket.
For more information about versioning, see Enabling and suspending object versioning in a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.
For more information about versioning, see Enabling and suspending object versioning in a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.
public CreateBucketRequest withEnableObjectVersioning(Boolean enableObjectVersioning)
A Boolean value that indicates whether to enable versioning of objects in the bucket.
For more information about versioning, see Enabling and suspending object versioning in a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.
enableObjectVersioning
- A Boolean value that indicates whether to enable versioning of objects in the bucket.
For more information about versioning, see Enabling and suspending object versioning in a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.
public Boolean isEnableObjectVersioning()
A Boolean value that indicates whether to enable versioning of objects in the bucket.
For more information about versioning, see Enabling and suspending object versioning in a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.
For more information about versioning, see Enabling and suspending object versioning in a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.
public String toString()
toString
in class Object
Object.toString()
public CreateBucketRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()