public static final class BucketPolicyProps.Builder
extends java.lang.Object
BucketPolicyProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BucketPolicyProps.Builder |
bucket(IBucket bucket)
Sets the value of
BucketPolicyProps.getBucket() |
BucketPolicyProps |
build()
Builds the configured instance.
|
BucketPolicyProps.Builder |
removalPolicy(RemovalPolicy removalPolicy)
Sets the value of
BucketPolicyProps.getRemovalPolicy() |
public BucketPolicyProps.Builder bucket(IBucket bucket)
BucketPolicyProps.getBucket()
bucket
- The Amazon S3 bucket that the policy applies to. This parameter is required.this
public BucketPolicyProps.Builder removalPolicy(RemovalPolicy removalPolicy)
BucketPolicyProps.getRemovalPolicy()
removalPolicy
- Policy to apply when the policy is removed from this stack.this
public BucketPolicyProps build()
BucketPolicyProps
java.lang.NullPointerException
- if any required attribute was not provided