Class CfnLayerVersion.ContentProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnLayerVersion.ContentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLayerVersion.ContentProperty>
- Enclosing interface:
CfnLayerVersion.ContentProperty
@Stability(Stable)
public static final class CfnLayerVersion.ContentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLayerVersion.ContentProperty>
A builder for
CfnLayerVersion.ContentProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnLayerVersion.ContentProperty.getS3Bucket()
Sets the value ofCfnLayerVersion.ContentProperty.getS3Key()
s3ObjectVersion
(String s3ObjectVersion) Sets the value ofCfnLayerVersion.ContentProperty.getS3ObjectVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
s3Bucket
Sets the value ofCfnLayerVersion.ContentProperty.getS3Bucket()
- Parameters:
s3Bucket
- The Amazon S3 bucket of the layer archive. This parameter is required.- Returns:
this
-
s3Key
Sets the value ofCfnLayerVersion.ContentProperty.getS3Key()
- Parameters:
s3Key
- The Amazon S3 key of the layer archive. This parameter is required.- Returns:
this
-
s3ObjectVersion
@Stability(Stable) public CfnLayerVersion.ContentProperty.Builder s3ObjectVersion(String s3ObjectVersion) Sets the value ofCfnLayerVersion.ContentProperty.getS3ObjectVersion()
- Parameters:
s3ObjectVersion
- For versioned objects, the version of the layer archive object to use.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLayerVersion.ContentProperty>
- Returns:
- a new instance of
CfnLayerVersion.ContentProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-