AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
Item.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
8#include <aws/connectparticipant/model/AttachmentItem.h>
9#include <aws/connectparticipant/model/ChatItemType.h>
10#include <aws/connectparticipant/model/MessageMetadata.h>
11#include <aws/connectparticipant/model/ParticipantRole.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ConnectParticipant {
25namespace Model {
26
33class Item {
34 public:
35 AWS_CONNECTPARTICIPANT_API Item() = default;
36 AWS_CONNECTPARTICIPANT_API Item(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTPARTICIPANT_API Item& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const Aws::String& GetAbsoluteTime() const { return m_absoluteTime; }
47 inline bool AbsoluteTimeHasBeenSet() const { return m_absoluteTimeHasBeenSet; }
48 template <typename AbsoluteTimeT = Aws::String>
49 void SetAbsoluteTime(AbsoluteTimeT&& value) {
50 m_absoluteTimeHasBeenSet = true;
51 m_absoluteTime = std::forward<AbsoluteTimeT>(value);
52 }
53 template <typename AbsoluteTimeT = Aws::String>
54 Item& WithAbsoluteTime(AbsoluteTimeT&& value) {
55 SetAbsoluteTime(std::forward<AbsoluteTimeT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetContent() const { return m_content; }
65 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
66 template <typename ContentT = Aws::String>
67 void SetContent(ContentT&& value) {
68 m_contentHasBeenSet = true;
69 m_content = std::forward<ContentT>(value);
70 }
71 template <typename ContentT = Aws::String>
72 Item& WithContent(ContentT&& value) {
73 SetContent(std::forward<ContentT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetContentType() const { return m_contentType; }
83 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
84 template <typename ContentTypeT = Aws::String>
85 void SetContentType(ContentTypeT&& value) {
86 m_contentTypeHasBeenSet = true;
87 m_contentType = std::forward<ContentTypeT>(value);
88 }
89 template <typename ContentTypeT = Aws::String>
90 Item& WithContentType(ContentTypeT&& value) {
91 SetContentType(std::forward<ContentTypeT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetId() const { return m_id; }
101 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
102 template <typename IdT = Aws::String>
103 void SetId(IdT&& value) {
104 m_idHasBeenSet = true;
105 m_id = std::forward<IdT>(value);
106 }
107 template <typename IdT = Aws::String>
108 Item& WithId(IdT&& value) {
109 SetId(std::forward<IdT>(value));
110 return *this;
111 }
113
115
118 inline ChatItemType GetType() const { return m_type; }
119 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
120 inline void SetType(ChatItemType value) {
121 m_typeHasBeenSet = true;
122 m_type = value;
123 }
124 inline Item& WithType(ChatItemType value) {
125 SetType(value);
126 return *this;
127 }
129
131
134 inline const Aws::String& GetParticipantId() const { return m_participantId; }
135 inline bool ParticipantIdHasBeenSet() const { return m_participantIdHasBeenSet; }
136 template <typename ParticipantIdT = Aws::String>
137 void SetParticipantId(ParticipantIdT&& value) {
138 m_participantIdHasBeenSet = true;
139 m_participantId = std::forward<ParticipantIdT>(value);
140 }
141 template <typename ParticipantIdT = Aws::String>
142 Item& WithParticipantId(ParticipantIdT&& value) {
143 SetParticipantId(std::forward<ParticipantIdT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetDisplayName() const { return m_displayName; }
153 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
154 template <typename DisplayNameT = Aws::String>
155 void SetDisplayName(DisplayNameT&& value) {
156 m_displayNameHasBeenSet = true;
157 m_displayName = std::forward<DisplayNameT>(value);
158 }
159 template <typename DisplayNameT = Aws::String>
160 Item& WithDisplayName(DisplayNameT&& value) {
161 SetDisplayName(std::forward<DisplayNameT>(value));
162 return *this;
163 }
165
167
170 inline ParticipantRole GetParticipantRole() const { return m_participantRole; }
171 inline bool ParticipantRoleHasBeenSet() const { return m_participantRoleHasBeenSet; }
173 m_participantRoleHasBeenSet = true;
174 m_participantRole = value;
175 }
177 SetParticipantRole(value);
178 return *this;
179 }
181
183
186 inline const Aws::Vector<AttachmentItem>& GetAttachments() const { return m_attachments; }
187 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
188 template <typename AttachmentsT = Aws::Vector<AttachmentItem>>
189 void SetAttachments(AttachmentsT&& value) {
190 m_attachmentsHasBeenSet = true;
191 m_attachments = std::forward<AttachmentsT>(value);
192 }
193 template <typename AttachmentsT = Aws::Vector<AttachmentItem>>
194 Item& WithAttachments(AttachmentsT&& value) {
195 SetAttachments(std::forward<AttachmentsT>(value));
196 return *this;
197 }
198 template <typename AttachmentsT = AttachmentItem>
199 Item& AddAttachments(AttachmentsT&& value) {
200 m_attachmentsHasBeenSet = true;
201 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
202 return *this;
203 }
205
207
211 inline const MessageMetadata& GetMessageMetadata() const { return m_messageMetadata; }
212 inline bool MessageMetadataHasBeenSet() const { return m_messageMetadataHasBeenSet; }
213 template <typename MessageMetadataT = MessageMetadata>
214 void SetMessageMetadata(MessageMetadataT&& value) {
215 m_messageMetadataHasBeenSet = true;
216 m_messageMetadata = std::forward<MessageMetadataT>(value);
217 }
218 template <typename MessageMetadataT = MessageMetadata>
219 Item& WithMessageMetadata(MessageMetadataT&& value) {
220 SetMessageMetadata(std::forward<MessageMetadataT>(value));
221 return *this;
222 }
224
226
233 inline const Aws::String& GetRelatedContactId() const { return m_relatedContactId; }
234 inline bool RelatedContactIdHasBeenSet() const { return m_relatedContactIdHasBeenSet; }
235 template <typename RelatedContactIdT = Aws::String>
236 void SetRelatedContactId(RelatedContactIdT&& value) {
237 m_relatedContactIdHasBeenSet = true;
238 m_relatedContactId = std::forward<RelatedContactIdT>(value);
239 }
240 template <typename RelatedContactIdT = Aws::String>
241 Item& WithRelatedContactId(RelatedContactIdT&& value) {
242 SetRelatedContactId(std::forward<RelatedContactIdT>(value));
243 return *this;
244 }
246
248
252 inline const Aws::String& GetContactId() const { return m_contactId; }
253 inline bool ContactIdHasBeenSet() const { return m_contactIdHasBeenSet; }
254 template <typename ContactIdT = Aws::String>
255 void SetContactId(ContactIdT&& value) {
256 m_contactIdHasBeenSet = true;
257 m_contactId = std::forward<ContactIdT>(value);
258 }
259 template <typename ContactIdT = Aws::String>
260 Item& WithContactId(ContactIdT&& value) {
261 SetContactId(std::forward<ContactIdT>(value));
262 return *this;
263 }
265 private:
266 Aws::String m_absoluteTime;
267
268 Aws::String m_content;
269
270 Aws::String m_contentType;
271
272 Aws::String m_id;
273
275
276 Aws::String m_participantId;
277
278 Aws::String m_displayName;
279
280 ParticipantRole m_participantRole{ParticipantRole::NOT_SET};
281
282 Aws::Vector<AttachmentItem> m_attachments;
283
284 MessageMetadata m_messageMetadata;
285
286 Aws::String m_relatedContactId;
287
288 Aws::String m_contactId;
289 bool m_absoluteTimeHasBeenSet = false;
290 bool m_contentHasBeenSet = false;
291 bool m_contentTypeHasBeenSet = false;
292 bool m_idHasBeenSet = false;
293 bool m_typeHasBeenSet = false;
294 bool m_participantIdHasBeenSet = false;
295 bool m_displayNameHasBeenSet = false;
296 bool m_participantRoleHasBeenSet = false;
297 bool m_attachmentsHasBeenSet = false;
298 bool m_messageMetadataHasBeenSet = false;
299 bool m_relatedContactIdHasBeenSet = false;
300 bool m_contactIdHasBeenSet = false;
301};
302
303} // namespace Model
304} // namespace ConnectParticipant
305} // namespace Aws
void SetType(ChatItemType value)
Definition Item.h:120
Item & WithParticipantRole(ParticipantRole value)
Definition Item.h:176
Item & WithMessageMetadata(MessageMetadataT &&value)
Definition Item.h:219
const Aws::String & GetId() const
Definition Item.h:100
void SetParticipantId(ParticipantIdT &&value)
Definition Item.h:137
AWS_CONNECTPARTICIPANT_API Item & operator=(Aws::Utils::Json::JsonView jsonValue)
ChatItemType GetType() const
Definition Item.h:118
bool AbsoluteTimeHasBeenSet() const
Definition Item.h:47
const Aws::String & GetDisplayName() const
Definition Item.h:152
void SetRelatedContactId(RelatedContactIdT &&value)
Definition Item.h:236
const Aws::String & GetContent() const
Definition Item.h:64
Item & WithContentType(ContentTypeT &&value)
Definition Item.h:90
Item & WithAttachments(AttachmentsT &&value)
Definition Item.h:194
void SetAbsoluteTime(AbsoluteTimeT &&value)
Definition Item.h:49
AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTPARTICIPANT_API Item()=default
const Aws::Vector< AttachmentItem > & GetAttachments() const
Definition Item.h:186
void SetContactId(ContactIdT &&value)
Definition Item.h:255
void SetContentType(ContentTypeT &&value)
Definition Item.h:85
Item & WithId(IdT &&value)
Definition Item.h:108
const Aws::String & GetRelatedContactId() const
Definition Item.h:233
Item & WithAbsoluteTime(AbsoluteTimeT &&value)
Definition Item.h:54
const Aws::String & GetContactId() const
Definition Item.h:252
void SetContent(ContentT &&value)
Definition Item.h:67
Item & AddAttachments(AttachmentsT &&value)
Definition Item.h:199
Item & WithContactId(ContactIdT &&value)
Definition Item.h:260
Item & WithContent(ContentT &&value)
Definition Item.h:72
void SetAttachments(AttachmentsT &&value)
Definition Item.h:189
void SetMessageMetadata(MessageMetadataT &&value)
Definition Item.h:214
Item & WithType(ChatItemType value)
Definition Item.h:124
Item & WithDisplayName(DisplayNameT &&value)
Definition Item.h:160
const Aws::String & GetContentType() const
Definition Item.h:82
const Aws::String & GetAbsoluteTime() const
Definition Item.h:46
AWS_CONNECTPARTICIPANT_API Item(Aws::Utils::Json::JsonView jsonValue)
Item & WithParticipantId(ParticipantIdT &&value)
Definition Item.h:142
bool ParticipantRoleHasBeenSet() const
Definition Item.h:171
bool RelatedContactIdHasBeenSet() const
Definition Item.h:234
void SetParticipantRole(ParticipantRole value)
Definition Item.h:172
const MessageMetadata & GetMessageMetadata() const
Definition Item.h:211
const Aws::String & GetParticipantId() const
Definition Item.h:134
Item & WithRelatedContactId(RelatedContactIdT &&value)
Definition Item.h:241
bool MessageMetadataHasBeenSet() const
Definition Item.h:212
void SetDisplayName(DisplayNameT &&value)
Definition Item.h:155
ParticipantRole GetParticipantRole() const
Definition Item.h:170
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue