public class ListenerDescription
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The policies enabled for a listener.
Modifier and Type | Field and Description |
---|---|
private Listener |
listener |
private SdkInternalList<java.lang.String> |
policyNames
The policies.
|
Constructor and Description |
---|
ListenerDescription() |
Modifier and Type | Method and Description |
---|---|
ListenerDescription |
clone() |
boolean |
equals(java.lang.Object obj) |
Listener |
getListener() |
java.util.List<java.lang.String> |
getPolicyNames()
The policies.
|
int |
hashCode() |
void |
setListener(Listener listener) |
void |
setPolicyNames(java.util.Collection<java.lang.String> policyNames)
The policies.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListenerDescription |
withListener(Listener listener) |
ListenerDescription |
withPolicyNames(java.util.Collection<java.lang.String> policyNames)
The policies.
|
ListenerDescription |
withPolicyNames(java.lang.String... policyNames)
The policies.
|
private Listener listener
private SdkInternalList<java.lang.String> policyNames
The policies. If there are no policies enabled, the list is empty.
public void setListener(Listener listener)
listener
- public Listener getListener()
public ListenerDescription withListener(Listener listener)
listener
- public java.util.List<java.lang.String> getPolicyNames()
The policies. If there are no policies enabled, the list is empty.
public void setPolicyNames(java.util.Collection<java.lang.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(java.lang.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(java.util.Collection<java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ListenerDescription clone()
clone
in class java.lang.Object