Class TableBucketPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.s3tables.alpha.TableBucketPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TableBucketPolicyProps>
- Enclosing interface:
TableBucketPolicyProps
@Stability(Experimental)
public static final class TableBucketPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<TableBucketPolicyProps>
A builder for
TableBucketPolicyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.removalPolicy(RemovalPolicy removalPolicy) Sets the value ofTableBucketPolicyProps.getRemovalPolicy()resourcePolicy(PolicyDocument resourcePolicy) Sets the value ofTableBucketPolicyProps.getResourcePolicy()tableBucket(ITableBucket tableBucket) Sets the value ofTableBucketPolicyProps.getTableBucket()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tableBucket
@Stability(Experimental) public TableBucketPolicyProps.Builder tableBucket(ITableBucket tableBucket) Sets the value ofTableBucketPolicyProps.getTableBucket()- Parameters:
tableBucket- The associated table bucket. This parameter is required.- Returns:
this
-
removalPolicy
@Stability(Experimental) public TableBucketPolicyProps.Builder removalPolicy(RemovalPolicy removalPolicy) Sets the value ofTableBucketPolicyProps.getRemovalPolicy()- Parameters:
removalPolicy- Policy to apply when the policy is removed from this stack.- Returns:
this
-
resourcePolicy
@Stability(Experimental) public TableBucketPolicyProps.Builder resourcePolicy(PolicyDocument resourcePolicy) Sets the value ofTableBucketPolicyProps.getResourcePolicy()- Parameters:
resourcePolicy- The policy document for the bucket's resource policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TableBucketPolicyProps>- Returns:
- a new instance of
TableBucketPolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-