Class CompanyList.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.types.CompanyList.Builder
-
- Enclosing class:
- CompanyList
public static final class CompanyList.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompanyListbuild()CompanyList.Builderdata(java.util.List<Company> data)CompanyList.Builderdata(java.util.Optional<java.util.List<Company>> data)An array containing Company Objects.CompanyList.Builderfrom(CompanyList other)CompanyList.Builderpages(CursorPages pages)CompanyList.Builderpages(java.util.Optional<CursorPages> pages)CompanyList.BuildertotalCount(java.lang.Integer totalCount)CompanyList.BuildertotalCount(java.util.Optional<java.lang.Integer> totalCount)The total number of companies.CompanyList.Buildertype(java.lang.String type)CompanyList.Buildertype(java.util.Optional<java.lang.String> type)The type of object -list.
-
-
-
Method Detail
-
from
public CompanyList.Builder from(CompanyList other)
-
type
public CompanyList.Builder type(java.util.Optional<java.lang.String> type)
The type of object -
list.
-
type
public CompanyList.Builder type(java.lang.String type)
-
pages
public CompanyList.Builder pages(java.util.Optional<CursorPages> pages)
-
pages
public CompanyList.Builder pages(CursorPages pages)
-
totalCount
public CompanyList.Builder totalCount(java.util.Optional<java.lang.Integer> totalCount)
The total number of companies.
-
totalCount
public CompanyList.Builder totalCount(java.lang.Integer totalCount)
-
data
public CompanyList.Builder data(java.util.Optional<java.util.List<Company>> data)
An array containing Company Objects.
-
data
public CompanyList.Builder data(java.util.List<Company> data)
-
build
public CompanyList build()
-
-