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 java.lang.Object implements ContactCompanies.UrlStage, ContactCompanies.TotalCountStage, ContactCompanies.HasMoreStage, ContactCompanies._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContactCompaniesbuild()ContactCompanies._FinalStagedata(java.util.List<ContactCompany> data)An array containing Company ObjectsContactCompanies._FinalStagedata(java.util.Optional<java.util.List<ContactCompany>> data)An array containing Company ObjectsContactCompanies.Builderfrom(ContactCompanies other)ContactCompanies._FinalStagehasMore(boolean hasMore)Whether there's more Addressable Objects to be viewed.ContactCompanies.HasMoreStagetotalCount(int totalCount)Int representing the total number of companyies attached to this contactContactCompanies._FinalStagetype(java.lang.String type)The type of objectContactCompanies._FinalStagetype(java.util.Optional<java.lang.String> type)The type of objectContactCompanies.TotalCountStageurl(java.lang.String url)Url to get more company resources for this contact
-
-
-
Method Detail
-
from
public ContactCompanies.Builder from(ContactCompanies other)
- Specified by:
fromin interfaceContactCompanies.UrlStage
-
url
public ContactCompanies.TotalCountStage url(@NotNull java.lang.String url)
Url to get more company resources for this contactUrl 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
public ContactCompanies.HasMoreStage totalCount(int totalCount)
Int representing the total number of companyies attached to this contactInt 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
public ContactCompanies._FinalStage hasMore(boolean hasMore)
Whether there's more Addressable Objects to be viewed. If true, use the url to view allWhether 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
public ContactCompanies._FinalStage data(java.util.List<ContactCompany> data)
An array containing Company Objects
- Specified by:
datain interfaceContactCompanies._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
data
public ContactCompanies._FinalStage data(java.util.Optional<java.util.List<ContactCompany>> data)
An array containing Company Objects
- Specified by:
datain interfaceContactCompanies._FinalStage
-
type
public ContactCompanies._FinalStage type(java.lang.String type)
The type of object
- Specified by:
typein interfaceContactCompanies._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
public ContactCompanies._FinalStage type(java.util.Optional<java.lang.String> type)
The type of object
- Specified by:
typein interfaceContactCompanies._FinalStage
-
build
public ContactCompanies build()
- Specified by:
buildin interfaceContactCompanies._FinalStage
-
-