java.lang.Object
com.intercom.api.resources.segments.types.Segment

public final class Segment extends Object
  • Method Details

    • getType

      public String getType()
      Returns:
      The type of object.
    • getId

      public String getId()
      Returns:
      The unique identifier representing the segment.
    • getName

      public String getName()
      Returns:
      The name of the segment.
    • getCreatedAt

      public int getCreatedAt()
      Returns:
      The time the segment was created.
    • getUpdatedAt

      public Optional<Integer> getUpdatedAt()
      Returns:
      The time the segment was updated.
    • getPersonType

      public Segment.PersonType getPersonType()
      Returns:
      Type of the contact: contact (lead) or user.
    • getCount

      public Optional<Integer> getCount()
      Returns:
      The number of items in the user segment. It's returned when include_count=true is included in the request.
    • 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 Segment.IdStage builder()