/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides the configuration information for a web proxy to connect to website
* hosts.See Also:
AWS
* API Reference
The name of the website host you want to connect to via a web proxy * server.
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 via a web proxy * server.
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 via a web proxy * server.
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 via a web proxy * server.
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 via a web proxy * server.
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 via a web proxy * server.
For example, the host name of https://a.example.com/page1.html is * "a.example.com".
*/ inline ProxyConfiguration& WithHost(const Aws::String& value) { SetHost(value); return *this;} /** *The name of the website host you want to connect to via a web proxy * server.
For example, the host name of https://a.example.com/page1.html is * "a.example.com".
*/ inline ProxyConfiguration& WithHost(Aws::String&& value) { SetHost(std::move(value)); return *this;} /** *The name of the website host you want to connect to via a web proxy * server.
For example, the host name of https://a.example.com/page1.html is * "a.example.com".
*/ inline ProxyConfiguration& WithHost(const char* value) { SetHost(value); return *this;} /** *The port number of the website host you want to connect to via a web proxy * server.
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 via a web proxy * server.
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 via a web proxy * server.
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 via a web proxy * server.
For example, the port for https://a.example.com/page1.html is * 443, the standard port for HTTPS.
*/ inline ProxyConfiguration& WithPort(int value) { SetPort(value); return *this;} /** *Your secret ARN, which you can create in Secrets * Manager
The credentials are optional. You use a secret if web proxy * credentials are required to connect to a website host. Amazon Kendra currently * support basic authentication to connect to a web proxy server. The secret stores * your credentials.
*/ inline const Aws::String& GetCredentials() const{ return m_credentials; } /** *Your secret ARN, which you can create in Secrets * Manager
The credentials are optional. You use a secret if web proxy * credentials are required to connect to a website host. Amazon Kendra currently * support basic authentication to connect to a web proxy server. The secret stores * your credentials.
*/ inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; } /** *Your secret ARN, which you can create in Secrets * Manager
The credentials are optional. You use a secret if web proxy * credentials are required to connect to a website host. Amazon Kendra currently * support basic authentication to connect to a web proxy server. The secret stores * your credentials.
*/ inline void SetCredentials(const Aws::String& value) { m_credentialsHasBeenSet = true; m_credentials = value; } /** *Your secret ARN, which you can create in Secrets * Manager
The credentials are optional. You use a secret if web proxy * credentials are required to connect to a website host. Amazon Kendra currently * support basic authentication to connect to a web proxy server. The secret stores * your credentials.
*/ inline void SetCredentials(Aws::String&& value) { m_credentialsHasBeenSet = true; m_credentials = std::move(value); } /** *Your secret ARN, which you can create in Secrets * Manager
The credentials are optional. You use a secret if web proxy * credentials are required to connect to a website host. Amazon Kendra currently * support basic authentication to connect to a web proxy server. The secret stores * your credentials.
*/ inline void SetCredentials(const char* value) { m_credentialsHasBeenSet = true; m_credentials.assign(value); } /** *Your secret ARN, which you can create in Secrets * Manager
The credentials are optional. You use a secret if web proxy * credentials are required to connect to a website host. Amazon Kendra currently * support basic authentication to connect to a web proxy server. The secret stores * your credentials.
*/ inline ProxyConfiguration& WithCredentials(const Aws::String& value) { SetCredentials(value); return *this;} /** *Your secret ARN, which you can create in Secrets * Manager
The credentials are optional. You use a secret if web proxy * credentials are required to connect to a website host. Amazon Kendra currently * support basic authentication to connect to a web proxy server. The secret stores * your credentials.
*/ inline ProxyConfiguration& WithCredentials(Aws::String&& value) { SetCredentials(std::move(value)); return *this;} /** *Your secret ARN, which you can create in Secrets * Manager
The credentials are optional. You use a secret if web proxy * credentials are required to connect to a website host. Amazon Kendra currently * support basic authentication to connect to a web proxy server. The secret stores * your credentials.
*/ inline ProxyConfiguration& 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