Package com.intercom.api.types
Class ConversationPartAuthor.Builder
- java.lang.Object
-
- com.intercom.api.types.ConversationPartAuthor.Builder
-
- All Implemented Interfaces:
ConversationPartAuthor._FinalStage,ConversationPartAuthor.IdStage,ConversationPartAuthor.TypeStage
- Enclosing class:
- ConversationPartAuthor
public static final class ConversationPartAuthor.Builder extends java.lang.Object implements ConversationPartAuthor.TypeStage, ConversationPartAuthor.IdStage, ConversationPartAuthor._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversationPartAuthorbuild()ConversationPartAuthor._FinalStageemail(java.lang.String email)The email of the authorConversationPartAuthor._FinalStageemail(java.util.Optional<java.lang.String> email)The email of the authorConversationPartAuthor.Builderfrom(ConversationPartAuthor other)ConversationPartAuthor._FinalStagefromAiAgent(java.lang.Boolean fromAiAgent)If this conversation part was sent by the AI AgentConversationPartAuthor._FinalStagefromAiAgent(java.util.Optional<java.lang.Boolean> fromAiAgent)If this conversation part was sent by the AI AgentConversationPartAuthor._FinalStageid(java.lang.String id)The id of the authorConversationPartAuthor._FinalStageisAiAnswer(java.lang.Boolean isAiAnswer)If this conversation part body was generated by the AI AgentConversationPartAuthor._FinalStageisAiAnswer(java.util.Optional<java.lang.Boolean> isAiAnswer)If this conversation part body was generated by the AI AgentConversationPartAuthor._FinalStagename(java.lang.String name)The name of the authorConversationPartAuthor._FinalStagename(java.util.Optional<java.lang.String> name)The name of the authorConversationPartAuthor.IdStagetype(java.lang.String type)The type of the author
-
-
-
Method Detail
-
from
public ConversationPartAuthor.Builder from(ConversationPartAuthor other)
- Specified by:
fromin interfaceConversationPartAuthor.TypeStage
-
type
public ConversationPartAuthor.IdStage type(@NotNull java.lang.String type)
The type of the author
The type of the author
- Specified by:
typein interfaceConversationPartAuthor.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public ConversationPartAuthor._FinalStage id(@NotNull java.lang.String id)
The id of the author
The id of the author
- Specified by:
idin interfaceConversationPartAuthor.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
isAiAnswer
public ConversationPartAuthor._FinalStage isAiAnswer(java.lang.Boolean isAiAnswer)
If this conversation part body was generated by the AI Agent
- Specified by:
isAiAnswerin interfaceConversationPartAuthor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
isAiAnswer
public ConversationPartAuthor._FinalStage isAiAnswer(java.util.Optional<java.lang.Boolean> isAiAnswer)
If this conversation part body was generated by the AI Agent
- Specified by:
isAiAnswerin interfaceConversationPartAuthor._FinalStage
-
fromAiAgent
public ConversationPartAuthor._FinalStage fromAiAgent(java.lang.Boolean fromAiAgent)
If this conversation part was sent by the AI Agent
- Specified by:
fromAiAgentin interfaceConversationPartAuthor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
fromAiAgent
public ConversationPartAuthor._FinalStage fromAiAgent(java.util.Optional<java.lang.Boolean> fromAiAgent)
If this conversation part was sent by the AI Agent
- Specified by:
fromAiAgentin interfaceConversationPartAuthor._FinalStage
-
email
public ConversationPartAuthor._FinalStage email(java.lang.String email)
The email of the author
- Specified by:
emailin interfaceConversationPartAuthor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
email
public ConversationPartAuthor._FinalStage email(java.util.Optional<java.lang.String> email)
The email of the author
- Specified by:
emailin interfaceConversationPartAuthor._FinalStage
-
name
public ConversationPartAuthor._FinalStage name(java.lang.String name)
The name of the author
- Specified by:
namein interfaceConversationPartAuthor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public ConversationPartAuthor._FinalStage name(java.util.Optional<java.lang.String> name)
The name of the author
- Specified by:
namein interfaceConversationPartAuthor._FinalStage
-
build
public ConversationPartAuthor build()
- Specified by:
buildin interfaceConversationPartAuthor._FinalStage
-
-