@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListenerDescription extends Object implements Serializable, Cloneable
The policies enabled for a listener.
Constructor and Description |
---|
ListenerDescription() |
Modifier and Type | Method and Description |
---|---|
ListenerDescription |
clone() |
boolean |
equals(Object obj) |
Listener |
getListener()
The listener.
|
List<String> |
getPolicyNames()
The policies.
|
int |
hashCode() |
void |
setListener(Listener listener)
The 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)
The listener.
|
ListenerDescription |
withPolicyNames(Collection<String> policyNames)
The policies.
|
ListenerDescription |
withPolicyNames(String... policyNames)
The policies.
|
public void setListener(Listener listener)
The listener.
listener
- The listener.public Listener getListener()
The listener.
public ListenerDescription withListener(Listener listener)
The listener.
listener
- The listener.public List<String> getPolicyNames()
The policies. If there are no policies enabled, the list is empty.
public void setPolicyNames(Collection<String> policyNames)
The policies. If there are no policies enabled, the list is empty.
policyNames
- The policies. If there are no policies enabled, the list is empty.public ListenerDescription withPolicyNames(String... policyNames)
The policies. If there are no policies enabled, the list is empty.
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.
policyNames
- The policies. If there are no policies enabled, the list is empty.public ListenerDescription withPolicyNames(Collection<String> policyNames)
The policies. If there are no policies enabled, the list is empty.
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.