public class Listener
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Information about a listener.
For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
instancePort
The port on which the instance is listening.
|
private java.lang.String |
instanceProtocol
The protocol to use for routing traffic to back-end instances: HTTP,
HTTPS, TCP, or SSL.
|
private java.lang.Integer |
loadBalancerPort
The port on which the load balancer is listening.
|
private java.lang.String |
protocol
The load balancer transport protocol to use for routing: HTTP, HTTPS,
TCP, or SSL.
|
private java.lang.String |
sSLCertificateId
The Amazon Resource Name (ARN) of the server certificate.
|
Constructor and Description |
---|
Listener()
Default constructor for Listener object.
|
Listener(java.lang.String protocol,
java.lang.Integer loadBalancerPort,
java.lang.Integer instancePort)
Constructs a new Listener object.
|
Modifier and Type | Method and Description |
---|---|
Listener |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getInstancePort()
The port on which the instance is listening.
|
java.lang.String |
getInstanceProtocol()
The protocol to use for routing traffic to back-end instances: HTTP,
HTTPS, TCP, or SSL.
|
java.lang.Integer |
getLoadBalancerPort()
The port on which the load balancer is listening.
|
java.lang.String |
getProtocol()
The load balancer transport protocol to use for routing: HTTP, HTTPS,
TCP, or SSL.
|
java.lang.String |
getSSLCertificateId()
The Amazon Resource Name (ARN) of the server certificate.
|
int |
hashCode() |
void |
setInstancePort(java.lang.Integer instancePort)
The port on which the instance is listening.
|
void |
setInstanceProtocol(java.lang.String instanceProtocol)
The protocol to use for routing traffic to back-end instances: HTTP,
HTTPS, TCP, or SSL.
|
void |
setLoadBalancerPort(java.lang.Integer loadBalancerPort)
The port on which the load balancer is listening.
|
void |
setProtocol(java.lang.String protocol)
The load balancer transport protocol to use for routing: HTTP, HTTPS,
TCP, or SSL.
|
void |
setSSLCertificateId(java.lang.String sSLCertificateId)
The Amazon Resource Name (ARN) of the server certificate.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Listener |
withInstancePort(java.lang.Integer instancePort)
The port on which the instance is listening.
|
Listener |
withInstanceProtocol(java.lang.String instanceProtocol)
The protocol to use for routing traffic to back-end instances: HTTP,
HTTPS, TCP, or SSL.
|
Listener |
withLoadBalancerPort(java.lang.Integer loadBalancerPort)
The port on which the load balancer is listening.
|
Listener |
withProtocol(java.lang.String protocol)
The load balancer transport protocol to use for routing: HTTP, HTTPS,
TCP, or SSL.
|
Listener |
withSSLCertificateId(java.lang.String sSLCertificateId)
The Amazon Resource Name (ARN) of the server certificate.
|
private java.lang.String protocol
The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
private java.lang.Integer loadBalancerPort
The port on which the load balancer is listening. On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.
private java.lang.String instanceProtocol
The protocol to use for routing traffic to back-end instances: HTTP, HTTPS, TCP, or SSL.
If the front-end protocol is HTTP, HTTPS, TCP, or SSL,
InstanceProtocol
must be at the same protocol.
If there is another listener with the same InstancePort
whose InstanceProtocol
is secure, (HTTPS or SSL), the
listener's InstanceProtocol
must also be secure.
If there is another listener with the same InstancePort
whose InstanceProtocol
is HTTP or TCP, the listener's
InstanceProtocol
must be HTTP or TCP.
private java.lang.Integer instancePort
The port on which the instance is listening.
private java.lang.String sSLCertificateId
The Amazon Resource Name (ARN) of the server certificate.
public Listener()
public Listener(java.lang.String protocol, java.lang.Integer loadBalancerPort, java.lang.Integer instancePort)
protocol
- The load balancer transport protocol to use for routing: HTTP,
HTTPS, TCP, or SSL.loadBalancerPort
- The port on which the load balancer is listening. On EC2-VPC, you
can specify any port from the range 1-65535. On EC2-Classic, you
can specify any port from the following list: 25, 80, 443, 465,
587, 1024-65535.instancePort
- The port on which the instance is listening.public void setProtocol(java.lang.String protocol)
The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
protocol
- The load balancer transport protocol to use for routing: HTTP,
HTTPS, TCP, or SSL.public java.lang.String getProtocol()
The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
public Listener withProtocol(java.lang.String protocol)
The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
protocol
- The load balancer transport protocol to use for routing: HTTP,
HTTPS, TCP, or SSL.public void setLoadBalancerPort(java.lang.Integer loadBalancerPort)
The port on which the load balancer is listening. On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.
loadBalancerPort
- The port on which the load balancer is listening. On EC2-VPC, you
can specify any port from the range 1-65535. On EC2-Classic, you
can specify any port from the following list: 25, 80, 443, 465,
587, 1024-65535.public java.lang.Integer getLoadBalancerPort()
The port on which the load balancer is listening. On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.
public Listener withLoadBalancerPort(java.lang.Integer loadBalancerPort)
The port on which the load balancer is listening. On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.
loadBalancerPort
- The port on which the load balancer is listening. On EC2-VPC, you
can specify any port from the range 1-65535. On EC2-Classic, you
can specify any port from the following list: 25, 80, 443, 465,
587, 1024-65535.public void setInstanceProtocol(java.lang.String instanceProtocol)
The protocol to use for routing traffic to back-end instances: HTTP, HTTPS, TCP, or SSL.
If the front-end protocol is HTTP, HTTPS, TCP, or SSL,
InstanceProtocol
must be at the same protocol.
If there is another listener with the same InstancePort
whose InstanceProtocol
is secure, (HTTPS or SSL), the
listener's InstanceProtocol
must also be secure.
If there is another listener with the same InstancePort
whose InstanceProtocol
is HTTP or TCP, the listener's
InstanceProtocol
must be HTTP or TCP.
instanceProtocol
- The protocol to use for routing traffic to back-end instances:
HTTP, HTTPS, TCP, or SSL.
If the front-end protocol is HTTP, HTTPS, TCP, or SSL,
InstanceProtocol
must be at the same protocol.
If there is another listener with the same
InstancePort
whose InstanceProtocol
is
secure, (HTTPS or SSL), the listener's
InstanceProtocol
must also be secure.
If there is another listener with the same
InstancePort
whose InstanceProtocol
is
HTTP or TCP, the listener's InstanceProtocol
must be
HTTP or TCP.
public java.lang.String getInstanceProtocol()
The protocol to use for routing traffic to back-end instances: HTTP, HTTPS, TCP, or SSL.
If the front-end protocol is HTTP, HTTPS, TCP, or SSL,
InstanceProtocol
must be at the same protocol.
If there is another listener with the same InstancePort
whose InstanceProtocol
is secure, (HTTPS or SSL), the
listener's InstanceProtocol
must also be secure.
If there is another listener with the same InstancePort
whose InstanceProtocol
is HTTP or TCP, the listener's
InstanceProtocol
must be HTTP or TCP.
If the front-end protocol is HTTP, HTTPS, TCP, or SSL,
InstanceProtocol
must be at the same protocol.
If there is another listener with the same
InstancePort
whose InstanceProtocol
is
secure, (HTTPS or SSL), the listener's
InstanceProtocol
must also be secure.
If there is another listener with the same
InstancePort
whose InstanceProtocol
is
HTTP or TCP, the listener's InstanceProtocol
must be
HTTP or TCP.
public Listener withInstanceProtocol(java.lang.String instanceProtocol)
The protocol to use for routing traffic to back-end instances: HTTP, HTTPS, TCP, or SSL.
If the front-end protocol is HTTP, HTTPS, TCP, or SSL,
InstanceProtocol
must be at the same protocol.
If there is another listener with the same InstancePort
whose InstanceProtocol
is secure, (HTTPS or SSL), the
listener's InstanceProtocol
must also be secure.
If there is another listener with the same InstancePort
whose InstanceProtocol
is HTTP or TCP, the listener's
InstanceProtocol
must be HTTP or TCP.
instanceProtocol
- The protocol to use for routing traffic to back-end instances:
HTTP, HTTPS, TCP, or SSL.
If the front-end protocol is HTTP, HTTPS, TCP, or SSL,
InstanceProtocol
must be at the same protocol.
If there is another listener with the same
InstancePort
whose InstanceProtocol
is
secure, (HTTPS or SSL), the listener's
InstanceProtocol
must also be secure.
If there is another listener with the same
InstancePort
whose InstanceProtocol
is
HTTP or TCP, the listener's InstanceProtocol
must be
HTTP or TCP.
public void setInstancePort(java.lang.Integer instancePort)
The port on which the instance is listening.
instancePort
- The port on which the instance is listening.public java.lang.Integer getInstancePort()
The port on which the instance is listening.
public Listener withInstancePort(java.lang.Integer instancePort)
The port on which the instance is listening.
instancePort
- The port on which the instance is listening.public void setSSLCertificateId(java.lang.String sSLCertificateId)
The Amazon Resource Name (ARN) of the server certificate.
sSLCertificateId
- The Amazon Resource Name (ARN) of the server certificate.public java.lang.String getSSLCertificateId()
The Amazon Resource Name (ARN) of the server certificate.
public Listener withSSLCertificateId(java.lang.String sSLCertificateId)
The Amazon Resource Name (ARN) of the server certificate.
sSLCertificateId
- The Amazon Resource Name (ARN) of the server certificate.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Listener clone()
clone
in class java.lang.Object