Class UpdateConversationRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.conversations.requests.UpdateConversationRequest.Builder
-
- All Implemented Interfaces:
UpdateConversationRequest._FinalStage,UpdateConversationRequest.ConversationIdStage
- Enclosing class:
- UpdateConversationRequest
public static final class UpdateConversationRequest.Builder extends java.lang.Object implements UpdateConversationRequest.ConversationIdStage, UpdateConversationRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateConversationRequestbuild()UpdateConversationRequest._FinalStagecompanyId(java.lang.String companyId)The ID of the company that the conversation is associated with.UpdateConversationRequest._FinalStagecompanyId(java.util.Optional<java.lang.String> companyId)The ID of the company that the conversation is associated with.UpdateConversationRequest._FinalStageconversationId(java.lang.String conversationId)The id of the conversation to targetUpdateConversationRequest._FinalStagecustomAttributes(java.util.Map<java.lang.String,UpdateConversationRequest.CustomAttributesValue> customAttributes)UpdateConversationRequest._FinalStagecustomAttributes(java.util.Optional<java.util.Map<java.lang.String,UpdateConversationRequest.CustomAttributesValue>> customAttributes)UpdateConversationRequest._FinalStagedisplayAs(java.lang.String displayAs)Set to plaintext to retrieve conversation messages in plain text.UpdateConversationRequest._FinalStagedisplayAs(java.util.Optional<java.lang.String> displayAs)Set to plaintext to retrieve conversation messages in plain text.UpdateConversationRequest.Builderfrom(UpdateConversationRequest other)UpdateConversationRequest._FinalStageread(java.lang.Boolean read)Mark a conversation as read within Intercom.UpdateConversationRequest._FinalStageread(java.util.Optional<java.lang.Boolean> read)Mark a conversation as read within Intercom.UpdateConversationRequest._FinalStagetitle(java.lang.String title)The title given to the conversationUpdateConversationRequest._FinalStagetitle(java.util.Optional<java.lang.String> title)The title given to the conversation
-
-
-
Method Detail
-
from
public UpdateConversationRequest.Builder from(UpdateConversationRequest other)
- Specified by:
fromin interfaceUpdateConversationRequest.ConversationIdStage
-
conversationId
public UpdateConversationRequest._FinalStage conversationId(@NotNull java.lang.String conversationId)
The id of the conversation to target
The id of the conversation to target
- Specified by:
conversationIdin interfaceUpdateConversationRequest.ConversationIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
companyId
public UpdateConversationRequest._FinalStage companyId(java.lang.String companyId)
The ID of the company that the conversation is associated with. The unique identifier for the company which is given by Intercom. Set to nil to remove company.
- Specified by:
companyIdin interfaceUpdateConversationRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
companyId
public UpdateConversationRequest._FinalStage companyId(java.util.Optional<java.lang.String> companyId)
The ID of the company that the conversation is associated with. The unique identifier for the company which is given by Intercom. Set to nil to remove company.
- Specified by:
companyIdin interfaceUpdateConversationRequest._FinalStage
-
customAttributes
public UpdateConversationRequest._FinalStage customAttributes(java.util.Map<java.lang.String,UpdateConversationRequest.CustomAttributesValue> customAttributes)
- Specified by:
customAttributesin interfaceUpdateConversationRequest._FinalStage
-
customAttributes
public UpdateConversationRequest._FinalStage customAttributes(java.util.Optional<java.util.Map<java.lang.String,UpdateConversationRequest.CustomAttributesValue>> customAttributes)
- Specified by:
customAttributesin interfaceUpdateConversationRequest._FinalStage
-
title
public UpdateConversationRequest._FinalStage title(java.lang.String title)
The title given to the conversation
- Specified by:
titlein interfaceUpdateConversationRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
title
public UpdateConversationRequest._FinalStage title(java.util.Optional<java.lang.String> title)
The title given to the conversation
- Specified by:
titlein interfaceUpdateConversationRequest._FinalStage
-
read
public UpdateConversationRequest._FinalStage read(java.lang.Boolean read)
Mark a conversation as read within Intercom.
- Specified by:
readin interfaceUpdateConversationRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
read
public UpdateConversationRequest._FinalStage read(java.util.Optional<java.lang.Boolean> read)
Mark a conversation as read within Intercom.
- Specified by:
readin interfaceUpdateConversationRequest._FinalStage
-
displayAs
public UpdateConversationRequest._FinalStage displayAs(java.lang.String displayAs)
Set to plaintext to retrieve conversation messages in plain text.
- Specified by:
displayAsin interfaceUpdateConversationRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
displayAs
public UpdateConversationRequest._FinalStage displayAs(java.util.Optional<java.lang.String> displayAs)
Set to plaintext to retrieve conversation messages in plain text.
- Specified by:
displayAsin interfaceUpdateConversationRequest._FinalStage
-
build
public UpdateConversationRequest build()
- Specified by:
buildin interfaceUpdateConversationRequest._FinalStage
-
-