Class PutBucketOwnershipControlsRequest

    • Method Detail

      • bucket

        public final String bucket()

        The name of the Amazon S3 bucket whose OwnershipControls you want to set.

        Returns:
        The name of the Amazon S3 bucket whose OwnershipControls you want to set.
      • contentMD5

        public final String contentMD5()

        The MD5 hash of the OwnershipControls request body.

        For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

        Returns:
        The MD5 hash of the OwnershipControls request body.

        For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

      • expectedBucketOwner

        public final String expectedBucketOwner()

        The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).

        Returns:
        The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).
      • ownershipControls

        public final OwnershipControls ownershipControls()

        The OwnershipControls (BucketOwnerEnforced, BucketOwnerPreferred, or ObjectWriter) that you want to apply to this Amazon S3 bucket.

        Returns:
        The OwnershipControls (BucketOwnerEnforced, BucketOwnerPreferred, or ObjectWriter) that you want to apply to this Amazon S3 bucket.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object