Class CfnGatewayRouteProps.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnGatewayRouteProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGatewayRouteProps>
- Enclosing interface:
CfnGatewayRouteProps
@Stability(Stable)
public static final class CfnGatewayRouteProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGatewayRouteProps>
A builder for
CfnGatewayRouteProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.gatewayRouteName
(String gatewayRouteName) Sets the value ofCfnGatewayRouteProps.getGatewayRouteName()
Sets the value ofCfnGatewayRouteProps.getMeshName()
Sets the value ofCfnGatewayRouteProps.getMeshOwner()
spec
(IResolvable spec) Sets the value ofCfnGatewayRouteProps.getSpec()
Sets the value ofCfnGatewayRouteProps.getSpec()
Sets the value ofCfnGatewayRouteProps.getTags()
virtualGatewayName
(String virtualGatewayName) Sets the value ofCfnGatewayRouteProps.getVirtualGatewayName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
meshName
Sets the value ofCfnGatewayRouteProps.getMeshName()
- Parameters:
meshName
- The name of the service mesh that the resource resides in. This parameter is required.- Returns:
this
-
spec
Sets the value ofCfnGatewayRouteProps.getSpec()
- Parameters:
spec
- The specifications of the gateway route. This parameter is required.- Returns:
this
-
spec
@Stability(Stable) public CfnGatewayRouteProps.Builder spec(CfnGatewayRoute.GatewayRouteSpecProperty spec) Sets the value ofCfnGatewayRouteProps.getSpec()
- Parameters:
spec
- The specifications of the gateway route. This parameter is required.- Returns:
this
-
virtualGatewayName
@Stability(Stable) public CfnGatewayRouteProps.Builder virtualGatewayName(String virtualGatewayName) Sets the value ofCfnGatewayRouteProps.getVirtualGatewayName()
- Parameters:
virtualGatewayName
- The virtual gateway that the gateway route is associated with. This parameter is required.- Returns:
this
-
gatewayRouteName
Sets the value ofCfnGatewayRouteProps.getGatewayRouteName()
- Parameters:
gatewayRouteName
- The name of the gateway route.- Returns:
this
-
meshOwner
Sets the value ofCfnGatewayRouteProps.getMeshOwner()
- Parameters:
meshOwner
- The AWS IAM account ID of the service mesh owner. If the account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes .- Returns:
this
-
tags
Sets the value ofCfnGatewayRouteProps.getTags()
- Parameters:
tags
- Optional metadata that you can apply to the gateway route to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGatewayRouteProps>
- Returns:
- a new instance of
CfnGatewayRouteProps
- Throws:
NullPointerException
- if any required attribute was not provided
-