QnADTO Class

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

public class QnADTO

Q-A object.

Constructor Summary

Constructor Description
QnADTO()

Method Summary

Modifier and Type Method and Description
String answer()

Get the answer value.

QnADTOContext context()

Get the context value.

Integer id()

Get the id value.

String lastUpdatedTimestamp()

Get the lastUpdatedTimestamp value.

List<MetadataDTO> metadata()

Get the metadata value.

List<String> questions()

Get the questions value.

String source()

Get the source value.

QnADTO withAnswer(String answer)

Set the answer value.

QnADTO withContext(QnADTOContext context)

Set the context value.

QnADTO withId(Integer id)

Set the id value.

QnADTO withLastUpdatedTimestamp(String lastUpdatedTimestamp)

Set the lastUpdatedTimestamp value.

QnADTO withMetadata(List<MetadataDTO> metadata)

Set the metadata value.

QnADTO withQuestions(List<String> questions)

Set the questions value.

QnADTO withSource(String source)

Set the source value.

Methods inherited from java.lang.Object

Constructor Details

QnADTO

public QnADTO()

Method Details

answer

public String answer()

Get the answer value.

Returns:

the answer value

context

public QnADTOContext context()

Get the context value.

Returns:

the context value

id

public Integer id()

Get the id value.

Returns:

the id value

lastUpdatedTimestamp

public String lastUpdatedTimestamp()

Get the lastUpdatedTimestamp value.

Returns:

the lastUpdatedTimestamp value

metadata

public List metadata()

Get the metadata value.

Returns:

the metadata value

questions

public List questions()

Get the questions value.

Returns:

the questions value

source

public String source()

Get the source value.

Returns:

the source value

withAnswer

public QnADTO withAnswer(String answer)

Set the answer value.

Parameters:

answer - the answer value to set

Returns:

the QnADTO object itself.

withContext

public QnADTO withContext(QnADTOContext context)

Set the context value.

Parameters:

context - the context value to set

Returns:

the QnADTO object itself.

withId

public QnADTO withId(Integer id)

Set the id value.

Parameters:

id - the id value to set

Returns:

the QnADTO object itself.

withLastUpdatedTimestamp

public QnADTO withLastUpdatedTimestamp(String lastUpdatedTimestamp)

Set the lastUpdatedTimestamp value.

Parameters:

lastUpdatedTimestamp - the lastUpdatedTimestamp value to set

Returns:

the QnADTO object itself.

withMetadata

public QnADTO withMetadata(List metadata)

Set the metadata value.

Parameters:

metadata - the metadata value to set

Returns:

the QnADTO object itself.

withQuestions

public QnADTO withQuestions(List questions)

Set the questions value.

Parameters:

questions - the questions value to set

Returns:

the QnADTO object itself.

withSource

public QnADTO withSource(String source)

Set the source value.

Parameters:

source - the source value to set

Returns:

the QnADTO object itself.

Applies to