Class CfnRoute.TcpRouteProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnRoute.TcpRouteProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoute.TcpRouteProperty>
- Enclosing interface:
- CfnRoute.TcpRouteProperty
@Stability(Stable)
public static final class CfnRoute.TcpRouteProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoute.TcpRouteProperty>
A builder for
CfnRoute.TcpRouteProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction(IResolvable action) Sets the value ofCfnRoute.TcpRouteProperty.getAction()Sets the value ofCfnRoute.TcpRouteProperty.getAction()build()Builds the configured instance.match(IResolvable match) Sets the value ofCfnRoute.TcpRouteProperty.getMatch()Sets the value ofCfnRoute.TcpRouteProperty.getMatch()timeout(IResolvable timeout) Sets the value ofCfnRoute.TcpRouteProperty.getTimeout()timeout(CfnRoute.TcpTimeoutProperty timeout) Sets the value ofCfnRoute.TcpRouteProperty.getTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofCfnRoute.TcpRouteProperty.getAction()- Parameters:
action- The action to take if a match is determined. This parameter is required.- Returns:
this
-
action
@Stability(Stable) public CfnRoute.TcpRouteProperty.Builder action(CfnRoute.TcpRouteActionProperty action) Sets the value ofCfnRoute.TcpRouteProperty.getAction()- Parameters:
action- The action to take if a match is determined. This parameter is required.- Returns:
this
-
match
Sets the value ofCfnRoute.TcpRouteProperty.getMatch()- Parameters:
match- An object that represents the criteria for determining a request match.- Returns:
this
-
match
@Stability(Stable) public CfnRoute.TcpRouteProperty.Builder match(CfnRoute.TcpRouteMatchProperty match) Sets the value ofCfnRoute.TcpRouteProperty.getMatch()- Parameters:
match- An object that represents the criteria for determining a request match.- Returns:
this
-
timeout
Sets the value ofCfnRoute.TcpRouteProperty.getTimeout()- Parameters:
timeout- An object that represents types of timeouts.- Returns:
this
-
timeout
@Stability(Stable) public CfnRoute.TcpRouteProperty.Builder timeout(CfnRoute.TcpTimeoutProperty timeout) Sets the value ofCfnRoute.TcpRouteProperty.getTimeout()- Parameters:
timeout- An object that represents types of timeouts.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRoute.TcpRouteProperty>- Returns:
- a new instance of
CfnRoute.TcpRouteProperty - Throws:
NullPointerException- if any required attribute was not provided
-