Class KnowledgebaseDTO
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.KnowledgebaseDTO
-
public class KnowledgebaseDTO extends Object
Response schema for CreateKb operation.
-
-
Constructor Summary
Constructors Constructor Description KnowledgebaseDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringhostName()Get the hostName value.Stringid()Get the id value.StringlastAccessedTimestamp()Get the lastAccessedTimestamp value.StringlastChangedTimestamp()Get the lastChangedTimestamp value.StringlastPublishedTimestamp()Get the lastPublishedTimestamp value.Stringname()Get the name value.List<String>sources()Get the sources value.List<String>urls()Get the urls value.StringuserId()Get the userId value.KnowledgebaseDTOwithHostName(String hostName)Set the hostName value.KnowledgebaseDTOwithId(String id)Set the id value.KnowledgebaseDTOwithLastAccessedTimestamp(String lastAccessedTimestamp)Set the lastAccessedTimestamp value.KnowledgebaseDTOwithLastChangedTimestamp(String lastChangedTimestamp)Set the lastChangedTimestamp value.KnowledgebaseDTOwithLastPublishedTimestamp(String lastPublishedTimestamp)Set the lastPublishedTimestamp value.KnowledgebaseDTOwithName(String name)Set the name value.KnowledgebaseDTOwithSources(List<String> sources)Set the sources value.KnowledgebaseDTOwithUrls(List<String> urls)Set the urls value.KnowledgebaseDTOwithUserId(String userId)Set the userId value.
-
-
-
Method Detail
-
id
public String id()
Get the id value.- Returns:
- the id value
-
withId
public KnowledgebaseDTO withId(String id)
Set the id value.- Parameters:
id- the id value to set- Returns:
- the KnowledgebaseDTO object itself.
-
hostName
public String hostName()
Get the hostName value.- Returns:
- the hostName value
-
withHostName
public KnowledgebaseDTO withHostName(String hostName)
Set the hostName value.- Parameters:
hostName- the hostName value to set- Returns:
- the KnowledgebaseDTO object itself.
-
lastAccessedTimestamp
public String lastAccessedTimestamp()
Get the lastAccessedTimestamp value.- Returns:
- the lastAccessedTimestamp value
-
withLastAccessedTimestamp
public KnowledgebaseDTO withLastAccessedTimestamp(String lastAccessedTimestamp)
Set the lastAccessedTimestamp value.- Parameters:
lastAccessedTimestamp- the lastAccessedTimestamp value to set- Returns:
- the KnowledgebaseDTO object itself.
-
lastChangedTimestamp
public String lastChangedTimestamp()
Get the lastChangedTimestamp value.- Returns:
- the lastChangedTimestamp value
-
withLastChangedTimestamp
public KnowledgebaseDTO withLastChangedTimestamp(String lastChangedTimestamp)
Set the lastChangedTimestamp value.- Parameters:
lastChangedTimestamp- the lastChangedTimestamp value to set- Returns:
- the KnowledgebaseDTO object itself.
-
lastPublishedTimestamp
public String lastPublishedTimestamp()
Get the lastPublishedTimestamp value.- Returns:
- the lastPublishedTimestamp value
-
withLastPublishedTimestamp
public KnowledgebaseDTO withLastPublishedTimestamp(String lastPublishedTimestamp)
Set the lastPublishedTimestamp value.- Parameters:
lastPublishedTimestamp- the lastPublishedTimestamp value to set- Returns:
- the KnowledgebaseDTO object itself.
-
name
public String name()
Get the name value.- Returns:
- the name value
-
withName
public KnowledgebaseDTO withName(String name)
Set the name value.- Parameters:
name- the name value to set- Returns:
- the KnowledgebaseDTO object itself.
-
userId
public String userId()
Get the userId value.- Returns:
- the userId value
-
withUserId
public KnowledgebaseDTO withUserId(String userId)
Set the userId value.- Parameters:
userId- the userId value to set- Returns:
- the KnowledgebaseDTO object itself.
-
withUrls
public KnowledgebaseDTO withUrls(List<String> urls)
Set the urls value.- Parameters:
urls- the urls value to set- Returns:
- the KnowledgebaseDTO object itself.
-
withSources
public KnowledgebaseDTO withSources(List<String> sources)
Set the sources value.- Parameters:
sources- the sources value to set- Returns:
- the KnowledgebaseDTO object itself.
-
-