Class AppmeshRouteSpecTcpRouteActionWeightedTarget.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.appmesh_route.AppmeshRouteSpecTcpRouteActionWeightedTarget.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AppmeshRouteSpecTcpRouteActionWeightedTarget>
- Enclosing interface:
- AppmeshRouteSpecTcpRouteActionWeightedTarget
@Stability(Stable) public static final class AppmeshRouteSpecTcpRouteActionWeightedTarget.Builder extends Object implements software.amazon.jsii.Builder<AppmeshRouteSpecTcpRouteActionWeightedTarget>
A builder forAppmeshRouteSpecTcpRouteActionWeightedTarget
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppmeshRouteSpecTcpRouteActionWeightedTargetbuild()Builds the configured instance.AppmeshRouteSpecTcpRouteActionWeightedTarget.Builderport(Number port)Sets the value ofAppmeshRouteSpecTcpRouteActionWeightedTarget.getPort()AppmeshRouteSpecTcpRouteActionWeightedTarget.BuildervirtualNode(String virtualNode)Sets the value ofAppmeshRouteSpecTcpRouteActionWeightedTarget.getVirtualNode()AppmeshRouteSpecTcpRouteActionWeightedTarget.Builderweight(Number weight)Sets the value ofAppmeshRouteSpecTcpRouteActionWeightedTarget.getWeight()
-
-
-
Method Detail
-
virtualNode
@Stability(Stable) public AppmeshRouteSpecTcpRouteActionWeightedTarget.Builder virtualNode(String virtualNode)
Sets the value ofAppmeshRouteSpecTcpRouteActionWeightedTarget.getVirtualNode()- Parameters:
virtualNode- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/appmesh_route#virtual_node AppmeshRoute#virtual_node}. This parameter is required.- Returns:
this
-
weight
@Stability(Stable) public AppmeshRouteSpecTcpRouteActionWeightedTarget.Builder weight(Number weight)
Sets the value ofAppmeshRouteSpecTcpRouteActionWeightedTarget.getWeight()- Parameters:
weight- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/appmesh_route#weight AppmeshRoute#weight}. This parameter is required.- Returns:
this
-
port
@Stability(Stable) public AppmeshRouteSpecTcpRouteActionWeightedTarget.Builder port(Number port)
Sets the value ofAppmeshRouteSpecTcpRouteActionWeightedTarget.getPort()- Parameters:
port- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/appmesh_route#port AppmeshRoute#port}.- Returns:
this
-
build
@Stability(Stable) public AppmeshRouteSpecTcpRouteActionWeightedTarget build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AppmeshRouteSpecTcpRouteActionWeightedTarget>- Returns:
- a new instance of
AppmeshRouteSpecTcpRouteActionWeightedTarget - Throws:
NullPointerException- if any required attribute was not provided
-
-