Class UpdateDataAttributeRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.dataattributes.requests.UpdateDataAttributeRequest.Builder
-
- All Implemented Interfaces:
UpdateDataAttributeRequest._FinalStage,UpdateDataAttributeRequest.DataAttributeIdStage
- Enclosing class:
- UpdateDataAttributeRequest
public static final class UpdateDataAttributeRequest.Builder extends java.lang.Object implements UpdateDataAttributeRequest.DataAttributeIdStage, UpdateDataAttributeRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateDataAttributeRequest._FinalStagearchived(java.lang.Boolean archived)Whether the attribute is to be archived or not.UpdateDataAttributeRequest._FinalStagearchived(java.util.Optional<java.lang.Boolean> archived)Whether the attribute is to be archived or not.UpdateDataAttributeRequestbuild()UpdateDataAttributeRequest._FinalStagedataAttributeId(java.lang.String dataAttributeId)The data attribute idUpdateDataAttributeRequest._FinalStagedescription(java.lang.String description)The readable description you see in the UI for the attribute.UpdateDataAttributeRequest._FinalStagedescription(java.util.Optional<java.lang.String> description)The readable description you see in the UI for the attribute.UpdateDataAttributeRequest.Builderfrom(UpdateDataAttributeRequest other)UpdateDataAttributeRequest._FinalStagemessengerWritable(java.lang.Boolean messengerWritable)Can this attribute be updated by the MessengerUpdateDataAttributeRequest._FinalStagemessengerWritable(java.util.Optional<java.lang.Boolean> messengerWritable)Can this attribute be updated by the MessengerUpdateDataAttributeRequest._FinalStageoptions(java.util.List<UpdateDataAttributeRequest.OptionsItem> options)To create list attributes.UpdateDataAttributeRequest._FinalStageoptions(java.util.Optional<java.util.List<UpdateDataAttributeRequest.OptionsItem>> options)To create list attributes.
-
-
-
Method Detail
-
from
public UpdateDataAttributeRequest.Builder from(UpdateDataAttributeRequest other)
- Specified by:
fromin interfaceUpdateDataAttributeRequest.DataAttributeIdStage
-
dataAttributeId
public UpdateDataAttributeRequest._FinalStage dataAttributeId(@NotNull java.lang.String dataAttributeId)
The data attribute idThe data attribute id
- Specified by:
dataAttributeIdin interfaceUpdateDataAttributeRequest.DataAttributeIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
messengerWritable
public UpdateDataAttributeRequest._FinalStage messengerWritable(java.lang.Boolean messengerWritable)
Can this attribute be updated by the Messenger
- Specified by:
messengerWritablein interfaceUpdateDataAttributeRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
messengerWritable
public UpdateDataAttributeRequest._FinalStage messengerWritable(java.util.Optional<java.lang.Boolean> messengerWritable)
Can this attribute be updated by the Messenger
- Specified by:
messengerWritablein interfaceUpdateDataAttributeRequest._FinalStage
-
options
public UpdateDataAttributeRequest._FinalStage options(java.util.List<UpdateDataAttributeRequest.OptionsItem> 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 interfaceUpdateDataAttributeRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
options
public UpdateDataAttributeRequest._FinalStage options(java.util.Optional<java.util.List<UpdateDataAttributeRequest.OptionsItem>> 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 interfaceUpdateDataAttributeRequest._FinalStage
-
description
public UpdateDataAttributeRequest._FinalStage description(java.lang.String description)
The readable description you see in the UI for the attribute.
- Specified by:
descriptionin interfaceUpdateDataAttributeRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public UpdateDataAttributeRequest._FinalStage description(java.util.Optional<java.lang.String> description)
The readable description you see in the UI for the attribute.
- Specified by:
descriptionin interfaceUpdateDataAttributeRequest._FinalStage
-
archived
public UpdateDataAttributeRequest._FinalStage archived(java.lang.Boolean archived)
Whether the attribute is to be archived or not.
- Specified by:
archivedin interfaceUpdateDataAttributeRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
archived
public UpdateDataAttributeRequest._FinalStage archived(java.util.Optional<java.lang.Boolean> archived)
Whether the attribute is to be archived or not.
- Specified by:
archivedin interfaceUpdateDataAttributeRequest._FinalStage
-
build
public UpdateDataAttributeRequest build()
- Specified by:
buildin interfaceUpdateDataAttributeRequest._FinalStage
-
-