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,Segment.UpdatedAtStage
- Enclosing class:
- Segment
public static final class Segment.Builder extends java.lang.Object implements Segment.IdStage, Segment.NameStage, Segment.CreatedAtStage, Segment.UpdatedAtStage, Segment.PersonTypeStage, Segment._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Segmentbuild()Segment._FinalStagecount(java.lang.Integer count)The number of items in the user segment.Segment._FinalStagecount(java.util.Optional<java.lang.Integer> count)The number of items in the user segment.Segment.UpdatedAtStagecreatedAt(int createdAt)The time the segment was created.Segment.Builderfrom(Segment other)Segment.NameStageid(java.lang.String id)The unique identifier representing the segment.Segment.CreatedAtStagename(java.lang.String name)The name of the segment.Segment._FinalStagepersonType(Segment.PersonType personType)Type of the contact: contact (lead) or user.Segment.PersonTypeStageupdatedAt(int updatedAt)The time the segment was updated.
-
-
-
Method Detail
-
from
public Segment.Builder from(Segment other)
- Specified by:
fromin interfaceSegment.IdStage
-
id
public Segment.NameStage id(@NotNull java.lang.String id)
The unique identifier representing the segment.
The unique identifier representing the segment.
- Specified by:
idin interfaceSegment.IdStage- Returns:
- Reference to
thisso 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:
namein interfaceSegment.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public Segment.UpdatedAtStage createdAt(int createdAt)
The time the segment was created.
The time the segment was created.
- Specified by:
createdAtin interfaceSegment.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public Segment.PersonTypeStage updatedAt(int updatedAt)
The time the segment was updated.
The time the segment was updated.
- Specified by:
updatedAtin interfaceSegment.UpdatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
personType
public Segment._FinalStage personType(@NotNull Segment.PersonType personType)
Type of the contact: contact (lead) or user.
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
public Segment._FinalStage count(java.lang.Integer 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
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=trueis included in the request.- Specified by:
countin interfaceSegment._FinalStage
-
build
public Segment build()
- Specified by:
buildin interfaceSegment._FinalStage
-
-