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