public class ListenerDescription extends Object implements Serializable, Cloneable
The policies enabled for a listener.
Constructor and Description |
---|
ListenerDescription()
Default constructor for a new ListenerDescription object.
|
Modifier and Type | Method and Description |
---|---|
ListenerDescription |
clone() |
boolean |
equals(Object obj) |
Listener |
getListener()
Information about a listener.
|
List<String> |
getPolicyNames()
The policies.
|
int |
hashCode() |
void |
setListener(Listener listener)
Information about a listener.
|
void |
setPolicyNames(Collection<String> policyNames)
The policies.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListenerDescription |
withListener(Listener listener)
Information about a listener.
|
ListenerDescription |
withPolicyNames(Collection<String> policyNames)
The policies.
|
ListenerDescription |
withPolicyNames(String... policyNames)
The policies.
|
public ListenerDescription()
public Listener getListener()
For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
public void setListener(Listener listener)
For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
listener
- Information about a listener. For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
public ListenerDescription withListener(Listener listener)
For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
Returns a reference to this object so that method calls can be chained together.
listener
- Information about a listener. For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
public List<String> getPolicyNames()
public void setPolicyNames(Collection<String> policyNames)
policyNames
- The policies. If there are no policies enabled, the list is empty.public ListenerDescription withPolicyNames(String... policyNames)
NOTE: This method appends the values to the existing list (if
any). Use setPolicyNames(java.util.Collection)
or withPolicyNames(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
policyNames
- The policies. If there are no policies enabled, the list is empty.public ListenerDescription withPolicyNames(Collection<String> policyNames)
Returns a reference to this object so that method calls can be chained together.
policyNames
- The policies. If there are no policies enabled, the list is empty.public String toString()
toString
in class Object
Object.toString()
public ListenerDescription clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.