Package com.intercom.api.types
Class ContactAttachedCompanies.Builder
- java.lang.Object
-
- com.intercom.api.types.ContactAttachedCompanies.Builder
-
- All Implemented Interfaces:
ContactAttachedCompanies._FinalStage,ContactAttachedCompanies.TotalCountStage
- Enclosing class:
- ContactAttachedCompanies
public static final class ContactAttachedCompanies.Builder extends java.lang.Object implements ContactAttachedCompanies.TotalCountStage, ContactAttachedCompanies._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContactAttachedCompanies._FinalStageaddAllCompanies(java.util.List<Company> companies)An array containing Company ObjectsContactAttachedCompanies._FinalStageaddCompanies(Company companies)An array containing Company ObjectsContactAttachedCompaniesbuild()ContactAttachedCompanies._FinalStagecompanies(java.util.List<Company> companies)An array containing Company ObjectsContactAttachedCompanies.Builderfrom(ContactAttachedCompanies other)ContactAttachedCompanies._FinalStagepages(PagesLink pages)ContactAttachedCompanies._FinalStagepages(java.util.Optional<PagesLink> pages)ContactAttachedCompanies._FinalStagetotalCount(int totalCount)The total number of companies associated to this contact
-
-
-
Method Detail
-
from
public ContactAttachedCompanies.Builder from(ContactAttachedCompanies other)
- Specified by:
fromin interfaceContactAttachedCompanies.TotalCountStage
-
totalCount
public ContactAttachedCompanies._FinalStage totalCount(int totalCount)
The total number of companies associated to this contactThe total number of companies associated to this contact
- Specified by:
totalCountin interfaceContactAttachedCompanies.TotalCountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
pages
public ContactAttachedCompanies._FinalStage pages(PagesLink pages)
- Specified by:
pagesin interfaceContactAttachedCompanies._FinalStage
-
pages
public ContactAttachedCompanies._FinalStage pages(java.util.Optional<PagesLink> pages)
- Specified by:
pagesin interfaceContactAttachedCompanies._FinalStage
-
addAllCompanies
public ContactAttachedCompanies._FinalStage addAllCompanies(java.util.List<Company> companies)
An array containing Company Objects
- Specified by:
addAllCompaniesin interfaceContactAttachedCompanies._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addCompanies
public ContactAttachedCompanies._FinalStage addCompanies(Company companies)
An array containing Company Objects
- Specified by:
addCompaniesin interfaceContactAttachedCompanies._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
companies
public ContactAttachedCompanies._FinalStage companies(java.util.List<Company> companies)
An array containing Company Objects
- Specified by:
companiesin interfaceContactAttachedCompanies._FinalStage
-
build
public ContactAttachedCompanies build()
- Specified by:
buildin interfaceContactAttachedCompanies._FinalStage
-
-