Package com.intercom.api.types
Class ContactCompanies.Builder
- java.lang.Object
-
- com.intercom.api.types.ContactCompanies.Builder
-
- Enclosing class:
- ContactCompanies
public static final class ContactCompanies.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContactCompaniesbuild()ContactCompanies.Builderdata(java.util.List<CompanyData> data)ContactCompanies.Builderdata(java.util.Optional<java.util.List<CompanyData>> data)An array of company data objects attached to the contact.ContactCompanies.Builderfrom(ContactCompanies other)ContactCompanies.BuilderhasMore(java.lang.Boolean hasMore)ContactCompanies.BuilderhasMore(java.util.Optional<java.lang.Boolean> hasMore)Whether there's more Addressable Objects to be viewed.ContactCompanies.BuildertotalCount(java.lang.Integer totalCount)ContactCompanies.BuildertotalCount(java.util.Optional<java.lang.Integer> totalCount)Integer representing the total number of companies attached to this contactContactCompanies.Builderurl(java.lang.String url)ContactCompanies.Builderurl(java.util.Optional<java.lang.String> url)Url to get more company resources for this contact
-
-
-
Method Detail
-
from
public ContactCompanies.Builder from(ContactCompanies other)
-
data
public ContactCompanies.Builder data(java.util.Optional<java.util.List<CompanyData>> data)
An array of company data objects attached to the contact.
-
data
public ContactCompanies.Builder data(java.util.List<CompanyData> data)
-
url
public ContactCompanies.Builder url(java.util.Optional<java.lang.String> url)
Url to get more company resources for this contact
-
url
public ContactCompanies.Builder url(java.lang.String url)
-
totalCount
public ContactCompanies.Builder totalCount(java.util.Optional<java.lang.Integer> totalCount)
Integer representing the total number of companies attached to this contact
-
totalCount
public ContactCompanies.Builder totalCount(java.lang.Integer totalCount)
-
hasMore
public ContactCompanies.Builder hasMore(java.util.Optional<java.lang.Boolean> hasMore)
Whether there's more Addressable Objects to be viewed. If true, use the url to view all
-
hasMore
public ContactCompanies.Builder hasMore(java.lang.Boolean hasMore)
-
build
public ContactCompanies build()
-
-