public static final class LoadBalancerListener.Builder
extends java.lang.Object
LoadBalancerListener
Constructor and Description |
---|
Builder() |
public LoadBalancerListener.Builder externalPort(java.lang.Number externalPort)
LoadBalancerListener.getExternalPort()
externalPort
- External listening port. This parameter is required.this
public LoadBalancerListener.Builder allowConnectionsFrom(java.util.List<? extends IConnectable> allowConnectionsFrom)
LoadBalancerListener.getAllowConnectionsFrom()
allowConnectionsFrom
- Allow connections to the load balancer from the given set of connection peers.
By default, connections will be allowed from anywhere. Set this to an empty list
to deny connections, or supply a custom list of peers to allow connections from
(IP ranges or security groups).this
public LoadBalancerListener.Builder externalProtocol(LoadBalancingProtocol externalProtocol)
LoadBalancerListener.getExternalProtocol()
externalProtocol
- What public protocol to use for load balancing.
Either 'tcp', 'ssl', 'http' or 'https'.
May be omitted if the external port is either 80 or 443.
this
public LoadBalancerListener.Builder internalPort(java.lang.Number internalPort)
LoadBalancerListener.getInternalPort()
internalPort
- Instance listening port.
Same as the externalPort if not specified.this
public LoadBalancerListener.Builder internalProtocol(LoadBalancingProtocol internalProtocol)
LoadBalancerListener.getInternalProtocol()
internalProtocol
- What public protocol to use for load balancing.
Either 'tcp', 'ssl', 'http' or 'https'.
May be omitted if the internal port is either 80 or 443.
The instance protocol is 'tcp' if the front-end protocol is 'tcp' or 'ssl', the instance protocol is 'http' if the front-end protocol is 'https'.
this
public LoadBalancerListener.Builder policyNames(java.util.List<java.lang.String> policyNames)
LoadBalancerListener.getPolicyNames()
policyNames
- SSL policy names.this
public LoadBalancerListener.Builder sslCertificateArn(java.lang.String sslCertificateArn)
LoadBalancerListener.getSslCertificateArn()
sslCertificateArn
- the ARN of the SSL certificate.this
@Deprecated public LoadBalancerListener.Builder sslCertificateId(java.lang.String sslCertificateId)
LoadBalancerListener.getSslCertificateId()
sslCertificateId
- the ARN of the SSL certificate.this
public LoadBalancerListener build()
LoadBalancerListener
java.lang.NullPointerException
- if any required attribute was not provided