QnAMakerEndpoint Class

  • java.lang.Object
    • com.microsoft.bot.ai.qna.QnAMakerEndpoint

public class QnAMakerEndpoint

Defines an endpoint used to connect to a QnA Maker Knowledge base.

Constructor Summary

Constructor Description
QnAMakerEndpoint()

Initializes a new instance of the QnAMakerEndpoint class.

Method Summary

Modifier and Type Method and Description
java.lang.String getEndpointKey()

Gets the endpoint key for the knowledge base.

java.lang.String getHost()

Gets the host path.

java.lang.String getKnowledgeBaseId()

Gets the knowledge base ID.

void setEndpointKey(String withEndpointKey)

Sets the endpoint key for the knowledge base.

void setHost(String withHost)

Sets the host path.

void setKnowledgeBaseId(String withKnowledgeBaseId)

Sets the knowledge base ID.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

QnAMakerEndpoint

public QnAMakerEndpoint()

Initializes a new instance of the QnAMakerEndpoint class.

Method Details

getEndpointKey

public String getEndpointKey()

Gets the endpoint key for the knowledge base.

Returns:

The endpoint key for the knowledge base.

getHost

public String getHost()

Gets the host path. For example "https://westus.api.cognitive.microsoft.com/qnamaker/v2.0".

Returns:

The host path.

getKnowledgeBaseId

public String getKnowledgeBaseId()

Gets the knowledge base ID.

Returns:

The knowledge base ID.

setEndpointKey

public void setEndpointKey(String withEndpointKey)

Sets the endpoint key for the knowledge base.

Parameters:

withEndpointKey - The endpoint key for the knowledge base.

setHost

public void setHost(String withHost)

Sets the host path. For example "https://westus.api.cognitive.microsoft.com/qnamaker/v2.0".

Parameters:

withHost - The host path.

setKnowledgeBaseId

public void setKnowledgeBaseId(String withKnowledgeBaseId)

Sets the knowledge base ID.

Parameters:

withKnowledgeBaseId - The knowledge base ID.

Applies to