/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
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 TlsConfigInput& 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 TlsConfigInput& 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 TlsConfigInput& WithServerNameToVerify(const char* value) { SetServerNameToVerify(value); return *this;} private: Aws::String m_serverNameToVerify; bool m_serverNameToVerifyHasBeenSet = false; }; } // namespace Model } // namespace ApiGatewayV2 } // namespace Aws