public class ListenerDescription extends Object implements Serializable
The ListenerDescription data type.
| Constructor and Description |
|---|
ListenerDescription()
Default constructor for a new ListenerDescription object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Listener |
getListener()
The Listener data type.
|
List<String> |
getPolicyNames()
A list of policies enabled for this listener.
|
int |
hashCode() |
void |
setListener(Listener listener)
The Listener data type.
|
void |
setPolicyNames(Collection<String> policyNames)
A list of policies enabled for this listener.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListenerDescription |
withListener(Listener listener)
The Listener data type.
|
ListenerDescription |
withPolicyNames(Collection<String> policyNames)
A list of policies enabled for this listener.
|
ListenerDescription |
withPolicyNames(String... policyNames)
A list of policies enabled for this listener.
|
public ListenerDescription()
public Listener getListener()
public void setListener(Listener listener)
listener - The Listener data type.public ListenerDescription withListener(Listener listener)
Returns a reference to this object so that method calls can be chained together.
listener - The Listener data type.public List<String> getPolicyNames()
public void setPolicyNames(Collection<String> policyNames)
policyNames - A list of policies enabled for this listener. An empty list indicates
that no policies are enabled.public ListenerDescription withPolicyNames(String... policyNames)
Returns a reference to this object so that method calls can be chained together.
policyNames - A list of policies enabled for this listener. An empty list indicates
that no policies are enabled.public ListenerDescription withPolicyNames(Collection<String> policyNames)
Returns a reference to this object so that method calls can be chained together.
policyNames - A list of policies enabled for this listener. An empty list indicates
that no policies are enabled.public String toString()
toString in class ObjectObject.toString()Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.