Class QueryContextDTO
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.QueryContextDTO
-
- Direct Known Subclasses:
QueryDTOContext
public class QueryContextDTO extends Object
Context object with previous QnA's information.
-
-
Constructor Summary
Constructors Constructor Description QueryContextDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
previousQnaId()
Get the previousQnaId value.String
previousUserQuery()
Get the previousUserQuery value.QueryContextDTO
withPreviousQnaId(Integer previousQnaId)
Set the previousQnaId value.QueryContextDTO
withPreviousUserQuery(String previousUserQuery)
Set the previousUserQuery value.
-
-
-
Method Detail
-
previousQnaId
public Integer previousQnaId()
Get the previousQnaId value.- Returns:
- the previousQnaId value
-
withPreviousQnaId
public QueryContextDTO withPreviousQnaId(Integer previousQnaId)
Set the previousQnaId value.- Parameters:
previousQnaId
- the previousQnaId value to set- Returns:
- the QueryContextDTO object itself.
-
previousUserQuery
public String previousUserQuery()
Get the previousUserQuery value.- Returns:
- the previousUserQuery value
-
withPreviousUserQuery
public QueryContextDTO withPreviousUserQuery(String previousUserQuery)
Set the previousUserQuery value.- Parameters:
previousUserQuery
- the previousUserQuery value to set- Returns:
- the QueryContextDTO object itself.
-
-