public static final class CfnRoute.TcpRouteActionProperty.Builder
extends java.lang.Object
CfnRoute.TcpRouteActionProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnRoute.TcpRouteActionProperty |
build()
Builds the configured instance.
|
CfnRoute.TcpRouteActionProperty.Builder |
weightedTargets(IResolvable weightedTargets)
Sets the value of
CfnRoute.TcpRouteActionProperty.getWeightedTargets() |
CfnRoute.TcpRouteActionProperty.Builder |
weightedTargets(java.util.List<? extends java.lang.Object> weightedTargets)
Sets the value of
CfnRoute.TcpRouteActionProperty.getWeightedTargets() |
public CfnRoute.TcpRouteActionProperty.Builder weightedTargets(IResolvable weightedTargets)
CfnRoute.TcpRouteActionProperty.getWeightedTargets()
weightedTargets
- An object that represents the targets that traffic is routed to when a request matches the route. This parameter is required.this
public CfnRoute.TcpRouteActionProperty.Builder weightedTargets(java.util.List<? extends java.lang.Object> weightedTargets)
CfnRoute.TcpRouteActionProperty.getWeightedTargets()
weightedTargets
- An object that represents the targets that traffic is routed to when a request matches the route. This parameter is required.this
public CfnRoute.TcpRouteActionProperty build()
CfnRoute.TcpRouteActionProperty
java.lang.NullPointerException
- if any required attribute was not provided