/** * 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 GitHub Enterprise Server * (on premises).

See Also:

AWS * API Reference

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

The GitHub host URL or API endpoint URL. For example, * https://on-prem-host-url/api/v3/

*/ inline const Aws::String& GetHostUrl() const{ return m_hostUrl; } /** *

The GitHub host URL or API endpoint URL. For example, * https://on-prem-host-url/api/v3/

*/ inline bool HostUrlHasBeenSet() const { return m_hostUrlHasBeenSet; } /** *

The GitHub host URL or API endpoint URL. For example, * https://on-prem-host-url/api/v3/

*/ inline void SetHostUrl(const Aws::String& value) { m_hostUrlHasBeenSet = true; m_hostUrl = value; } /** *

The GitHub host URL or API endpoint URL. For example, * https://on-prem-host-url/api/v3/

*/ inline void SetHostUrl(Aws::String&& value) { m_hostUrlHasBeenSet = true; m_hostUrl = std::move(value); } /** *

The GitHub host URL or API endpoint URL. For example, * https://on-prem-host-url/api/v3/

*/ inline void SetHostUrl(const char* value) { m_hostUrlHasBeenSet = true; m_hostUrl.assign(value); } /** *

The GitHub host URL or API endpoint URL. For example, * https://on-prem-host-url/api/v3/

*/ inline OnPremiseConfiguration& WithHostUrl(const Aws::String& value) { SetHostUrl(value); return *this;} /** *

The GitHub host URL or API endpoint URL. For example, * https://on-prem-host-url/api/v3/

*/ inline OnPremiseConfiguration& WithHostUrl(Aws::String&& value) { SetHostUrl(std::move(value)); return *this;} /** *

The GitHub host URL or API endpoint URL. For example, * https://on-prem-host-url/api/v3/

*/ inline OnPremiseConfiguration& WithHostUrl(const char* value) { SetHostUrl(value); return *this;} /** *

The name of the organization of the GitHub Enterprise Server (in-premise) * account you want to connect to. You can find your organization name by logging * into GitHub desktop and selecting Your organizations under your profile * picture dropdown.

*/ inline const Aws::String& GetOrganizationName() const{ return m_organizationName; } /** *

The name of the organization of the GitHub Enterprise Server (in-premise) * account you want to connect to. You can find your organization name by logging * into GitHub desktop and selecting Your organizations under your profile * picture dropdown.

*/ inline bool OrganizationNameHasBeenSet() const { return m_organizationNameHasBeenSet; } /** *

The name of the organization of the GitHub Enterprise Server (in-premise) * account you want to connect to. You can find your organization name by logging * into GitHub desktop and selecting Your organizations under your profile * picture dropdown.

*/ inline void SetOrganizationName(const Aws::String& value) { m_organizationNameHasBeenSet = true; m_organizationName = value; } /** *

The name of the organization of the GitHub Enterprise Server (in-premise) * account you want to connect to. You can find your organization name by logging * into GitHub desktop and selecting Your organizations under your profile * picture dropdown.

*/ inline void SetOrganizationName(Aws::String&& value) { m_organizationNameHasBeenSet = true; m_organizationName = std::move(value); } /** *

The name of the organization of the GitHub Enterprise Server (in-premise) * account you want to connect to. You can find your organization name by logging * into GitHub desktop and selecting Your organizations under your profile * picture dropdown.

*/ inline void SetOrganizationName(const char* value) { m_organizationNameHasBeenSet = true; m_organizationName.assign(value); } /** *

The name of the organization of the GitHub Enterprise Server (in-premise) * account you want to connect to. You can find your organization name by logging * into GitHub desktop and selecting Your organizations under your profile * picture dropdown.

*/ inline OnPremiseConfiguration& WithOrganizationName(const Aws::String& value) { SetOrganizationName(value); return *this;} /** *

The name of the organization of the GitHub Enterprise Server (in-premise) * account you want to connect to. You can find your organization name by logging * into GitHub desktop and selecting Your organizations under your profile * picture dropdown.

*/ inline OnPremiseConfiguration& WithOrganizationName(Aws::String&& value) { SetOrganizationName(std::move(value)); return *this;} /** *

The name of the organization of the GitHub Enterprise Server (in-premise) * account you want to connect to. You can find your organization name by logging * into GitHub desktop and selecting Your organizations under your profile * picture dropdown.

*/ inline OnPremiseConfiguration& WithOrganizationName(const char* value) { SetOrganizationName(value); return *this;} /** *

The path to the SSL certificate stored in an Amazon S3 bucket. You use this * to connect to GitHub if you require a secure SSL connection.

You can * simply generate a self-signed X509 certificate on any computer using OpenSSL. * For an example of using OpenSSL to create an X509 certificate, see Create * and sign an X509 certificate.

*/ inline const S3Path& GetSslCertificateS3Path() const{ return m_sslCertificateS3Path; } /** *

The path to the SSL certificate stored in an Amazon S3 bucket. You use this * to connect to GitHub if you require a secure SSL connection.

You can * simply generate a self-signed X509 certificate on any computer using OpenSSL. * For an example of using OpenSSL to create an X509 certificate, see Create * and sign an X509 certificate.

*/ inline bool SslCertificateS3PathHasBeenSet() const { return m_sslCertificateS3PathHasBeenSet; } /** *

The path to the SSL certificate stored in an Amazon S3 bucket. You use this * to connect to GitHub if you require a secure SSL connection.

You can * simply generate a self-signed X509 certificate on any computer using OpenSSL. * For an example of using OpenSSL to create an X509 certificate, see Create * and sign an X509 certificate.

*/ inline void SetSslCertificateS3Path(const S3Path& value) { m_sslCertificateS3PathHasBeenSet = true; m_sslCertificateS3Path = value; } /** *

The path to the SSL certificate stored in an Amazon S3 bucket. You use this * to connect to GitHub if you require a secure SSL connection.

You can * simply generate a self-signed X509 certificate on any computer using OpenSSL. * For an example of using OpenSSL to create an X509 certificate, see Create * and sign an X509 certificate.

*/ inline void SetSslCertificateS3Path(S3Path&& value) { m_sslCertificateS3PathHasBeenSet = true; m_sslCertificateS3Path = std::move(value); } /** *

The path to the SSL certificate stored in an Amazon S3 bucket. You use this * to connect to GitHub if you require a secure SSL connection.

You can * simply generate a self-signed X509 certificate on any computer using OpenSSL. * For an example of using OpenSSL to create an X509 certificate, see Create * and sign an X509 certificate.

*/ inline OnPremiseConfiguration& WithSslCertificateS3Path(const S3Path& value) { SetSslCertificateS3Path(value); return *this;} /** *

The path to the SSL certificate stored in an Amazon S3 bucket. You use this * to connect to GitHub if you require a secure SSL connection.

You can * simply generate a self-signed X509 certificate on any computer using OpenSSL. * For an example of using OpenSSL to create an X509 certificate, see Create * and sign an X509 certificate.

*/ inline OnPremiseConfiguration& WithSslCertificateS3Path(S3Path&& value) { SetSslCertificateS3Path(std::move(value)); return *this;} private: Aws::String m_hostUrl; bool m_hostUrlHasBeenSet = false; Aws::String m_organizationName; bool m_organizationNameHasBeenSet = false; S3Path m_sslCertificateS3Path; bool m_sslCertificateS3PathHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws