Class UpdateQnaDTO
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.UpdateQnaDTO
-
public class UpdateQnaDTO extends Object
PATCH Body schema for Update Qna List.
-
-
Constructor Summary
Constructors Constructor Description UpdateQnaDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
answer()
Get the answer value.UpdateQnaDTOContext
context()
Get the context value.Integer
id()
Get the id value.UpdateQnaDTOMetadata
metadata()
Get the metadata value.UpdateQnaDTOQuestions
questions()
Get the questions value.String
source()
Get the source value.UpdateQnaDTO
withAnswer(String answer)
Set the answer value.UpdateQnaDTO
withContext(UpdateQnaDTOContext context)
Set the context value.UpdateQnaDTO
withId(Integer id)
Set the id value.UpdateQnaDTO
withMetadata(UpdateQnaDTOMetadata metadata)
Set the metadata value.UpdateQnaDTO
withQuestions(UpdateQnaDTOQuestions questions)
Set the questions value.UpdateQnaDTO
withSource(String source)
Set the source value.
-
-
-
Method Detail
-
id
public Integer id()
Get the id value.- Returns:
- the id value
-
withId
public UpdateQnaDTO withId(Integer id)
Set the id value.- Parameters:
id
- the id value to set- Returns:
- the UpdateQnaDTO object itself.
-
answer
public String answer()
Get the answer value.- Returns:
- the answer value
-
withAnswer
public UpdateQnaDTO withAnswer(String answer)
Set the answer value.- Parameters:
answer
- the answer value to set- Returns:
- the UpdateQnaDTO object itself.
-
source
public String source()
Get the source value.- Returns:
- the source value
-
withSource
public UpdateQnaDTO withSource(String source)
Set the source value.- Parameters:
source
- the source value to set- Returns:
- the UpdateQnaDTO object itself.
-
questions
public UpdateQnaDTOQuestions questions()
Get the questions value.- Returns:
- the questions value
-
withQuestions
public UpdateQnaDTO withQuestions(UpdateQnaDTOQuestions questions)
Set the questions value.- Parameters:
questions
- the questions value to set- Returns:
- the UpdateQnaDTO object itself.
-
metadata
public UpdateQnaDTOMetadata metadata()
Get the metadata value.- Returns:
- the metadata value
-
withMetadata
public UpdateQnaDTO withMetadata(UpdateQnaDTOMetadata metadata)
Set the metadata value.- Parameters:
metadata
- the metadata value to set- Returns:
- the UpdateQnaDTO object itself.
-
context
public UpdateQnaDTOContext context()
Get the context value.- Returns:
- the context value
-
withContext
public UpdateQnaDTO withContext(UpdateQnaDTOContext context)
Set the context value.- Parameters:
context
- the context value to set- Returns:
- the UpdateQnaDTO object itself.
-
-