/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about how to render the content.See Also:
AWS
* API Reference
A URI template containing exactly one variable in ${variableName}
*
format. This can only be set for EXTERNAL
knowledge bases.
* For Salesforce, ServiceNow, and Zendesk, the variable must be one of the
* following:
Salesforce: Id
,
* ArticleNumber
, VersionNumber
, Title
,
* PublishStatus
, or IsDeleted
ServiceNow: number
, short_description
,
* sys_mod_count
, workflow_state
, or active
*
Zendesk: id
, title
,
* updated_at
, or draft
The variable * is replaced with the actual value for a piece of content when calling GetContent. *
*/ inline const Aws::String& GetTemplateUri() const{ return m_templateUri; } /** *A URI template containing exactly one variable in ${variableName}
*
format. This can only be set for EXTERNAL
knowledge bases.
* For Salesforce, ServiceNow, and Zendesk, the variable must be one of the
* following:
Salesforce: Id
,
* ArticleNumber
, VersionNumber
, Title
,
* PublishStatus
, or IsDeleted
ServiceNow: number
, short_description
,
* sys_mod_count
, workflow_state
, or active
*
Zendesk: id
, title
,
* updated_at
, or draft
The variable * is replaced with the actual value for a piece of content when calling GetContent. *
*/ inline bool TemplateUriHasBeenSet() const { return m_templateUriHasBeenSet; } /** *A URI template containing exactly one variable in ${variableName}
*
format. This can only be set for EXTERNAL
knowledge bases.
* For Salesforce, ServiceNow, and Zendesk, the variable must be one of the
* following:
Salesforce: Id
,
* ArticleNumber
, VersionNumber
, Title
,
* PublishStatus
, or IsDeleted
ServiceNow: number
, short_description
,
* sys_mod_count
, workflow_state
, or active
*
Zendesk: id
, title
,
* updated_at
, or draft
The variable * is replaced with the actual value for a piece of content when calling GetContent. *
*/ inline void SetTemplateUri(const Aws::String& value) { m_templateUriHasBeenSet = true; m_templateUri = value; } /** *A URI template containing exactly one variable in ${variableName}
*
format. This can only be set for EXTERNAL
knowledge bases.
* For Salesforce, ServiceNow, and Zendesk, the variable must be one of the
* following:
Salesforce: Id
,
* ArticleNumber
, VersionNumber
, Title
,
* PublishStatus
, or IsDeleted
ServiceNow: number
, short_description
,
* sys_mod_count
, workflow_state
, or active
*
Zendesk: id
, title
,
* updated_at
, or draft
The variable * is replaced with the actual value for a piece of content when calling GetContent. *
*/ inline void SetTemplateUri(Aws::String&& value) { m_templateUriHasBeenSet = true; m_templateUri = std::move(value); } /** *A URI template containing exactly one variable in ${variableName}
*
format. This can only be set for EXTERNAL
knowledge bases.
* For Salesforce, ServiceNow, and Zendesk, the variable must be one of the
* following:
Salesforce: Id
,
* ArticleNumber
, VersionNumber
, Title
,
* PublishStatus
, or IsDeleted
ServiceNow: number
, short_description
,
* sys_mod_count
, workflow_state
, or active
*
Zendesk: id
, title
,
* updated_at
, or draft
The variable * is replaced with the actual value for a piece of content when calling GetContent. *
*/ inline void SetTemplateUri(const char* value) { m_templateUriHasBeenSet = true; m_templateUri.assign(value); } /** *A URI template containing exactly one variable in ${variableName}
*
format. This can only be set for EXTERNAL
knowledge bases.
* For Salesforce, ServiceNow, and Zendesk, the variable must be one of the
* following:
Salesforce: Id
,
* ArticleNumber
, VersionNumber
, Title
,
* PublishStatus
, or IsDeleted
ServiceNow: number
, short_description
,
* sys_mod_count
, workflow_state
, or active
*
Zendesk: id
, title
,
* updated_at
, or draft
The variable * is replaced with the actual value for a piece of content when calling GetContent. *
*/ inline RenderingConfiguration& WithTemplateUri(const Aws::String& value) { SetTemplateUri(value); return *this;} /** *A URI template containing exactly one variable in ${variableName}
*
format. This can only be set for EXTERNAL
knowledge bases.
* For Salesforce, ServiceNow, and Zendesk, the variable must be one of the
* following:
Salesforce: Id
,
* ArticleNumber
, VersionNumber
, Title
,
* PublishStatus
, or IsDeleted
ServiceNow: number
, short_description
,
* sys_mod_count
, workflow_state
, or active
*
Zendesk: id
, title
,
* updated_at
, or draft
The variable * is replaced with the actual value for a piece of content when calling GetContent. *
*/ inline RenderingConfiguration& WithTemplateUri(Aws::String&& value) { SetTemplateUri(std::move(value)); return *this;} /** *A URI template containing exactly one variable in ${variableName}
*
format. This can only be set for EXTERNAL
knowledge bases.
* For Salesforce, ServiceNow, and Zendesk, the variable must be one of the
* following:
Salesforce: Id
,
* ArticleNumber
, VersionNumber
, Title
,
* PublishStatus
, or IsDeleted
ServiceNow: number
, short_description
,
* sys_mod_count
, workflow_state
, or active
*
Zendesk: id
, title
,
* updated_at
, or draft
The variable * is replaced with the actual value for a piece of content when calling GetContent. *
*/ inline RenderingConfiguration& WithTemplateUri(const char* value) { SetTemplateUri(value); return *this;} private: Aws::String m_templateUri; bool m_templateUriHasBeenSet = false; }; } // namespace Model } // namespace ConnectWisdomService } // namespace Aws