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