Class CreateDataAttributeRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.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 java.lang.Object implements CreateDataAttributeRequest.NameStage, CreateDataAttributeRequest.ModelStage, CreateDataAttributeRequest.DataTypeStage, CreateDataAttributeRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateDataAttributeRequestbuild()CreateDataAttributeRequest._FinalStagedataType(CreateDataAttributeRequest.DataType dataType)The type of data stored for this attribute.CreateDataAttributeRequest._FinalStagedescription(java.lang.String description)The readable description you see in the UI for the attribute.CreateDataAttributeRequest._FinalStagedescription(java.util.Optional<java.lang.String> description)The readable description you see in the UI for the attribute.CreateDataAttributeRequest.Builderfrom(CreateDataAttributeRequest other)CreateDataAttributeRequest._FinalStagemessengerWritable(java.lang.Boolean messengerWritable)Can this attribute be updated by the MessengerCreateDataAttributeRequest._FinalStagemessengerWritable(java.util.Optional<java.lang.Boolean> messengerWritable)Can this attribute be updated by the MessengerCreateDataAttributeRequest.DataTypeStagemodel(CreateDataAttributeRequest.Model model)The model that the data attribute belongs to.CreateDataAttributeRequest.ModelStagename(java.lang.String name)The name of the data attribute.CreateDataAttributeRequest._FinalStageoptions(java.util.List<java.lang.String> options)To create list attributes.CreateDataAttributeRequest._FinalStageoptions(java.util.Optional<java.util.List<java.lang.String>> options)To create list attributes.
-
-
-
Method Detail
-
from
public CreateDataAttributeRequest.Builder from(CreateDataAttributeRequest other)
- Specified by:
fromin interfaceCreateDataAttributeRequest.NameStage
-
name
public CreateDataAttributeRequest.ModelStage name(@NotNull java.lang.String name)
The name of the data attribute.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.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.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
public CreateDataAttributeRequest._FinalStage messengerWritable(java.lang.Boolean 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(java.util.Optional<java.lang.Boolean> messengerWritable)
Can this attribute be updated by the Messenger
- Specified by:
messengerWritablein interfaceCreateDataAttributeRequest._FinalStage
-
options
public CreateDataAttributeRequest._FinalStage options(java.util.List<java.lang.String> 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
public CreateDataAttributeRequest._FinalStage options(java.util.Optional<java.util.List<java.lang.String>> 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
-
description
public CreateDataAttributeRequest._FinalStage description(java.lang.String 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
public CreateDataAttributeRequest._FinalStage description(java.util.Optional<java.lang.String> description)
The readable description you see in the UI for the attribute.
- Specified by:
descriptionin interfaceCreateDataAttributeRequest._FinalStage
-
build
public CreateDataAttributeRequest build()
- Specified by:
buildin interfaceCreateDataAttributeRequest._FinalStage
-
-