Class ApplicationListenerProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.patterns.ApplicationListenerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApplicationListenerProps>
- Enclosing interface:
ApplicationListenerProps
@Stability(Stable)
public static final class ApplicationListenerProps.Builder
extends Object
implements software.amazon.jsii.Builder<ApplicationListenerProps>
A builder for
ApplicationListenerProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.certificate
(ICertificate certificate) Sets the value ofApplicationListenerProps.getCertificate()
Sets the value ofApplicationListenerProps.getName()
Sets the value ofApplicationListenerProps.getPort()
protocol
(ApplicationProtocol protocol) Sets the value ofApplicationListenerProps.getProtocol()
Sets the value ofApplicationListenerProps.getSslPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofApplicationListenerProps.getName()
- Parameters:
name
- Name of the listener. This parameter is required.- Returns:
this
-
certificate
Sets the value ofApplicationListenerProps.getCertificate()
- Parameters:
certificate
- Certificate Manager certificate to associate with the load balancer. Setting this option will set the load balancer protocol to HTTPS.- Returns:
this
-
port
Sets the value ofApplicationListenerProps.getPort()
- Parameters:
port
- The port on which the listener listens for requests.- Returns:
this
-
protocol
Sets the value ofApplicationListenerProps.getProtocol()
- Parameters:
protocol
- The protocol for connections from clients to the load balancer. The load balancer port is determined from the protocol (port 80 for HTTP, port 443 for HTTPS). A domain name and zone must be also be specified if using HTTPS.- Returns:
this
-
sslPolicy
Sets the value ofApplicationListenerProps.getSslPolicy()
- Parameters:
sslPolicy
- The security policy that defines which ciphers and protocols are supported by the ALB Listener.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ApplicationListenerProps>
- Returns:
- a new instance of
ApplicationListenerProps
- Throws:
NullPointerException
- if any required attribute was not provided
-