Class CfnGatewayRoute.HttpGatewayRouteActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnGatewayRoute.HttpGatewayRouteActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGatewayRoute.HttpGatewayRouteActionProperty>
- Enclosing interface:
- CfnGatewayRoute.HttpGatewayRouteActionProperty
@Stability(Stable)
public static final class CfnGatewayRoute.HttpGatewayRouteActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGatewayRoute.HttpGatewayRouteActionProperty>
A builder for
CfnGatewayRoute.HttpGatewayRouteActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.rewrite(IResolvable rewrite) Sets the value ofCfnGatewayRoute.HttpGatewayRouteActionProperty.getRewrite()Sets the value ofCfnGatewayRoute.HttpGatewayRouteActionProperty.getRewrite()target(IResolvable target) Sets the value ofCfnGatewayRoute.HttpGatewayRouteActionProperty.getTarget()Sets the value ofCfnGatewayRoute.HttpGatewayRouteActionProperty.getTarget()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
target
@Stability(Stable) public CfnGatewayRoute.HttpGatewayRouteActionProperty.Builder target(IResolvable target) Sets the value ofCfnGatewayRoute.HttpGatewayRouteActionProperty.getTarget()- Parameters:
target- An object that represents the target that traffic is routed to when a request matches the gateway route. This parameter is required.- Returns:
this
-
target
@Stability(Stable) public CfnGatewayRoute.HttpGatewayRouteActionProperty.Builder target(CfnGatewayRoute.GatewayRouteTargetProperty target) Sets the value ofCfnGatewayRoute.HttpGatewayRouteActionProperty.getTarget()- Parameters:
target- An object that represents the target that traffic is routed to when a request matches the gateway route. This parameter is required.- Returns:
this
-
rewrite
@Stability(Stable) public CfnGatewayRoute.HttpGatewayRouteActionProperty.Builder rewrite(IResolvable rewrite) Sets the value ofCfnGatewayRoute.HttpGatewayRouteActionProperty.getRewrite()- Parameters:
rewrite- The gateway route action to rewrite.- Returns:
this
-
rewrite
@Stability(Stable) public CfnGatewayRoute.HttpGatewayRouteActionProperty.Builder rewrite(CfnGatewayRoute.HttpGatewayRouteRewriteProperty rewrite) Sets the value ofCfnGatewayRoute.HttpGatewayRouteActionProperty.getRewrite()- Parameters:
rewrite- The gateway route action to rewrite.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGatewayRoute.HttpGatewayRouteActionProperty>- Returns:
- a new instance of
CfnGatewayRoute.HttpGatewayRouteActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-