Class CreateContactRequest.WithRole

java.lang.Object
com.intercom.api.types.CreateContactRequest.WithRole
Enclosing class:
CreateContactRequest

public static final class CreateContactRequest.WithRole extends Object
  • Method Details

    • getRole

      public String getRole()
      Returns:
      The role of the contact.
    • 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 CreateContactRequest.WithRole.RoleStage builder()