Package com.intercom.api.types
Class CollectionList.Builder
- java.lang.Object
-
- com.intercom.api.types.CollectionList.Builder
-
- All Implemented Interfaces:
CollectionList._FinalStage,CollectionList.TotalCountStage
- Enclosing class:
- CollectionList
public static final class CollectionList.Builder extends java.lang.Object implements CollectionList.TotalCountStage, CollectionList._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionList._FinalStageaddAllData(java.util.List<Collection> data)An array of collection objectsCollectionList._FinalStageaddData(Collection data)An array of collection objectsCollectionListbuild()CollectionList._FinalStagedata(java.util.List<Collection> data)An array of collection objectsCollectionList.Builderfrom(CollectionList other)CollectionList._FinalStagepages(OffsetPages pages)CollectionList._FinalStagepages(java.util.Optional<OffsetPages> pages)CollectionList._FinalStagetotalCount(int totalCount)A count of the total number of collections.
-
-
-
Method Detail
-
from
public CollectionList.Builder from(CollectionList other)
- Specified by:
fromin interfaceCollectionList.TotalCountStage
-
totalCount
public CollectionList._FinalStage totalCount(int totalCount)
A count of the total number of collections.A count of the total number of collections.
- Specified by:
totalCountin interfaceCollectionList.TotalCountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAllData
public CollectionList._FinalStage addAllData(java.util.List<Collection> data)
An array of collection objects
- Specified by:
addAllDatain interfaceCollectionList._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addData
public CollectionList._FinalStage addData(Collection data)
An array of collection objects
- Specified by:
addDatain interfaceCollectionList._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
data
public CollectionList._FinalStage data(java.util.List<Collection> data)
An array of collection objects
- Specified by:
datain interfaceCollectionList._FinalStage
-
pages
public CollectionList._FinalStage pages(OffsetPages pages)
- Specified by:
pagesin interfaceCollectionList._FinalStage
-
pages
public CollectionList._FinalStage pages(java.util.Optional<OffsetPages> pages)
- Specified by:
pagesin interfaceCollectionList._FinalStage
-
build
public CollectionList build()
- Specified by:
buildin interfaceCollectionList._FinalStage
-
-