public class Listener extends Object implements Serializable
The Listener data type.
For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing .
| Constructor and Description |
|---|
Listener()
Default constructor for a new Listener object.
|
Listener(String protocol,
Integer loadBalancerPort,
Integer instancePort)
Constructs a new Listener object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Integer |
getInstancePort()
Specifies the port on which the instance server is listening - 25, 80,
443, 465, 587, or 1024-65535.
|
String |
getInstanceProtocol()
Specifies the protocol to use for routing traffic to back-end
instances - HTTP, HTTPS, TCP, or SSL.
|
Integer |
getLoadBalancerPort()
Specifies the port on which the load balancer is listening - 25, 80,
443, 465, 587, or 1024-65535.
|
String |
getProtocol()
Specifies the load balancer transport protocol to use for routing -
HTTP, HTTPS, TCP or SSL.
|
String |
getSSLCertificateId()
The ARN string of the server certificate.
|
int |
hashCode() |
void |
setInstancePort(Integer instancePort)
Specifies the port on which the instance server is listening - 25, 80,
443, 465, 587, or 1024-65535.
|
void |
setInstanceProtocol(String instanceProtocol)
Specifies the protocol to use for routing traffic to back-end
instances - HTTP, HTTPS, TCP, or SSL.
|
void |
setLoadBalancerPort(Integer loadBalancerPort)
Specifies the port on which the load balancer is listening - 25, 80,
443, 465, 587, or 1024-65535.
|
void |
setProtocol(String protocol)
Specifies the load balancer transport protocol to use for routing -
HTTP, HTTPS, TCP or SSL.
|
void |
setSSLCertificateId(String sSLCertificateId)
The ARN string of the server certificate.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Listener |
withInstancePort(Integer instancePort)
Specifies the port on which the instance server is listening - 25, 80,
443, 465, 587, or 1024-65535.
|
Listener |
withInstanceProtocol(String instanceProtocol)
Specifies the protocol to use for routing traffic to back-end
instances - HTTP, HTTPS, TCP, or SSL.
|
Listener |
withLoadBalancerPort(Integer loadBalancerPort)
Specifies the port on which the load balancer is listening - 25, 80,
443, 465, 587, or 1024-65535.
|
Listener |
withProtocol(String protocol)
Specifies the load balancer transport protocol to use for routing -
HTTP, HTTPS, TCP or SSL.
|
Listener |
withSSLCertificateId(String sSLCertificateId)
The ARN string of the server certificate.
|
public Listener()
public Listener(String protocol, Integer loadBalancerPort, Integer instancePort)
protocol - Specifies the load balancer transport protocol to use
for routing - HTTP, HTTPS, TCP or SSL. This property cannot be
modified for the life of the load balancer.loadBalancerPort - Specifies the port on which the load balancer
is listening - 25, 80, 443, 465, 587, or 1024-65535. This property
cannot be modified for the life of the load balancer.instancePort - Specifies the port on which the instance server is
listening - 25, 80, 443, 465, 587, or 1024-65535. This property cannot
be modified for the life of the load balancer.public String getProtocol()
public void setProtocol(String protocol)
protocol - Specifies the load balancer transport protocol to use for routing -
HTTP, HTTPS, TCP or SSL. This property cannot be modified for the life
of the load balancer.public Listener withProtocol(String protocol)
Returns a reference to this object so that method calls can be chained together.
protocol - Specifies the load balancer transport protocol to use for routing -
HTTP, HTTPS, TCP or SSL. This property cannot be modified for the life
of the load balancer.public Integer getLoadBalancerPort()
public void setLoadBalancerPort(Integer loadBalancerPort)
loadBalancerPort - Specifies the port on which the load balancer is listening - 25, 80,
443, 465, 587, or 1024-65535. This property cannot be modified for the
life of the load balancer.public Listener withLoadBalancerPort(Integer loadBalancerPort)
Returns a reference to this object so that method calls can be chained together.
loadBalancerPort - Specifies the port on which the load balancer is listening - 25, 80,
443, 465, 587, or 1024-65535. This property cannot be modified for the
life of the load balancer.public String getInstanceProtocol()
InstanceProtocol has to be at the same
protocol layer, i.e., HTTP or HTTPS. Likewise, if the front-end
protocol is TCP or SSL, InstanceProtocol has to be TCP or SSL. InstancePort whose InstanceProtocol is
secure, i.e., HTTPS or SSL, the listener's
InstanceProtocol has to be secure, i.e., HTTPS or SSL. If
there is another listener with the same InstancePort
whose InstanceProtocol is HTTP or TCP, the listener's
InstanceProtocol must be either HTTP or TCP. InstanceProtocol has to be at the same
protocol layer, i.e., HTTP or HTTPS. Likewise, if the front-end
protocol is TCP or SSL, InstanceProtocol has to be TCP or SSL. InstancePort whose InstanceProtocol is
secure, i.e., HTTPS or SSL, the listener's
InstanceProtocol has to be secure, i.e., HTTPS or SSL. If
there is another listener with the same InstancePort
whose InstanceProtocol is HTTP or TCP, the listener's
InstanceProtocol must be either HTTP or TCP. public void setInstanceProtocol(String instanceProtocol)
InstanceProtocol has to be at the same
protocol layer, i.e., HTTP or HTTPS. Likewise, if the front-end
protocol is TCP or SSL, InstanceProtocol has to be TCP or SSL. InstancePort whose InstanceProtocol is
secure, i.e., HTTPS or SSL, the listener's
InstanceProtocol has to be secure, i.e., HTTPS or SSL. If
there is another listener with the same InstancePort
whose InstanceProtocol is HTTP or TCP, the listener's
InstanceProtocol must be either HTTP or TCP. instanceProtocol - Specifies the protocol to use for routing traffic to back-end
instances - HTTP, HTTPS, TCP, or SSL. This property cannot be modified
for the life of the load balancer. InstanceProtocol has to be at the same
protocol layer, i.e., HTTP or HTTPS. Likewise, if the front-end
protocol is TCP or SSL, InstanceProtocol has to be TCP or SSL. InstancePort whose InstanceProtocol is
secure, i.e., HTTPS or SSL, the listener's
InstanceProtocol has to be secure, i.e., HTTPS or SSL. If
there is another listener with the same InstancePort
whose InstanceProtocol is HTTP or TCP, the listener's
InstanceProtocol must be either HTTP or TCP. public Listener withInstanceProtocol(String instanceProtocol)
InstanceProtocol has to be at the same
protocol layer, i.e., HTTP or HTTPS. Likewise, if the front-end
protocol is TCP or SSL, InstanceProtocol has to be TCP or SSL. InstancePort whose InstanceProtocol is
secure, i.e., HTTPS or SSL, the listener's
InstanceProtocol has to be secure, i.e., HTTPS or SSL. If
there is another listener with the same InstancePort
whose InstanceProtocol is HTTP or TCP, the listener's
InstanceProtocol must be either HTTP or TCP. Returns a reference to this object so that method calls can be chained together.
instanceProtocol - Specifies the protocol to use for routing traffic to back-end
instances - HTTP, HTTPS, TCP, or SSL. This property cannot be modified
for the life of the load balancer. InstanceProtocol has to be at the same
protocol layer, i.e., HTTP or HTTPS. Likewise, if the front-end
protocol is TCP or SSL, InstanceProtocol has to be TCP or SSL. InstancePort whose InstanceProtocol is
secure, i.e., HTTPS or SSL, the listener's
InstanceProtocol has to be secure, i.e., HTTPS or SSL. If
there is another listener with the same InstancePort
whose InstanceProtocol is HTTP or TCP, the listener's
InstanceProtocol must be either HTTP or TCP. public Integer getInstancePort()
Constraints:
Range: 1 - 65535
public void setInstancePort(Integer instancePort)
Constraints:
Range: 1 - 65535
instancePort - Specifies the port on which the instance server is listening - 25, 80,
443, 465, 587, or 1024-65535. This property cannot be modified for the
life of the load balancer.public Listener withInstancePort(Integer instancePort)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 65535
instancePort - Specifies the port on which the instance server is listening - 25, 80,
443, 465, 587, or 1024-65535. This property cannot be modified for the
life of the load balancer.public String getSSLCertificateId()
public void setSSLCertificateId(String sSLCertificateId)
sSLCertificateId - The ARN string of the server certificate. To get the ARN of the server
certificate, call the AWS Identity and Access Management UploadServerCertificate
API.public Listener withSSLCertificateId(String sSLCertificateId)
Returns a reference to this object so that method calls can be chained together.
sSLCertificateId - The ARN string of the server certificate. To get the ARN of the server
certificate, call the AWS Identity and Access Management UploadServerCertificate
API.public String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.