Class Segment


  • public final class Segment
    extends java.lang.Object
    • Method Detail

      • getType

        public java.util.Optional<java.lang.String> getType()
        Returns:
        The type of object.
      • getId

        public java.util.Optional<java.lang.String> getId()
        Returns:
        The unique identifier representing the segment.
      • getName

        public java.util.Optional<java.lang.String> getName()
        Returns:
        The name of the segment.
      • getCreatedAt

        public java.util.Optional<java.lang.Integer> getCreatedAt()
        Returns:
        The time the segment was created.
      • getUpdatedAt

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

        public java.util.Optional<Segment.PersonType> getPersonType()
        Returns:
        Type of the contact: contact (lead) or user.
      • getCount

        public java.util.Optional<java.lang.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​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object