Class VersionWeight.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.VersionWeight.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VersionWeight>
- Enclosing interface:
- VersionWeight
@Stability(Stable)
public static final class VersionWeight.Builder
extends Object
implements software.amazon.jsii.Builder<VersionWeight>
A builder for
VersionWeight-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofVersionWeight.getVersion()Sets the value ofVersionWeight.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
version
Sets the value ofVersionWeight.getVersion()- Parameters:
version- The version to route traffic to. This parameter is required.- Returns:
this
-
weight
Sets the value ofVersionWeight.getWeight()- Parameters:
weight- How much weight to assign to this version (0..1). This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VersionWeight>- Returns:
- a new instance of
VersionWeight - Throws:
NullPointerException- if any required attribute was not provided
-