com.amazonaws.services.elasticloadbalancing.model
Class Listener

java.lang.Object
  extended by com.amazonaws.services.elasticloadbalancing.model.Listener

public class Listener
extends Object

The Listener data type.


Constructor Summary
Listener()
          Default constructor for a new Listener object.
Listener(String protocol, Integer loadBalancerPort, Integer instancePort)
          Constructs a new Listener object.
 
Method Summary
 Integer getInstancePort()
          Specifies the TCP port on which the instance server is listening.
 Integer getLoadBalancerPort()
          Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP.
 String getProtocol()
          Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP.
 String getSSLCertificateId()
          The ID of the SSL certificate chain to use.
 void setInstancePort(Integer instancePort)
          Specifies the TCP port on which the instance server is listening.
 void setLoadBalancerPort(Integer loadBalancerPort)
          Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP.
 void setProtocol(String protocol)
          Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP.
 void setSSLCertificateId(String sSLCertificateId)
          The ID of the SSL certificate chain to use.
 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 withLoadBalancerPort(Integer loadBalancerPort)
          Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP.
 Listener withProtocol(String protocol)
          Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP.
 Listener withSSLCertificateId(String sSLCertificateId)
          The ID of the SSL certificate chain to use.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, 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(String protocol,
                Integer loadBalancerPort,
                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 LoadBalancer transport protocol to use for routing - TCP or HTTP. This property cannot be modified for the life of the LoadBalancer.
loadBalancerPort - Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP. This property cannot be modified for the life of the LoadBalancer.
instancePort - Specifies the TCP port on which the instance server is listening. This property cannot be modified for the life of the LoadBalancer.
Method Detail

getProtocol

public String getProtocol()
Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP. This property cannot be modified for the life of the LoadBalancer.

Returns:
Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP. This property cannot be modified for the life of the LoadBalancer.

setProtocol

public void setProtocol(String protocol)
Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP. This property cannot be modified for the life of the LoadBalancer.

Parameters:
protocol - Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP. This property cannot be modified for the life of the LoadBalancer.

withProtocol

public Listener withProtocol(String protocol)
Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP. This property cannot be modified for the life of the LoadBalancer.

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

Parameters:
protocol - Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP. This property cannot be modified for the life of the LoadBalancer.
Returns:
A reference to this updated object so that method calls can be chained together.

getLoadBalancerPort

public Integer getLoadBalancerPort()
Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP. This property cannot be modified for the life of the LoadBalancer.

Returns:
Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP. This property cannot be modified for the life of the LoadBalancer.

setLoadBalancerPort

public void setLoadBalancerPort(Integer loadBalancerPort)
Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP. This property cannot be modified for the life of the LoadBalancer.

Parameters:
loadBalancerPort - Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP. This property cannot be modified for the life of the LoadBalancer.

withLoadBalancerPort

public Listener withLoadBalancerPort(Integer loadBalancerPort)
Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP. This property cannot be modified for the life of the LoadBalancer.

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

Parameters:
loadBalancerPort - Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP. This property cannot be modified for the life of the LoadBalancer.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstancePort

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

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 LoadBalancer.

setInstancePort

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

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 LoadBalancer.

withInstancePort

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

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

getSSLCertificateId

public String getSSLCertificateId()
The ID of the SSL certificate chain to use. For more information on SSL certificates, see Managing Keys and Certificates in the AWS Identity and Access Management documentation.

Returns:
The ID of the SSL certificate chain to use. For more information on SSL certificates, see Managing Keys and Certificates in the AWS Identity and Access Management documentation.

setSSLCertificateId

public void setSSLCertificateId(String sSLCertificateId)
The ID of the SSL certificate chain to use. For more information on SSL certificates, see Managing Keys and Certificates in the AWS Identity and Access Management documentation.

Parameters:
sSLCertificateId - The ID of the SSL certificate chain to use. For more information on SSL certificates, see Managing Keys and Certificates in the AWS Identity and Access Management documentation.

withSSLCertificateId

public Listener withSSLCertificateId(String sSLCertificateId)
The ID of the SSL certificate chain to use. For more information on SSL certificates, see Managing Keys and Certificates in the AWS Identity and Access Management documentation.

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

Parameters:
sSLCertificateId - The ID of the SSL certificate chain to use. For more information on SSL certificates, see Managing Keys and Certificates in the AWS Identity and Access Management documentation.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

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

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


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