Class VirtualRouter.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.VirtualRouter.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VirtualRouter>
- Enclosing class:
VirtualRouter
@Stability(Stable)
public static final class VirtualRouter.Builder
extends Object
implements software.amazon.jsii.Builder<VirtualRouter>
A fluent builder for
VirtualRouter
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static VirtualRouter.Builder
listeners
(List<? extends VirtualRouterListener> listeners) Listener specification for the VirtualRouter.The Mesh which the VirtualRouter belongs to.virtualRouterName
(String virtualRouterName) The name of the VirtualRouter.
-
Method Details
-
create
@Stability(Stable) public static VirtualRouter.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
VirtualRouter.Builder
.
-
listeners
@Stability(Stable) public VirtualRouter.Builder listeners(List<? extends VirtualRouterListener> listeners) Listener specification for the VirtualRouter.Default: - A listener on HTTP port 8080
- Parameters:
listeners
- Listener specification for the VirtualRouter. This parameter is required.- Returns:
this
-
virtualRouterName
The name of the VirtualRouter.Default: - A name is automatically determined
- Parameters:
virtualRouterName
- The name of the VirtualRouter. This parameter is required.- Returns:
this
-
mesh
The Mesh which the VirtualRouter belongs to.- Parameters:
mesh
- The Mesh which the VirtualRouter belongs to. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VirtualRouter>
- Returns:
- a newly built instance of
VirtualRouter
.
-