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