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