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