public class CreateBucketRequest extends AmazonWebServiceRequest implements S3AccelerateUnsupported
DeleteBucketRequest
,
CopyObjectRequest
Constructor and Description |
---|
CreateBucketRequest(java.lang.String bucketName)
Constructs a new
CreateBucketRequest , ready to be executed to
create the specified bucket in the US_Standard region. |
CreateBucketRequest(java.lang.String bucketName,
Region region)
Constructs a new
CreateBucketRequest , ready to be executed to
create the specified bucket in the specified region. |
CreateBucketRequest(java.lang.String bucketName,
java.lang.String region)
Constructs a new
CreateBucketRequest , ready to be executed and
create the specified bucket in the specified region. |
Modifier and Type | Method and Description |
---|---|
AccessControlList |
getAccessControlList()
Returns the optional access control list for the new bucket.
|
java.lang.String |
getBucketName()
Gets the name of the Amazon S3 bucket to create.
|
CannedAccessControlList |
getCannedAcl()
Returns the optional Canned ACL to set for the new bucket.
|
java.lang.String |
getRegion()
Gets the name of the Amazon S3 region in which this bucket will be
created.
|
void |
setAccessControlList(AccessControlList accessControlList)
Sets the optional access control list for the new bucket.
|
void |
setBucketName(java.lang.String bucketName)
Sets the name of the Amazon S3 bucket to create.
|
void |
setCannedAcl(CannedAccessControlList cannedAcl)
Sets the optional Canned ACL to set for the new bucket.
|
void |
setRegion(java.lang.String region)
Sets the name of the Amazon S3 region in which this bucket will be
created.
|
CreateBucketRequest |
withAccessControlList(AccessControlList accessControlList)
Sets the optional access control list for the new bucket.
|
CreateBucketRequest |
withCannedAcl(CannedAccessControlList cannedAcl)
Sets the optional Canned ACL to set for the new bucket, and returns this
updated object so that additional method calls can be chained together.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public CreateBucketRequest(java.lang.String bucketName)
CreateBucketRequest
, ready to be executed to
create the specified bucket in the US_Standard
region.bucketName
- The name of the Amazon S3 bucket to create.CreateBucketRequest(String, Region)
,
CreateBucketRequest(String, String)
public CreateBucketRequest(java.lang.String bucketName, Region region)
CreateBucketRequest
, ready to be executed to
create the specified bucket in the specified region.bucketName
- The name of the Amazon S3 bucket to create.region
- The region in which to create this bucket.CreateBucketRequest(String)
,
CreateBucketRequest(String, String)
public CreateBucketRequest(java.lang.String bucketName, java.lang.String region)
CreateBucketRequest
, ready to be executed and
create the specified bucket in the specified region.bucketName
- The name of the Amazon S3 bucket to create.region
- The region in which to create this bucket.CreateBucketRequest(String)
,
CreateBucketRequest(String, Region)
public void setBucketName(java.lang.String bucketName)
bucketName
- The name of the Amazon S3 bucket to create.getBucketName()
public java.lang.String getBucketName()
setBucketName(String)
public void setRegion(java.lang.String region)
region
- The name of the Amazon S3 region in which this bucket will
be created.getRegion()
public java.lang.String getRegion()
setRegion(String)
public CannedAccessControlList getCannedAcl()
public void setCannedAcl(CannedAccessControlList cannedAcl)
cannedAcl
- The optional Canned ACL to set for the new bucket.public CreateBucketRequest withCannedAcl(CannedAccessControlList cannedAcl)
cannedAcl
- The optional Canned ACL to set for the new bucket.public AccessControlList getAccessControlList()
public void setAccessControlList(AccessControlList accessControlList)
accessControlList
- The access control list for the new bucket.public CreateBucketRequest withAccessControlList(AccessControlList accessControlList)
CreateBucketRequest
,
enabling additional method calls to be chained together.accessControlList
- The access control list for the new bucket.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.