Class LemurQuestionAnswerResponse.Builder
- java.lang.Object
-
- com.assemblyai.api.resources.lemur.types.LemurQuestionAnswerResponse.Builder
-
- All Implemented Interfaces:
LemurQuestionAnswerResponse._FinalStage,LemurQuestionAnswerResponse.RequestIdStage
- Enclosing class:
- LemurQuestionAnswerResponse
public static final class LemurQuestionAnswerResponse.Builder extends java.lang.Object implements LemurQuestionAnswerResponse.RequestIdStage, LemurQuestionAnswerResponse._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LemurQuestionAnswerResponse._FinalStageaddAllResponse(java.util.List<LemurQuestionAnswer> response)The answers generated by LeMUR and their questionsLemurQuestionAnswerResponse._FinalStageaddResponse(LemurQuestionAnswer response)The answers generated by LeMUR and their questionsLemurQuestionAnswerResponsebuild()LemurQuestionAnswerResponse.Builderfrom(LemurQuestionAnswerResponse other)LemurQuestionAnswerResponse._FinalStagerequestId(java.lang.String requestId)The ID of the LeMUR requestLemurQuestionAnswerResponse._FinalStageresponse(java.util.List<LemurQuestionAnswer> response)
-
-
-
Method Detail
-
from
public LemurQuestionAnswerResponse.Builder from(LemurQuestionAnswerResponse other)
- Specified by:
fromin interfaceLemurQuestionAnswerResponse.RequestIdStage
-
requestId
public LemurQuestionAnswerResponse._FinalStage requestId(java.lang.String requestId)
The ID of the LeMUR request
- Specified by:
requestIdin interfaceLemurQuestionAnswerResponse.RequestIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAllResponse
public LemurQuestionAnswerResponse._FinalStage addAllResponse(java.util.List<LemurQuestionAnswer> response)
The answers generated by LeMUR and their questions
- Specified by:
addAllResponsein interfaceLemurQuestionAnswerResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addResponse
public LemurQuestionAnswerResponse._FinalStage addResponse(LemurQuestionAnswer response)
The answers generated by LeMUR and their questions
- Specified by:
addResponsein interfaceLemurQuestionAnswerResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
response
public LemurQuestionAnswerResponse._FinalStage response(java.util.List<LemurQuestionAnswer> response)
- Specified by:
responsein interfaceLemurQuestionAnswerResponse._FinalStage
-
build
public LemurQuestionAnswerResponse build()
- Specified by:
buildin interfaceLemurQuestionAnswerResponse._FinalStage
-
-