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