Package com.intercom.api.types
Class ContactCompanies.Builder
java.lang.Object
com.intercom.api.types.ContactCompanies.Builder
- All Implemented Interfaces:
ContactCompanies._FinalStage,ContactCompanies.HasMoreStage,ContactCompanies.TotalCountStage,ContactCompanies.UrlStage
- Enclosing class:
ContactCompanies
public static final class ContactCompanies.Builder
extends Object
implements ContactCompanies.UrlStage, ContactCompanies.TotalCountStage, ContactCompanies.HasMoreStage, ContactCompanies._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionbuild()data(List<ContactCompany> data) An array containing Company Objectsdata(Optional<List<ContactCompany>> data) from(ContactCompanies other) hasMore(boolean hasMore) Whether there's more Addressable Objects to be viewed.totalCount(int totalCount) Int representing the total number of companyies attached to this contactThe type of objectUrl to get more company resources for this contact
-
Method Details
-
from
- Specified by:
fromin interfaceContactCompanies.UrlStage
-
url
Url to get more company resources for this contact
- Specified by:
urlin interfaceContactCompanies.UrlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
totalCount
Int representing the total number of companyies attached to this contact
- Specified by:
totalCountin interfaceContactCompanies.TotalCountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
hasMore
Whether there's more Addressable Objects to be viewed. If true, use the url to view all
- Specified by:
hasMorein interfaceContactCompanies.HasMoreStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
data
An array containing Company Objects
- Specified by:
datain interfaceContactCompanies._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
data
- Specified by:
datain interfaceContactCompanies._FinalStage
-
type
The type of object
- Specified by:
typein interfaceContactCompanies._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
- Specified by:
typein interfaceContactCompanies._FinalStage
-
build
- Specified by:
buildin interfaceContactCompanies._FinalStage
-