public static final class CfnVirtualNode.PortMappingProperty.Builder
extends java.lang.Object
CfnVirtualNode.PortMappingProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnVirtualNode.PortMappingProperty |
build()
Builds the configured instance.
|
CfnVirtualNode.PortMappingProperty.Builder |
port(java.lang.Number port)
Sets the value of
CfnVirtualNode.PortMappingProperty.getPort() |
CfnVirtualNode.PortMappingProperty.Builder |
protocol(java.lang.String protocol)
Sets the value of
CfnVirtualNode.PortMappingProperty.getProtocol() |
public CfnVirtualNode.PortMappingProperty.Builder port(java.lang.Number port)
CfnVirtualNode.PortMappingProperty.getPort()
port
- The port used for the port mapping. This parameter is required.this
public CfnVirtualNode.PortMappingProperty.Builder protocol(java.lang.String protocol)
CfnVirtualNode.PortMappingProperty.getProtocol()
protocol
- The protocol used for the port mapping. This parameter is required.
Specify http
, http2
, grpc
, or tcp
.this
public CfnVirtualNode.PortMappingProperty build()
CfnVirtualNode.PortMappingProperty
java.lang.NullPointerException
- if any required attribute was not provided