Class Listener
- java.lang.Object
-
- com.amazonaws.services.elasticbeanstalk.model.Listener
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Listener extends Object implements Serializable, Cloneable
Describes the properties of a Listener for the LoadBalancer.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Listener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Listenerclone()booleanequals(Object obj)IntegergetPort()The port that is used by the Listener.StringgetProtocol()The protocol that is used by the Listener.inthashCode()voidsetPort(Integer port)The port that is used by the Listener.voidsetProtocol(String protocol)The protocol that is used by the Listener.StringtoString()Returns a string representation of this object; useful for testing and debugging.ListenerwithPort(Integer port)The port that is used by the Listener.ListenerwithProtocol(String protocol)The protocol that is used by the Listener.
-
-
-
Method Detail
-
setProtocol
public void setProtocol(String protocol)
The protocol that is used by the Listener.
- Parameters:
protocol- The protocol that is used by the Listener.
-
getProtocol
public String getProtocol()
The protocol that is used by the Listener.
- Returns:
- The protocol that is used by the Listener.
-
withProtocol
public Listener withProtocol(String protocol)
The protocol that is used by the Listener.
- Parameters:
protocol- The protocol that is used by the Listener.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPort
public void setPort(Integer port)
The port that is used by the Listener.
- Parameters:
port- The port that is used by the Listener.
-
getPort
public Integer getPort()
The port that is used by the Listener.
- Returns:
- The port that is used by the Listener.
-
withPort
public Listener withPort(Integer port)
The port that is used by the Listener.
- Parameters:
port- The port that is used by the Listener.- Returns:
- Returns a reference to this 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-