Class Segment.Builder

    • Method Detail

      • id

        public Segment.NameStage id​(@NotNull
                                    java.lang.String id)
        The unique identifier representing the segment.

        The unique identifier representing the segment.

        Specified by:
        id in interface Segment.IdStage
        Returns:
        Reference to this so that method calls can be chained together.
      • name

        public Segment.CreatedAtStage name​(@NotNull
                                           java.lang.String name)
        The name of the segment.

        The name of the segment.

        Specified by:
        name in interface Segment.NameStage
        Returns:
        Reference to this so that method calls can be chained together.
      • createdAt

        public Segment.PersonTypeStage createdAt​(int createdAt)
        The time the segment was created.

        The time the segment was created.

        Specified by:
        createdAt in interface Segment.CreatedAtStage
        Returns:
        Reference to this so that method calls can be chained together.
      • count

        public Segment._FinalStage count​(java.lang.Integer count)

        The number of items in the user segment. It's returned when include_count=true is included in the request.

        Specified by:
        count in interface Segment._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • count

        public Segment._FinalStage count​(java.util.Optional<java.lang.Integer> count)

        The number of items in the user segment. It's returned when include_count=true is included in the request.

        Specified by:
        count in interface Segment._FinalStage
      • updatedAt

        public Segment._FinalStage updatedAt​(java.lang.Integer updatedAt)

        The time the segment was updated.

        Specified by:
        updatedAt in interface Segment._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.