Class CfnAlias.VersionWeightProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnAlias.VersionWeightProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlias.VersionWeightProperty>
- Enclosing interface:
CfnAlias.VersionWeightProperty
@Stability(Stable)
public static final class CfnAlias.VersionWeightProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlias.VersionWeightProperty>
A builder for
CfnAlias.VersionWeightProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.functionVersion
(String functionVersion) Sets the value ofCfnAlias.VersionWeightProperty.getFunctionVersion()
functionWeight
(Number functionWeight) Sets the value ofCfnAlias.VersionWeightProperty.getFunctionWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
functionVersion
@Stability(Stable) public CfnAlias.VersionWeightProperty.Builder functionVersion(String functionVersion) Sets the value ofCfnAlias.VersionWeightProperty.getFunctionVersion()
- Parameters:
functionVersion
- The qualifier of the second version. This parameter is required.- Returns:
this
-
functionWeight
@Stability(Stable) public CfnAlias.VersionWeightProperty.Builder functionWeight(Number functionWeight) Sets the value ofCfnAlias.VersionWeightProperty.getFunctionWeight()
- Parameters:
functionWeight
- The percentage of traffic that the alias routes to the second version. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAlias.VersionWeightProperty>
- Returns:
- a new instance of
CfnAlias.VersionWeightProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-