Class GatewayRouteProps.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.GatewayRouteProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GatewayRouteProps>
- Enclosing interface:
GatewayRouteProps
@Stability(Stable)
public static final class GatewayRouteProps.Builder
extends Object
implements software.amazon.jsii.Builder<GatewayRouteProps>
A builder for
GatewayRouteProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.gatewayRouteName(String gatewayRouteName) Sets the value ofGatewayRouteBaseProps.getGatewayRouteName()routeSpec(GatewayRouteSpec routeSpec) Sets the value ofGatewayRouteBaseProps.getRouteSpec()virtualGateway(IVirtualGateway virtualGateway) Sets the value ofGatewayRouteProps.getVirtualGateway()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
virtualGateway
Sets the value ofGatewayRouteProps.getVirtualGateway()- Parameters:
virtualGateway- The VirtualGateway this GatewayRoute is associated with. This parameter is required.- Returns:
this
-
routeSpec
Sets the value ofGatewayRouteBaseProps.getRouteSpec()- Parameters:
routeSpec- What protocol the route uses. This parameter is required.- Returns:
this
-
gatewayRouteName
Sets the value ofGatewayRouteBaseProps.getGatewayRouteName()- Parameters:
gatewayRouteName- The name of the GatewayRoute.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GatewayRouteProps>- Returns:
- a new instance of
GatewayRouteProps - Throws:
NullPointerException- if any required attribute was not provided
-