public class Listener extends Object implements Serializable
The Listener data type.
| 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 TCP port on which the instance server is listening.
|
String |
getInstanceProtocol()
Specifies the protocol to use for routing traffic to back-end
instances - HTTP, HTTPS, TCP, or SSL.
|
Integer |
getLoadBalancerPort()
Specifies the external load balancer port number.
|
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 TCP port on which the instance server is listening.
|
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 external load balancer port number.
|
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 TCP port on which the instance server is listening.
|
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 external load balancer port number.
|
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 external load balancer port
number. This property cannot be modified for the life of the load
balancer.instancePort - Specifies the TCP port on which the instance
server is listening. 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 external load balancer port number. 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 external load balancer port number. 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 TCP port on which the instance server is listening. 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 TCP port on which the instance server is listening. 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 © 2010 Amazon Web Services, Inc. All Rights Reserved.