Class UpdateContactRequest

java.lang.Object
com.intercom.api.resources.contacts.requests.UpdateContactRequest

public final class UpdateContactRequest extends Object
  • Method Details

    • getContactId

      public String getContactId()
      Returns:
      id
    • getRole

      public Optional<String> getRole()
      Returns:
      The role of the contact.
    • getExternalId

      public Optional<String> getExternalId()
      Returns:
      A unique identifier for the contact which is given to Intercom
    • getEmail

      public Optional<String> getEmail()
      Returns:
      The contacts email
    • getPhone

      public Optional<String> getPhone()
      Returns:
      The contacts phone
    • getName

      public Optional<String> getName()
      Returns:
      The contacts name
    • getAvatar

      public Optional<String> getAvatar()
      Returns:
      An image URL containing the avatar of a contact
    • getSignedUpAt

      public Optional<Integer> getSignedUpAt()
      Returns:
      The time specified for when a contact signed up
    • getLastSeenAt

      public Optional<Integer> getLastSeenAt()
      Returns:
      The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually)
    • getOwnerId

      public Optional<Integer> getOwnerId()
      Returns:
      The id of an admin that has been assigned account ownership of the contact
    • getUnsubscribedFromEmails

      public Optional<Boolean> getUnsubscribedFromEmails()
      Returns:
      Whether the contact is unsubscribed from emails
    • getCustomAttributes

      public Optional<Map<String,Object>> getCustomAttributes()
      Returns:
      The custom attributes which are set for the contact
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static UpdateContactRequest.ContactIdStage builder()