Class CfnVirtualGateway.VirtualGatewayListenerProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayListenerProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVirtualGateway.VirtualGatewayListenerProperty>
- Enclosing interface:
CfnVirtualGateway.VirtualGatewayListenerProperty
@Stability(Stable)
public static final class CfnVirtualGateway.VirtualGatewayListenerProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVirtualGateway.VirtualGatewayListenerProperty>
A builder for
CfnVirtualGateway.VirtualGatewayListenerProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.connectionPool
(IResolvable connectionPool) Sets the value ofCfnVirtualGateway.VirtualGatewayListenerProperty.getConnectionPool()
connectionPool
(CfnVirtualGateway.VirtualGatewayConnectionPoolProperty connectionPool) Sets the value ofCfnVirtualGateway.VirtualGatewayListenerProperty.getConnectionPool()
healthCheck
(IResolvable healthCheck) Sets the value ofCfnVirtualGateway.VirtualGatewayListenerProperty.getHealthCheck()
Sets the value ofCfnVirtualGateway.VirtualGatewayListenerProperty.getHealthCheck()
portMapping
(IResolvable portMapping) Sets the value ofCfnVirtualGateway.VirtualGatewayListenerProperty.getPortMapping()
Sets the value ofCfnVirtualGateway.VirtualGatewayListenerProperty.getPortMapping()
tls
(IResolvable tls) Sets the value ofCfnVirtualGateway.VirtualGatewayListenerProperty.getTls()
Sets the value ofCfnVirtualGateway.VirtualGatewayListenerProperty.getTls()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
portMapping
@Stability(Stable) public CfnVirtualGateway.VirtualGatewayListenerProperty.Builder portMapping(IResolvable portMapping) Sets the value ofCfnVirtualGateway.VirtualGatewayListenerProperty.getPortMapping()
- Parameters:
portMapping
- The port mapping information for the listener. This parameter is required.- Returns:
this
-
portMapping
@Stability(Stable) public CfnVirtualGateway.VirtualGatewayListenerProperty.Builder portMapping(CfnVirtualGateway.VirtualGatewayPortMappingProperty portMapping) Sets the value ofCfnVirtualGateway.VirtualGatewayListenerProperty.getPortMapping()
- Parameters:
portMapping
- The port mapping information for the listener. This parameter is required.- Returns:
this
-
connectionPool
@Stability(Stable) public CfnVirtualGateway.VirtualGatewayListenerProperty.Builder connectionPool(IResolvable connectionPool) Sets the value ofCfnVirtualGateway.VirtualGatewayListenerProperty.getConnectionPool()
- Parameters:
connectionPool
- The connection pool information for the listener.- Returns:
this
-
connectionPool
@Stability(Stable) public CfnVirtualGateway.VirtualGatewayListenerProperty.Builder connectionPool(CfnVirtualGateway.VirtualGatewayConnectionPoolProperty connectionPool) Sets the value ofCfnVirtualGateway.VirtualGatewayListenerProperty.getConnectionPool()
- Parameters:
connectionPool
- The connection pool information for the listener.- Returns:
this
-
healthCheck
@Stability(Stable) public CfnVirtualGateway.VirtualGatewayListenerProperty.Builder healthCheck(IResolvable healthCheck) Sets the value ofCfnVirtualGateway.VirtualGatewayListenerProperty.getHealthCheck()
- Parameters:
healthCheck
- The health check information for the listener.- Returns:
this
-
healthCheck
@Stability(Stable) public CfnVirtualGateway.VirtualGatewayListenerProperty.Builder healthCheck(CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty healthCheck) Sets the value ofCfnVirtualGateway.VirtualGatewayListenerProperty.getHealthCheck()
- Parameters:
healthCheck
- The health check information for the listener.- Returns:
this
-
tls
@Stability(Stable) public CfnVirtualGateway.VirtualGatewayListenerProperty.Builder tls(IResolvable tls) Sets the value ofCfnVirtualGateway.VirtualGatewayListenerProperty.getTls()
- Parameters:
tls
- A reference to an object that represents the Transport Layer Security (TLS) properties for the listener.- Returns:
this
-
tls
@Stability(Stable) public CfnVirtualGateway.VirtualGatewayListenerProperty.Builder tls(CfnVirtualGateway.VirtualGatewayListenerTlsProperty tls) Sets the value ofCfnVirtualGateway.VirtualGatewayListenerProperty.getTls()
- Parameters:
tls
- A reference to an object that represents the Transport Layer Security (TLS) properties for the listener.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVirtualGateway.VirtualGatewayListenerProperty>
- Returns:
- a new instance of
CfnVirtualGateway.VirtualGatewayListenerProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-