com.amazonaws.services.s3.model

## クラス Bucket

- java.lang.Object
- - com.amazonaws.services.s3.model.Bucket

-     public class Bucket
      extends java.lang.Object

  Represents an Amazon S3 bucket.

  Every object stored in Amazon S3 is contained within a bucket. Buckets partition the namespace of objects stored in Amazon S3 at the top level. Within a bucket, any name can be used for objects. However, bucket names must be unique across all of Amazon S3.

  Bucket ownership is similar to the ownership of Internet domain names. Within Amazon S3, only a single user owns each bucket. Once a uniquely named bucket is created in Amazon S3, organize and name the objects within the bucket in any way. Ownership of the bucket is retained as long as the owner has an Amazon S3 account.

  To conform with DNS requirements, the following constraints apply:

  - Bucket names should not contain underscores
  - Bucket names should be between 3 and 63 characters long
  - Bucket names should not end with a dash
  - Bucket names cannot contain adjacent periods
  - Bucket names cannot contain dashes next to periods (e.g., "my-.bucket.com" and "my.-bucket" are invalid)
  - Bucket names cannot contain uppercase characters

  There are no limits to the number of objects that can be stored in a bucket. Performance does not vary based on the number of buckets used. Store all objects within a single bucket or organize them across several buckets.

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

    コンストラクタ
    コンストラクタと説明
    `Bucket()` Constructs a bucket without any name specified.
    `Bucket(java.lang.String name)` Creates a bucket with a name.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.util.Date` | `getCreationDate()` Gets the bucket's creation date.
    `java.lang.String` | `getName()` Gets the name of the bucket.
    `Owner` | `getOwner()` Gets the bucket's owner.
    `void` | `setCreationDate(java.util.Date creationDate)` For internal use only.
    `void` | `setName(java.lang.String name)` Sets the name of the bucket.
    `void` | `setOwner(Owner owner)` For internal use only.
    `java.lang.String` | `toString()`

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

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

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

    - #### Bucket

          public Bucket()

      Constructs a bucket without any name specified.
      関連項目:
        `Bucket(String)`

    - #### Bucket

          public Bucket(java.lang.String name)

      Creates a bucket with a name. All buckets in Amazon S3 share a single namespace; ensure the bucket is given a unique name.
      パラメータ:
        `name` - The name for the bucket.
      関連項目:
        `Bucket()`

  - ### メソッドの詳細

    - #### toString

          public java.lang.String toString()

      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      関連項目:
        `Object.toString()`

    - #### getOwner

          public Owner getOwner()

      Gets the bucket's owner. Returns `null` if the bucket's owner is unknown.
      戻り値:
        The bucket's owner, or `null` if it is unknown.
      関連項目:
        `setOwner(Owner)`

    - #### setOwner

          public void setOwner(Owner owner)

      For internal use only. Sets the bucket's owner in Amazon S3. This should only be used internally by the AWS Java client methods that retrieve information directly from Amazon S3.
      パラメータ:
        `owner` - The bucket's owner.
      関連項目:
        `Bucket#getOwner()`

    - #### getCreationDate

          public java.util.Date getCreationDate()

      Gets the bucket's creation date. Returns `null` if the creation date is not known.
      戻り値:
        The bucket's creation date, or `null` if not known.

    - #### setCreationDate

          public void setCreationDate(java.util.Date creationDate)

      For internal use only. Sets the bucket's creation date in S3. This should only be used internally by AWS Java client methods that retrieve information directly from Amazon S3.
      パラメータ:
        `creationDate` - The bucket's creation date.

    - #### getName

          public java.lang.String getName()

      Gets the name of the bucket.
      戻り値:
        The name of this bucket.
      関連項目:
        `setName(String)`

    - #### setName

          public void setName(java.lang.String name)

      Sets the name of the bucket. All buckets in Amazon S3 share a single namespace; ensure the bucket is given a unique name.
      パラメータ:
        `name` - The name for the bucket.