Package com.intercom.api.types
Class CreateOrUpdateCompanyRequest.Builder
- java.lang.Object
-
- com.intercom.api.types.CreateOrUpdateCompanyRequest.Builder
-
- Enclosing class:
- CreateOrUpdateCompanyRequest
public static final class CreateOrUpdateCompanyRequest.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateOrUpdateCompanyRequestbuild()CreateOrUpdateCompanyRequest.BuildercompanyId(java.lang.String companyId)CreateOrUpdateCompanyRequest.BuildercompanyId(java.util.Optional<java.lang.String> companyId)The company id you have defined for the company.CreateOrUpdateCompanyRequest.BuildercustomAttributes(java.util.Map<java.lang.String,java.lang.Object> customAttributes)CreateOrUpdateCompanyRequest.BuildercustomAttributes(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> customAttributes)A hash of key/value pairs containing any other data about the company you want Intercom to store.CreateOrUpdateCompanyRequest.Builderfrom(CreateOrUpdateCompanyRequest other)CreateOrUpdateCompanyRequest.Builderindustry(java.lang.String industry)CreateOrUpdateCompanyRequest.Builderindustry(java.util.Optional<java.lang.String> industry)The industry that this company operates in.CreateOrUpdateCompanyRequest.BuildermonthlySpend(java.lang.Integer monthlySpend)CreateOrUpdateCompanyRequest.BuildermonthlySpend(java.util.Optional<java.lang.Integer> monthlySpend)How much revenue the company generates for your business.CreateOrUpdateCompanyRequest.Buildername(java.lang.String name)CreateOrUpdateCompanyRequest.Buildername(java.util.Optional<java.lang.String> name)The name of the CompanyCreateOrUpdateCompanyRequest.Builderplan(java.lang.String plan)CreateOrUpdateCompanyRequest.Builderplan(java.util.Optional<java.lang.String> plan)The name of the plan you have associated with the company.CreateOrUpdateCompanyRequest.BuilderremoteCreatedAt(java.lang.Integer remoteCreatedAt)CreateOrUpdateCompanyRequest.BuilderremoteCreatedAt(java.util.Optional<java.lang.Integer> remoteCreatedAt)The time the company was created by you.CreateOrUpdateCompanyRequest.Buildersize(java.lang.Integer size)CreateOrUpdateCompanyRequest.Buildersize(java.util.Optional<java.lang.Integer> size)The number of employees in this company.CreateOrUpdateCompanyRequest.Builderwebsite(java.lang.String website)CreateOrUpdateCompanyRequest.Builderwebsite(java.util.Optional<java.lang.String> website)The URL for this company's website.
-
-
-
Method Detail
-
from
public CreateOrUpdateCompanyRequest.Builder from(CreateOrUpdateCompanyRequest other)
-
name
public CreateOrUpdateCompanyRequest.Builder name(java.util.Optional<java.lang.String> name)
The name of the Company
-
name
public CreateOrUpdateCompanyRequest.Builder name(java.lang.String name)
-
companyId
public CreateOrUpdateCompanyRequest.Builder companyId(java.util.Optional<java.lang.String> companyId)
The company id you have defined for the company. Can't be updated
-
companyId
public CreateOrUpdateCompanyRequest.Builder companyId(java.lang.String companyId)
-
plan
public CreateOrUpdateCompanyRequest.Builder plan(java.util.Optional<java.lang.String> plan)
The name of the plan you have associated with the company.
-
plan
public CreateOrUpdateCompanyRequest.Builder plan(java.lang.String plan)
-
size
public CreateOrUpdateCompanyRequest.Builder size(java.util.Optional<java.lang.Integer> size)
The number of employees in this company.
-
size
public CreateOrUpdateCompanyRequest.Builder size(java.lang.Integer size)
-
website
public CreateOrUpdateCompanyRequest.Builder website(java.util.Optional<java.lang.String> website)
The URL for this company's website. Please note that the value specified here is not validated. Accepts any string.
-
website
public CreateOrUpdateCompanyRequest.Builder website(java.lang.String website)
-
industry
public CreateOrUpdateCompanyRequest.Builder industry(java.util.Optional<java.lang.String> industry)
The industry that this company operates in.
-
industry
public CreateOrUpdateCompanyRequest.Builder industry(java.lang.String industry)
-
customAttributes
public CreateOrUpdateCompanyRequest.Builder customAttributes(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> customAttributes)
A hash of key/value pairs containing any other data about the company you want Intercom to store.
-
customAttributes
public CreateOrUpdateCompanyRequest.Builder customAttributes(java.util.Map<java.lang.String,java.lang.Object> customAttributes)
-
remoteCreatedAt
public CreateOrUpdateCompanyRequest.Builder remoteCreatedAt(java.util.Optional<java.lang.Integer> remoteCreatedAt)
The time the company was created by you.
-
remoteCreatedAt
public CreateOrUpdateCompanyRequest.Builder remoteCreatedAt(java.lang.Integer remoteCreatedAt)
-
monthlySpend
public CreateOrUpdateCompanyRequest.Builder monthlySpend(java.util.Optional<java.lang.Integer> monthlySpend)
How much revenue the company generates for your business. Note that this will truncate floats. i.e. it only allow for whole integers, 155.98 will be truncated to 155. Note that this has an upper limit of 2**31-1 or 2147483647..
-
monthlySpend
public CreateOrUpdateCompanyRequest.Builder monthlySpend(java.lang.Integer monthlySpend)
-
build
public CreateOrUpdateCompanyRequest build()
-
-