Class ContactList.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.types.ContactList.Builder
-
- Enclosing class:
- ContactList
public static final class ContactList.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContactListbuild()ContactList.Builderdata(java.util.List<Contact> data)ContactList.Builderdata(java.util.Optional<java.util.List<Contact>> data)The list of contact objectsContactList.Builderfrom(ContactList other)ContactList.Builderpages(CursorPages pages)ContactList.Builderpages(java.util.Optional<CursorPages> pages)ContactList.BuildertotalCount(java.lang.Integer totalCount)ContactList.BuildertotalCount(java.util.Optional<java.lang.Integer> totalCount)A count of the total number of objects.ContactList.Buildertype(java.lang.String type)ContactList.Buildertype(java.util.Optional<java.lang.String> type)Always list
-
-
-
Method Detail
-
from
public ContactList.Builder from(ContactList other)
-
type
public ContactList.Builder type(java.util.Optional<java.lang.String> type)
Always list
-
type
public ContactList.Builder type(java.lang.String type)
-
data
public ContactList.Builder data(java.util.Optional<java.util.List<Contact>> data)
The list of contact objects
-
data
public ContactList.Builder data(java.util.List<Contact> data)
-
totalCount
public ContactList.Builder totalCount(java.util.Optional<java.lang.Integer> totalCount)
A count of the total number of objects.
-
totalCount
public ContactList.Builder totalCount(java.lang.Integer totalCount)
-
pages
public ContactList.Builder pages(java.util.Optional<CursorPages> pages)
-
pages
public ContactList.Builder pages(CursorPages pages)
-
build
public ContactList build()
-
-