com.amazonaws.services.s3.model

## クラス BucketPolicy

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

-     public class BucketPolicy
      extends java.lang.Object

  Represents a Amazon S3 bucket policy. Bucket policies provide access control management at the bucket level for both the bucket resource and contained object resources. Only one policy may be specified per bucket.

  Buckets have no policy text until one is explicitly specified. Requesting the bucket policy for a newly created bucket will return a policy object with `null` policy text.

  See the Amazon S3 developer guide for more information on forming bucket polices.

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

    コンストラクタ
    コンストラクタと説明
    `BucketPolicy()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.lang.String` | `getPolicyText()` Gets the raw policy JSON text as returned by Amazon S3.
    `void` | `setPolicyText(java.lang.String policyText)` Sets the raw policy JSON text.

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

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

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

    - #### BucketPolicy

          public BucketPolicy()

  - ### メソッドの詳細

    - #### getPolicyText

          public java.lang.String getPolicyText()

      Gets the raw policy JSON text as returned by Amazon S3. If no policy has been applied to the specified bucket, the policy text will be null.
      戻り値:
        The raw policy JSON text as returned by Amazon S3. If no policy has been applied to the specified bucket, this method returns null policy text.
      関連項目:
        `BucketPolicy#setPolicyText()`

    - #### setPolicyText

          public void setPolicyText(java.lang.String policyText)

      Sets the raw policy JSON text. A bucket will have no policy text unless the policy text is explicitly provided through this method.
      パラメータ:
        `policyText` - The raw policy JSON text.
      関連項目:
        `getPolicyText()`