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