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