@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ContactFilter extends Object implements Serializable, Cloneable, StructuredPojo
Filters user data based on the contact information that is associated to the users. It contains a list of contact states.
Constructor and Description |
---|
ContactFilter() |
Modifier and Type | Method and Description |
---|---|
ContactFilter |
clone() |
boolean |
equals(Object obj) |
List<String> |
getContactStates()
A list of up to 9 contact states.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContactStates(Collection<String> contactStates)
A list of up to 9 contact states.
|
String |
toString()
Returns a string representation of this object.
|
ContactFilter |
withContactStates(Collection<String> contactStates)
A list of up to 9 contact states.
|
ContactFilter |
withContactStates(ContactState... contactStates)
A list of up to 9 contact states.
|
ContactFilter |
withContactStates(String... contactStates)
A list of up to 9 contact states.
|
public List<String> getContactStates()
A list of up to 9 contact states.
ContactState
public void setContactStates(Collection<String> contactStates)
A list of up to 9 contact states.
contactStates
- A list of up to 9 contact states.ContactState
public ContactFilter withContactStates(String... contactStates)
A list of up to 9 contact states.
NOTE: This method appends the values to the existing list (if any). Use
setContactStates(java.util.Collection)
or withContactStates(java.util.Collection)
if you want
to override the existing values.
contactStates
- A list of up to 9 contact states.ContactState
public ContactFilter withContactStates(Collection<String> contactStates)
A list of up to 9 contact states.
contactStates
- A list of up to 9 contact states.ContactState
public ContactFilter withContactStates(ContactState... contactStates)
A list of up to 9 contact states.
contactStates
- A list of up to 9 contact states.ContactState
public String toString()
toString
in class Object
Object.toString()
public ContactFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.