AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetBotResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wickr/Wickr_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace Wickr {
23namespace Model {
25 public:
26 AWS_WICKR_API GetBotResult() = default;
29
31
34 inline const Aws::String& GetBotId() const { return m_botId; }
35 template <typename BotIdT = Aws::String>
36 void SetBotId(BotIdT&& value) {
37 m_botIdHasBeenSet = true;
38 m_botId = std::forward<BotIdT>(value);
39 }
40 template <typename BotIdT = Aws::String>
41 GetBotResult& WithBotId(BotIdT&& value) {
42 SetBotId(std::forward<BotIdT>(value));
43 return *this;
44 }
46
48
51 inline const Aws::String& GetDisplayName() const { return m_displayName; }
52 template <typename DisplayNameT = Aws::String>
53 void SetDisplayName(DisplayNameT&& value) {
54 m_displayNameHasBeenSet = true;
55 m_displayName = std::forward<DisplayNameT>(value);
56 }
57 template <typename DisplayNameT = Aws::String>
58 GetBotResult& WithDisplayName(DisplayNameT&& value) {
59 SetDisplayName(std::forward<DisplayNameT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetUsername() const { return m_username; }
69 template <typename UsernameT = Aws::String>
70 void SetUsername(UsernameT&& value) {
71 m_usernameHasBeenSet = true;
72 m_username = std::forward<UsernameT>(value);
73 }
74 template <typename UsernameT = Aws::String>
75 GetBotResult& WithUsername(UsernameT&& value) {
76 SetUsername(std::forward<UsernameT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetUname() const { return m_uname; }
86 template <typename UnameT = Aws::String>
87 void SetUname(UnameT&& value) {
88 m_unameHasBeenSet = true;
89 m_uname = std::forward<UnameT>(value);
90 }
91 template <typename UnameT = Aws::String>
92 GetBotResult& WithUname(UnameT&& value) {
93 SetUname(std::forward<UnameT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetPubkey() const { return m_pubkey; }
103 template <typename PubkeyT = Aws::String>
104 void SetPubkey(PubkeyT&& value) {
105 m_pubkeyHasBeenSet = true;
106 m_pubkey = std::forward<PubkeyT>(value);
107 }
108 template <typename PubkeyT = Aws::String>
109 GetBotResult& WithPubkey(PubkeyT&& value) {
110 SetPubkey(std::forward<PubkeyT>(value));
111 return *this;
112 }
114
116
119 inline int GetStatus() const { return m_status; }
120 inline void SetStatus(int value) {
121 m_statusHasBeenSet = true;
122 m_status = value;
123 }
124 inline GetBotResult& WithStatus(int value) {
125 SetStatus(value);
126 return *this;
127 }
129
131
134 inline const Aws::String& GetGroupId() const { return m_groupId; }
135 template <typename GroupIdT = Aws::String>
136 void SetGroupId(GroupIdT&& value) {
137 m_groupIdHasBeenSet = true;
138 m_groupId = std::forward<GroupIdT>(value);
139 }
140 template <typename GroupIdT = Aws::String>
141 GetBotResult& WithGroupId(GroupIdT&& value) {
142 SetGroupId(std::forward<GroupIdT>(value));
143 return *this;
144 }
146
148
151 inline bool GetHasChallenge() const { return m_hasChallenge; }
152 inline void SetHasChallenge(bool value) {
153 m_hasChallengeHasBeenSet = true;
154 m_hasChallenge = value;
155 }
156 inline GetBotResult& WithHasChallenge(bool value) {
157 SetHasChallenge(value);
158 return *this;
159 }
161
163
166 inline bool GetSuspended() const { return m_suspended; }
167 inline void SetSuspended(bool value) {
168 m_suspendedHasBeenSet = true;
169 m_suspended = value;
170 }
171 inline GetBotResult& WithSuspended(bool value) {
172 SetSuspended(value);
173 return *this;
174 }
176
178
181 inline const Aws::String& GetLastLogin() const { return m_lastLogin; }
182 template <typename LastLoginT = Aws::String>
183 void SetLastLogin(LastLoginT&& value) {
184 m_lastLoginHasBeenSet = true;
185 m_lastLogin = std::forward<LastLoginT>(value);
186 }
187 template <typename LastLoginT = Aws::String>
188 GetBotResult& WithLastLogin(LastLoginT&& value) {
189 SetLastLogin(std::forward<LastLoginT>(value));
190 return *this;
191 }
193
195
196 inline const Aws::String& GetRequestId() const { return m_requestId; }
197 template <typename RequestIdT = Aws::String>
198 void SetRequestId(RequestIdT&& value) {
199 m_requestIdHasBeenSet = true;
200 m_requestId = std::forward<RequestIdT>(value);
201 }
202 template <typename RequestIdT = Aws::String>
203 GetBotResult& WithRequestId(RequestIdT&& value) {
204 SetRequestId(std::forward<RequestIdT>(value));
205 return *this;
206 }
208 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
209
210 private:
211 Aws::String m_botId;
212
213 Aws::String m_displayName;
214
215 Aws::String m_username;
216
217 Aws::String m_uname;
218
219 Aws::String m_pubkey;
220
221 int m_status{0};
222
223 Aws::String m_groupId;
224
225 bool m_hasChallenge{false};
226
227 bool m_suspended{false};
228
229 Aws::String m_lastLogin;
230
231 Aws::String m_requestId;
232 Aws::Http::HttpResponseCode m_HttpResponseCode;
233 bool m_botIdHasBeenSet = false;
234 bool m_displayNameHasBeenSet = false;
235 bool m_usernameHasBeenSet = false;
236 bool m_unameHasBeenSet = false;
237 bool m_pubkeyHasBeenSet = false;
238 bool m_statusHasBeenSet = false;
239 bool m_groupIdHasBeenSet = false;
240 bool m_hasChallengeHasBeenSet = false;
241 bool m_suspendedHasBeenSet = false;
242 bool m_lastLoginHasBeenSet = false;
243 bool m_requestIdHasBeenSet = false;
244};
245
246} // namespace Model
247} // namespace Wickr
248} // namespace Aws
void SetDisplayName(DisplayNameT &&value)
const Aws::String & GetPubkey() const
void SetUsername(UsernameT &&value)
void SetUname(UnameT &&value)
void SetGroupId(GroupIdT &&value)
GetBotResult & WithPubkey(PubkeyT &&value)
const Aws::String & GetLastLogin() const
const Aws::String & GetRequestId() const
GetBotResult & WithLastLogin(LastLoginT &&value)
GetBotResult & WithStatus(int value)
void SetPubkey(PubkeyT &&value)
GetBotResult & WithGroupId(GroupIdT &&value)
void SetLastLogin(LastLoginT &&value)
AWS_WICKR_API GetBotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBotResult & WithUname(UnameT &&value)
AWS_WICKR_API GetBotResult()=default
GetBotResult & WithHasChallenge(bool value)
const Aws::String & GetUsername() const
const Aws::String & GetUname() const
AWS_WICKR_API GetBotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetBotId() const
const Aws::String & GetDisplayName() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetBotResult & WithUsername(UsernameT &&value)
void SetRequestId(RequestIdT &&value)
GetBotResult & WithBotId(BotIdT &&value)
GetBotResult & WithDisplayName(DisplayNameT &&value)
GetBotResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetGroupId() const
void SetBotId(BotIdT &&value)
GetBotResult & WithSuspended(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue