Class CfnWebFunctionEndpointPropsMixin.RevisionWeightProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnWebFunctionEndpointPropsMixin.RevisionWeightProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebFunctionEndpointPropsMixin.RevisionWeightProperty>
- Enclosing interface:
CfnWebFunctionEndpointPropsMixin.RevisionWeightProperty
@Stability(Stable)
public static final class CfnWebFunctionEndpointPropsMixin.RevisionWeightProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebFunctionEndpointPropsMixin.RevisionWeightProperty>
A builder for
CfnWebFunctionEndpointPropsMixin.RevisionWeightProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.revisionId(String revisionId) Sets the value ofCfnWebFunctionEndpointPropsMixin.RevisionWeightProperty.getRevisionId()Sets the value ofCfnWebFunctionEndpointPropsMixin.RevisionWeightProperty.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
revisionId
@Stability(Stable) public CfnWebFunctionEndpointPropsMixin.RevisionWeightProperty.Builder revisionId(String revisionId) Sets the value ofCfnWebFunctionEndpointPropsMixin.RevisionWeightProperty.getRevisionId()- Parameters:
revisionId- The revision identifier.- Returns:
this
-
weight
@Stability(Stable) public CfnWebFunctionEndpointPropsMixin.RevisionWeightProperty.Builder weight(Number weight) Sets the value ofCfnWebFunctionEndpointPropsMixin.RevisionWeightProperty.getWeight()- Parameters:
weight- The traffic weight for this revision.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWebFunctionEndpointPropsMixin.RevisionWeightProperty>- Returns:
- a new instance of
CfnWebFunctionEndpointPropsMixin.RevisionWeightProperty - Throws:
NullPointerException- if any required attribute was not provided
-