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