Class TcpVirtualNodeListenerOptions.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.TcpVirtualNodeListenerOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TcpVirtualNodeListenerOptions>
- Enclosing interface:
TcpVirtualNodeListenerOptions
@Stability(Stable)
public static final class TcpVirtualNodeListenerOptions.Builder
extends Object
implements software.amazon.jsii.Builder<TcpVirtualNodeListenerOptions>
A builder for
TcpVirtualNodeListenerOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.connectionPool
(TcpConnectionPool connectionPool) Sets the value ofTcpVirtualNodeListenerOptions.getConnectionPool()
healthCheck
(HealthCheck healthCheck) Sets the value ofTcpVirtualNodeListenerOptions.getHealthCheck()
outlierDetection
(OutlierDetection outlierDetection) Sets the value ofTcpVirtualNodeListenerOptions.getOutlierDetection()
Sets the value ofTcpVirtualNodeListenerOptions.getPort()
timeout
(TcpTimeout timeout) Sets the value ofTcpVirtualNodeListenerOptions.getTimeout()
tls
(ListenerTlsOptions tls) Sets the value ofTcpVirtualNodeListenerOptions.getTls()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectionPool
@Stability(Stable) public TcpVirtualNodeListenerOptions.Builder connectionPool(TcpConnectionPool connectionPool) Sets the value ofTcpVirtualNodeListenerOptions.getConnectionPool()
- Parameters:
connectionPool
- Connection pool for http listeners.- Returns:
this
-
healthCheck
@Stability(Stable) public TcpVirtualNodeListenerOptions.Builder healthCheck(HealthCheck healthCheck) Sets the value ofTcpVirtualNodeListenerOptions.getHealthCheck()
- Parameters:
healthCheck
- The health check information for the listener.- Returns:
this
-
outlierDetection
@Stability(Stable) public TcpVirtualNodeListenerOptions.Builder outlierDetection(OutlierDetection outlierDetection) Sets the value ofTcpVirtualNodeListenerOptions.getOutlierDetection()
- Parameters:
outlierDetection
- Represents the configuration for enabling outlier detection.- Returns:
this
-
port
Sets the value ofTcpVirtualNodeListenerOptions.getPort()
- Parameters:
port
- Port to listen for connections on.- Returns:
this
-
timeout
Sets the value ofTcpVirtualNodeListenerOptions.getTimeout()
- Parameters:
timeout
- Timeout for TCP protocol.- Returns:
this
-
tls
Sets the value ofTcpVirtualNodeListenerOptions.getTls()
- Parameters:
tls
- Represents the configuration for enabling TLS on a listener.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TcpVirtualNodeListenerOptions>
- Returns:
- a new instance of
TcpVirtualNodeListenerOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-