/** * 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 kendra { namespace Model { /** *

Provides a template for the configuration information to connect to your data * source.

See Also:

AWS * API Reference

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

The template schema used for the data source, where templates schemas are * supported.

See Data source * template schemas.

*/ inline Aws::Utils::DocumentView GetTemplate() const{ return m_template; } /** *

The template schema used for the data source, where templates schemas are * supported.

See Data source * template schemas.

*/ inline bool TemplateHasBeenSet() const { return m_templateHasBeenSet; } /** *

The template schema used for the data source, where templates schemas are * supported.

See Data source * template schemas.

*/ inline void SetTemplate(const Aws::Utils::Document& value) { m_templateHasBeenSet = true; m_template = value; } /** *

The template schema used for the data source, where templates schemas are * supported.

See Data source * template schemas.

*/ inline void SetTemplate(Aws::Utils::Document&& value) { m_templateHasBeenSet = true; m_template = std::move(value); } /** *

The template schema used for the data source, where templates schemas are * supported.

See Data source * template schemas.

*/ inline TemplateConfiguration& WithTemplate(const Aws::Utils::Document& value) { SetTemplate(value); return *this;} /** *

The template schema used for the data source, where templates schemas are * supported.

See Data source * template schemas.

*/ inline TemplateConfiguration& WithTemplate(Aws::Utils::Document&& value) { SetTemplate(std::move(value)); return *this;} private: Aws::Utils::Document m_template; bool m_templateHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws