AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MqttContext.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/Array.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOT_API MqttContext();
40
41
43
47 inline const Aws::String& GetUsername() const{ return m_username; }
48 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
49 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
50 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
51 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
52 inline MqttContext& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
53 inline MqttContext& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
54 inline MqttContext& WithUsername(const char* value) { SetUsername(value); return *this;}
56
58
62 inline const Aws::Utils::ByteBuffer& GetPassword() const{ return m_password; }
63 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
64 inline void SetPassword(const Aws::Utils::ByteBuffer& value) { m_passwordHasBeenSet = true; m_password = value; }
65 inline void SetPassword(Aws::Utils::ByteBuffer&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
66 inline MqttContext& WithPassword(const Aws::Utils::ByteBuffer& value) { SetPassword(value); return *this;}
67 inline MqttContext& WithPassword(Aws::Utils::ByteBuffer&& value) { SetPassword(std::move(value)); return *this;}
69
71
75 inline const Aws::String& GetClientId() const{ return m_clientId; }
76 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
77 inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
78 inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); }
79 inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
80 inline MqttContext& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
81 inline MqttContext& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
82 inline MqttContext& WithClientId(const char* value) { SetClientId(value); return *this;}
84 private:
85
86 Aws::String m_username;
87 bool m_usernameHasBeenSet = false;
88
89 Aws::Utils::ByteBuffer m_password;
90 bool m_passwordHasBeenSet = false;
91
92 Aws::String m_clientId;
93 bool m_clientIdHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace IoT
98} // namespace Aws
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
MqttContext & WithPassword(Aws::Utils::ByteBuffer &&value)
Definition MqttContext.h:67
MqttContext & WithUsername(const char *value)
Definition MqttContext.h:54
MqttContext & WithClientId(const Aws::String &value)
Definition MqttContext.h:80
void SetClientId(Aws::String &&value)
Definition MqttContext.h:78
void SetUsername(const Aws::String &value)
Definition MqttContext.h:49
const Aws::String & GetClientId() const
Definition MqttContext.h:75
MqttContext & WithUsername(const Aws::String &value)
Definition MqttContext.h:52
void SetUsername(const char *value)
Definition MqttContext.h:51
void SetClientId(const Aws::String &value)
Definition MqttContext.h:77
void SetUsername(Aws::String &&value)
Definition MqttContext.h:50
void SetClientId(const char *value)
Definition MqttContext.h:79
MqttContext & WithClientId(const char *value)
Definition MqttContext.h:82
AWS_IOT_API MqttContext & operator=(Aws::Utils::Json::JsonView jsonValue)
MqttContext & WithPassword(const Aws::Utils::ByteBuffer &value)
Definition MqttContext.h:66
const Aws::Utils::ByteBuffer & GetPassword() const
Definition MqttContext.h:62
MqttContext & WithUsername(Aws::String &&value)
Definition MqttContext.h:53
void SetPassword(const Aws::Utils::ByteBuffer &value)
Definition MqttContext.h:64
AWS_IOT_API MqttContext(Aws::Utils::Json::JsonView jsonValue)
MqttContext & WithClientId(Aws::String &&value)
Definition MqttContext.h:81
const Aws::String & GetUsername() const
Definition MqttContext.h:47
void SetPassword(Aws::Utils::ByteBuffer &&value)
Definition MqttContext.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue