AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Bot.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/chime/model/BotType.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Chime {
22namespace Model {
23
30class Bot {
31 public:
32 AWS_CHIME_API Bot() = default;
33 AWS_CHIME_API Bot(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CHIME_API Bot& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetBotId() const { return m_botId; }
42 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
43 template <typename BotIdT = Aws::String>
44 void SetBotId(BotIdT&& value) {
45 m_botIdHasBeenSet = true;
46 m_botId = std::forward<BotIdT>(value);
47 }
48 template <typename BotIdT = Aws::String>
49 Bot& WithBotId(BotIdT&& value) {
50 SetBotId(std::forward<BotIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetUserId() const { return m_userId; }
60 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
61 template <typename UserIdT = Aws::String>
62 void SetUserId(UserIdT&& value) {
63 m_userIdHasBeenSet = true;
64 m_userId = std::forward<UserIdT>(value);
65 }
66 template <typename UserIdT = Aws::String>
67 Bot& WithUserId(UserIdT&& value) {
68 SetUserId(std::forward<UserIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDisplayName() const { return m_displayName; }
78 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
79 template <typename DisplayNameT = Aws::String>
80 void SetDisplayName(DisplayNameT&& value) {
81 m_displayNameHasBeenSet = true;
82 m_displayName = std::forward<DisplayNameT>(value);
83 }
84 template <typename DisplayNameT = Aws::String>
85 Bot& WithDisplayName(DisplayNameT&& value) {
86 SetDisplayName(std::forward<DisplayNameT>(value));
87 return *this;
88 }
90
92
95 inline BotType GetBotType() const { return m_botType; }
96 inline bool BotTypeHasBeenSet() const { return m_botTypeHasBeenSet; }
97 inline void SetBotType(BotType value) {
98 m_botTypeHasBeenSet = true;
99 m_botType = value;
100 }
101 inline Bot& WithBotType(BotType value) {
102 SetBotType(value);
103 return *this;
104 }
106
108
111 inline bool GetDisabled() const { return m_disabled; }
112 inline bool DisabledHasBeenSet() const { return m_disabledHasBeenSet; }
113 inline void SetDisabled(bool value) {
114 m_disabledHasBeenSet = true;
115 m_disabled = value;
116 }
117 inline Bot& WithDisabled(bool value) {
118 SetDisabled(value);
119 return *this;
120 }
122
124
127 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
128 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
129 template <typename CreatedTimestampT = Aws::Utils::DateTime>
130 void SetCreatedTimestamp(CreatedTimestampT&& value) {
131 m_createdTimestampHasBeenSet = true;
132 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
133 }
134 template <typename CreatedTimestampT = Aws::Utils::DateTime>
135 Bot& WithCreatedTimestamp(CreatedTimestampT&& value) {
136 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
146 inline bool UpdatedTimestampHasBeenSet() const { return m_updatedTimestampHasBeenSet; }
147 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
148 void SetUpdatedTimestamp(UpdatedTimestampT&& value) {
149 m_updatedTimestampHasBeenSet = true;
150 m_updatedTimestamp = std::forward<UpdatedTimestampT>(value);
151 }
152 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
153 Bot& WithUpdatedTimestamp(UpdatedTimestampT&& value) {
154 SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetBotEmail() const { return m_botEmail; }
164 inline bool BotEmailHasBeenSet() const { return m_botEmailHasBeenSet; }
165 template <typename BotEmailT = Aws::String>
166 void SetBotEmail(BotEmailT&& value) {
167 m_botEmailHasBeenSet = true;
168 m_botEmail = std::forward<BotEmailT>(value);
169 }
170 template <typename BotEmailT = Aws::String>
171 Bot& WithBotEmail(BotEmailT&& value) {
172 SetBotEmail(std::forward<BotEmailT>(value));
173 return *this;
174 }
176
178
182 inline const Aws::String& GetSecurityToken() const { return m_securityToken; }
183 inline bool SecurityTokenHasBeenSet() const { return m_securityTokenHasBeenSet; }
184 template <typename SecurityTokenT = Aws::String>
185 void SetSecurityToken(SecurityTokenT&& value) {
186 m_securityTokenHasBeenSet = true;
187 m_securityToken = std::forward<SecurityTokenT>(value);
188 }
189 template <typename SecurityTokenT = Aws::String>
190 Bot& WithSecurityToken(SecurityTokenT&& value) {
191 SetSecurityToken(std::forward<SecurityTokenT>(value));
192 return *this;
193 }
195 private:
196 Aws::String m_botId;
197
198 Aws::String m_userId;
199
200 Aws::String m_displayName;
201
202 BotType m_botType{BotType::NOT_SET};
203
204 bool m_disabled{false};
205
206 Aws::Utils::DateTime m_createdTimestamp{};
207
208 Aws::Utils::DateTime m_updatedTimestamp{};
209
210 Aws::String m_botEmail;
211
212 Aws::String m_securityToken;
213 bool m_botIdHasBeenSet = false;
214 bool m_userIdHasBeenSet = false;
215 bool m_displayNameHasBeenSet = false;
216 bool m_botTypeHasBeenSet = false;
217 bool m_disabledHasBeenSet = false;
218 bool m_createdTimestampHasBeenSet = false;
219 bool m_updatedTimestampHasBeenSet = false;
220 bool m_botEmailHasBeenSet = false;
221 bool m_securityTokenHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace Chime
226} // namespace Aws
bool UpdatedTimestampHasBeenSet() const
Definition Bot.h:146
Bot & WithCreatedTimestamp(CreatedTimestampT &&value)
Definition Bot.h:135
BotType GetBotType() const
Definition Bot.h:95
AWS_CHIME_API Bot & operator=(Aws::Utils::Json::JsonView jsonValue)
Bot & WithBotId(BotIdT &&value)
Definition Bot.h:49
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition Bot.h:127
const Aws::String & GetUserId() const
Definition Bot.h:59
void SetBotEmail(BotEmailT &&value)
Definition Bot.h:166
Bot & WithBotEmail(BotEmailT &&value)
Definition Bot.h:171
Bot & WithUpdatedTimestamp(UpdatedTimestampT &&value)
Definition Bot.h:153
void SetDisabled(bool value)
Definition Bot.h:113
Bot & WithSecurityToken(SecurityTokenT &&value)
Definition Bot.h:190
void SetUpdatedTimestamp(UpdatedTimestampT &&value)
Definition Bot.h:148
AWS_CHIME_API Bot(Aws::Utils::Json::JsonView jsonValue)
bool BotEmailHasBeenSet() const
Definition Bot.h:164
const Aws::String & GetSecurityToken() const
Definition Bot.h:182
bool GetDisabled() const
Definition Bot.h:111
AWS_CHIME_API Bot()=default
const Aws::String & GetBotId() const
Definition Bot.h:41
bool BotIdHasBeenSet() const
Definition Bot.h:42
bool SecurityTokenHasBeenSet() const
Definition Bot.h:183
void SetBotId(BotIdT &&value)
Definition Bot.h:44
bool BotTypeHasBeenSet() const
Definition Bot.h:96
bool UserIdHasBeenSet() const
Definition Bot.h:60
bool CreatedTimestampHasBeenSet() const
Definition Bot.h:128
Bot & WithBotType(BotType value)
Definition Bot.h:101
void SetSecurityToken(SecurityTokenT &&value)
Definition Bot.h:185
const Aws::Utils::DateTime & GetUpdatedTimestamp() const
Definition Bot.h:145
void SetCreatedTimestamp(CreatedTimestampT &&value)
Definition Bot.h:130
const Aws::String & GetDisplayName() const
Definition Bot.h:77
void SetUserId(UserIdT &&value)
Definition Bot.h:62
Bot & WithDisabled(bool value)
Definition Bot.h:117
void SetDisplayName(DisplayNameT &&value)
Definition Bot.h:80
bool DisplayNameHasBeenSet() const
Definition Bot.h:78
const Aws::String & GetBotEmail() const
Definition Bot.h:163
Bot & WithUserId(UserIdT &&value)
Definition Bot.h:67
void SetBotType(BotType value)
Definition Bot.h:97
bool DisabledHasBeenSet() const
Definition Bot.h:112
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
Bot & WithDisplayName(DisplayNameT &&value)
Definition Bot.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue