com.amazonaws.services.s3.model

## クラス CreateBucketRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.s3.model.CreateBucketRequest

-     public class CreateBucketRequest
      extends AmazonWebServiceRequest

  Provides options for creating an Amazon S3 bucket.
  関連項目:
    `DeleteBucketRequest`, `CopyObjectRequest`

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `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.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `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.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### CreateBucketRequest

          public CreateBucketRequest(java.lang.String bucketName)

      Constructs a new `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)`

    - #### CreateBucketRequest

          public CreateBucketRequest(java.lang.String bucketName,
                             Region region)

      Constructs a new `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)`

    - #### CreateBucketRequest

          public 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.
      パラメータ:
        `bucketName` - The name of the Amazon S3 bucket to create.
        `region` - The region in which to create this bucket.
      関連項目:
        `CreateBucketRequest(String)`, `CreateBucketRequest(String, Region)`

  - ### メソッドの詳細

    - #### setBucketName

          public void setBucketName(java.lang.String bucketName)

      Sets the name of the Amazon S3 bucket to create.
      パラメータ:
        `bucketName` - The name of the Amazon S3 bucket to create.
      関連項目:
        `getBucketName()`

    - #### getBucketName

          public java.lang.String getBucketName()

      Gets the name of the Amazon S3 bucket to create.
      戻り値:
        The name of the Amazon S3 bucket to create.
      関連項目:
        `setBucketName(String)`

    - #### setRegion

          public void setRegion(java.lang.String region)

      Sets the name of the Amazon S3 region in which this bucket will be created.
      パラメータ:
        `region` - The name of the Amazon S3 region in which this bucket will be created.
      関連項目:
        `getRegion()`

    - #### getRegion

          public java.lang.String getRegion()

      Gets the name of the Amazon S3 region in which this bucket will be created.
      戻り値:
        The name of the Amazon S3 region in which this bucket will be created.
      関連項目:
        `setRegion(String)`

    - #### getCannedAcl

          public CannedAccessControlList getCannedAcl()

      Returns the optional Canned ACL to set for the new bucket.
      戻り値:
        The optional Canned ACL to set for the new bucket.

    - #### setCannedAcl

          public void setCannedAcl(CannedAccessControlList cannedAcl)

      Sets the optional Canned ACL to set for the new bucket.
      パラメータ:
        `cannedAcl` - The optional Canned ACL to set for the new bucket.

    - #### withCannedAcl

          public 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.
      パラメータ:
        `cannedAcl` - The optional Canned ACL to set for the new bucket.
      戻り値:
        This updated object, so that additional method calls can be chained together.

    - #### getAccessControlList

          public AccessControlList getAccessControlList()

      Returns the optional access control list for the new bucket. If specified, cannedAcl will be ignored.

    - #### setAccessControlList

          public void setAccessControlList(AccessControlList accessControlList)

      Sets the optional access control list for the new bucket. If specified, cannedAcl will be ignored.
      パラメータ:
        `accessControlList` - The access control list for the new bucket.

    - #### withAccessControlList

          public CreateBucketRequest withAccessControlList(AccessControlList accessControlList)

      Sets the optional access control list for the new bucket. If specified, cannedAcl will be ignored. Returns this `CreateBucketRequest`, enabling additional method calls to be chained together.
      パラメータ:
        `accessControlList` - The access control list for the new bucket.