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