Class CfnGatewayRoute.GatewayRouteSpecProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnGatewayRoute.GatewayRouteSpecProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGatewayRoute.GatewayRouteSpecProperty>
- Enclosing interface:
CfnGatewayRoute.GatewayRouteSpecProperty
@Stability(Stable)
public static final class CfnGatewayRoute.GatewayRouteSpecProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGatewayRoute.GatewayRouteSpecProperty>
A builder for
CfnGatewayRoute.GatewayRouteSpecProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.grpcRoute(IResolvable grpcRoute) Sets the value ofCfnGatewayRoute.GatewayRouteSpecProperty.getGrpcRoute()Sets the value ofCfnGatewayRoute.GatewayRouteSpecProperty.getGrpcRoute()http2Route(IResolvable http2Route) Sets the value ofCfnGatewayRoute.GatewayRouteSpecProperty.getHttp2Route()http2Route(CfnGatewayRoute.HttpGatewayRouteProperty http2Route) Sets the value ofCfnGatewayRoute.GatewayRouteSpecProperty.getHttp2Route()httpRoute(IResolvable httpRoute) Sets the value ofCfnGatewayRoute.GatewayRouteSpecProperty.getHttpRoute()Sets the value ofCfnGatewayRoute.GatewayRouteSpecProperty.getHttpRoute()Sets the value ofCfnGatewayRoute.GatewayRouteSpecProperty.getPriority()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
grpcRoute
@Stability(Stable) public CfnGatewayRoute.GatewayRouteSpecProperty.Builder grpcRoute(IResolvable grpcRoute) Sets the value ofCfnGatewayRoute.GatewayRouteSpecProperty.getGrpcRoute()- Parameters:
grpcRoute- An object that represents the specification of a gRPC gateway route.- Returns:
this
-
grpcRoute
@Stability(Stable) public CfnGatewayRoute.GatewayRouteSpecProperty.Builder grpcRoute(CfnGatewayRoute.GrpcGatewayRouteProperty grpcRoute) Sets the value ofCfnGatewayRoute.GatewayRouteSpecProperty.getGrpcRoute()- Parameters:
grpcRoute- An object that represents the specification of a gRPC gateway route.- Returns:
this
-
http2Route
@Stability(Stable) public CfnGatewayRoute.GatewayRouteSpecProperty.Builder http2Route(IResolvable http2Route) Sets the value ofCfnGatewayRoute.GatewayRouteSpecProperty.getHttp2Route()- Parameters:
http2Route- An object that represents the specification of an HTTP/2 gateway route.- Returns:
this
-
http2Route
@Stability(Stable) public CfnGatewayRoute.GatewayRouteSpecProperty.Builder http2Route(CfnGatewayRoute.HttpGatewayRouteProperty http2Route) Sets the value ofCfnGatewayRoute.GatewayRouteSpecProperty.getHttp2Route()- Parameters:
http2Route- An object that represents the specification of an HTTP/2 gateway route.- Returns:
this
-
httpRoute
@Stability(Stable) public CfnGatewayRoute.GatewayRouteSpecProperty.Builder httpRoute(IResolvable httpRoute) Sets the value ofCfnGatewayRoute.GatewayRouteSpecProperty.getHttpRoute()- Parameters:
httpRoute- An object that represents the specification of an HTTP gateway route.- Returns:
this
-
httpRoute
@Stability(Stable) public CfnGatewayRoute.GatewayRouteSpecProperty.Builder httpRoute(CfnGatewayRoute.HttpGatewayRouteProperty httpRoute) Sets the value ofCfnGatewayRoute.GatewayRouteSpecProperty.getHttpRoute()- Parameters:
httpRoute- An object that represents the specification of an HTTP gateway route.- Returns:
this
-
priority
@Stability(Stable) public CfnGatewayRoute.GatewayRouteSpecProperty.Builder priority(Number priority) Sets the value ofCfnGatewayRoute.GatewayRouteSpecProperty.getPriority()- Parameters:
priority- The ordering of the gateway routes spec.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGatewayRoute.GatewayRouteSpecProperty>- Returns:
- a new instance of
CfnGatewayRoute.GatewayRouteSpecProperty - Throws:
NullPointerException- if any required attribute was not provided
-