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 String
defaultAnswer()
Get the defaultAnswer value.String
defaultAnswerUsedForExtraction()
Get the defaultAnswerUsedForExtraction value.Boolean
enableHierarchicalExtraction()
Get the enableHierarchicalExtraction value.Boolean
enableMultipleLanguages()
Get the enableMultipleLanguages value.List<FileDTO>
files()
Get the files value.String
language()
Get the language value.String
name()
Get the name value.List<QnADTO>
qnaList()
Get the qnaList value.List<String>
urls()
Get the urls value.CreateKbDTO
withDefaultAnswer(String defaultAnswer)
Set the defaultAnswer value.CreateKbDTO
withDefaultAnswerUsedForExtraction(String defaultAnswerUsedForExtraction)
Set the defaultAnswerUsedForExtraction value.CreateKbDTO
withEnableHierarchicalExtraction(Boolean enableHierarchicalExtraction)
Set the enableHierarchicalExtraction value.CreateKbDTO
withEnableMultipleLanguages(Boolean enableMultipleLanguages)
Set the enableMultipleLanguages value.CreateKbDTO
withFiles(List<FileDTO> files)
Set the files value.CreateKbDTO
withLanguage(String language)
Set the language value.CreateKbDTO
withName(String name)
Set the name value.CreateKbDTO
withQnaList(List<QnADTO> qnaList)
Set the qnaList value.CreateKbDTO
withUrls(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.
-
-