Class CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty>
- Enclosing interface:
CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty
@Stability(Stable)
public static final class CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty>
A builder for
CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.defaultPrefix
(String defaultPrefix) Sets the value ofCfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty.getDefaultPrefix()
Sets the value ofCfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaultPrefix
@Stability(Stable) public CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty.Builder defaultPrefix(String defaultPrefix) Sets the value ofCfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty.getDefaultPrefix()
- Parameters:
defaultPrefix
- The default prefix used to replace the incoming route prefix when rewritten.- Returns:
this
-
value
@Stability(Stable) public CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty.Builder value(String value) Sets the value ofCfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty.getValue()
- Parameters:
value
- The value used to replace the incoming route prefix when rewritten.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty>
- Returns:
- a new instance of
CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-