Class Segment.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.segments.types.Segment.Builder
-
- Enclosing class:
- Segment
public static final class Segment.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Segmentbuild()Segment.Buildercount(java.lang.Integer count)Segment.Buildercount(java.util.Optional<java.lang.Integer> count)The number of items in the user segment.Segment.BuildercreatedAt(java.lang.Integer createdAt)Segment.BuildercreatedAt(java.util.Optional<java.lang.Integer> createdAt)The time the segment was created.Segment.Builderfrom(Segment other)Segment.Builderid(java.lang.String id)Segment.Builderid(java.util.Optional<java.lang.String> id)The unique identifier representing the segment.Segment.Buildername(java.lang.String name)Segment.Buildername(java.util.Optional<java.lang.String> name)The name of the segment.Segment.BuilderpersonType(Segment.PersonType personType)Segment.BuilderpersonType(java.util.Optional<Segment.PersonType> personType)Type of the contact: contact (lead) or user.Segment.Buildertype(java.lang.String type)Segment.Buildertype(java.util.Optional<java.lang.String> type)The type of object.Segment.BuilderupdatedAt(java.lang.Integer updatedAt)Segment.BuilderupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)The time the segment was updated.
-
-
-
Method Detail
-
from
public Segment.Builder from(Segment other)
-
type
public Segment.Builder type(java.util.Optional<java.lang.String> type)
The type of object.
-
type
public Segment.Builder type(java.lang.String type)
-
id
public Segment.Builder id(java.util.Optional<java.lang.String> id)
The unique identifier representing the segment.
-
id
public Segment.Builder id(java.lang.String id)
-
name
public Segment.Builder name(java.util.Optional<java.lang.String> name)
The name of the segment.
-
name
public Segment.Builder name(java.lang.String name)
-
createdAt
public Segment.Builder createdAt(java.util.Optional<java.lang.Integer> createdAt)
The time the segment was created.
-
createdAt
public Segment.Builder createdAt(java.lang.Integer createdAt)
-
updatedAt
public Segment.Builder updatedAt(java.util.Optional<java.lang.Integer> updatedAt)
The time the segment was updated.
-
updatedAt
public Segment.Builder updatedAt(java.lang.Integer updatedAt)
-
personType
public Segment.Builder personType(java.util.Optional<Segment.PersonType> personType)
Type of the contact: contact (lead) or user.
-
personType
public Segment.Builder personType(Segment.PersonType personType)
-
count
public Segment.Builder 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.
-
count
public Segment.Builder count(java.lang.Integer count)
-
build
public Segment build()
-
-