Class Company.Builder
- java.lang.Object
-
- com.intercom.api.resources.companies.types.Company.Builder
-
- All Implemented Interfaces:
Company._FinalStage,Company.AppIdStage,Company.CompanyIdStage,Company.CreatedAtStage,Company.IdStage,Company.MonthlySpendStage,Company.NameStage,Company.SessionCountStage,Company.UpdatedAtStage,Company.UserCountStage
- Enclosing class:
- Company
public static final class Company.Builder extends java.lang.Object implements Company.IdStage, Company.NameStage, Company.AppIdStage, Company.CompanyIdStage, Company.CreatedAtStage, Company.UpdatedAtStage, Company.MonthlySpendStage, Company.SessionCountStage, Company.UserCountStage, Company._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Company.CompanyIdStageappId(java.lang.String appId)The Intercom defined code of the workspace the company is associated to.Companybuild()Company.CreatedAtStagecompanyId(java.lang.String companyId)The company id you have defined for the company.Company.UpdatedAtStagecreatedAt(int createdAt)The time the company was added in Intercom.Company._FinalStagecustomAttributes(java.util.Map<java.lang.String,java.lang.Object> customAttributes)The custom attributes you have set on the company.Company._FinalStagecustomAttributes(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> customAttributes)The custom attributes you have set on the company.Company.Builderfrom(Company other)Company.NameStageid(java.lang.String id)The Intercom defined id representing the company.Company._FinalStageindustry(java.lang.String industry)The industry that the company operates in.Company._FinalStageindustry(java.util.Optional<java.lang.String> industry)The industry that the company operates in.Company._FinalStagelastRequestAt(java.lang.Integer lastRequestAt)The time the company last recorded making a request.Company._FinalStagelastRequestAt(java.util.Optional<java.lang.Integer> lastRequestAt)The time the company last recorded making a request.Company.SessionCountStagemonthlySpend(int monthlySpend)How much revenue the company generates for your business.Company.AppIdStagename(java.lang.String name)The name of the company.Company._FinalStageplan(Company.Plan plan)Company._FinalStageplan(java.util.Optional<Company.Plan> plan)Company._FinalStageremoteCreatedAt(java.lang.Integer remoteCreatedAt)The time the company was created by you.Company._FinalStageremoteCreatedAt(java.util.Optional<java.lang.Integer> remoteCreatedAt)The time the company was created by you.Company._FinalStagesegments(Company.Segments segments)The list of segments associated with the companyCompany._FinalStagesegments(java.util.Optional<Company.Segments> segments)The list of segments associated with the companyCompany.UserCountStagesessionCount(int sessionCount)How many sessions the company has recorded.Company._FinalStagesize(java.lang.Integer size)The number of employees in the company.Company._FinalStagesize(java.util.Optional<java.lang.Integer> size)The number of employees in the company.Company._FinalStagetags(Company.Tags tags)The list of tags associated with the companyCompany._FinalStagetags(java.util.Optional<Company.Tags> tags)The list of tags associated with the companyCompany._FinalStagetype(java.lang.String type)Value iscompanyCompany._FinalStagetype(java.util.Optional<java.lang.String> type)Value iscompanyCompany.MonthlySpendStageupdatedAt(int updatedAt)The last time the company was updated.Company._FinalStageuserCount(int userCount)The number of users in the company.Company._FinalStagewebsite(java.lang.String website)The URL for the company website.Company._FinalStagewebsite(java.util.Optional<java.lang.String> website)The URL for the company website.
-
-
-
Method Detail
-
from
public Company.Builder from(Company other)
- Specified by:
fromin interfaceCompany.IdStage
-
id
public Company.NameStage id(@NotNull java.lang.String id)
The Intercom defined id representing the company.
The Intercom defined id representing the company.
- Specified by:
idin interfaceCompany.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public Company.AppIdStage name(@NotNull java.lang.String name)
The name of the company.
The name of the company.
- Specified by:
namein interfaceCompany.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
appId
public Company.CompanyIdStage appId(@NotNull java.lang.String appId)
The Intercom defined code of the workspace the company is associated to.
The Intercom defined code of the workspace the company is associated to.
- Specified by:
appIdin interfaceCompany.AppIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
companyId
public Company.CreatedAtStage companyId(@NotNull java.lang.String companyId)
The company id you have defined for the company.
The company id you have defined for the company.
- Specified by:
companyIdin interfaceCompany.CompanyIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public Company.UpdatedAtStage createdAt(int createdAt)
The time the company was added in Intercom.
The time the company was added in Intercom.
- Specified by:
createdAtin interfaceCompany.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public Company.MonthlySpendStage updatedAt(int updatedAt)
The last time the company was updated.
The last time the company was updated.
- Specified by:
updatedAtin interfaceCompany.UpdatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
monthlySpend
public Company.SessionCountStage monthlySpend(int monthlySpend)
How much revenue the company generates for your business.
How much revenue the company generates for your business.
- Specified by:
monthlySpendin interfaceCompany.MonthlySpendStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
sessionCount
public Company.UserCountStage sessionCount(int sessionCount)
How many sessions the company has recorded.
How many sessions the company has recorded.
- Specified by:
sessionCountin interfaceCompany.SessionCountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
userCount
public Company._FinalStage userCount(int userCount)
The number of users in the company.
The number of users in the company.
- Specified by:
userCountin interfaceCompany.UserCountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
segments
public Company._FinalStage segments(Company.Segments segments)
The list of segments associated with the company
- Specified by:
segmentsin interfaceCompany._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
segments
public Company._FinalStage segments(java.util.Optional<Company.Segments> segments)
The list of segments associated with the company
- Specified by:
segmentsin interfaceCompany._FinalStage
-
tags
public Company._FinalStage tags(Company.Tags tags)
The list of tags associated with the company
- Specified by:
tagsin interfaceCompany._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
tags
public Company._FinalStage tags(java.util.Optional<Company.Tags> tags)
The list of tags associated with the company
- Specified by:
tagsin interfaceCompany._FinalStage
-
customAttributes
public Company._FinalStage customAttributes(java.util.Map<java.lang.String,java.lang.Object> customAttributes)
The custom attributes you have set on the company.
- Specified by:
customAttributesin interfaceCompany._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
customAttributes
public Company._FinalStage customAttributes(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> customAttributes)
The custom attributes you have set on the company.
- Specified by:
customAttributesin interfaceCompany._FinalStage
-
industry
public Company._FinalStage industry(java.lang.String industry)
The industry that the company operates in.
- Specified by:
industryin interfaceCompany._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
industry
public Company._FinalStage industry(java.util.Optional<java.lang.String> industry)
The industry that the company operates in.
- Specified by:
industryin interfaceCompany._FinalStage
-
website
public Company._FinalStage website(java.lang.String website)
The URL for the company website.
- Specified by:
websitein interfaceCompany._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
website
public Company._FinalStage website(java.util.Optional<java.lang.String> website)
The URL for the company website.
- Specified by:
websitein interfaceCompany._FinalStage
-
size
public Company._FinalStage size(java.lang.Integer size)
The number of employees in the company.
- Specified by:
sizein interfaceCompany._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
size
public Company._FinalStage size(java.util.Optional<java.lang.Integer> size)
The number of employees in the company.
- Specified by:
sizein interfaceCompany._FinalStage
-
lastRequestAt
public Company._FinalStage lastRequestAt(java.lang.Integer lastRequestAt)
The time the company last recorded making a request.
- Specified by:
lastRequestAtin interfaceCompany._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
lastRequestAt
public Company._FinalStage lastRequestAt(java.util.Optional<java.lang.Integer> lastRequestAt)
The time the company last recorded making a request.
- Specified by:
lastRequestAtin interfaceCompany._FinalStage
-
remoteCreatedAt
public Company._FinalStage remoteCreatedAt(java.lang.Integer remoteCreatedAt)
The time the company was created by you.
- Specified by:
remoteCreatedAtin interfaceCompany._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
remoteCreatedAt
public Company._FinalStage remoteCreatedAt(java.util.Optional<java.lang.Integer> remoteCreatedAt)
The time the company was created by you.
- Specified by:
remoteCreatedAtin interfaceCompany._FinalStage
-
plan
public Company._FinalStage plan(Company.Plan plan)
- Specified by:
planin interfaceCompany._FinalStage
-
plan
public Company._FinalStage plan(java.util.Optional<Company.Plan> plan)
- Specified by:
planin interfaceCompany._FinalStage
-
type
public Company._FinalStage type(java.lang.String type)
Value is
company- Specified by:
typein interfaceCompany._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
public Company._FinalStage type(java.util.Optional<java.lang.String> type)
Value is
company- Specified by:
typein interfaceCompany._FinalStage
-
build
public Company build()
- Specified by:
buildin interfaceCompany._FinalStage
-
-