Interface HttpGatewayRouteAction.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<HttpGatewayRouteAction.Builder,
,HttpGatewayRouteAction> SdkBuilder<HttpGatewayRouteAction.Builder,
,HttpGatewayRouteAction> SdkPojo
- Enclosing class:
HttpGatewayRouteAction
public static interface HttpGatewayRouteAction.Builder
extends SdkPojo, CopyableBuilder<HttpGatewayRouteAction.Builder,HttpGatewayRouteAction>
-
Method Summary
Modifier and TypeMethodDescriptiondefault HttpGatewayRouteAction.Builder
rewrite
(Consumer<HttpGatewayRouteRewrite.Builder> rewrite) The gateway route action to rewrite.rewrite
(HttpGatewayRouteRewrite rewrite) The gateway route action to rewrite.default HttpGatewayRouteAction.Builder
target
(Consumer<GatewayRouteTarget.Builder> target) An object that represents the target that traffic is routed to when a request matches the gateway route.target
(GatewayRouteTarget target) An object that represents the target that traffic is routed to when a request matches the gateway 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 Details
-
rewrite
The gateway route action to rewrite.
- Parameters:
rewrite
- The gateway route action to rewrite.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rewrite
The gateway route action to rewrite.
This is a convenience method that creates an instance of theHttpGatewayRouteRewrite.Builder
avoiding the need to create one manually viaHttpGatewayRouteRewrite.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torewrite(HttpGatewayRouteRewrite)
.- Parameters:
rewrite
- a consumer that will call methods onHttpGatewayRouteRewrite.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
target
An object that represents the target that traffic is routed to when a request matches the gateway route.
- Parameters:
target
- An object that represents the target that traffic is routed to when a request matches the gateway route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
An object that represents the target that traffic is routed to when a request matches the gateway route.
This is a convenience method that creates an instance of theGatewayRouteTarget.Builder
avoiding the need to create one manually viaGatewayRouteTarget.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totarget(GatewayRouteTarget)
.- Parameters:
target
- a consumer that will call methods onGatewayRouteTarget.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-