Class CfnWebFunctionRevision.S3ObjectProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnWebFunctionRevision.S3ObjectProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebFunctionRevision.S3ObjectProperty>
- Enclosing interface:
CfnWebFunctionRevision.S3ObjectProperty
@Stability(Stable)
public static final class CfnWebFunctionRevision.S3ObjectProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebFunctionRevision.S3ObjectProperty>
A builder for
CfnWebFunctionRevision.S3ObjectProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnWebFunctionRevision.S3ObjectProperty.getBucket()build()Builds the configured instance.Sets the value ofCfnWebFunctionRevision.S3ObjectProperty.getKey()Sets the value ofCfnWebFunctionRevision.S3ObjectProperty.getVersionId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofCfnWebFunctionRevision.S3ObjectProperty.getBucket()- Parameters:
bucket- The S3 bucket name. This parameter is required.- Returns:
this
-
key
Sets the value ofCfnWebFunctionRevision.S3ObjectProperty.getKey()- Parameters:
key- The S3 object key. This parameter is required.- Returns:
this
-
versionId
@Stability(Stable) public CfnWebFunctionRevision.S3ObjectProperty.Builder versionId(String versionId) Sets the value ofCfnWebFunctionRevision.S3ObjectProperty.getVersionId()- Parameters:
versionId- The S3 object version ID.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWebFunctionRevision.S3ObjectProperty>- Returns:
- a new instance of
CfnWebFunctionRevision.S3ObjectProperty - Throws:
NullPointerException- if any required attribute was not provided
-