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