@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Listener extends Object implements Serializable, Cloneable
Describes the properties of a Listener for the LoadBalancer.
Constructor and Description |
---|
Listener() |
Modifier and Type | Method and Description |
---|---|
Listener |
clone() |
boolean |
equals(Object obj) |
Integer |
getPort()
The port that is used by the Listener.
|
String |
getProtocol()
The protocol that is used by the Listener.
|
int |
hashCode() |
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.
|
Listener |
withPort(Integer port)
The port that is used by the Listener.
|
Listener |
withProtocol(String protocol)
The protocol that is used by the Listener.
|
public void setProtocol(String protocol)
The protocol that is used by the Listener.
protocol
- The protocol that is used by the Listener.public String getProtocol()
The protocol that is used by the Listener.
public Listener withProtocol(String protocol)
The protocol that is used by the Listener.
protocol
- The protocol that is used by the Listener.public void setPort(Integer port)
The port that is used by the Listener.
port
- The port that is used by the Listener.public Integer getPort()
The port that is used by the Listener.
public Listener withPort(Integer port)
The port that is used by the Listener.
port
- The port that is used by the Listener.public String toString()
toString
in class Object
Object.toString()