Class QnADTO
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.QnADTO
-
- Direct Known Subclasses:
PromptDTOQna
public class QnADTO extends Object
Q-A object.
-
-
Constructor Summary
Constructors Constructor Description QnADTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringanswer()Get the answer value.QnADTOContextcontext()Get the context value.Integerid()Get the id value.StringlastUpdatedTimestamp()Get the lastUpdatedTimestamp value.List<MetadataDTO>metadata()Get the metadata value.List<String>questions()Get the questions value.Stringsource()Get the source value.QnADTOwithAnswer(String answer)Set the answer value.QnADTOwithContext(QnADTOContext context)Set the context value.QnADTOwithId(Integer id)Set the id value.QnADTOwithLastUpdatedTimestamp(String lastUpdatedTimestamp)Set the lastUpdatedTimestamp value.QnADTOwithMetadata(List<MetadataDTO> metadata)Set the metadata value.QnADTOwithQuestions(List<String> questions)Set the questions value.QnADTOwithSource(String source)Set the source value.
-
-
-
Method Detail
-
id
public Integer id()
Get the id value.- Returns:
- the id value
-
withId
public QnADTO withId(Integer id)
Set the id value.- Parameters:
id- the id value to set- Returns:
- the QnADTO object itself.
-
answer
public String answer()
Get the answer value.- Returns:
- the answer value
-
withAnswer
public QnADTO withAnswer(String answer)
Set the answer value.- Parameters:
answer- the answer value to set- Returns:
- the QnADTO object itself.
-
source
public String source()
Get the source value.- Returns:
- the source value
-
withSource
public QnADTO withSource(String source)
Set the source value.- Parameters:
source- the source value to set- Returns:
- the QnADTO object itself.
-
withQuestions
public QnADTO withQuestions(List<String> questions)
Set the questions value.- Parameters:
questions- the questions value to set- Returns:
- the QnADTO object itself.
-
metadata
public List<MetadataDTO> metadata()
Get the metadata value.- Returns:
- the metadata value
-
withMetadata
public QnADTO withMetadata(List<MetadataDTO> metadata)
Set the metadata value.- Parameters:
metadata- the metadata value to set- Returns:
- the QnADTO object itself.
-
context
public QnADTOContext context()
Get the context value.- Returns:
- the context value
-
withContext
public QnADTO withContext(QnADTOContext context)
Set the context value.- Parameters:
context- the context value to set- Returns:
- the QnADTO object itself.
-
lastUpdatedTimestamp
public String lastUpdatedTimestamp()
Get the lastUpdatedTimestamp value.- Returns:
- the lastUpdatedTimestamp value
-
-