Class AiAgent.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.aiagent.types.AiAgent.Builder
-
- Enclosing class:
- AiAgent
public static final class AiAgent.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AiAgentbuild()AiAgent.BuildercontentSources(ContentSourcesList contentSources)AiAgent.BuildercontentSources(java.util.Optional<ContentSourcesList> contentSources)AiAgent.BuildercreatedAt(java.lang.Integer createdAt)AiAgent.BuildercreatedAt(java.util.Optional<java.lang.Integer> createdAt)The time when the AI agent rating was created.AiAgent.Builderfrom(AiAgent other)AiAgent.BuilderlastAnswerType(AiAgent.LastAnswerType lastAnswerType)AiAgent.BuilderlastAnswerType(java.util.Optional<AiAgent.LastAnswerType> lastAnswerType)The type of the last answer delivered by AI Agent.AiAgent.Builderrating(java.lang.Integer rating)AiAgent.Builderrating(java.util.Optional<java.lang.Integer> rating)The customer satisfaction rating given to AI Agent, from 1-5.AiAgent.BuilderratingRemark(java.lang.String ratingRemark)AiAgent.BuilderratingRemark(java.util.Optional<java.lang.String> ratingRemark)The customer satisfaction rating remark given to AI Agent.AiAgent.BuilderresolutionState(AiAgent.ResolutionState resolutionState)AiAgent.BuilderresolutionState(java.util.Optional<AiAgent.ResolutionState> resolutionState)The resolution state of AI Agent.AiAgent.BuildersourceTitle(java.lang.String sourceTitle)AiAgent.BuildersourceTitle(java.util.Optional<java.lang.String> sourceTitle)The title of the source that triggered AI Agent involvement in the conversation.AiAgent.BuildersourceType(AiAgent.SourceType sourceType)AiAgent.BuildersourceType(java.util.Optional<AiAgent.SourceType> sourceType)The type of the source that triggered AI Agent involvement in the conversation.AiAgent.BuilderupdatedAt(java.lang.Integer updatedAt)AiAgent.BuilderupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)The time when the AI agent rating was last updated.
-
-
-
Method Detail
-
from
public AiAgent.Builder from(AiAgent other)
-
sourceType
public AiAgent.Builder sourceType(java.util.Optional<AiAgent.SourceType> sourceType)
The type of the source that triggered AI Agent involvement in the conversation.
-
sourceType
public AiAgent.Builder sourceType(AiAgent.SourceType sourceType)
-
sourceTitle
public AiAgent.Builder 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.
-
sourceTitle
public AiAgent.Builder sourceTitle(java.lang.String sourceTitle)
-
lastAnswerType
public AiAgent.Builder lastAnswerType(java.util.Optional<AiAgent.LastAnswerType> lastAnswerType)
The type of the last answer delivered by AI Agent. If no answer was delivered then this will return
null
-
lastAnswerType
public AiAgent.Builder lastAnswerType(AiAgent.LastAnswerType lastAnswerType)
-
resolutionState
public AiAgent.Builder resolutionState(java.util.Optional<AiAgent.ResolutionState> resolutionState)
The resolution state of AI Agent. If no AI or custom answer has been delivered then this will return
null.
-
resolutionState
public AiAgent.Builder resolutionState(AiAgent.ResolutionState resolutionState)
-
rating
public AiAgent.Builder rating(java.util.Optional<java.lang.Integer> rating)
The customer satisfaction rating given to AI Agent, from 1-5.
-
rating
public AiAgent.Builder rating(java.lang.Integer rating)
-
ratingRemark
public AiAgent.Builder ratingRemark(java.util.Optional<java.lang.String> ratingRemark)
The customer satisfaction rating remark given to AI Agent.
-
ratingRemark
public AiAgent.Builder ratingRemark(java.lang.String ratingRemark)
-
createdAt
public AiAgent.Builder createdAt(java.util.Optional<java.lang.Integer> createdAt)
The time when the AI agent rating was created.
-
createdAt
public AiAgent.Builder createdAt(java.lang.Integer createdAt)
-
updatedAt
public AiAgent.Builder updatedAt(java.util.Optional<java.lang.Integer> updatedAt)
The time when the AI agent rating was last updated.
-
updatedAt
public AiAgent.Builder updatedAt(java.lang.Integer updatedAt)
-
contentSources
public AiAgent.Builder contentSources(java.util.Optional<ContentSourcesList> contentSources)
-
contentSources
public AiAgent.Builder contentSources(ContentSourcesList contentSources)
-
build
public AiAgent build()
-
-