AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Bot.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wickr/Wickr_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Wickr {
20namespace Model {
21
28class Bot {
29 public:
30 AWS_WICKR_API Bot() = default;
31 AWS_WICKR_API Bot(Aws::Utils::Json::JsonView jsonValue);
32 AWS_WICKR_API Bot& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WICKR_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetBotId() const { return m_botId; }
40 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
41 template <typename BotIdT = Aws::String>
42 void SetBotId(BotIdT&& value) {
43 m_botIdHasBeenSet = true;
44 m_botId = std::forward<BotIdT>(value);
45 }
46 template <typename BotIdT = Aws::String>
47 Bot& WithBotId(BotIdT&& value) {
48 SetBotId(std::forward<BotIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDisplayName() const { return m_displayName; }
58 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
59 template <typename DisplayNameT = Aws::String>
60 void SetDisplayName(DisplayNameT&& value) {
61 m_displayNameHasBeenSet = true;
62 m_displayName = std::forward<DisplayNameT>(value);
63 }
64 template <typename DisplayNameT = Aws::String>
65 Bot& WithDisplayName(DisplayNameT&& value) {
66 SetDisplayName(std::forward<DisplayNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetUsername() const { return m_username; }
76 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
77 template <typename UsernameT = Aws::String>
78 void SetUsername(UsernameT&& value) {
79 m_usernameHasBeenSet = true;
80 m_username = std::forward<UsernameT>(value);
81 }
82 template <typename UsernameT = Aws::String>
83 Bot& WithUsername(UsernameT&& value) {
84 SetUsername(std::forward<UsernameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetUname() const { return m_uname; }
94 inline bool UnameHasBeenSet() const { return m_unameHasBeenSet; }
95 template <typename UnameT = Aws::String>
96 void SetUname(UnameT&& value) {
97 m_unameHasBeenSet = true;
98 m_uname = std::forward<UnameT>(value);
99 }
100 template <typename UnameT = Aws::String>
101 Bot& WithUname(UnameT&& value) {
102 SetUname(std::forward<UnameT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetPubkey() const { return m_pubkey; }
112 inline bool PubkeyHasBeenSet() const { return m_pubkeyHasBeenSet; }
113 template <typename PubkeyT = Aws::String>
114 void SetPubkey(PubkeyT&& value) {
115 m_pubkeyHasBeenSet = true;
116 m_pubkey = std::forward<PubkeyT>(value);
117 }
118 template <typename PubkeyT = Aws::String>
119 Bot& WithPubkey(PubkeyT&& value) {
120 SetPubkey(std::forward<PubkeyT>(value));
121 return *this;
122 }
124
126
129 inline int GetStatus() const { return m_status; }
130 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
131 inline void SetStatus(int value) {
132 m_statusHasBeenSet = true;
133 m_status = value;
134 }
135 inline Bot& WithStatus(int value) {
136 SetStatus(value);
137 return *this;
138 }
140
142
145 inline const Aws::String& GetGroupId() const { return m_groupId; }
146 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
147 template <typename GroupIdT = Aws::String>
148 void SetGroupId(GroupIdT&& value) {
149 m_groupIdHasBeenSet = true;
150 m_groupId = std::forward<GroupIdT>(value);
151 }
152 template <typename GroupIdT = Aws::String>
153 Bot& WithGroupId(GroupIdT&& value) {
154 SetGroupId(std::forward<GroupIdT>(value));
155 return *this;
156 }
158
160
163 inline bool GetHasChallenge() const { return m_hasChallenge; }
164 inline bool HasChallengeHasBeenSet() const { return m_hasChallengeHasBeenSet; }
165 inline void SetHasChallenge(bool value) {
166 m_hasChallengeHasBeenSet = true;
167 m_hasChallenge = value;
168 }
169 inline Bot& WithHasChallenge(bool value) {
170 SetHasChallenge(value);
171 return *this;
172 }
174
176
179 inline bool GetSuspended() const { return m_suspended; }
180 inline bool SuspendedHasBeenSet() const { return m_suspendedHasBeenSet; }
181 inline void SetSuspended(bool value) {
182 m_suspendedHasBeenSet = true;
183 m_suspended = value;
184 }
185 inline Bot& WithSuspended(bool value) {
186 SetSuspended(value);
187 return *this;
188 }
190
192
195 inline const Aws::String& GetLastLogin() const { return m_lastLogin; }
196 inline bool LastLoginHasBeenSet() const { return m_lastLoginHasBeenSet; }
197 template <typename LastLoginT = Aws::String>
198 void SetLastLogin(LastLoginT&& value) {
199 m_lastLoginHasBeenSet = true;
200 m_lastLogin = std::forward<LastLoginT>(value);
201 }
202 template <typename LastLoginT = Aws::String>
203 Bot& WithLastLogin(LastLoginT&& value) {
204 SetLastLogin(std::forward<LastLoginT>(value));
205 return *this;
206 }
208 private:
209 Aws::String m_botId;
210
211 Aws::String m_displayName;
212
213 Aws::String m_username;
214
215 Aws::String m_uname;
216
217 Aws::String m_pubkey;
218
219 int m_status{0};
220
221 Aws::String m_groupId;
222
223 bool m_hasChallenge{false};
224
225 bool m_suspended{false};
226
227 Aws::String m_lastLogin;
228 bool m_botIdHasBeenSet = false;
229 bool m_displayNameHasBeenSet = false;
230 bool m_usernameHasBeenSet = false;
231 bool m_unameHasBeenSet = false;
232 bool m_pubkeyHasBeenSet = false;
233 bool m_statusHasBeenSet = false;
234 bool m_groupIdHasBeenSet = false;
235 bool m_hasChallengeHasBeenSet = false;
236 bool m_suspendedHasBeenSet = false;
237 bool m_lastLoginHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace Wickr
242} // namespace Aws
void SetPubkey(PubkeyT &&value)
Definition Bot.h:114
void SetLastLogin(LastLoginT &&value)
Definition Bot.h:198
bool BotIdHasBeenSet() const
Definition Bot.h:40
Bot & WithSuspended(bool value)
Definition Bot.h:185
const Aws::String & GetDisplayName() const
Definition Bot.h:57
bool SuspendedHasBeenSet() const
Definition Bot.h:180
void SetUname(UnameT &&value)
Definition Bot.h:96
Bot & WithLastLogin(LastLoginT &&value)
Definition Bot.h:203
const Aws::String & GetUname() const
Definition Bot.h:93
const Aws::String & GetGroupId() const
Definition Bot.h:145
void SetHasChallenge(bool value)
Definition Bot.h:165
bool UsernameHasBeenSet() const
Definition Bot.h:76
bool HasChallengeHasBeenSet() const
Definition Bot.h:164
void SetUsername(UsernameT &&value)
Definition Bot.h:78
Bot & WithGroupId(GroupIdT &&value)
Definition Bot.h:153
void SetGroupId(GroupIdT &&value)
Definition Bot.h:148
const Aws::String & GetUsername() const
Definition Bot.h:75
void SetDisplayName(DisplayNameT &&value)
Definition Bot.h:60
Bot & WithDisplayName(DisplayNameT &&value)
Definition Bot.h:65
const Aws::String & GetBotId() const
Definition Bot.h:39
bool LastLoginHasBeenSet() const
Definition Bot.h:196
bool StatusHasBeenSet() const
Definition Bot.h:130
void SetSuspended(bool value)
Definition Bot.h:181
Bot & WithStatus(int value)
Definition Bot.h:135
bool PubkeyHasBeenSet() const
Definition Bot.h:112
AWS_WICKR_API Bot(Aws::Utils::Json::JsonView jsonValue)
AWS_WICKR_API Bot()=default
const Aws::String & GetPubkey() const
Definition Bot.h:111
AWS_WICKR_API Aws::Utils::Json::JsonValue Jsonize() const
Bot & WithPubkey(PubkeyT &&value)
Definition Bot.h:119
Bot & WithUname(UnameT &&value)
Definition Bot.h:101
const Aws::String & GetLastLogin() const
Definition Bot.h:195
bool UnameHasBeenSet() const
Definition Bot.h:94
Bot & WithBotId(BotIdT &&value)
Definition Bot.h:47
bool GetHasChallenge() const
Definition Bot.h:163
Bot & WithUsername(UsernameT &&value)
Definition Bot.h:83
bool GetSuspended() const
Definition Bot.h:179
void SetBotId(BotIdT &&value)
Definition Bot.h:42
Bot & WithHasChallenge(bool value)
Definition Bot.h:169
void SetStatus(int value)
Definition Bot.h:131
bool DisplayNameHasBeenSet() const
Definition Bot.h:58
AWS_WICKR_API Bot & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GroupIdHasBeenSet() const
Definition Bot.h:146
int GetStatus() const
Definition Bot.h:129
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue