Class CfnGatewayRoute.GatewayRouteTargetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnGatewayRoute.GatewayRouteTargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGatewayRoute.GatewayRouteTargetProperty>
- Enclosing interface:
CfnGatewayRoute.GatewayRouteTargetProperty
@Stability(Stable)
public static final class CfnGatewayRoute.GatewayRouteTargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGatewayRoute.GatewayRouteTargetProperty>
A builder for
CfnGatewayRoute.GatewayRouteTargetProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnGatewayRoute.GatewayRouteTargetProperty.getPort()
virtualService
(IResolvable virtualService) Sets the value ofCfnGatewayRoute.GatewayRouteTargetProperty.getVirtualService()
virtualService
(CfnGatewayRoute.GatewayRouteVirtualServiceProperty virtualService) Sets the value ofCfnGatewayRoute.GatewayRouteTargetProperty.getVirtualService()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
virtualService
@Stability(Stable) public CfnGatewayRoute.GatewayRouteTargetProperty.Builder virtualService(IResolvable virtualService) Sets the value ofCfnGatewayRoute.GatewayRouteTargetProperty.getVirtualService()
- Parameters:
virtualService
- An object that represents a virtual service gateway route target. This parameter is required.- Returns:
this
-
virtualService
@Stability(Stable) public CfnGatewayRoute.GatewayRouteTargetProperty.Builder virtualService(CfnGatewayRoute.GatewayRouteVirtualServiceProperty virtualService) Sets the value ofCfnGatewayRoute.GatewayRouteTargetProperty.getVirtualService()
- Parameters:
virtualService
- An object that represents a virtual service gateway route target. This parameter is required.- Returns:
this
-
port
Sets the value ofCfnGatewayRoute.GatewayRouteTargetProperty.getPort()
- Parameters:
port
- The port number of the gateway route target.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGatewayRoute.GatewayRouteTargetProperty>
- Returns:
- a new instance of
CfnGatewayRoute.GatewayRouteTargetProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-