Class VirtualNode.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.VirtualNode.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VirtualNode>
- Enclosing class:
VirtualNode
@Stability(Stable)
public static final class VirtualNode.Builder
extends Object
implements software.amazon.jsii.Builder<VirtualNode>
A fluent builder for
VirtualNode
.-
Method Summary
Modifier and TypeMethodDescriptionAccess Logging Configuration for the virtual node.backendDefaults
(BackendDefaults backendDefaults) Default Configuration Virtual Node uses to communicate with Virtual Service.Virtual Services that this is node expected to send outbound traffic to.build()
static VirtualNode.Builder
listeners
(List<? extends VirtualNodeListener> listeners) Initial listener for the virtual node.The Mesh which the VirtualNode belongs to.serviceDiscovery
(ServiceDiscovery serviceDiscovery) Defines how upstream clients will discover this VirtualNode.virtualNodeName
(String virtualNodeName) The name of the VirtualNode.
-
Method Details
-
create
@Stability(Stable) public static VirtualNode.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
VirtualNode.Builder
.
-
accessLog
Access Logging Configuration for the virtual node.Default: - No access logging
- Parameters:
accessLog
- Access Logging Configuration for the virtual node. This parameter is required.- Returns:
this
-
backendDefaults
Default Configuration Virtual Node uses to communicate with Virtual Service.Default: - No Config
- Parameters:
backendDefaults
- Default Configuration Virtual Node uses to communicate with Virtual Service. This parameter is required.- Returns:
this
-
backends
Virtual Services that this is node expected to send outbound traffic to.Default: - No backends
- Parameters:
backends
- Virtual Services that this is node expected to send outbound traffic to. This parameter is required.- Returns:
this
-
listeners
@Stability(Stable) public VirtualNode.Builder listeners(List<? extends VirtualNodeListener> listeners) Initial listener for the virtual node.Default: - No listeners
- Parameters:
listeners
- Initial listener for the virtual node. This parameter is required.- Returns:
this
-
serviceDiscovery
Defines how upstream clients will discover this VirtualNode.Default: - No Service Discovery
- Parameters:
serviceDiscovery
- Defines how upstream clients will discover this VirtualNode. This parameter is required.- Returns:
this
-
virtualNodeName
The name of the VirtualNode.Default: - A name is automatically determined
- Parameters:
virtualNodeName
- The name of the VirtualNode. This parameter is required.- Returns:
this
-
mesh
The Mesh which the VirtualNode belongs to.- Parameters:
mesh
- The Mesh which the VirtualNode belongs to. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VirtualNode>
- Returns:
- a newly built instance of
VirtualNode
.
-