Class ContactFilter
- java.lang.Object
-
- software.amazon.awssdk.services.connect.model.ContactFilter
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ContactFilter.Builder,ContactFilter>
@Generated("software.amazon.awssdk:codegen") public final class ContactFilter extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ContactFilter.Builder,ContactFilter>
Filters user data based on the contact information that is associated to the users. It contains a list of contact states.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceContactFilter.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContactFilter.Builderbuilder()List<ContactState>contactStates()A list of up to 9 contact states.List<String>contactStatesAsStrings()A list of up to 9 contact states.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasContactStates()For responses, this returns true if the service returned a value for the ContactStates property.inthashCode()List<SdkField<?>>sdkFields()static Class<? extends ContactFilter.Builder>serializableBuilderClass()ContactFilter.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
contactStates
public final List<ContactState> contactStates()
A list of up to 9 contact states.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasContactStates()method.- Returns:
- A list of up to 9 contact states.
-
hasContactStates
public final boolean hasContactStates()
For responses, this returns true if the service returned a value for the ContactStates property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
contactStatesAsStrings
public final List<String> contactStatesAsStrings()
A list of up to 9 contact states.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasContactStates()method.- Returns:
- A list of up to 9 contact states.
-
toBuilder
public ContactFilter.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ContactFilter.Builder,ContactFilter>
-
builder
public static ContactFilter.Builder builder()
-
serializableBuilderClass
public static Class<? extends ContactFilter.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-