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 IntegerpreviousQnaId()Get the previousQnaId value.StringpreviousUserQuery()Get the previousUserQuery value.QueryContextDTOwithPreviousQnaId(Integer previousQnaId)Set the previousQnaId value.QueryContextDTOwithPreviousUserQuery(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.
-
-