/** * 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 ApiGatewayV2 { namespace Model { /** *

The TLS configuration for a private integration. If you specify a TLS * configuration, private integration traffic uses the HTTPS protocol. Supported * only for HTTP APIs.

See Also:

AWS * API Reference

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

If you specify a server name, API Gateway uses it to verify the hostname on * the integration's certificate. The server name is also included in the TLS * handshake to support Server Name Indication (SNI) or virtual hosting.

*/ inline const Aws::String& GetServerNameToVerify() const{ return m_serverNameToVerify; } /** *

If you specify a server name, API Gateway uses it to verify the hostname on * the integration's certificate. The server name is also included in the TLS * handshake to support Server Name Indication (SNI) or virtual hosting.

*/ inline bool ServerNameToVerifyHasBeenSet() const { return m_serverNameToVerifyHasBeenSet; } /** *

If you specify a server name, API Gateway uses it to verify the hostname on * the integration's certificate. The server name is also included in the TLS * handshake to support Server Name Indication (SNI) or virtual hosting.

*/ inline void SetServerNameToVerify(const Aws::String& value) { m_serverNameToVerifyHasBeenSet = true; m_serverNameToVerify = value; } /** *

If you specify a server name, API Gateway uses it to verify the hostname on * the integration's certificate. The server name is also included in the TLS * handshake to support Server Name Indication (SNI) or virtual hosting.

*/ inline void SetServerNameToVerify(Aws::String&& value) { m_serverNameToVerifyHasBeenSet = true; m_serverNameToVerify = std::move(value); } /** *

If you specify a server name, API Gateway uses it to verify the hostname on * the integration's certificate. The server name is also included in the TLS * handshake to support Server Name Indication (SNI) or virtual hosting.

*/ inline void SetServerNameToVerify(const char* value) { m_serverNameToVerifyHasBeenSet = true; m_serverNameToVerify.assign(value); } /** *

If you specify a server name, API Gateway uses it to verify the hostname on * the integration's certificate. The server name is also included in the TLS * handshake to support Server Name Indication (SNI) or virtual hosting.

*/ inline TlsConfig& WithServerNameToVerify(const Aws::String& value) { SetServerNameToVerify(value); return *this;} /** *

If you specify a server name, API Gateway uses it to verify the hostname on * the integration's certificate. The server name is also included in the TLS * handshake to support Server Name Indication (SNI) or virtual hosting.

*/ inline TlsConfig& WithServerNameToVerify(Aws::String&& value) { SetServerNameToVerify(std::move(value)); return *this;} /** *

If you specify a server name, API Gateway uses it to verify the hostname on * the integration's certificate. The server name is also included in the TLS * handshake to support Server Name Indication (SNI) or virtual hosting.

*/ inline TlsConfig& WithServerNameToVerify(const char* value) { SetServerNameToVerify(value); return *this;} private: Aws::String m_serverNameToVerify; bool m_serverNameToVerifyHasBeenSet = false; }; } // namespace Model } // namespace ApiGatewayV2 } // namespace Aws