Class UpdateDataAttributeRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.dataattributes.requests.UpdateDataAttributeRequest.Builder
-
- All Implemented Interfaces:
UpdateDataAttributeRequest._FinalStage,UpdateDataAttributeRequest.IdStage
- Enclosing class:
- UpdateDataAttributeRequest
public static final class UpdateDataAttributeRequest.Builder extends java.lang.Object implements UpdateDataAttributeRequest.IdStage, 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._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._FinalStageid(int id)The data attribute idUpdateDataAttributeRequest._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<java.lang.String> options)To create list attributes.UpdateDataAttributeRequest._FinalStageoptions(java.util.Optional<java.util.List<java.lang.String>> options)To create list attributes.
-
-
-
Method Detail
-
from
public UpdateDataAttributeRequest.Builder from(UpdateDataAttributeRequest other)
- Specified by:
fromin interfaceUpdateDataAttributeRequest.IdStage
-
id
public UpdateDataAttributeRequest._FinalStage id(int id)
The data attribute idThe data attribute id
- Specified by:
idin interfaceUpdateDataAttributeRequest.IdStage- 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<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 interfaceUpdateDataAttributeRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
options
public UpdateDataAttributeRequest._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 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
-
-