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