/** * 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 to connect to websites that require * user authentication.

See Also:

AWS * API Reference

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

The list of configuration information that's required to connect to and crawl * a website host using basic authentication credentials.

The list includes * the name and port number of the website host.

*/ inline const Aws::Vector& GetBasicAuthentication() const{ return m_basicAuthentication; } /** *

The list of configuration information that's required to connect to and crawl * a website host using basic authentication credentials.

The list includes * the name and port number of the website host.

*/ inline bool BasicAuthenticationHasBeenSet() const { return m_basicAuthenticationHasBeenSet; } /** *

The list of configuration information that's required to connect to and crawl * a website host using basic authentication credentials.

The list includes * the name and port number of the website host.

*/ inline void SetBasicAuthentication(const Aws::Vector& value) { m_basicAuthenticationHasBeenSet = true; m_basicAuthentication = value; } /** *

The list of configuration information that's required to connect to and crawl * a website host using basic authentication credentials.

The list includes * the name and port number of the website host.

*/ inline void SetBasicAuthentication(Aws::Vector&& value) { m_basicAuthenticationHasBeenSet = true; m_basicAuthentication = std::move(value); } /** *

The list of configuration information that's required to connect to and crawl * a website host using basic authentication credentials.

The list includes * the name and port number of the website host.

*/ inline AuthenticationConfiguration& WithBasicAuthentication(const Aws::Vector& value) { SetBasicAuthentication(value); return *this;} /** *

The list of configuration information that's required to connect to and crawl * a website host using basic authentication credentials.

The list includes * the name and port number of the website host.

*/ inline AuthenticationConfiguration& WithBasicAuthentication(Aws::Vector&& value) { SetBasicAuthentication(std::move(value)); return *this;} /** *

The list of configuration information that's required to connect to and crawl * a website host using basic authentication credentials.

The list includes * the name and port number of the website host.

*/ inline AuthenticationConfiguration& AddBasicAuthentication(const BasicAuthenticationConfiguration& value) { m_basicAuthenticationHasBeenSet = true; m_basicAuthentication.push_back(value); return *this; } /** *

The list of configuration information that's required to connect to and crawl * a website host using basic authentication credentials.

The list includes * the name and port number of the website host.

*/ inline AuthenticationConfiguration& AddBasicAuthentication(BasicAuthenticationConfiguration&& value) { m_basicAuthenticationHasBeenSet = true; m_basicAuthentication.push_back(std::move(value)); return *this; } private: Aws::Vector m_basicAuthentication; bool m_basicAuthenticationHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws