AWS SDK for C++  1.9.155
AWS SDK for C++
MqttContext.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <aws/core/utils/Array.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline const Aws::String& GetUsername() const{ return m_username; }
47 
52  inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
53 
58  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
59 
64  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
65 
70  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
71 
76  inline MqttContext& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
77 
82  inline MqttContext& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
83 
88  inline MqttContext& WithUsername(const char* value) { SetUsername(value); return *this;}
89 
90 
95  inline const Aws::Utils::ByteBuffer& GetPassword() const{ return m_password; }
96 
101  inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
102 
107  inline void SetPassword(const Aws::Utils::ByteBuffer& value) { m_passwordHasBeenSet = true; m_password = value; }
108 
113  inline void SetPassword(Aws::Utils::ByteBuffer&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
114 
119  inline MqttContext& WithPassword(const Aws::Utils::ByteBuffer& value) { SetPassword(value); return *this;}
120 
125  inline MqttContext& WithPassword(Aws::Utils::ByteBuffer&& value) { SetPassword(std::move(value)); return *this;}
126 
127 
132  inline const Aws::String& GetClientId() const{ return m_clientId; }
133 
138  inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
139 
144  inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
145 
150  inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); }
151 
156  inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
157 
162  inline MqttContext& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
163 
168  inline MqttContext& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
169 
174  inline MqttContext& WithClientId(const char* value) { SetClientId(value); return *this;}
175 
176  private:
177 
178  Aws::String m_username;
179  bool m_usernameHasBeenSet;
180 
181  Aws::Utils::ByteBuffer m_password;
182  bool m_passwordHasBeenSet;
183 
184  Aws::String m_clientId;
185  bool m_clientIdHasBeenSet;
186  };
187 
188 } // namespace Model
189 } // namespace IoT
190 } // namespace Aws
Aws::IoT::Model::MqttContext::GetPassword
const Aws::Utils::ByteBuffer & GetPassword() const
Definition: MqttContext.h:95
Aws::IoT::Model::MqttContext::WithUsername
MqttContext & WithUsername(Aws::String &&value)
Definition: MqttContext.h:82
Aws::IoT::Model::MqttContext::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::MqttContext::SetClientId
void SetClientId(const char *value)
Definition: MqttContext.h:156
Aws::IoT::Model::MqttContext::MqttContext
MqttContext()
Aws::IoT::Model::MqttContext::MqttContext
MqttContext(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::MqttContext::SetClientId
void SetClientId(Aws::String &&value)
Definition: MqttContext.h:150
Aws::IoT::Model::MqttContext::WithPassword
MqttContext & WithPassword(const Aws::Utils::ByteBuffer &value)
Definition: MqttContext.h:119
Aws::IoT::Model::MqttContext::SetPassword
void SetPassword(const Aws::Utils::ByteBuffer &value)
Definition: MqttContext.h:107
Aws::IoT::Model::MqttContext::WithClientId
MqttContext & WithClientId(Aws::String &&value)
Definition: MqttContext.h:168
Aws::IoT::Model::MqttContext::WithClientId
MqttContext & WithClientId(const char *value)
Definition: MqttContext.h:174
Aws::IoT::Model::MqttContext::SetUsername
void SetUsername(const Aws::String &value)
Definition: MqttContext.h:58
Aws::IoT::Model::MqttContext::operator=
MqttContext & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::MqttContext::WithUsername
MqttContext & WithUsername(const Aws::String &value)
Definition: MqttContext.h:76
Aws::IoT::Model::MqttContext::ClientIdHasBeenSet
bool ClientIdHasBeenSet() const
Definition: MqttContext.h:138
Aws::IoT::Model::MqttContext
Definition: MqttContext.h:34
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Array< unsigned char >
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::MqttContext::WithUsername
MqttContext & WithUsername(const char *value)
Definition: MqttContext.h:88
Aws::IoT::Model::MqttContext::PasswordHasBeenSet
bool PasswordHasBeenSet() const
Definition: MqttContext.h:101
Aws::IoT::Model::MqttContext::SetUsername
void SetUsername(const char *value)
Definition: MqttContext.h:70
Aws::IoT::Model::MqttContext::WithClientId
MqttContext & WithClientId(const Aws::String &value)
Definition: MqttContext.h:162
Aws::IoT::Model::MqttContext::SetPassword
void SetPassword(Aws::Utils::ByteBuffer &&value)
Definition: MqttContext.h:113
Aws::IoT::Model::MqttContext::WithPassword
MqttContext & WithPassword(Aws::Utils::ByteBuffer &&value)
Definition: MqttContext.h:125
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::IoT::Model::MqttContext::SetClientId
void SetClientId(const Aws::String &value)
Definition: MqttContext.h:144
Aws
Definition: AccessManagementClient.h:15
Array.h
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
Aws::IoT::Model::MqttContext::GetUsername
const Aws::String & GetUsername() const
Definition: MqttContext.h:46
Aws::IoT::Model::MqttContext::SetUsername
void SetUsername(Aws::String &&value)
Definition: MqttContext.h:64
Aws::IoT::Model::MqttContext::GetClientId
const Aws::String & GetClientId() const
Definition: MqttContext.h:132
Aws::IoT::Model::MqttContext::UsernameHasBeenSet
bool UsernameHasBeenSet() const
Definition: MqttContext.h:52
IoT_EXPORTS.h