Class CreateKbDTO
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.CreateKbDTO
-
public class CreateKbDTO extends Object
Post body schema for CreateKb operation.
-
-
Constructor Summary
Constructors Constructor Description CreateKbDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdefaultAnswer()Get the defaultAnswer value.StringdefaultAnswerUsedForExtraction()Get the defaultAnswerUsedForExtraction value.BooleanenableHierarchicalExtraction()Get the enableHierarchicalExtraction value.BooleanenableMultipleLanguages()Get the enableMultipleLanguages value.List<FileDTO>files()Get the files value.Stringlanguage()Get the language value.Stringname()Get the name value.List<QnADTO>qnaList()Get the qnaList value.List<String>urls()Get the urls value.CreateKbDTOwithDefaultAnswer(String defaultAnswer)Set the defaultAnswer value.CreateKbDTOwithDefaultAnswerUsedForExtraction(String defaultAnswerUsedForExtraction)Set the defaultAnswerUsedForExtraction value.CreateKbDTOwithEnableHierarchicalExtraction(Boolean enableHierarchicalExtraction)Set the enableHierarchicalExtraction value.CreateKbDTOwithEnableMultipleLanguages(Boolean enableMultipleLanguages)Set the enableMultipleLanguages value.CreateKbDTOwithFiles(List<FileDTO> files)Set the files value.CreateKbDTOwithLanguage(String language)Set the language value.CreateKbDTOwithName(String name)Set the name value.CreateKbDTOwithQnaList(List<QnADTO> qnaList)Set the qnaList value.CreateKbDTOwithUrls(List<String> urls)Set the urls value.
-
-
-
Method Detail
-
name
public String name()
Get the name value.- Returns:
- the name value
-
withName
public CreateKbDTO withName(String name)
Set the name value.- Parameters:
name- the name value to set- Returns:
- the CreateKbDTO object itself.
-
withQnaList
public CreateKbDTO withQnaList(List<QnADTO> qnaList)
Set the qnaList value.- Parameters:
qnaList- the qnaList value to set- Returns:
- the CreateKbDTO object itself.
-
withUrls
public CreateKbDTO withUrls(List<String> urls)
Set the urls value.- Parameters:
urls- the urls value to set- Returns:
- the CreateKbDTO object itself.
-
withFiles
public CreateKbDTO withFiles(List<FileDTO> files)
Set the files value.- Parameters:
files- the files value to set- Returns:
- the CreateKbDTO object itself.
-
enableHierarchicalExtraction
public Boolean enableHierarchicalExtraction()
Get the enableHierarchicalExtraction value.- Returns:
- the enableHierarchicalExtraction value
-
withEnableHierarchicalExtraction
public CreateKbDTO withEnableHierarchicalExtraction(Boolean enableHierarchicalExtraction)
Set the enableHierarchicalExtraction value.- Parameters:
enableHierarchicalExtraction- the enableHierarchicalExtraction value to set- Returns:
- the CreateKbDTO object itself.
-
defaultAnswerUsedForExtraction
public String defaultAnswerUsedForExtraction()
Get the defaultAnswerUsedForExtraction value.- Returns:
- the defaultAnswerUsedForExtraction value
-
withDefaultAnswerUsedForExtraction
public CreateKbDTO withDefaultAnswerUsedForExtraction(String defaultAnswerUsedForExtraction)
Set the defaultAnswerUsedForExtraction value.- Parameters:
defaultAnswerUsedForExtraction- the defaultAnswerUsedForExtraction value to set- Returns:
- the CreateKbDTO object itself.
-
language
public String language()
Get the language value.- Returns:
- the language value
-
withLanguage
public CreateKbDTO withLanguage(String language)
Set the language value.- Parameters:
language- the language value to set- Returns:
- the CreateKbDTO object itself.
-
enableMultipleLanguages
public Boolean enableMultipleLanguages()
Get the enableMultipleLanguages value.- Returns:
- the enableMultipleLanguages value
-
withEnableMultipleLanguages
public CreateKbDTO withEnableMultipleLanguages(Boolean enableMultipleLanguages)
Set the enableMultipleLanguages value.- Parameters:
enableMultipleLanguages- the enableMultipleLanguages value to set- Returns:
- the CreateKbDTO object itself.
-
defaultAnswer
public String defaultAnswer()
Get the defaultAnswer value.- Returns:
- the defaultAnswer value
-
withDefaultAnswer
public CreateKbDTO withDefaultAnswer(String defaultAnswer)
Set the defaultAnswer value.- Parameters:
defaultAnswer- the defaultAnswer value to set- Returns:
- the CreateKbDTO object itself.
-
-