AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
TlsContext.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoT {
20namespace Model {
21
29 public:
30 AWS_IOT_API TlsContext() = default;
31 AWS_IOT_API TlsContext(Aws::Utils::Json::JsonView jsonValue);
34
36
40 inline const Aws::String& GetServerName() const { return m_serverName; }
41 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
42 template <typename ServerNameT = Aws::String>
43 void SetServerName(ServerNameT&& value) {
44 m_serverNameHasBeenSet = true;
45 m_serverName = std::forward<ServerNameT>(value);
46 }
47 template <typename ServerNameT = Aws::String>
48 TlsContext& WithServerName(ServerNameT&& value) {
49 SetServerName(std::forward<ServerNameT>(value));
50 return *this;
51 }
53 private:
54 Aws::String m_serverName;
55 bool m_serverNameHasBeenSet = false;
56};
57
58} // namespace Model
59} // namespace IoT
60} // namespace Aws
bool ServerNameHasBeenSet() const
Definition TlsContext.h:41
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetServerName(ServerNameT &&value)
Definition TlsContext.h:43
AWS_IOT_API TlsContext(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API TlsContext & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetServerName() const
Definition TlsContext.h:40
AWS_IOT_API TlsContext()=default
TlsContext & WithServerName(ServerNameT &&value)
Definition TlsContext.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue