AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Bot.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/chime/model/BotType.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Chime
24{
25namespace Model
26{
27
34 class Bot
35 {
36 public:
37 AWS_CHIME_API Bot() = default;
38 AWS_CHIME_API Bot(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CHIME_API Bot& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetBotId() const { return m_botId; }
48 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
49 template<typename BotIdT = Aws::String>
50 void SetBotId(BotIdT&& value) { m_botIdHasBeenSet = true; m_botId = std::forward<BotIdT>(value); }
51 template<typename BotIdT = Aws::String>
52 Bot& WithBotId(BotIdT&& value) { SetBotId(std::forward<BotIdT>(value)); return *this;}
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) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
63 template<typename UserIdT = Aws::String>
64 Bot& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
66
68
71 inline const Aws::String& GetDisplayName() const { return m_displayName; }
72 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
73 template<typename DisplayNameT = Aws::String>
74 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
75 template<typename DisplayNameT = Aws::String>
76 Bot& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
78
80
83 inline BotType GetBotType() const { return m_botType; }
84 inline bool BotTypeHasBeenSet() const { return m_botTypeHasBeenSet; }
85 inline void SetBotType(BotType value) { m_botTypeHasBeenSet = true; m_botType = value; }
86 inline Bot& WithBotType(BotType value) { SetBotType(value); return *this;}
88
90
93 inline bool GetDisabled() const { return m_disabled; }
94 inline bool DisabledHasBeenSet() const { return m_disabledHasBeenSet; }
95 inline void SetDisabled(bool value) { m_disabledHasBeenSet = true; m_disabled = value; }
96 inline Bot& WithDisabled(bool value) { SetDisabled(value); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
104 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
105 template<typename CreatedTimestampT = Aws::Utils::DateTime>
106 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
107 template<typename CreatedTimestampT = Aws::Utils::DateTime>
108 Bot& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
116 inline bool UpdatedTimestampHasBeenSet() const { return m_updatedTimestampHasBeenSet; }
117 template<typename UpdatedTimestampT = Aws::Utils::DateTime>
118 void SetUpdatedTimestamp(UpdatedTimestampT&& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = std::forward<UpdatedTimestampT>(value); }
119 template<typename UpdatedTimestampT = Aws::Utils::DateTime>
120 Bot& WithUpdatedTimestamp(UpdatedTimestampT&& value) { SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value)); return *this;}
122
124
127 inline const Aws::String& GetBotEmail() const { return m_botEmail; }
128 inline bool BotEmailHasBeenSet() const { return m_botEmailHasBeenSet; }
129 template<typename BotEmailT = Aws::String>
130 void SetBotEmail(BotEmailT&& value) { m_botEmailHasBeenSet = true; m_botEmail = std::forward<BotEmailT>(value); }
131 template<typename BotEmailT = Aws::String>
132 Bot& WithBotEmail(BotEmailT&& value) { SetBotEmail(std::forward<BotEmailT>(value)); return *this;}
134
136
140 inline const Aws::String& GetSecurityToken() const { return m_securityToken; }
141 inline bool SecurityTokenHasBeenSet() const { return m_securityTokenHasBeenSet; }
142 template<typename SecurityTokenT = Aws::String>
143 void SetSecurityToken(SecurityTokenT&& value) { m_securityTokenHasBeenSet = true; m_securityToken = std::forward<SecurityTokenT>(value); }
144 template<typename SecurityTokenT = Aws::String>
145 Bot& WithSecurityToken(SecurityTokenT&& value) { SetSecurityToken(std::forward<SecurityTokenT>(value)); return *this;}
147 private:
148
149 Aws::String m_botId;
150 bool m_botIdHasBeenSet = false;
151
152 Aws::String m_userId;
153 bool m_userIdHasBeenSet = false;
154
155 Aws::String m_displayName;
156 bool m_displayNameHasBeenSet = false;
157
158 BotType m_botType{BotType::NOT_SET};
159 bool m_botTypeHasBeenSet = false;
160
161 bool m_disabled{false};
162 bool m_disabledHasBeenSet = false;
163
164 Aws::Utils::DateTime m_createdTimestamp{};
165 bool m_createdTimestampHasBeenSet = false;
166
167 Aws::Utils::DateTime m_updatedTimestamp{};
168 bool m_updatedTimestampHasBeenSet = false;
169
170 Aws::String m_botEmail;
171 bool m_botEmailHasBeenSet = false;
172
173 Aws::String m_securityToken;
174 bool m_securityTokenHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace Chime
179} // namespace Aws
bool UpdatedTimestampHasBeenSet() const
Definition Bot.h:116
Bot & WithCreatedTimestamp(CreatedTimestampT &&value)
Definition Bot.h:108
BotType GetBotType() const
Definition Bot.h:83
AWS_CHIME_API Bot & operator=(Aws::Utils::Json::JsonView jsonValue)
Bot & WithBotId(BotIdT &&value)
Definition Bot.h:52
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition Bot.h:103
const Aws::String & GetUserId() const
Definition Bot.h:59
void SetBotEmail(BotEmailT &&value)
Definition Bot.h:130
Bot & WithBotEmail(BotEmailT &&value)
Definition Bot.h:132
Bot & WithUpdatedTimestamp(UpdatedTimestampT &&value)
Definition Bot.h:120
void SetDisabled(bool value)
Definition Bot.h:95
Bot & WithSecurityToken(SecurityTokenT &&value)
Definition Bot.h:145
void SetUpdatedTimestamp(UpdatedTimestampT &&value)
Definition Bot.h:118
AWS_CHIME_API Bot(Aws::Utils::Json::JsonView jsonValue)
bool BotEmailHasBeenSet() const
Definition Bot.h:128
const Aws::String & GetSecurityToken() const
Definition Bot.h:140
bool GetDisabled() const
Definition Bot.h:93
AWS_CHIME_API Bot()=default
const Aws::String & GetBotId() const
Definition Bot.h:47
bool BotIdHasBeenSet() const
Definition Bot.h:48
bool SecurityTokenHasBeenSet() const
Definition Bot.h:141
void SetBotId(BotIdT &&value)
Definition Bot.h:50
bool BotTypeHasBeenSet() const
Definition Bot.h:84
bool UserIdHasBeenSet() const
Definition Bot.h:60
bool CreatedTimestampHasBeenSet() const
Definition Bot.h:104
Bot & WithBotType(BotType value)
Definition Bot.h:86
void SetSecurityToken(SecurityTokenT &&value)
Definition Bot.h:143
const Aws::Utils::DateTime & GetUpdatedTimestamp() const
Definition Bot.h:115
void SetCreatedTimestamp(CreatedTimestampT &&value)
Definition Bot.h:106
const Aws::String & GetDisplayName() const
Definition Bot.h:71
void SetUserId(UserIdT &&value)
Definition Bot.h:62
Bot & WithDisabled(bool value)
Definition Bot.h:96
void SetDisplayName(DisplayNameT &&value)
Definition Bot.h:74
bool DisplayNameHasBeenSet() const
Definition Bot.h:72
const Aws::String & GetBotEmail() const
Definition Bot.h:127
Bot & WithUserId(UserIdT &&value)
Definition Bot.h:64
void SetBotType(BotType value)
Definition Bot.h:85
bool DisabledHasBeenSet() const
Definition Bot.h:94
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
Bot & WithDisplayName(DisplayNameT &&value)
Definition Bot.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue