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

Specifies the TLS context to use for the test authorizer * request.

See Also:

AWS API * Reference

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

The value of the serverName key in a TLS authorization * request.

*/ inline const Aws::String& GetServerName() const{ return m_serverName; } /** *

The value of the serverName key in a TLS authorization * request.

*/ inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; } /** *

The value of the serverName key in a TLS authorization * request.

*/ inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; } /** *

The value of the serverName key in a TLS authorization * request.

*/ inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); } /** *

The value of the serverName key in a TLS authorization * request.

*/ inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); } /** *

The value of the serverName key in a TLS authorization * request.

*/ inline TlsContext& WithServerName(const Aws::String& value) { SetServerName(value); return *this;} /** *

The value of the serverName key in a TLS authorization * request.

*/ inline TlsContext& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;} /** *

The value of the serverName key in a TLS authorization * request.

*/ inline TlsContext& WithServerName(const char* value) { SetServerName(value); return *this;} private: Aws::String m_serverName; bool m_serverNameHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws