public static final class CfnGatewayRoute.HttpGatewayRouteActionProperty.Builder
extends java.lang.Object
CfnGatewayRoute.HttpGatewayRouteActionProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnGatewayRoute.HttpGatewayRouteActionProperty |
build()
Builds the configured instance.
|
CfnGatewayRoute.HttpGatewayRouteActionProperty.Builder |
rewrite(CfnGatewayRoute.HttpGatewayRouteRewriteProperty rewrite)
Sets the value of
CfnGatewayRoute.HttpGatewayRouteActionProperty.getRewrite() |
CfnGatewayRoute.HttpGatewayRouteActionProperty.Builder |
rewrite(IResolvable rewrite)
Sets the value of
CfnGatewayRoute.HttpGatewayRouteActionProperty.getRewrite() |
CfnGatewayRoute.HttpGatewayRouteActionProperty.Builder |
target(CfnGatewayRoute.GatewayRouteTargetProperty target)
Sets the value of
CfnGatewayRoute.HttpGatewayRouteActionProperty.getTarget() |
CfnGatewayRoute.HttpGatewayRouteActionProperty.Builder |
target(IResolvable target)
Sets the value of
CfnGatewayRoute.HttpGatewayRouteActionProperty.getTarget() |
public CfnGatewayRoute.HttpGatewayRouteActionProperty.Builder target(IResolvable target)
CfnGatewayRoute.HttpGatewayRouteActionProperty.getTarget()
target
- An object that represents the target that traffic is routed to when a request matches the gateway route. This parameter is required.this
public CfnGatewayRoute.HttpGatewayRouteActionProperty.Builder target(CfnGatewayRoute.GatewayRouteTargetProperty target)
CfnGatewayRoute.HttpGatewayRouteActionProperty.getTarget()
target
- An object that represents the target that traffic is routed to when a request matches the gateway route. This parameter is required.this
public CfnGatewayRoute.HttpGatewayRouteActionProperty.Builder rewrite(IResolvable rewrite)
CfnGatewayRoute.HttpGatewayRouteActionProperty.getRewrite()
rewrite
- The gateway route action to rewrite.this
public CfnGatewayRoute.HttpGatewayRouteActionProperty.Builder rewrite(CfnGatewayRoute.HttpGatewayRouteRewriteProperty rewrite)
CfnGatewayRoute.HttpGatewayRouteActionProperty.getRewrite()
rewrite
- The gateway route action to rewrite.this
public CfnGatewayRoute.HttpGatewayRouteActionProperty build()
CfnGatewayRoute.HttpGatewayRouteActionProperty
java.lang.NullPointerException
- if any required attribute was not provided