@Stability(value=Experimental) public static final class NetworkListenerProps.Builder extends Object implements software.amazon.jsii.Builder<NetworkListenerProps>
NetworkListenerProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public NetworkListenerProps.Builder loadBalancer(INetworkLoadBalancer loadBalancer)
NetworkListenerProps.getLoadBalancer()loadBalancer - The load balancer to attach this listener to. This parameter is required.this@Stability(value=Experimental) public NetworkListenerProps.Builder port(Number port)
BaseNetworkListenerProps.getPort()port - The port on which the listener listens for requests. This parameter is required.this@Stability(value=Experimental) public NetworkListenerProps.Builder certificates(List<? extends IListenerCertificate> certificates)
BaseNetworkListenerProps.getCertificates()certificates - Certificate list of ACM cert ARNs.this@Stability(value=Experimental) public NetworkListenerProps.Builder defaultAction(NetworkListenerAction defaultAction)
BaseNetworkListenerProps.getDefaultAction()defaultAction - Default action to take for requests to this listener.
This allows full control of the default Action of the load balancer,
including weighted forwarding. See the NetworkListenerAction class for
all options.
Cannot be specified together with defaultTargetGroups.
this@Stability(value=Experimental) public NetworkListenerProps.Builder defaultTargetGroups(List<? extends INetworkTargetGroup> defaultTargetGroups)
BaseNetworkListenerProps.getDefaultTargetGroups()defaultTargetGroups - Default target groups to load balance to.
All target groups will be load balanced to with equal weight and without
stickiness. For a more complex configuration than that, use
either defaultAction or addAction().
Cannot be specified together with defaultAction.
this@Stability(value=Experimental) public NetworkListenerProps.Builder protocol(Protocol protocol)
BaseNetworkListenerProps.getProtocol()protocol - Protocol for listener, expects TCP, TLS, UDP, or TCP_UDP.this@Stability(value=Experimental) public NetworkListenerProps.Builder sslPolicy(SslPolicy sslPolicy)
BaseNetworkListenerProps.getSslPolicy()sslPolicy - SSL Policy.this@Stability(value=Experimental) public NetworkListenerProps build()
build in interface software.amazon.jsii.Builder<NetworkListenerProps>NetworkListenerPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.