Class VersionAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.VersionAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VersionAttributes>
- Enclosing interface:
- VersionAttributes
@Stability(Stable)
public static final class VersionAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<VersionAttributes>
A builder for
VersionAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofVersionAttributes.getLambda()
Sets the value ofVersionAttributes.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lambda
Sets the value ofVersionAttributes.getLambda()
- Parameters:
lambda
- The lambda function. This parameter is required.- Returns:
this
-
version
Sets the value ofVersionAttributes.getVersion()
- Parameters:
version
- The version. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VersionAttributes>
- Returns:
- a new instance of
VersionAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-