Class SegmentList.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.types.SegmentList.Builder
-
- Enclosing class:
- SegmentList
public static final class SegmentList.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentListbuild()SegmentList.Builderfrom(SegmentList other)SegmentList.Builderpages(java.util.Map<java.lang.String,java.lang.Object> pages)SegmentList.Builderpages(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> pages)A pagination object, which may be empty, indicating no further pages to fetch.SegmentList.Buildersegments(java.util.List<Segment> segments)SegmentList.Buildersegments(java.util.Optional<java.util.List<Segment>> segments)A list of Segment objectsSegmentList.Buildertype(java.lang.String type)SegmentList.Buildertype(java.util.Optional<java.lang.String> type)The type of the object
-
-
-
Method Detail
-
from
public SegmentList.Builder from(SegmentList other)
-
type
public SegmentList.Builder type(java.util.Optional<java.lang.String> type)
The type of the object
-
type
public SegmentList.Builder type(java.lang.String type)
-
segments
public SegmentList.Builder segments(java.util.Optional<java.util.List<Segment>> segments)
A list of Segment objects
-
segments
public SegmentList.Builder segments(java.util.List<Segment> segments)
-
pages
public SegmentList.Builder pages(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> pages)
A pagination object, which may be empty, indicating no further pages to fetch.
-
pages
public SegmentList.Builder pages(java.util.Map<java.lang.String,java.lang.Object> pages)
-
build
public SegmentList build()
-
-