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