Class CfnRoutePropsMixin.WeightedTargetProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appmesh.CfnRoutePropsMixin.WeightedTargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoutePropsMixin.WeightedTargetProperty>
- Enclosing interface:
CfnRoutePropsMixin.WeightedTargetProperty
@Stability(Stable)
public static final class CfnRoutePropsMixin.WeightedTargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoutePropsMixin.WeightedTargetProperty>
A builder for
CfnRoutePropsMixin.WeightedTargetProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRoutePropsMixin.WeightedTargetProperty.getPort()virtualNode(String virtualNode) Sets the value ofCfnRoutePropsMixin.WeightedTargetProperty.getVirtualNode()Sets the value ofCfnRoutePropsMixin.WeightedTargetProperty.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
port
Sets the value ofCfnRoutePropsMixin.WeightedTargetProperty.getPort()- Parameters:
port- The targeted port of the weighted object.- Returns:
this
-
virtualNode
@Stability(Stable) public CfnRoutePropsMixin.WeightedTargetProperty.Builder virtualNode(String virtualNode) Sets the value ofCfnRoutePropsMixin.WeightedTargetProperty.getVirtualNode()- Parameters:
virtualNode- The virtual node to associate with the weighted target.- Returns:
this
-
weight
Sets the value ofCfnRoutePropsMixin.WeightedTargetProperty.getWeight()- Parameters:
weight- The relative weight of the weighted target.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRoutePropsMixin.WeightedTargetProperty>- Returns:
- a new instance of
CfnRoutePropsMixin.WeightedTargetProperty - Throws:
NullPointerException- if any required attribute was not provided
-