Class CreateDataAttributeRequest.Builder
java.lang.Object
com.intercom.api.resources.dataattributes.requests.CreateDataAttributeRequest.Builder
- All Implemented Interfaces:
CreateDataAttributeRequest._FinalStage,CreateDataAttributeRequest.DataTypeStage,CreateDataAttributeRequest.ModelStage,CreateDataAttributeRequest.NameStage
- Enclosing class:
CreateDataAttributeRequest
public static final class CreateDataAttributeRequest.Builder
extends Object
implements CreateDataAttributeRequest.NameStage, CreateDataAttributeRequest.ModelStage, CreateDataAttributeRequest.DataTypeStage, CreateDataAttributeRequest._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionbuild()dataType(CreateDataAttributeRequest.DataType dataType) The type of data stored for this attribute.description(String description) The readable description you see in the UI for the attribute.description(Optional<String> description) from(CreateDataAttributeRequest other) messengerWritable(Boolean messengerWritable) Can this attribute be updated by the MessengermessengerWritable(Optional<Boolean> messengerWritable) The model that the data attribute belongs to.The name of the data attribute.To create list attributes.
-
Method Details
-
from
- Specified by:
fromin interfaceCreateDataAttributeRequest.NameStage
-
name
The name of the data attribute.
- Specified by:
namein interfaceCreateDataAttributeRequest.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
model
public CreateDataAttributeRequest.DataTypeStage model(@NotNull CreateDataAttributeRequest.Model model) The model that the data attribute belongs to.
- Specified by:
modelin interfaceCreateDataAttributeRequest.ModelStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
dataType
public CreateDataAttributeRequest._FinalStage dataType(@NotNull CreateDataAttributeRequest.DataType dataType) The type of data stored for this attribute.
- Specified by:
dataTypein interfaceCreateDataAttributeRequest.DataTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
messengerWritable
Can this attribute be updated by the Messenger
- Specified by:
messengerWritablein interfaceCreateDataAttributeRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
messengerWritable
public CreateDataAttributeRequest._FinalStage messengerWritable(Optional<Boolean> messengerWritable) - Specified by:
messengerWritablein interfaceCreateDataAttributeRequest._FinalStage
-
options
To create list attributes. Provide a set of hashes with
valueas the key of the options you want to make.data_typemust bestring.- Specified by:
optionsin interfaceCreateDataAttributeRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
options
- Specified by:
optionsin interfaceCreateDataAttributeRequest._FinalStage
-
description
The readable description you see in the UI for the attribute.
- Specified by:
descriptionin interfaceCreateDataAttributeRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
- Specified by:
descriptionin interfaceCreateDataAttributeRequest._FinalStage
-
build
- Specified by:
buildin interfaceCreateDataAttributeRequest._FinalStage
-