AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
40
41
43
47 inline const Aws::String& GetUsername() const { return m_username; }
48 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
49 template<typename UsernameT = Aws::String>
50 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
51 template<typename UsernameT = Aws::String>
52 MqttContext& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
54
56
60 inline const Aws::Utils::ByteBuffer& GetPassword() const { return m_password; }
61 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
62 template<typename PasswordT = Aws::Utils::ByteBuffer>
63 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
64 template<typename PasswordT = Aws::Utils::ByteBuffer>
65 MqttContext& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
67
69
73 inline const Aws::String& GetClientId() const { return m_clientId; }
74 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
75 template<typename ClientIdT = Aws::String>
76 void SetClientId(ClientIdT&& value) { m_clientIdHasBeenSet = true; m_clientId = std::forward<ClientIdT>(value); }
77 template<typename ClientIdT = Aws::String>
78 MqttContext& WithClientId(ClientIdT&& value) { SetClientId(std::forward<ClientIdT>(value)); return *this;}
80 private:
81
82 Aws::String m_username;
83 bool m_usernameHasBeenSet = false;
84
85 Aws::Utils::ByteBuffer m_password{};
86 bool m_passwordHasBeenSet = false;
87
88 Aws::String m_clientId;
89 bool m_clientIdHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace IoT
94} // namespace Aws
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API MqttContext()=default
MqttContext & WithPassword(PasswordT &&value)
Definition MqttContext.h:65
const Aws::String & GetClientId() const
Definition MqttContext.h:73
MqttContext & WithClientId(ClientIdT &&value)
Definition MqttContext.h:78
void SetPassword(PasswordT &&value)
Definition MqttContext.h:63
AWS_IOT_API MqttContext & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetClientId(ClientIdT &&value)
Definition MqttContext.h:76
const Aws::Utils::ByteBuffer & GetPassword() const
Definition MqttContext.h:60
AWS_IOT_API MqttContext(Aws::Utils::Json::JsonView jsonValue)
void SetUsername(UsernameT &&value)
Definition MqttContext.h:50
const Aws::String & GetUsername() const
Definition MqttContext.h:47
MqttContext & WithUsername(UsernameT &&value)
Definition MqttContext.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue