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()
           
 
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.
 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.
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Listener

public Listener()
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.


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