AWS SDK for C++  1.9.132
AWS SDK for C++
TlsContext.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
45  inline const Aws::String& GetServerName() const{ return m_serverName; }
46 
51  inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
52 
57  inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
58 
63  inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
64 
69  inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
70 
75  inline TlsContext& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
76 
81  inline TlsContext& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
82 
87  inline TlsContext& WithServerName(const char* value) { SetServerName(value); return *this;}
88 
89  private:
90 
91  Aws::String m_serverName;
92  bool m_serverNameHasBeenSet;
93  };
94 
95 } // namespace Model
96 } // namespace IoT
97 } // namespace Aws
Aws::IoT::Model::TlsContext::SetServerName
void SetServerName(const Aws::String &value)
Definition: TlsContext.h:57
Aws::IoT::Model::TlsContext::operator=
TlsContext & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::TlsContext::WithServerName
TlsContext & WithServerName(const char *value)
Definition: TlsContext.h:87
Aws::IoT::Model::TlsContext::WithServerName
TlsContext & WithServerName(const Aws::String &value)
Definition: TlsContext.h:75
Aws::IoT::Model::TlsContext
Definition: TlsContext.h:33
Aws::IoT::Model::TlsContext::TlsContext
TlsContext(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::TlsContext::ServerNameHasBeenSet
bool ServerNameHasBeenSet() const
Definition: TlsContext.h:51
Aws::IoT::Model::TlsContext::TlsContext
TlsContext()
Aws::IoT::Model::TlsContext::SetServerName
void SetServerName(Aws::String &&value)
Definition: TlsContext.h:63
Aws::IoT::Model::TlsContext::WithServerName
TlsContext & WithServerName(Aws::String &&value)
Definition: TlsContext.h:81
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoT::Model::TlsContext::SetServerName
void SetServerName(const char *value)
Definition: TlsContext.h:69
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::TlsContext::GetServerName
const Aws::String & GetServerName() const
Definition: TlsContext.h:45
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::TlsContext::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
IoT_EXPORTS.h