Class CfnVirtualNode.ListenerProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnVirtualNode.ListenerProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVirtualNode.ListenerProperty>
- Enclosing interface:
CfnVirtualNode.ListenerProperty
@Stability(Stable)
public static final class CfnVirtualNode.ListenerProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVirtualNode.ListenerProperty>
A builder for
CfnVirtualNode.ListenerProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.connectionPool(IResolvable connectionPool) Sets the value ofCfnVirtualNode.ListenerProperty.getConnectionPool()connectionPool(CfnVirtualNode.VirtualNodeConnectionPoolProperty connectionPool) Sets the value ofCfnVirtualNode.ListenerProperty.getConnectionPool()healthCheck(IResolvable healthCheck) Sets the value ofCfnVirtualNode.ListenerProperty.getHealthCheck()healthCheck(CfnVirtualNode.HealthCheckProperty healthCheck) Sets the value ofCfnVirtualNode.ListenerProperty.getHealthCheck()outlierDetection(IResolvable outlierDetection) Sets the value ofCfnVirtualNode.ListenerProperty.getOutlierDetection()outlierDetection(CfnVirtualNode.OutlierDetectionProperty outlierDetection) Sets the value ofCfnVirtualNode.ListenerProperty.getOutlierDetection()portMapping(IResolvable portMapping) Sets the value ofCfnVirtualNode.ListenerProperty.getPortMapping()portMapping(CfnVirtualNode.PortMappingProperty portMapping) Sets the value ofCfnVirtualNode.ListenerProperty.getPortMapping()timeout(IResolvable timeout) Sets the value ofCfnVirtualNode.ListenerProperty.getTimeout()Sets the value ofCfnVirtualNode.ListenerProperty.getTimeout()tls(IResolvable tls) Sets the value ofCfnVirtualNode.ListenerProperty.getTls()Sets the value ofCfnVirtualNode.ListenerProperty.getTls()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
portMapping
@Stability(Stable) public CfnVirtualNode.ListenerProperty.Builder portMapping(IResolvable portMapping) Sets the value ofCfnVirtualNode.ListenerProperty.getPortMapping()- Parameters:
portMapping- The port mapping information for the listener. This parameter is required.- Returns:
this
-
portMapping
@Stability(Stable) public CfnVirtualNode.ListenerProperty.Builder portMapping(CfnVirtualNode.PortMappingProperty portMapping) Sets the value ofCfnVirtualNode.ListenerProperty.getPortMapping()- Parameters:
portMapping- The port mapping information for the listener. This parameter is required.- Returns:
this
-
connectionPool
@Stability(Stable) public CfnVirtualNode.ListenerProperty.Builder connectionPool(IResolvable connectionPool) Sets the value ofCfnVirtualNode.ListenerProperty.getConnectionPool()- Parameters:
connectionPool- The connection pool information for the listener.- Returns:
this
-
connectionPool
@Stability(Stable) public CfnVirtualNode.ListenerProperty.Builder connectionPool(CfnVirtualNode.VirtualNodeConnectionPoolProperty connectionPool) Sets the value ofCfnVirtualNode.ListenerProperty.getConnectionPool()- Parameters:
connectionPool- The connection pool information for the listener.- Returns:
this
-
healthCheck
@Stability(Stable) public CfnVirtualNode.ListenerProperty.Builder healthCheck(IResolvable healthCheck) Sets the value ofCfnVirtualNode.ListenerProperty.getHealthCheck()- Parameters:
healthCheck- The health check information for the listener.- Returns:
this
-
healthCheck
@Stability(Stable) public CfnVirtualNode.ListenerProperty.Builder healthCheck(CfnVirtualNode.HealthCheckProperty healthCheck) Sets the value ofCfnVirtualNode.ListenerProperty.getHealthCheck()- Parameters:
healthCheck- The health check information for the listener.- Returns:
this
-
outlierDetection
@Stability(Stable) public CfnVirtualNode.ListenerProperty.Builder outlierDetection(IResolvable outlierDetection) Sets the value ofCfnVirtualNode.ListenerProperty.getOutlierDetection()- Parameters:
outlierDetection- The outlier detection information for the listener.- Returns:
this
-
outlierDetection
@Stability(Stable) public CfnVirtualNode.ListenerProperty.Builder outlierDetection(CfnVirtualNode.OutlierDetectionProperty outlierDetection) Sets the value ofCfnVirtualNode.ListenerProperty.getOutlierDetection()- Parameters:
outlierDetection- The outlier detection information for the listener.- Returns:
this
-
timeout
Sets the value ofCfnVirtualNode.ListenerProperty.getTimeout()- Parameters:
timeout- An object that represents timeouts for different protocols.- Returns:
this
-
timeout
@Stability(Stable) public CfnVirtualNode.ListenerProperty.Builder timeout(CfnVirtualNode.ListenerTimeoutProperty timeout) Sets the value ofCfnVirtualNode.ListenerProperty.getTimeout()- Parameters:
timeout- An object that represents timeouts for different protocols.- Returns:
this
-
tls
Sets the value ofCfnVirtualNode.ListenerProperty.getTls()- Parameters:
tls- A reference to an object that represents the Transport Layer Security (TLS) properties for a listener.- Returns:
this
-
tls
@Stability(Stable) public CfnVirtualNode.ListenerProperty.Builder tls(CfnVirtualNode.ListenerTlsProperty tls) Sets the value ofCfnVirtualNode.ListenerProperty.getTls()- Parameters:
tls- A reference to an object that represents the Transport Layer Security (TLS) properties for a listener.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVirtualNode.ListenerProperty>- Returns:
- a new instance of
CfnVirtualNode.ListenerProperty - Throws:
NullPointerException- if any required attribute was not provided
-