Class BucketOptions.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.BucketOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BucketOptions>
- Enclosing interface:
BucketOptions
@Stability(Stable)
public static final class BucketOptions.Builder
extends Object
implements software.amazon.jsii.Builder<BucketOptions>
A builder for
BucketOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.objectVersion
(String objectVersion) Sets the value ofBucketOptions.getObjectVersion()
sourceKmsKey
(IKey sourceKmsKey) Sets the value ofinvalid @link
BucketOptions#getSourceKmsKey
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
objectVersion
Sets the value ofBucketOptions.getObjectVersion()
- Parameters:
objectVersion
- Optional S3 object version.- Returns:
this
-
sourceKmsKey
Sets the value ofinvalid @link
BucketOptions#getSourceKmsKey
- Parameters:
sourceKmsKey
- The ARN of the KMS key used to encrypt the handler code.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<BucketOptions>
- Returns:
- a new instance of
BucketOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-