com.amazonaws.services.elasticbeanstalk.model
Class Listener

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

public class Listener
extends Object

Describes the properties of a Listener for the LoadBalancer.


Constructor Summary
Listener()
           
 
Method Summary
 Integer getPort()
          The port that is used by the Listener.
 String getProtocol()
          The protocol that is used by the Listener.
 void setPort(Integer port)
          The port that is used by the Listener.
 void setProtocol(String protocol)
          The protocol that is used by the Listener.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Listener withPort(Integer port)
          The port that is used by the Listener.
 Listener withProtocol(String protocol)
          The protocol that is used by the Listener.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Listener

public Listener()
Method Detail

getProtocol

public String getProtocol()
The protocol that is used by the Listener.

Returns:
The protocol that is used by the Listener.

setProtocol

public void setProtocol(String protocol)
The protocol that is used by the Listener.

Parameters:
protocol - The protocol that is used by the Listener.

withProtocol

public Listener withProtocol(String protocol)
The protocol that is used by the Listener.

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

Parameters:
protocol - The protocol that is used by the Listener.
Returns:
A reference to this updated object so that method calls can be chained together.

getPort

public Integer getPort()
The port that is used by the Listener.

Returns:
The port that is used by the Listener.

setPort

public void setPort(Integer port)
The port that is used by the Listener.

Parameters:
port - The port that is used by the Listener.

withPort

public Listener withPort(Integer port)
The port that is used by the Listener.

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

Parameters:
port - The port that is used by the Listener.
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.