com.amazonaws.services.s3.model

## クラス GetBucketPolicyRequest

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

-     public class GetBucketPolicyRequest
      extends AmazonWebServiceRequest

  Gets the policy for the specified bucket. Only the owner of the bucket can retrieve the policy. If no policy has been set for the bucket, then an empty result object with a `null` policy text field will be returned.

  Bucket policies provide access control management at the bucket level for both the bucket resource and contained object resources. Only one policy can be specified per-bucket.

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

  関連項目:
    `AmazonS3.getBucketPolicy(GetBucketPolicyRequest)`

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

    コンストラクタ
    コンストラクタと説明
    `GetBucketPolicyRequest(java.lang.String bucketName)` Creates a new request object, ready to be executed to retrieve the bucket policy of an Amazon S3 bucket.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.lang.String` | `getBucketName()` Returns the name of the Amazon S3 bucket whose policy is being retrieved.
    `void` | `setBucketName(java.lang.String bucketName)` Sets the name of the Amazon S3 bucket whose policy is being retrieved.
    `GetBucketPolicyRequest` | `withBucketName(java.lang.String bucketName)` Sets the name of the Amazon S3 bucket whose policy is being retrieved, and returns the updated request 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`

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

    - #### GetBucketPolicyRequest

          public GetBucketPolicyRequest(java.lang.String bucketName)

      Creates a new request object, ready to be executed to retrieve the bucket policy of an Amazon S3 bucket.
      パラメータ:
        `bucketName` - The name of the Amazon S3 bucket whose policy is being retrieved.

  - ### メソッドの詳細

    - #### getBucketName

          public java.lang.String getBucketName()

      Returns the name of the Amazon S3 bucket whose policy is being retrieved.
      戻り値:
        The name of the Amazon S3 bucket whose policy is being retrieved.

    - #### setBucketName

          public void setBucketName(java.lang.String bucketName)

      Sets the name of the Amazon S3 bucket whose policy is being retrieved.
      パラメータ:
        `bucketName` - The name of the Amazon S3 bucket whose policy is being retrieved.

    - #### withBucketName

          public GetBucketPolicyRequest withBucketName(java.lang.String bucketName)

      Sets the name of the Amazon S3 bucket whose policy is being retrieved, and returns the updated request object so that additional method calls can be chained together.
      パラメータ:
        `bucketName` - The name of the Amazon S3 bucket whose policy is being retrieved.
      戻り値:
        The updated request object so that additional method calls can be chained together.