Class CfnGatewayRoute.HttpGatewayRouteRewriteProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnGatewayRoute.HttpGatewayRouteRewriteProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGatewayRoute.HttpGatewayRouteRewriteProperty>
- Enclosing interface:
CfnGatewayRoute.HttpGatewayRouteRewriteProperty
@Stability(Stable)
public static final class CfnGatewayRoute.HttpGatewayRouteRewriteProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGatewayRoute.HttpGatewayRouteRewriteProperty>
A builder for
CfnGatewayRoute.HttpGatewayRouteRewriteProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.hostname
(IResolvable hostname) Sets the value ofCfnGatewayRoute.HttpGatewayRouteRewriteProperty.getHostname()
Sets the value ofCfnGatewayRoute.HttpGatewayRouteRewriteProperty.getHostname()
path
(IResolvable path) Sets the value ofCfnGatewayRoute.HttpGatewayRouteRewriteProperty.getPath()
Sets the value ofCfnGatewayRoute.HttpGatewayRouteRewriteProperty.getPath()
prefix
(IResolvable prefix) Sets the value ofCfnGatewayRoute.HttpGatewayRouteRewriteProperty.getPrefix()
Sets the value ofCfnGatewayRoute.HttpGatewayRouteRewriteProperty.getPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hostname
@Stability(Stable) public CfnGatewayRoute.HttpGatewayRouteRewriteProperty.Builder hostname(IResolvable hostname) Sets the value ofCfnGatewayRoute.HttpGatewayRouteRewriteProperty.getHostname()
- Parameters:
hostname
- The host name to rewrite.- Returns:
this
-
hostname
@Stability(Stable) public CfnGatewayRoute.HttpGatewayRouteRewriteProperty.Builder hostname(CfnGatewayRoute.GatewayRouteHostnameRewriteProperty hostname) Sets the value ofCfnGatewayRoute.HttpGatewayRouteRewriteProperty.getHostname()
- Parameters:
hostname
- The host name to rewrite.- Returns:
this
-
path
@Stability(Stable) public CfnGatewayRoute.HttpGatewayRouteRewriteProperty.Builder path(IResolvable path) Sets the value ofCfnGatewayRoute.HttpGatewayRouteRewriteProperty.getPath()
- Parameters:
path
- The path to rewrite.- Returns:
this
-
path
@Stability(Stable) public CfnGatewayRoute.HttpGatewayRouteRewriteProperty.Builder path(CfnGatewayRoute.HttpGatewayRoutePathRewriteProperty path) Sets the value ofCfnGatewayRoute.HttpGatewayRouteRewriteProperty.getPath()
- Parameters:
path
- The path to rewrite.- Returns:
this
-
prefix
@Stability(Stable) public CfnGatewayRoute.HttpGatewayRouteRewriteProperty.Builder prefix(IResolvable prefix) Sets the value ofCfnGatewayRoute.HttpGatewayRouteRewriteProperty.getPrefix()
- Parameters:
prefix
- The specified beginning characters to rewrite.- Returns:
this
-
prefix
@Stability(Stable) public CfnGatewayRoute.HttpGatewayRouteRewriteProperty.Builder prefix(CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty prefix) Sets the value ofCfnGatewayRoute.HttpGatewayRouteRewriteProperty.getPrefix()
- Parameters:
prefix
- The specified beginning characters to rewrite.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGatewayRoute.HttpGatewayRouteRewriteProperty>
- Returns:
- a new instance of
CfnGatewayRoute.HttpGatewayRouteRewriteProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-