com.amazonaws.services.elasticloadbalancing.model
Class Listener

java.lang.Object
  extended by com.amazonaws.services.elasticloadbalancing.model.Listener
All Implemented Interfaces:
java.io.Serializable

public class Listener
extends java.lang.Object
implements java.io.Serializable

The Listener data type.

See Also:
Serialized Form

Constructor Summary
Listener()
          Default constructor for a new Listener object.
Listener(java.lang.String protocol, java.lang.Integer loadBalancerPort, java.lang.Integer instancePort)
          Constructs a new Listener object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Integer getInstancePort()
          Specifies the TCP port on which the instance server is listening.
 java.lang.String getInstanceProtocol()
          Specifies the protocol to use for routing traffic to back-end instances - HTTP, HTTPS, TCP, or SSL.
 java.lang.Integer getLoadBalancerPort()
          Specifies the external load balancer port number.
 java.lang.String getProtocol()
          Specifies the load balancer transport protocol to use for routing - HTTP, HTTPS, TCP or SSL.
 java.lang.String getSSLCertificateId()
          The ARN string of the server certificate.
 int hashCode()
           
 void setInstancePort(java.lang.Integer instancePort)
          Specifies the TCP port on which the instance server is listening.
 void setInstanceProtocol(java.lang.String instanceProtocol)
          Specifies the protocol to use for routing traffic to back-end instances - HTTP, HTTPS, TCP, or SSL.
 void setLoadBalancerPort(java.lang.Integer loadBalancerPort)
          Specifies the external load balancer port number.
 void setProtocol(java.lang.String protocol)
          Specifies the load balancer transport protocol to use for routing - HTTP, HTTPS, TCP or SSL.
 void setSSLCertificateId(java.lang.String sSLCertificateId)
          The ARN string 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)
          Specifies the TCP port on which the instance server is listening.
 Listener withInstanceProtocol(java.lang.String instanceProtocol)
          Specifies the protocol to use for routing traffic to back-end instances - HTTP, HTTPS, TCP, or SSL.
 Listener withLoadBalancerPort(java.lang.Integer loadBalancerPort)
          Specifies the external load balancer port number.
 Listener withProtocol(java.lang.String protocol)
          Specifies the load balancer transport protocol to use for routing - HTTP, HTTPS, TCP or SSL.
 Listener withSSLCertificateId(java.lang.String sSLCertificateId)
          The ARN string of the server certificate.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Listener

public Listener()
Default constructor for a new Listener object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


Listener

public Listener(java.lang.String protocol,
                java.lang.Integer loadBalancerPort,
                java.lang.Integer instancePort)
Constructs a new Listener object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
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.
Method Detail

getProtocol

public java.lang.String getProtocol()
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.

Returns:
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.

setProtocol

public void setProtocol(java.lang.String 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.

Parameters:
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.

withProtocol

public Listener withProtocol(java.lang.String 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getLoadBalancerPort

public java.lang.Integer getLoadBalancerPort()
Specifies the external load balancer port number. This property cannot be modified for the life of the load balancer.

Returns:
Specifies the external load balancer port number. This property cannot be modified for the life of the load balancer.

setLoadBalancerPort

public void setLoadBalancerPort(java.lang.Integer loadBalancerPort)
Specifies the external load balancer port number. This property cannot be modified for the life of the load balancer.

Parameters:
loadBalancerPort - Specifies the external load balancer port number. This property cannot be modified for the life of the load balancer.

withLoadBalancerPort

public Listener withLoadBalancerPort(java.lang.Integer loadBalancerPort)
Specifies the external load balancer port number. This property cannot be modified for the life of the load balancer.

Returns a reference to this object so that method calls can be chained together.

Parameters:
loadBalancerPort - Specifies the external load balancer port number. This property cannot be modified for the life of the load balancer.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceProtocol

public java.lang.String getInstanceProtocol()
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. If the front-end protocol is HTTP or HTTPS, 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. If there is another listener with the same 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:
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. If the front-end protocol is HTTP or HTTPS, 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. If there is another listener with the same 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.

setInstanceProtocol

public void setInstanceProtocol(java.lang.String 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. If the front-end protocol is HTTP or HTTPS, 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. If there is another listener with the same 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.

Parameters:
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. If the front-end protocol is HTTP or HTTPS, 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. If there is another listener with the same 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.

withInstanceProtocol

public Listener withInstanceProtocol(java.lang.String 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. If the front-end protocol is HTTP or HTTPS, 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. If there is another listener with the same 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.

Parameters:
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. If the front-end protocol is HTTP or HTTPS, 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. If there is another listener with the same 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 updated object so that method calls can be chained together.

getInstancePort

public java.lang.Integer getInstancePort()
Specifies the TCP port on which the instance server is listening. This property cannot be modified for the life of the load balancer.

Constraints:
Range: 1 - 65535

Returns:
Specifies the TCP port on which the instance server is listening. This property cannot be modified for the life of the load balancer.

setInstancePort

public void setInstancePort(java.lang.Integer instancePort)
Specifies the TCP port on which the instance server is listening. This property cannot be modified for the life of the load balancer.

Constraints:
Range: 1 - 65535

Parameters:
instancePort - Specifies the TCP port on which the instance server is listening. This property cannot be modified for the life of the load balancer.

withInstancePort

public Listener withInstancePort(java.lang.Integer instancePort)
Specifies the TCP port on which the instance server is listening. This property cannot be modified for the life of the load balancer.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Range: 1 - 65535

Parameters:
instancePort - Specifies the TCP port on which the instance server is listening. This property cannot be modified for the life of the load balancer.
Returns:
A reference to this updated object so that method calls can be chained together.

getSSLCertificateId

public java.lang.String getSSLCertificateId()
The ARN string of the server certificate. To get the ARN of the server certificate, call the AWS Identity and Access Management UploadServerCertificate API.

Returns:
The ARN string of the server certificate. To get the ARN of the server certificate, call the AWS Identity and Access Management UploadServerCertificate API.

setSSLCertificateId

public void setSSLCertificateId(java.lang.String 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.

Parameters:
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.

withSSLCertificateId

public Listener withSSLCertificateId(java.lang.String 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.