Class CfnRoute.RouteSpecProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnRoute.RouteSpecProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoute.RouteSpecProperty>
- Enclosing interface:
CfnRoute.RouteSpecProperty
@Stability(Stable)
public static final class CfnRoute.RouteSpecProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoute.RouteSpecProperty>
A builder for
CfnRoute.RouteSpecProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.grpcRoute
(IResolvable grpcRoute) Sets the value ofCfnRoute.RouteSpecProperty.getGrpcRoute()
grpcRoute
(CfnRoute.GrpcRouteProperty grpcRoute) Sets the value ofCfnRoute.RouteSpecProperty.getGrpcRoute()
http2Route
(IResolvable http2Route) Sets the value ofCfnRoute.RouteSpecProperty.getHttp2Route()
http2Route
(CfnRoute.HttpRouteProperty http2Route) Sets the value ofCfnRoute.RouteSpecProperty.getHttp2Route()
httpRoute
(IResolvable httpRoute) Sets the value ofCfnRoute.RouteSpecProperty.getHttpRoute()
httpRoute
(CfnRoute.HttpRouteProperty httpRoute) Sets the value ofCfnRoute.RouteSpecProperty.getHttpRoute()
Sets the value ofCfnRoute.RouteSpecProperty.getPriority()
tcpRoute
(IResolvable tcpRoute) Sets the value ofCfnRoute.RouteSpecProperty.getTcpRoute()
tcpRoute
(CfnRoute.TcpRouteProperty tcpRoute) Sets the value ofCfnRoute.RouteSpecProperty.getTcpRoute()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
grpcRoute
Sets the value ofCfnRoute.RouteSpecProperty.getGrpcRoute()
- Parameters:
grpcRoute
- An object that represents the specification of a gRPC route.- Returns:
this
-
grpcRoute
@Stability(Stable) public CfnRoute.RouteSpecProperty.Builder grpcRoute(CfnRoute.GrpcRouteProperty grpcRoute) Sets the value ofCfnRoute.RouteSpecProperty.getGrpcRoute()
- Parameters:
grpcRoute
- An object that represents the specification of a gRPC route.- Returns:
this
-
http2Route
Sets the value ofCfnRoute.RouteSpecProperty.getHttp2Route()
- Parameters:
http2Route
- An object that represents the specification of an HTTP/2 route.- Returns:
this
-
http2Route
@Stability(Stable) public CfnRoute.RouteSpecProperty.Builder http2Route(CfnRoute.HttpRouteProperty http2Route) Sets the value ofCfnRoute.RouteSpecProperty.getHttp2Route()
- Parameters:
http2Route
- An object that represents the specification of an HTTP/2 route.- Returns:
this
-
httpRoute
Sets the value ofCfnRoute.RouteSpecProperty.getHttpRoute()
- Parameters:
httpRoute
- An object that represents the specification of an HTTP route.- Returns:
this
-
httpRoute
@Stability(Stable) public CfnRoute.RouteSpecProperty.Builder httpRoute(CfnRoute.HttpRouteProperty httpRoute) Sets the value ofCfnRoute.RouteSpecProperty.getHttpRoute()
- Parameters:
httpRoute
- An object that represents the specification of an HTTP route.- Returns:
this
-
priority
Sets the value ofCfnRoute.RouteSpecProperty.getPriority()
- Parameters:
priority
- The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority.- Returns:
this
-
tcpRoute
Sets the value ofCfnRoute.RouteSpecProperty.getTcpRoute()
- Parameters:
tcpRoute
- An object that represents the specification of a TCP route.- Returns:
this
-
tcpRoute
@Stability(Stable) public CfnRoute.RouteSpecProperty.Builder tcpRoute(CfnRoute.TcpRouteProperty tcpRoute) Sets the value ofCfnRoute.RouteSpecProperty.getTcpRoute()
- Parameters:
tcpRoute
- An object that represents the specification of a TCP route.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRoute.RouteSpecProperty>
- Returns:
- a new instance of
CfnRoute.RouteSpecProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-