/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ConnectWisdomService { namespace Model { /** *

Information about how to render the content.

See Also:

AWS * API Reference

*/ class RenderingConfiguration { public: AWS_CONNECTWISDOMSERVICE_API RenderingConfiguration(); AWS_CONNECTWISDOMSERVICE_API RenderingConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECTWISDOMSERVICE_API RenderingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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