Class RetrieveConversationRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.conversations.requests.RetrieveConversationRequest.Builder
-
- All Implemented Interfaces:
RetrieveConversationRequest._FinalStage,RetrieveConversationRequest.IdStage
- Enclosing class:
- RetrieveConversationRequest
public static final class RetrieveConversationRequest.Builder extends java.lang.Object implements RetrieveConversationRequest.IdStage, RetrieveConversationRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RetrieveConversationRequestbuild()RetrieveConversationRequest._FinalStagedisplayAs(java.lang.String displayAs)Set to plaintext to retrieve conversation messages in plain text.RetrieveConversationRequest._FinalStagedisplayAs(java.util.Optional<java.lang.String> displayAs)Set to plaintext to retrieve conversation messages in plain text.RetrieveConversationRequest.Builderfrom(RetrieveConversationRequest other)RetrieveConversationRequest._FinalStageid(int id)The id of the conversation to targetRetrieveConversationRequest._FinalStageincludeTranslations(java.lang.Boolean includeTranslations)If set to true, conversation parts will be translated to the detected language of the conversation.RetrieveConversationRequest._FinalStageincludeTranslations(java.util.Optional<java.lang.Boolean> includeTranslations)If set to true, conversation parts will be translated to the detected language of the conversation.
-
-
-
Method Detail
-
from
public RetrieveConversationRequest.Builder from(RetrieveConversationRequest other)
- Specified by:
fromin interfaceRetrieveConversationRequest.IdStage
-
id
public RetrieveConversationRequest._FinalStage id(int id)
The id of the conversation to target
The id of the conversation to target
- Specified by:
idin interfaceRetrieveConversationRequest.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
includeTranslations
public RetrieveConversationRequest._FinalStage includeTranslations(java.lang.Boolean includeTranslations)
If set to true, conversation parts will be translated to the detected language of the conversation.
- Specified by:
includeTranslationsin interfaceRetrieveConversationRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
includeTranslations
public RetrieveConversationRequest._FinalStage includeTranslations(java.util.Optional<java.lang.Boolean> includeTranslations)
If set to true, conversation parts will be translated to the detected language of the conversation.
- Specified by:
includeTranslationsin interfaceRetrieveConversationRequest._FinalStage
-
displayAs
public RetrieveConversationRequest._FinalStage displayAs(java.lang.String displayAs)
Set to plaintext to retrieve conversation messages in plain text. This affects both the body and subject fields.
- Specified by:
displayAsin interfaceRetrieveConversationRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
displayAs
public RetrieveConversationRequest._FinalStage displayAs(java.util.Optional<java.lang.String> displayAs)
Set to plaintext to retrieve conversation messages in plain text. This affects both the body and subject fields.
- Specified by:
displayAsin interfaceRetrieveConversationRequest._FinalStage
-
build
public RetrieveConversationRequest build()
- Specified by:
buildin interfaceRetrieveConversationRequest._FinalStage
-
-