public static final class CfnRoute.RouteSpecProperty.Builder
extends java.lang.Object
CfnRoute.RouteSpecProperty
Constructor and Description |
---|
Builder() |
public CfnRoute.RouteSpecProperty.Builder grpcRoute(IResolvable grpcRoute)
CfnRoute.RouteSpecProperty.getGrpcRoute()
grpcRoute
- An object that represents the specification of a gRPC route.this
public CfnRoute.RouteSpecProperty.Builder grpcRoute(CfnRoute.GrpcRouteProperty grpcRoute)
CfnRoute.RouteSpecProperty.getGrpcRoute()
grpcRoute
- An object that represents the specification of a gRPC route.this
public CfnRoute.RouteSpecProperty.Builder http2Route(IResolvable http2Route)
CfnRoute.RouteSpecProperty.getHttp2Route()
http2Route
- An object that represents the specification of an HTTP/2 route.this
public CfnRoute.RouteSpecProperty.Builder http2Route(CfnRoute.HttpRouteProperty http2Route)
CfnRoute.RouteSpecProperty.getHttp2Route()
http2Route
- An object that represents the specification of an HTTP/2 route.this
public CfnRoute.RouteSpecProperty.Builder httpRoute(IResolvable httpRoute)
CfnRoute.RouteSpecProperty.getHttpRoute()
httpRoute
- An object that represents the specification of an HTTP route.this
public CfnRoute.RouteSpecProperty.Builder httpRoute(CfnRoute.HttpRouteProperty httpRoute)
CfnRoute.RouteSpecProperty.getHttpRoute()
httpRoute
- An object that represents the specification of an HTTP route.this
public CfnRoute.RouteSpecProperty.Builder priority(java.lang.Number priority)
CfnRoute.RouteSpecProperty.getPriority()
priority
- The priority for the route.
Routes are matched based on the specified value, where 0 is the highest priority.this
public CfnRoute.RouteSpecProperty.Builder tcpRoute(IResolvable tcpRoute)
CfnRoute.RouteSpecProperty.getTcpRoute()
tcpRoute
- An object that represents the specification of a TCP route.this
public CfnRoute.RouteSpecProperty.Builder tcpRoute(CfnRoute.TcpRouteProperty tcpRoute)
CfnRoute.RouteSpecProperty.getTcpRoute()
tcpRoute
- An object that represents the specification of a TCP route.this
public CfnRoute.RouteSpecProperty build()
CfnRoute.RouteSpecProperty
java.lang.NullPointerException
- if any required attribute was not provided