Interface S3BucketConfiguration.Builder

All Superinterfaces:
Buildable, CopyableBuilder<S3BucketConfiguration.Builder,S3BucketConfiguration>, SdkBuilder<S3BucketConfiguration.Builder,S3BucketConfiguration>, SdkPojo
Enclosing class:
S3BucketConfiguration

public static interface S3BucketConfiguration.Builder extends SdkPojo, CopyableBuilder<S3BucketConfiguration.Builder,S3BucketConfiguration>
  • Method Details

    • bucketPolicy

      S3BucketConfiguration.Builder bucketPolicy(String bucketPolicy)

      The proposed bucket policy for the Amazon S3 bucket.

      Parameters:
      bucketPolicy - The proposed bucket policy for the Amazon S3 bucket.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bucketAclGrants

      The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket. If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the bucket.

      Parameters:
      bucketAclGrants - The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket. If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the bucket.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bucketAclGrants

      S3BucketConfiguration.Builder bucketAclGrants(S3BucketAclGrantConfiguration... bucketAclGrants)

      The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket. If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the bucket.

      Parameters:
      bucketAclGrants - The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket. If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the bucket.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bucketAclGrants

      The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket. If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the bucket.

      This is a convenience method that creates an instance of the S3BucketAclGrantConfiguration.Builder avoiding the need to create one manually via S3BucketAclGrantConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to bucketAclGrants(List<S3BucketAclGrantConfiguration>).

      Parameters:
      bucketAclGrants - a consumer that will call methods on S3BucketAclGrantConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • bucketPublicAccessBlock

      S3BucketConfiguration.Builder bucketPublicAccessBlock(S3PublicAccessBlockConfiguration bucketPublicAccessBlock)

      The proposed block public access configuration for the Amazon S3 bucket.

      Parameters:
      bucketPublicAccessBlock - The proposed block public access configuration for the Amazon S3 bucket.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bucketPublicAccessBlock

      default S3BucketConfiguration.Builder bucketPublicAccessBlock(Consumer<S3PublicAccessBlockConfiguration.Builder> bucketPublicAccessBlock)

      The proposed block public access configuration for the Amazon S3 bucket.

      This is a convenience method that creates an instance of the S3PublicAccessBlockConfiguration.Builder avoiding the need to create one manually via S3PublicAccessBlockConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to bucketPublicAccessBlock(S3PublicAccessBlockConfiguration).

      Parameters:
      bucketPublicAccessBlock - a consumer that will call methods on S3PublicAccessBlockConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • accessPoints

      The configuration of Amazon S3 access points or multi-region access points for the bucket. You can propose up to 10 new access points per bucket.

      Parameters:
      accessPoints - The configuration of Amazon S3 access points or multi-region access points for the bucket. You can propose up to 10 new access points per bucket.
      Returns:
      Returns a reference to this object so that method calls can be chained together.