Class CfnVirtualGatewayPropsMixin.VirtualGatewayPortMappingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appmesh.CfnVirtualGatewayPropsMixin.VirtualGatewayPortMappingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVirtualGatewayPropsMixin.VirtualGatewayPortMappingProperty>
- Enclosing interface:
CfnVirtualGatewayPropsMixin.VirtualGatewayPortMappingProperty
@Stability(Stable)
public static final class CfnVirtualGatewayPropsMixin.VirtualGatewayPortMappingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVirtualGatewayPropsMixin.VirtualGatewayPortMappingProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnVirtualGatewayPropsMixin.VirtualGatewayPortMappingProperty.getPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
port
@Stability(Stable) public CfnVirtualGatewayPropsMixin.VirtualGatewayPortMappingProperty.Builder port(Number port) Sets the value ofCfnVirtualGatewayPropsMixin.VirtualGatewayPortMappingProperty.getPort()- Parameters:
port- The port used for the port mapping. Specify one protocol.- Returns:
this
-
protocol
@Stability(Stable) public CfnVirtualGatewayPropsMixin.VirtualGatewayPortMappingProperty.Builder protocol(String protocol) - Parameters:
protocol- The protocol used for the port mapping.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVirtualGatewayPropsMixin.VirtualGatewayPortMappingProperty>- Returns:
- a new instance of
CfnVirtualGatewayPropsMixin.VirtualGatewayPortMappingProperty - Throws:
NullPointerException- if any required attribute was not provided
-