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

Provides the configuration information for the sitemap URLs to crawl.

* When selecting websites to index, you must adhere to the Amazon Acceptable Use Policy and all * other Amazon terms. Remember that you must only use Amazon Kendra Web Crawler to * index your own web pages, or web pages that you have authorization to index. *

See Also:

AWS * API Reference

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

The list of sitemap URLs of the websites you want to crawl.

The list * can include a maximum of three sitemap URLs.

*/ inline const Aws::Vector& GetSiteMaps() const{ return m_siteMaps; } /** *

The list of sitemap URLs of the websites you want to crawl.

The list * can include a maximum of three sitemap URLs.

*/ inline bool SiteMapsHasBeenSet() const { return m_siteMapsHasBeenSet; } /** *

The list of sitemap URLs of the websites you want to crawl.

The list * can include a maximum of three sitemap URLs.

*/ inline void SetSiteMaps(const Aws::Vector& value) { m_siteMapsHasBeenSet = true; m_siteMaps = value; } /** *

The list of sitemap URLs of the websites you want to crawl.

The list * can include a maximum of three sitemap URLs.

*/ inline void SetSiteMaps(Aws::Vector&& value) { m_siteMapsHasBeenSet = true; m_siteMaps = std::move(value); } /** *

The list of sitemap URLs of the websites you want to crawl.

The list * can include a maximum of three sitemap URLs.

*/ inline SiteMapsConfiguration& WithSiteMaps(const Aws::Vector& value) { SetSiteMaps(value); return *this;} /** *

The list of sitemap URLs of the websites you want to crawl.

The list * can include a maximum of three sitemap URLs.

*/ inline SiteMapsConfiguration& WithSiteMaps(Aws::Vector&& value) { SetSiteMaps(std::move(value)); return *this;} /** *

The list of sitemap URLs of the websites you want to crawl.

The list * can include a maximum of three sitemap URLs.

*/ inline SiteMapsConfiguration& AddSiteMaps(const Aws::String& value) { m_siteMapsHasBeenSet = true; m_siteMaps.push_back(value); return *this; } /** *

The list of sitemap URLs of the websites you want to crawl.

The list * can include a maximum of three sitemap URLs.

*/ inline SiteMapsConfiguration& AddSiteMaps(Aws::String&& value) { m_siteMapsHasBeenSet = true; m_siteMaps.push_back(std::move(value)); return *this; } /** *

The list of sitemap URLs of the websites you want to crawl.

The list * can include a maximum of three sitemap URLs.

*/ inline SiteMapsConfiguration& AddSiteMaps(const char* value) { m_siteMapsHasBeenSet = true; m_siteMaps.push_back(value); return *this; } private: Aws::Vector m_siteMaps; bool m_siteMapsHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws