Class Segment.Builder
java.lang.Object
com.intercom.api.resources.segments.types.Segment.Builder
- All Implemented Interfaces:
Segment._FinalStage,Segment.CreatedAtStage,Segment.IdStage,Segment.NameStage,Segment.PersonTypeStage
- Enclosing class:
Segment
public static final class Segment.Builder
extends Object
implements Segment.IdStage, Segment.NameStage, Segment.CreatedAtStage, Segment.PersonTypeStage, Segment._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionbuild()The number of items in the user segment.createdAt(int createdAt) The time the segment was created.The unique identifier representing the segment.The name of the segment.personType(Segment.PersonType personType) Type of the contact: contact (lead) or user.The time the segment was updated.
-
Method Details
-
from
- Specified by:
fromin interfaceSegment.IdStage
-
id
The unique identifier representing the segment.
- Specified by:
idin interfaceSegment.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
The name of the segment.
- Specified by:
namein interfaceSegment.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
The time the segment was created.
- Specified by:
createdAtin interfaceSegment.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
personType
Type of the contact: contact (lead) or user.
- Specified by:
personTypein interfaceSegment.PersonTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
count
The number of items in the user segment. It's returned when
include_count=trueis included in the request.- Specified by:
countin interfaceSegment._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
count
- Specified by:
countin interfaceSegment._FinalStage
-
updatedAt
The time the segment was updated.
- Specified by:
updatedAtin interfaceSegment._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
- Specified by:
updatedAtin interfaceSegment._FinalStage
-
build
- Specified by:
buildin interfaceSegment._FinalStage
-