Interface RouteSpec.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RouteSpec.Builder,RouteSpec>,SdkBuilder<RouteSpec.Builder,RouteSpec>,SdkPojo
- Enclosing class:
- RouteSpec
public static interface RouteSpec.Builder extends SdkPojo, CopyableBuilder<RouteSpec.Builder,RouteSpec>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RouteSpec.BuildergrpcRoute(Consumer<GrpcRoute.Builder> grpcRoute)An object that represents the specification of a gRPC route.RouteSpec.BuildergrpcRoute(GrpcRoute grpcRoute)An object that represents the specification of a gRPC route.default RouteSpec.Builderhttp2Route(Consumer<HttpRoute.Builder> http2Route)An object that represents the specification of an HTTP/2 route.RouteSpec.Builderhttp2Route(HttpRoute http2Route)An object that represents the specification of an HTTP/2 route.default RouteSpec.BuilderhttpRoute(Consumer<HttpRoute.Builder> httpRoute)An object that represents the specification of an HTTP route.RouteSpec.BuilderhttpRoute(HttpRoute httpRoute)An object that represents the specification of an HTTP route.RouteSpec.Builderpriority(Integer priority)The priority for the route.default RouteSpec.BuildertcpRoute(Consumer<TcpRoute.Builder> tcpRoute)An object that represents the specification of a TCP route.RouteSpec.BuildertcpRoute(TcpRoute tcpRoute)An object that represents the specification of a TCP route.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
grpcRoute
RouteSpec.Builder grpcRoute(GrpcRoute grpcRoute)
An object that represents the specification of a gRPC route.
- Parameters:
grpcRoute- An object that represents the specification of a gRPC route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grpcRoute
default RouteSpec.Builder grpcRoute(Consumer<GrpcRoute.Builder> grpcRoute)
An object that represents the specification of a gRPC route.
This is a convenience method that creates an instance of theGrpcRoute.Builderavoiding the need to create one manually viaGrpcRoute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togrpcRoute(GrpcRoute).- Parameters:
grpcRoute- a consumer that will call methods onGrpcRoute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
grpcRoute(GrpcRoute)
-
http2Route
RouteSpec.Builder http2Route(HttpRoute http2Route)
An object that represents the specification of an HTTP/2 route.
- Parameters:
http2Route- An object that represents the specification of an HTTP/2 route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
http2Route
default RouteSpec.Builder http2Route(Consumer<HttpRoute.Builder> http2Route)
An object that represents the specification of an HTTP/2 route.
This is a convenience method that creates an instance of theHttpRoute.Builderavoiding the need to create one manually viaHttpRoute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohttp2Route(HttpRoute).- Parameters:
http2Route- a consumer that will call methods onHttpRoute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
http2Route(HttpRoute)
-
httpRoute
RouteSpec.Builder httpRoute(HttpRoute httpRoute)
An object that represents the specification of an HTTP route.
- Parameters:
httpRoute- An object that represents the specification of an HTTP route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
httpRoute
default RouteSpec.Builder httpRoute(Consumer<HttpRoute.Builder> httpRoute)
An object that represents the specification of an HTTP route.
This is a convenience method that creates an instance of theHttpRoute.Builderavoiding the need to create one manually viaHttpRoute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohttpRoute(HttpRoute).- Parameters:
httpRoute- a consumer that will call methods onHttpRoute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
httpRoute(HttpRoute)
-
priority
RouteSpec.Builder priority(Integer priority)
The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority.
- Parameters:
priority- The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tcpRoute
RouteSpec.Builder tcpRoute(TcpRoute tcpRoute)
An object that represents the specification of a TCP route.
- Parameters:
tcpRoute- An object that represents the specification of a TCP route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tcpRoute
default RouteSpec.Builder tcpRoute(Consumer<TcpRoute.Builder> tcpRoute)
An object that represents the specification of a TCP route.
This is a convenience method that creates an instance of theTcpRoute.Builderavoiding the need to create one manually viaTcpRoute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totcpRoute(TcpRoute).- Parameters:
tcpRoute- a consumer that will call methods onTcpRoute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
tcpRoute(TcpRoute)
-
-