public static final class CfnVirtualNode.VirtualNodeSpecProperty.Builder
extends java.lang.Object
CfnVirtualNode.VirtualNodeSpecProperty
Constructor and Description |
---|
Builder() |
public CfnVirtualNode.VirtualNodeSpecProperty.Builder backendDefaults(IResolvable backendDefaults)
CfnVirtualNode.VirtualNodeSpecProperty.getBackendDefaults()
backendDefaults
- A reference to an object that represents the defaults for backends.this
public CfnVirtualNode.VirtualNodeSpecProperty.Builder backendDefaults(CfnVirtualNode.BackendDefaultsProperty backendDefaults)
CfnVirtualNode.VirtualNodeSpecProperty.getBackendDefaults()
backendDefaults
- A reference to an object that represents the defaults for backends.this
public CfnVirtualNode.VirtualNodeSpecProperty.Builder backends(IResolvable backends)
CfnVirtualNode.VirtualNodeSpecProperty.getBackends()
backends
- The backends that the virtual node is expected to send outbound traffic to.
App Mesh doesn't validate the existence of those virtual services specified in backends. This is to prevent a cyclic dependency between virtual nodes and virtual services creation. Make sure the virtual service name is correct. The virtual service can be created afterwards if it doesn't already exist.
this
public CfnVirtualNode.VirtualNodeSpecProperty.Builder backends(java.util.List<? extends java.lang.Object> backends)
CfnVirtualNode.VirtualNodeSpecProperty.getBackends()
backends
- The backends that the virtual node is expected to send outbound traffic to.
App Mesh doesn't validate the existence of those virtual services specified in backends. This is to prevent a cyclic dependency between virtual nodes and virtual services creation. Make sure the virtual service name is correct. The virtual service can be created afterwards if it doesn't already exist.
this
public CfnVirtualNode.VirtualNodeSpecProperty.Builder listeners(IResolvable listeners)
CfnVirtualNode.VirtualNodeSpecProperty.getListeners()
listeners
- The listener that the virtual node is expected to receive inbound traffic from.
You can specify one listener.this
public CfnVirtualNode.VirtualNodeSpecProperty.Builder listeners(java.util.List<? extends java.lang.Object> listeners)
CfnVirtualNode.VirtualNodeSpecProperty.getListeners()
listeners
- The listener that the virtual node is expected to receive inbound traffic from.
You can specify one listener.this
public CfnVirtualNode.VirtualNodeSpecProperty.Builder logging(IResolvable logging)
CfnVirtualNode.VirtualNodeSpecProperty.getLogging()
logging
- The inbound and outbound access logging information for the virtual node.this
public CfnVirtualNode.VirtualNodeSpecProperty.Builder logging(CfnVirtualNode.LoggingProperty logging)
CfnVirtualNode.VirtualNodeSpecProperty.getLogging()
logging
- The inbound and outbound access logging information for the virtual node.this
public CfnVirtualNode.VirtualNodeSpecProperty.Builder serviceDiscovery(IResolvable serviceDiscovery)
CfnVirtualNode.VirtualNodeSpecProperty.getServiceDiscovery()
serviceDiscovery
- The service discovery information for the virtual node.
If your virtual node does not expect ingress traffic, you can omit this parameter. If you specify a listener
, then you must specify service discovery information.this
public CfnVirtualNode.VirtualNodeSpecProperty.Builder serviceDiscovery(CfnVirtualNode.ServiceDiscoveryProperty serviceDiscovery)
CfnVirtualNode.VirtualNodeSpecProperty.getServiceDiscovery()
serviceDiscovery
- The service discovery information for the virtual node.
If your virtual node does not expect ingress traffic, you can omit this parameter. If you specify a listener
, then you must specify service discovery information.this
public CfnVirtualNode.VirtualNodeSpecProperty build()
CfnVirtualNode.VirtualNodeSpecProperty
java.lang.NullPointerException
- if any required attribute was not provided