Class DataAttribute.Builder
- java.lang.Object
-
- com.intercom.api.resources.dataattributes.types.DataAttribute.Builder
-
- All Implemented Interfaces:
DataAttribute._FinalStage,DataAttribute.DataTypeStage,DataAttribute.FullNameStage,DataAttribute.LabelStage,DataAttribute.NameStage
- Enclosing class:
- DataAttribute
public static final class DataAttribute.Builder extends java.lang.Object implements DataAttribute.NameStage, DataAttribute.FullNameStage, DataAttribute.LabelStage, DataAttribute.DataTypeStage, DataAttribute._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataAttribute._FinalStageadminId(java.lang.String adminId)Teammate who created the attribute.DataAttribute._FinalStageadminId(java.util.Optional<java.lang.String> adminId)Teammate who created the attribute.DataAttribute._FinalStageapiWritable(java.lang.Boolean apiWritable)Can this attribute be updated through APIDataAttribute._FinalStageapiWritable(java.util.Optional<java.lang.Boolean> apiWritable)Can this attribute be updated through APIDataAttribute._FinalStagearchived(java.lang.Boolean archived)Is this attribute archived.DataAttribute._FinalStagearchived(java.util.Optional<java.lang.Boolean> archived)Is this attribute archived.DataAttributebuild()DataAttribute._FinalStagecreatedAt(java.lang.Integer createdAt)The time the attribute was created as a UTC Unix timestampDataAttribute._FinalStagecreatedAt(java.util.Optional<java.lang.Integer> createdAt)The time the attribute was created as a UTC Unix timestampDataAttribute._FinalStagecustom(java.lang.Boolean custom)Set to true if this is a CDADataAttribute._FinalStagecustom(java.util.Optional<java.lang.Boolean> custom)Set to true if this is a CDADataAttribute._FinalStagedataType(DataAttribute.DataType dataType)The data type of the attribute.DataAttribute._FinalStagedescription(java.lang.String description)Readable description of the attribute.DataAttribute._FinalStagedescription(java.util.Optional<java.lang.String> description)Readable description of the attribute.DataAttribute.Builderfrom(DataAttribute other)DataAttribute.LabelStagefullName(java.lang.String fullName)Full name of the attribute.DataAttribute._FinalStageid(java.lang.Integer id)The unique identifier for the data attribute which is given by Intercom.DataAttribute._FinalStageid(java.util.Optional<java.lang.Integer> id)The unique identifier for the data attribute which is given by Intercom.DataAttribute.DataTypeStagelabel(java.lang.String label)Readable name of the attribute (i.e.DataAttribute._FinalStagemessengerWritable(java.lang.Boolean messengerWritable)Can this attribute be updated by the MessengerDataAttribute._FinalStagemessengerWritable(java.util.Optional<java.lang.Boolean> messengerWritable)Can this attribute be updated by the MessengerDataAttribute._FinalStagemodel(DataAttribute.Model model)Value iscontactfor user/lead attributes andcompanyfor company attributes.DataAttribute._FinalStagemodel(java.util.Optional<DataAttribute.Model> model)Value iscontactfor user/lead attributes andcompanyfor company attributes.DataAttribute.FullNameStagename(java.lang.String name)Name of the attribute.DataAttribute._FinalStageoptions(java.util.List<java.lang.String> options)List of predefined options for attribute value.DataAttribute._FinalStageoptions(java.util.Optional<java.util.List<java.lang.String>> options)List of predefined options for attribute value.DataAttribute._FinalStageuiWritable(java.lang.Boolean uiWritable)Can this attribute be updated in the UIDataAttribute._FinalStageuiWritable(java.util.Optional<java.lang.Boolean> uiWritable)Can this attribute be updated in the UIDataAttribute._FinalStageupdatedAt(java.lang.Integer updatedAt)The time the attribute was last updated as a UTC Unix timestampDataAttribute._FinalStageupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)The time the attribute was last updated as a UTC Unix timestamp
-
-
-
Method Detail
-
from
public DataAttribute.Builder from(DataAttribute other)
- Specified by:
fromin interfaceDataAttribute.NameStage
-
name
public DataAttribute.FullNameStage name(@NotNull java.lang.String name)
Name of the attribute.
Name of the attribute.
- Specified by:
namein interfaceDataAttribute.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
fullName
public DataAttribute.LabelStage fullName(@NotNull java.lang.String fullName)
Full name of the attribute. Should match the name unless it's a nested attribute. We can split full_name on
.to access nested user object values.Full name of the attribute. Should match the name unless it's a nested attribute. We can split full_name on
.to access nested user object values.- Specified by:
fullNamein interfaceDataAttribute.FullNameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
label
public DataAttribute.DataTypeStage label(@NotNull java.lang.String label)
Readable name of the attribute (i.e. name you see in the UI)
Readable name of the attribute (i.e. name you see in the UI)
- Specified by:
labelin interfaceDataAttribute.LabelStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
dataType
public DataAttribute._FinalStage dataType(@NotNull DataAttribute.DataType dataType)
The data type of the attribute.
The data type of the attribute.
- Specified by:
dataTypein interfaceDataAttribute.DataTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
adminId
public DataAttribute._FinalStage adminId(java.lang.String adminId)
Teammate who created the attribute. Only applicable to CDAs
- Specified by:
adminIdin interfaceDataAttribute._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
adminId
public DataAttribute._FinalStage adminId(java.util.Optional<java.lang.String> adminId)
Teammate who created the attribute. Only applicable to CDAs
- Specified by:
adminIdin interfaceDataAttribute._FinalStage
-
updatedAt
public DataAttribute._FinalStage updatedAt(java.lang.Integer updatedAt)
The time the attribute was last updated as a UTC Unix timestamp
- Specified by:
updatedAtin interfaceDataAttribute._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public DataAttribute._FinalStage updatedAt(java.util.Optional<java.lang.Integer> updatedAt)
The time the attribute was last updated as a UTC Unix timestamp
- Specified by:
updatedAtin interfaceDataAttribute._FinalStage
-
createdAt
public DataAttribute._FinalStage createdAt(java.lang.Integer createdAt)
The time the attribute was created as a UTC Unix timestamp
- Specified by:
createdAtin interfaceDataAttribute._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public DataAttribute._FinalStage createdAt(java.util.Optional<java.lang.Integer> createdAt)
The time the attribute was created as a UTC Unix timestamp
- Specified by:
createdAtin interfaceDataAttribute._FinalStage
-
archived
public DataAttribute._FinalStage archived(java.lang.Boolean archived)
Is this attribute archived. (Only applicable to CDAs)
- Specified by:
archivedin interfaceDataAttribute._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
archived
public DataAttribute._FinalStage archived(java.util.Optional<java.lang.Boolean> archived)
Is this attribute archived. (Only applicable to CDAs)
- Specified by:
archivedin interfaceDataAttribute._FinalStage
-
custom
public DataAttribute._FinalStage custom(java.lang.Boolean custom)
Set to true if this is a CDA
- Specified by:
customin interfaceDataAttribute._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
custom
public DataAttribute._FinalStage custom(java.util.Optional<java.lang.Boolean> custom)
Set to true if this is a CDA
- Specified by:
customin interfaceDataAttribute._FinalStage
-
uiWritable
public DataAttribute._FinalStage uiWritable(java.lang.Boolean uiWritable)
Can this attribute be updated in the UI
- Specified by:
uiWritablein interfaceDataAttribute._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
uiWritable
public DataAttribute._FinalStage uiWritable(java.util.Optional<java.lang.Boolean> uiWritable)
Can this attribute be updated in the UI
- Specified by:
uiWritablein interfaceDataAttribute._FinalStage
-
messengerWritable
public DataAttribute._FinalStage messengerWritable(java.lang.Boolean messengerWritable)
Can this attribute be updated by the Messenger
- Specified by:
messengerWritablein interfaceDataAttribute._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
messengerWritable
public DataAttribute._FinalStage messengerWritable(java.util.Optional<java.lang.Boolean> messengerWritable)
Can this attribute be updated by the Messenger
- Specified by:
messengerWritablein interfaceDataAttribute._FinalStage
-
apiWritable
public DataAttribute._FinalStage apiWritable(java.lang.Boolean apiWritable)
Can this attribute be updated through API
- Specified by:
apiWritablein interfaceDataAttribute._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
apiWritable
public DataAttribute._FinalStage apiWritable(java.util.Optional<java.lang.Boolean> apiWritable)
Can this attribute be updated through API
- Specified by:
apiWritablein interfaceDataAttribute._FinalStage
-
options
public DataAttribute._FinalStage options(java.util.List<java.lang.String> options)
List of predefined options for attribute value.
- Specified by:
optionsin interfaceDataAttribute._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
options
public DataAttribute._FinalStage options(java.util.Optional<java.util.List<java.lang.String>> options)
List of predefined options for attribute value.
- Specified by:
optionsin interfaceDataAttribute._FinalStage
-
description
public DataAttribute._FinalStage description(java.lang.String description)
Readable description of the attribute.
- Specified by:
descriptionin interfaceDataAttribute._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public DataAttribute._FinalStage description(java.util.Optional<java.lang.String> description)
Readable description of the attribute.
- Specified by:
descriptionin interfaceDataAttribute._FinalStage
-
model
public DataAttribute._FinalStage model(DataAttribute.Model model)
Value is
contactfor user/lead attributes andcompanyfor company attributes.- Specified by:
modelin interfaceDataAttribute._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
model
public DataAttribute._FinalStage model(java.util.Optional<DataAttribute.Model> model)
Value is
contactfor user/lead attributes andcompanyfor company attributes.- Specified by:
modelin interfaceDataAttribute._FinalStage
-
id
public DataAttribute._FinalStage id(java.lang.Integer id)
The unique identifier for the data attribute which is given by Intercom. Only available for custom attributes.
- Specified by:
idin interfaceDataAttribute._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public DataAttribute._FinalStage id(java.util.Optional<java.lang.Integer> id)
The unique identifier for the data attribute which is given by Intercom. Only available for custom attributes.
- Specified by:
idin interfaceDataAttribute._FinalStage
-
build
public DataAttribute build()
- Specified by:
buildin interfaceDataAttribute._FinalStage
-
-