Class AiAgent.Builder
- java.lang.Object
-
- com.intercom.api.resources.aiagent.types.AiAgent.Builder
-
- All Implemented Interfaces:
AiAgent._FinalStage,AiAgent.SourceTypeStage
- Enclosing class:
- AiAgent
public static final class AiAgent.Builder extends java.lang.Object implements AiAgent.SourceTypeStage, AiAgent._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AiAgentbuild()AiAgent._FinalStagecontentSources(ContentSourcesList contentSources)AiAgent._FinalStagecontentSources(java.util.Optional<ContentSourcesList> contentSources)AiAgent.Builderfrom(AiAgent other)AiAgent._FinalStagelastAnswerType(java.lang.String lastAnswerType)The type of the last answer delivered by AI Agent.AiAgent._FinalStagelastAnswerType(java.util.Optional<java.lang.String> lastAnswerType)The type of the last answer delivered by AI Agent.AiAgent._FinalStagerating(java.lang.Integer rating)The customer satisfaction rating given to AI Agent, from 1-5.AiAgent._FinalStagerating(java.util.Optional<java.lang.Integer> rating)The customer satisfaction rating given to AI Agent, from 1-5.AiAgent._FinalStageratingRemark(java.lang.String ratingRemark)The customer satisfaction rating remark given to AI Agent.AiAgent._FinalStageratingRemark(java.util.Optional<java.lang.String> ratingRemark)The customer satisfaction rating remark given to AI Agent.AiAgent._FinalStageresolutionState(java.lang.String resolutionState)The resolution state of AI Agent.AiAgent._FinalStageresolutionState(java.util.Optional<java.lang.String> resolutionState)The resolution state of AI Agent.AiAgent._FinalStagesourceTitle(java.lang.String sourceTitle)The title of the source that triggered AI Agent involvement in the conversation.AiAgent._FinalStagesourceTitle(java.util.Optional<java.lang.String> sourceTitle)The title of the source that triggered AI Agent involvement in the conversation.AiAgent._FinalStagesourceType(AiAgent.SourceType sourceType)The type of the source that triggered AI Agent involvement in the conversation.
-
-
-
Method Detail
-
from
public AiAgent.Builder from(AiAgent other)
- Specified by:
fromin interfaceAiAgent.SourceTypeStage
-
sourceType
public AiAgent._FinalStage sourceType(@NotNull AiAgent.SourceType sourceType)
The type of the source that triggered AI Agent involvement in the conversation.The type of the source that triggered AI Agent involvement in the conversation.
- Specified by:
sourceTypein interfaceAiAgent.SourceTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contentSources
public AiAgent._FinalStage contentSources(ContentSourcesList contentSources)
- Specified by:
contentSourcesin interfaceAiAgent._FinalStage
-
contentSources
public AiAgent._FinalStage contentSources(java.util.Optional<ContentSourcesList> contentSources)
- Specified by:
contentSourcesin interfaceAiAgent._FinalStage
-
ratingRemark
public AiAgent._FinalStage ratingRemark(java.lang.String ratingRemark)
The customer satisfaction rating remark given to AI Agent.
- Specified by:
ratingRemarkin interfaceAiAgent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
ratingRemark
public AiAgent._FinalStage ratingRemark(java.util.Optional<java.lang.String> ratingRemark)
The customer satisfaction rating remark given to AI Agent.
- Specified by:
ratingRemarkin interfaceAiAgent._FinalStage
-
rating
public AiAgent._FinalStage rating(java.lang.Integer rating)
The customer satisfaction rating given to AI Agent, from 1-5.
- Specified by:
ratingin interfaceAiAgent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
rating
public AiAgent._FinalStage rating(java.util.Optional<java.lang.Integer> rating)
The customer satisfaction rating given to AI Agent, from 1-5.
- Specified by:
ratingin interfaceAiAgent._FinalStage
-
resolutionState
public AiAgent._FinalStage resolutionState(java.lang.String resolutionState)
The resolution state of AI Agent. If no AI or custom answer has been delivered then this will return
null.- Specified by:
resolutionStatein interfaceAiAgent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
resolutionState
public AiAgent._FinalStage resolutionState(java.util.Optional<java.lang.String> resolutionState)
The resolution state of AI Agent. If no AI or custom answer has been delivered then this will return
null.- Specified by:
resolutionStatein interfaceAiAgent._FinalStage
-
lastAnswerType
public AiAgent._FinalStage lastAnswerType(java.lang.String lastAnswerType)
The type of the last answer delivered by AI Agent. If no answer was delivered then this will return
null- Specified by:
lastAnswerTypein interfaceAiAgent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
lastAnswerType
public AiAgent._FinalStage lastAnswerType(java.util.Optional<java.lang.String> lastAnswerType)
The type of the last answer delivered by AI Agent. If no answer was delivered then this will return
null- Specified by:
lastAnswerTypein interfaceAiAgent._FinalStage
-
sourceTitle
public AiAgent._FinalStage sourceTitle(java.lang.String sourceTitle)
The title of the source that triggered AI Agent involvement in the conversation. If this is
essentials_plan_setupthen it will returnnull.- Specified by:
sourceTitlein interfaceAiAgent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
sourceTitle
public AiAgent._FinalStage sourceTitle(java.util.Optional<java.lang.String> sourceTitle)
The title of the source that triggered AI Agent involvement in the conversation. If this is
essentials_plan_setupthen it will returnnull.- Specified by:
sourceTitlein interfaceAiAgent._FinalStage
-
build
public AiAgent build()
- Specified by:
buildin interfaceAiAgent._FinalStage
-
-