QnADTO Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. knowledge. qnamaker. models. QnADTO
- com.
public class QnADTO
Q-A object.
Constructor Summary
Constructor | Description | |
---|---|---|
QnADTO() |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
answer()
Get the answer value. |
Qn |
context()
Get the context value. |
Integer |
id()
Get the id value. |
String |
lastUpdatedTimestamp()
Get the last |
List<MetadataDTO> |
metadata()
Get the metadata value. |
List<String> |
questions()
Get the questions value. |
String |
source()
Get the source value. |
QnADTO |
withAnswer(String answer)
Set the answer value. |
QnADTO |
withContext(QnADTOContext context)
Set the context value. |
QnADTO |
withId(Integer id)
Set the id value. |
QnADTO |
withLastUpdatedTimestamp(String lastUpdatedTimestamp)
Set the last |
QnADTO |
withMetadata(List<MetadataDTO> metadata)
Set the metadata value. |
QnADTO |
withQuestions(List<String> questions)
Set the questions value. |
QnADTO |
withSource(String source)
Set the source value. |
Methods inherited from java.lang.Object
Constructor Details
QnADTO
public QnADTO()
Method Details
answer
public String answer()
Get the answer value.
Returns:
context
public QnADTOContext context()
Get the context value.
Returns:
id
public Integer id()
Get the id value.
Returns:
lastUpdatedTimestamp
public String lastUpdatedTimestamp()
Get the lastUpdatedTimestamp value.
Returns:
metadata
public List
Get the metadata value.
Returns:
questions
public List
Get the questions value.
Returns:
source
public String source()
Get the source value.
Returns:
withAnswer
public QnADTO withAnswer(String answer)
Set the answer value.
Parameters:
Returns:
withContext
public QnADTO withContext(QnADTOContext context)
Set the context value.
Parameters:
Returns:
withId
public QnADTO withId(Integer id)
Set the id value.
Parameters:
Returns:
withLastUpdatedTimestamp
public QnADTO withLastUpdatedTimestamp(String lastUpdatedTimestamp)
Set the lastUpdatedTimestamp value.
Parameters:
Returns:
withMetadata
public QnADTO withMetadata(List
Set the metadata value.
Parameters:
Returns:
withQuestions
public QnADTO withQuestions(List
Set the questions value.
Parameters:
Returns:
withSource
public QnADTO withSource(String source)
Set the source value.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for