Class Contacts
- java.lang.Object
-
- software.amazon.awssdk.services.geoplaces.model.Contacts
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Contacts.Builder,Contacts>
@Generated("software.amazon.awssdk:codegen") public final class Contacts extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Contacts.Builder,Contacts>
A list of potential contact methods for the result/place.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceContacts.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Contacts.Builderbuilder()List<ContactDetails>emails()List of emails for contacts of the result.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)List<ContactDetails>faxes()List of fax addresses for the result contact.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasEmails()For responses, this returns true if the service returned a value for the Emails property.booleanhasFaxes()For responses, this returns true if the service returned a value for the Faxes property.inthashCode()booleanhasPhones()For responses, this returns true if the service returned a value for the Phones property.booleanhasWebsites()For responses, this returns true if the service returned a value for the Websites property.List<ContactDetails>phones()List of phone numbers for the results contact.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Contacts.Builder>serializableBuilderClass()Contacts.BuildertoBuilder()StringtoString()Returns a string representation of this object.List<ContactDetails>websites()List of website URLs that belong to the result.-
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
-
hasPhones
public final boolean hasPhones()
For responses, this returns true if the service returned a value for the Phones 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.
-
phones
public final List<ContactDetails> phones()
List of phone numbers for the results contact.
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
hasPhones()method.- Returns:
- List of phone numbers for the results contact.
-
hasFaxes
public final boolean hasFaxes()
For responses, this returns true if the service returned a value for the Faxes 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.
-
faxes
public final List<ContactDetails> faxes()
List of fax addresses for the result contact.
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
hasFaxes()method.- Returns:
- List of fax addresses for the result contact.
-
hasWebsites
public final boolean hasWebsites()
For responses, this returns true if the service returned a value for the Websites 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.
-
websites
public final List<ContactDetails> websites()
List of website URLs that belong to the result.
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
hasWebsites()method.- Returns:
- List of website URLs that belong to the result.
-
hasEmails
public final boolean hasEmails()
For responses, this returns true if the service returned a value for the Emails 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.
-
emails
public final List<ContactDetails> emails()
List of emails for contacts of the result.
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
hasEmails()method.- Returns:
- List of emails for contacts of the result.
-
toBuilder
public Contacts.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Contacts.Builder,Contacts>
-
builder
public static Contacts.Builder builder()
-
serializableBuilderClass
public static Class<? extends Contacts.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-