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