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

See Also:

AWS * API Reference

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

The name of the website host you want to connect to using authentication * credentials.

For example, the host name of * https://a.example.com/page1.html is "a.example.com".

*/ inline const Aws::String& GetHost() const{ return m_host; } /** *

The name of the website host you want to connect to using authentication * credentials.

For example, the host name of * https://a.example.com/page1.html is "a.example.com".

*/ inline bool HostHasBeenSet() const { return m_hostHasBeenSet; } /** *

The name of the website host you want to connect to using authentication * credentials.

For example, the host name of * https://a.example.com/page1.html is "a.example.com".

*/ inline void SetHost(const Aws::String& value) { m_hostHasBeenSet = true; m_host = value; } /** *

The name of the website host you want to connect to using authentication * credentials.

For example, the host name of * https://a.example.com/page1.html is "a.example.com".

*/ inline void SetHost(Aws::String&& value) { m_hostHasBeenSet = true; m_host = std::move(value); } /** *

The name of the website host you want to connect to using authentication * credentials.

For example, the host name of * https://a.example.com/page1.html is "a.example.com".

*/ inline void SetHost(const char* value) { m_hostHasBeenSet = true; m_host.assign(value); } /** *

The name of the website host you want to connect to using authentication * credentials.

For example, the host name of * https://a.example.com/page1.html is "a.example.com".

*/ inline BasicAuthenticationConfiguration& WithHost(const Aws::String& value) { SetHost(value); return *this;} /** *

The name of the website host you want to connect to using authentication * credentials.

For example, the host name of * https://a.example.com/page1.html is "a.example.com".

*/ inline BasicAuthenticationConfiguration& WithHost(Aws::String&& value) { SetHost(std::move(value)); return *this;} /** *

The name of the website host you want to connect to using authentication * credentials.

For example, the host name of * https://a.example.com/page1.html is "a.example.com".

*/ inline BasicAuthenticationConfiguration& WithHost(const char* value) { SetHost(value); return *this;} /** *

The port number of the website host you want to connect to using * authentication credentials.

For example, the port for * https://a.example.com/page1.html is 443, the standard port for HTTPS.

*/ inline int GetPort() const{ return m_port; } /** *

The port number of the website host you want to connect to using * authentication credentials.

For example, the port for * https://a.example.com/page1.html is 443, the standard port for HTTPS.

*/ inline bool PortHasBeenSet() const { return m_portHasBeenSet; } /** *

The port number of the website host you want to connect to using * authentication credentials.

For example, the port for * https://a.example.com/page1.html is 443, the standard port for HTTPS.

*/ inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; } /** *

The port number of the website host you want to connect to using * authentication credentials.

For example, the port for * https://a.example.com/page1.html is 443, the standard port for HTTPS.

*/ inline BasicAuthenticationConfiguration& WithPort(int value) { SetPort(value); return *this;} /** *

Your secret ARN, which you can create in Secrets * Manager

You use a secret if basic authentication credentials are * required to connect to a website. The secret stores your credentials of user * name and password.

*/ inline const Aws::String& GetCredentials() const{ return m_credentials; } /** *

Your secret ARN, which you can create in Secrets * Manager

You use a secret if basic authentication credentials are * required to connect to a website. The secret stores your credentials of user * name and password.

*/ inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; } /** *

Your secret ARN, which you can create in Secrets * Manager

You use a secret if basic authentication credentials are * required to connect to a website. The secret stores your credentials of user * name and password.

*/ inline void SetCredentials(const Aws::String& value) { m_credentialsHasBeenSet = true; m_credentials = value; } /** *

Your secret ARN, which you can create in Secrets * Manager

You use a secret if basic authentication credentials are * required to connect to a website. The secret stores your credentials of user * name and password.

*/ inline void SetCredentials(Aws::String&& value) { m_credentialsHasBeenSet = true; m_credentials = std::move(value); } /** *

Your secret ARN, which you can create in Secrets * Manager

You use a secret if basic authentication credentials are * required to connect to a website. The secret stores your credentials of user * name and password.

*/ inline void SetCredentials(const char* value) { m_credentialsHasBeenSet = true; m_credentials.assign(value); } /** *

Your secret ARN, which you can create in Secrets * Manager

You use a secret if basic authentication credentials are * required to connect to a website. The secret stores your credentials of user * name and password.

*/ inline BasicAuthenticationConfiguration& WithCredentials(const Aws::String& value) { SetCredentials(value); return *this;} /** *

Your secret ARN, which you can create in Secrets * Manager

You use a secret if basic authentication credentials are * required to connect to a website. The secret stores your credentials of user * name and password.

*/ inline BasicAuthenticationConfiguration& WithCredentials(Aws::String&& value) { SetCredentials(std::move(value)); return *this;} /** *

Your secret ARN, which you can create in Secrets * Manager

You use a secret if basic authentication credentials are * required to connect to a website. The secret stores your credentials of user * name and password.

*/ inline BasicAuthenticationConfiguration& WithCredentials(const char* value) { SetCredentials(value); return *this;} private: Aws::String m_host; bool m_hostHasBeenSet = false; int m_port; bool m_portHasBeenSet = false; Aws::String m_credentials; bool m_credentialsHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws