@Stability(value=Stable) public static final class CfnVirtualGateway.VirtualGatewayPortMappingProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnVirtualGateway.VirtualGatewayPortMappingProperty>
CfnVirtualGateway.VirtualGatewayPortMappingProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnVirtualGateway.VirtualGatewayPortMappingProperty |
build()
Builds the configured instance.
|
CfnVirtualGateway.VirtualGatewayPortMappingProperty.Builder |
port(Number port)
Sets the value of
CfnVirtualGateway.VirtualGatewayPortMappingProperty.getPort() |
CfnVirtualGateway.VirtualGatewayPortMappingProperty.Builder |
protocol(String protocol)
Sets the value of
CfnVirtualGateway.VirtualGatewayPortMappingProperty.getProtocol() |
@Stability(value=Stable) public CfnVirtualGateway.VirtualGatewayPortMappingProperty.Builder port(Number port)
CfnVirtualGateway.VirtualGatewayPortMappingProperty.getPort()
port
- The port used for the port mapping. This parameter is required.
Specify one protocol.this
@Stability(value=Stable) public CfnVirtualGateway.VirtualGatewayPortMappingProperty.Builder protocol(String protocol)
CfnVirtualGateway.VirtualGatewayPortMappingProperty.getProtocol()
protocol
- The protocol used for the port mapping. This parameter is required.this
@Stability(value=Stable) public CfnVirtualGateway.VirtualGatewayPortMappingProperty build()
build
in interface software.amazon.jsii.Builder<CfnVirtualGateway.VirtualGatewayPortMappingProperty>
CfnVirtualGateway.VirtualGatewayPortMappingProperty
NullPointerException
- if any required attribute was not providedCopyright © 2022. All rights reserved.