Class CfnVirtualRouter.VirtualRouterSpecProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnVirtualRouter.VirtualRouterSpecProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVirtualRouter.VirtualRouterSpecProperty>
- Enclosing interface:
CfnVirtualRouter.VirtualRouterSpecProperty
@Stability(Stable)
public static final class CfnVirtualRouter.VirtualRouterSpecProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVirtualRouter.VirtualRouterSpecProperty>
A builder for
CfnVirtualRouter.VirtualRouterSpecProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnVirtualRouter.VirtualRouterSpecProperty.getListeners()
listeners
(IResolvable listeners) Sets the value ofCfnVirtualRouter.VirtualRouterSpecProperty.getListeners()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
listeners
@Stability(Stable) public CfnVirtualRouter.VirtualRouterSpecProperty.Builder listeners(IResolvable listeners) Sets the value ofCfnVirtualRouter.VirtualRouterSpecProperty.getListeners()
- Parameters:
listeners
- The listeners that the virtual router is expected to receive inbound traffic from. This parameter is required.- Returns:
this
-
listeners
@Stability(Stable) public CfnVirtualRouter.VirtualRouterSpecProperty.Builder listeners(List<? extends Object> listeners) Sets the value ofCfnVirtualRouter.VirtualRouterSpecProperty.getListeners()
- Parameters:
listeners
- The listeners that the virtual router is expected to receive inbound traffic from. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVirtualRouter.VirtualRouterSpecProperty>
- Returns:
- a new instance of
CfnVirtualRouter.VirtualRouterSpecProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-