Class UpdateContextDTO
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.UpdateContextDTO
-
- Direct Known Subclasses:
UpdateQnaDTOContext
public class UpdateContextDTO extends Object
Update Body schema to represent context to be updated.
-
-
Constructor Summary
Constructors Constructor Description UpdateContextDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
isContextOnly()
Get the isContextOnly value.List<PromptDTO>
promptsToAdd()
Get the promptsToAdd value.List<Integer>
promptsToDelete()
Get the promptsToDelete value.UpdateContextDTO
withIsContextOnly(Boolean isContextOnly)
Set the isContextOnly value.UpdateContextDTO
withPromptsToAdd(List<PromptDTO> promptsToAdd)
Set the promptsToAdd value.UpdateContextDTO
withPromptsToDelete(List<Integer> promptsToDelete)
Set the promptsToDelete value.
-
-
-
Method Detail
-
promptsToDelete
public List<Integer> promptsToDelete()
Get the promptsToDelete value.- Returns:
- the promptsToDelete value
-
withPromptsToDelete
public UpdateContextDTO withPromptsToDelete(List<Integer> promptsToDelete)
Set the promptsToDelete value.- Parameters:
promptsToDelete
- the promptsToDelete value to set- Returns:
- the UpdateContextDTO object itself.
-
promptsToAdd
public List<PromptDTO> promptsToAdd()
Get the promptsToAdd value.- Returns:
- the promptsToAdd value
-
withPromptsToAdd
public UpdateContextDTO withPromptsToAdd(List<PromptDTO> promptsToAdd)
Set the promptsToAdd value.- Parameters:
promptsToAdd
- the promptsToAdd value to set- Returns:
- the UpdateContextDTO object itself.
-
isContextOnly
public Boolean isContextOnly()
Get the isContextOnly value.- Returns:
- the isContextOnly value
-
withIsContextOnly
public UpdateContextDTO withIsContextOnly(Boolean isContextOnly)
Set the isContextOnly value.- Parameters:
isContextOnly
- the isContextOnly value to set- Returns:
- the UpdateContextDTO object itself.
-
-