ContextDTO Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.ContextDTO

public class ContextDTO

Context associated with Qna.

Constructor Summary

Constructor Description
ContextDTO()

Method Summary

Modifier and Type Method and Description
Boolean isContextOnly()

Get the isContextOnly value.

List<PromptDTO> prompts()

Get the prompts value.

ContextDTO withIsContextOnly(Boolean isContextOnly)

Set the isContextOnly value.

ContextDTO withPrompts(List<PromptDTO> prompts)

Set the prompts value.

Methods inherited from java.lang.Object

Constructor Details

ContextDTO

public ContextDTO()

Method Details

isContextOnly

public Boolean isContextOnly()

Get the isContextOnly value.

Returns:

the isContextOnly value

prompts

public List prompts()

Get the prompts value.

Returns:

the prompts value

withIsContextOnly

public ContextDTO withIsContextOnly(Boolean isContextOnly)

Set the isContextOnly value.

Parameters:

isContextOnly - the isContextOnly value to set

Returns:

the ContextDTO object itself.

withPrompts

public ContextDTO withPrompts(List prompts)

Set the prompts value.

Parameters:

prompts - the prompts value to set

Returns:

the ContextDTO object itself.

Applies to