AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Item.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connectparticipant/model/ChatItemType.h>
10#include <aws/connectparticipant/model/ParticipantRole.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/connectparticipant/model/MessageMetadata.h>
13#include <aws/connectparticipant/model/AttachmentItem.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ConnectParticipant
27{
28namespace Model
29{
30
37 class Item
38 {
39 public:
40 AWS_CONNECTPARTICIPANT_API Item();
41 AWS_CONNECTPARTICIPANT_API Item(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONNECTPARTICIPANT_API Item& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const Aws::String& GetAbsoluteTime() const{ return m_absoluteTime; }
53 inline bool AbsoluteTimeHasBeenSet() const { return m_absoluteTimeHasBeenSet; }
54 inline void SetAbsoluteTime(const Aws::String& value) { m_absoluteTimeHasBeenSet = true; m_absoluteTime = value; }
55 inline void SetAbsoluteTime(Aws::String&& value) { m_absoluteTimeHasBeenSet = true; m_absoluteTime = std::move(value); }
56 inline void SetAbsoluteTime(const char* value) { m_absoluteTimeHasBeenSet = true; m_absoluteTime.assign(value); }
57 inline Item& WithAbsoluteTime(const Aws::String& value) { SetAbsoluteTime(value); return *this;}
58 inline Item& WithAbsoluteTime(Aws::String&& value) { SetAbsoluteTime(std::move(value)); return *this;}
59 inline Item& WithAbsoluteTime(const char* value) { SetAbsoluteTime(value); return *this;}
61
63
66 inline const Aws::String& GetContent() const{ return m_content; }
67 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
68 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
69 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
70 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
71 inline Item& WithContent(const Aws::String& value) { SetContent(value); return *this;}
72 inline Item& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
73 inline Item& WithContent(const char* value) { SetContent(value); return *this;}
75
77
80 inline const Aws::String& GetContentType() const{ return m_contentType; }
81 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
82 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
83 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
84 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
85 inline Item& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
86 inline Item& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
87 inline Item& WithContentType(const char* value) { SetContentType(value); return *this;}
89
91
94 inline const Aws::String& GetId() const{ return m_id; }
95 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
96 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
97 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
98 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
99 inline Item& WithId(const Aws::String& value) { SetId(value); return *this;}
100 inline Item& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
101 inline Item& WithId(const char* value) { SetId(value); return *this;}
103
105
108 inline const ChatItemType& GetType() const{ return m_type; }
109 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
110 inline void SetType(const ChatItemType& value) { m_typeHasBeenSet = true; m_type = value; }
111 inline void SetType(ChatItemType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
112 inline Item& WithType(const ChatItemType& value) { SetType(value); return *this;}
113 inline Item& WithType(ChatItemType&& value) { SetType(std::move(value)); return *this;}
115
117
120 inline const Aws::String& GetParticipantId() const{ return m_participantId; }
121 inline bool ParticipantIdHasBeenSet() const { return m_participantIdHasBeenSet; }
122 inline void SetParticipantId(const Aws::String& value) { m_participantIdHasBeenSet = true; m_participantId = value; }
123 inline void SetParticipantId(Aws::String&& value) { m_participantIdHasBeenSet = true; m_participantId = std::move(value); }
124 inline void SetParticipantId(const char* value) { m_participantIdHasBeenSet = true; m_participantId.assign(value); }
125 inline Item& WithParticipantId(const Aws::String& value) { SetParticipantId(value); return *this;}
126 inline Item& WithParticipantId(Aws::String&& value) { SetParticipantId(std::move(value)); return *this;}
127 inline Item& WithParticipantId(const char* value) { SetParticipantId(value); return *this;}
129
131
134 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
135 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
136 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
137 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
138 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
139 inline Item& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
140 inline Item& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
141 inline Item& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
143
145
148 inline const ParticipantRole& GetParticipantRole() const{ return m_participantRole; }
149 inline bool ParticipantRoleHasBeenSet() const { return m_participantRoleHasBeenSet; }
150 inline void SetParticipantRole(const ParticipantRole& value) { m_participantRoleHasBeenSet = true; m_participantRole = value; }
151 inline void SetParticipantRole(ParticipantRole&& value) { m_participantRoleHasBeenSet = true; m_participantRole = std::move(value); }
152 inline Item& WithParticipantRole(const ParticipantRole& value) { SetParticipantRole(value); return *this;}
153 inline Item& WithParticipantRole(ParticipantRole&& value) { SetParticipantRole(std::move(value)); return *this;}
155
157
160 inline const Aws::Vector<AttachmentItem>& GetAttachments() const{ return m_attachments; }
161 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
162 inline void SetAttachments(const Aws::Vector<AttachmentItem>& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
163 inline void SetAttachments(Aws::Vector<AttachmentItem>&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); }
164 inline Item& WithAttachments(const Aws::Vector<AttachmentItem>& value) { SetAttachments(value); return *this;}
165 inline Item& WithAttachments(Aws::Vector<AttachmentItem>&& value) { SetAttachments(std::move(value)); return *this;}
166 inline Item& AddAttachments(const AttachmentItem& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; }
167 inline Item& AddAttachments(AttachmentItem&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; }
169
171
175 inline const MessageMetadata& GetMessageMetadata() const{ return m_messageMetadata; }
176 inline bool MessageMetadataHasBeenSet() const { return m_messageMetadataHasBeenSet; }
177 inline void SetMessageMetadata(const MessageMetadata& value) { m_messageMetadataHasBeenSet = true; m_messageMetadata = value; }
178 inline void SetMessageMetadata(MessageMetadata&& value) { m_messageMetadataHasBeenSet = true; m_messageMetadata = std::move(value); }
179 inline Item& WithMessageMetadata(const MessageMetadata& value) { SetMessageMetadata(value); return *this;}
180 inline Item& WithMessageMetadata(MessageMetadata&& value) { SetMessageMetadata(std::move(value)); return *this;}
182
184
191 inline const Aws::String& GetRelatedContactId() const{ return m_relatedContactId; }
192 inline bool RelatedContactIdHasBeenSet() const { return m_relatedContactIdHasBeenSet; }
193 inline void SetRelatedContactId(const Aws::String& value) { m_relatedContactIdHasBeenSet = true; m_relatedContactId = value; }
194 inline void SetRelatedContactId(Aws::String&& value) { m_relatedContactIdHasBeenSet = true; m_relatedContactId = std::move(value); }
195 inline void SetRelatedContactId(const char* value) { m_relatedContactIdHasBeenSet = true; m_relatedContactId.assign(value); }
196 inline Item& WithRelatedContactId(const Aws::String& value) { SetRelatedContactId(value); return *this;}
197 inline Item& WithRelatedContactId(Aws::String&& value) { SetRelatedContactId(std::move(value)); return *this;}
198 inline Item& WithRelatedContactId(const char* value) { SetRelatedContactId(value); return *this;}
200
202
206 inline const Aws::String& GetContactId() const{ return m_contactId; }
207 inline bool ContactIdHasBeenSet() const { return m_contactIdHasBeenSet; }
208 inline void SetContactId(const Aws::String& value) { m_contactIdHasBeenSet = true; m_contactId = value; }
209 inline void SetContactId(Aws::String&& value) { m_contactIdHasBeenSet = true; m_contactId = std::move(value); }
210 inline void SetContactId(const char* value) { m_contactIdHasBeenSet = true; m_contactId.assign(value); }
211 inline Item& WithContactId(const Aws::String& value) { SetContactId(value); return *this;}
212 inline Item& WithContactId(Aws::String&& value) { SetContactId(std::move(value)); return *this;}
213 inline Item& WithContactId(const char* value) { SetContactId(value); return *this;}
215 private:
216
217 Aws::String m_absoluteTime;
218 bool m_absoluteTimeHasBeenSet = false;
219
220 Aws::String m_content;
221 bool m_contentHasBeenSet = false;
222
223 Aws::String m_contentType;
224 bool m_contentTypeHasBeenSet = false;
225
226 Aws::String m_id;
227 bool m_idHasBeenSet = false;
228
229 ChatItemType m_type;
230 bool m_typeHasBeenSet = false;
231
232 Aws::String m_participantId;
233 bool m_participantIdHasBeenSet = false;
234
235 Aws::String m_displayName;
236 bool m_displayNameHasBeenSet = false;
237
238 ParticipantRole m_participantRole;
239 bool m_participantRoleHasBeenSet = false;
240
241 Aws::Vector<AttachmentItem> m_attachments;
242 bool m_attachmentsHasBeenSet = false;
243
244 MessageMetadata m_messageMetadata;
245 bool m_messageMetadataHasBeenSet = false;
246
247 Aws::String m_relatedContactId;
248 bool m_relatedContactIdHasBeenSet = false;
249
250 Aws::String m_contactId;
251 bool m_contactIdHasBeenSet = false;
252 };
253
254} // namespace Model
255} // namespace ConnectParticipant
256} // namespace Aws
void SetMessageMetadata(MessageMetadata &&value)
Definition Item.h:178
Item & WithId(const Aws::String &value)
Definition Item.h:99
void SetParticipantRole(const ParticipantRole &value)
Definition Item.h:150
Item & WithContactId(Aws::String &&value)
Definition Item.h:212
void SetParticipantRole(ParticipantRole &&value)
Definition Item.h:151
void SetAbsoluteTime(const char *value)
Definition Item.h:56
void SetAttachments(Aws::Vector< AttachmentItem > &&value)
Definition Item.h:163
Item & WithContentType(Aws::String &&value)
Definition Item.h:86
const Aws::String & GetId() const
Definition Item.h:94
Item & WithContent(const char *value)
Definition Item.h:73
Item & WithRelatedContactId(const char *value)
Definition Item.h:198
AWS_CONNECTPARTICIPANT_API Item & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDisplayName(const char *value)
Definition Item.h:138
bool AbsoluteTimeHasBeenSet() const
Definition Item.h:53
const Aws::String & GetDisplayName() const
Definition Item.h:134
const Aws::String & GetContent() const
Definition Item.h:66
Item & WithContent(const Aws::String &value)
Definition Item.h:71
const ParticipantRole & GetParticipantRole() const
Definition Item.h:148
void SetId(const Aws::String &value)
Definition Item.h:96
void SetAttachments(const Aws::Vector< AttachmentItem > &value)
Definition Item.h:162
void SetContent(Aws::String &&value)
Definition Item.h:69
void SetContentType(Aws::String &&value)
Definition Item.h:83
Item & WithId(Aws::String &&value)
Definition Item.h:100
Item & WithType(const ChatItemType &value)
Definition Item.h:112
AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const
Item & WithContactId(const Aws::String &value)
Definition Item.h:211
Item & WithDisplayName(const char *value)
Definition Item.h:141
Item & WithContentType(const char *value)
Definition Item.h:87
const Aws::Vector< AttachmentItem > & GetAttachments() const
Definition Item.h:160
void SetId(Aws::String &&value)
Definition Item.h:97
Item & WithAttachments(Aws::Vector< AttachmentItem > &&value)
Definition Item.h:165
Item & WithParticipantId(const char *value)
Definition Item.h:127
void SetContentType(const Aws::String &value)
Definition Item.h:82
void SetMessageMetadata(const MessageMetadata &value)
Definition Item.h:177
void SetType(ChatItemType &&value)
Definition Item.h:111
void SetRelatedContactId(const char *value)
Definition Item.h:195
Item & WithParticipantId(const Aws::String &value)
Definition Item.h:125
void SetContactId(const Aws::String &value)
Definition Item.h:208
const Aws::String & GetRelatedContactId() const
Definition Item.h:191
Item & WithParticipantRole(const ParticipantRole &value)
Definition Item.h:152
const Aws::String & GetContactId() const
Definition Item.h:206
Item & WithAbsoluteTime(const Aws::String &value)
Definition Item.h:57
Item & WithContactId(const char *value)
Definition Item.h:213
Item & WithAbsoluteTime(Aws::String &&value)
Definition Item.h:58
void SetAbsoluteTime(Aws::String &&value)
Definition Item.h:55
const ChatItemType & GetType() const
Definition Item.h:108
Item & AddAttachments(AttachmentItem &&value)
Definition Item.h:167
void SetRelatedContactId(const Aws::String &value)
Definition Item.h:193
void SetId(const char *value)
Definition Item.h:98
Item & WithContent(Aws::String &&value)
Definition Item.h:72
Item & AddAttachments(const AttachmentItem &value)
Definition Item.h:166
Item & WithAttachments(const Aws::Vector< AttachmentItem > &value)
Definition Item.h:164
void SetContactId(Aws::String &&value)
Definition Item.h:209
void SetRelatedContactId(Aws::String &&value)
Definition Item.h:194
Item & WithRelatedContactId(Aws::String &&value)
Definition Item.h:197
void SetContactId(const char *value)
Definition Item.h:210
Item & WithDisplayName(Aws::String &&value)
Definition Item.h:140
Item & WithParticipantId(Aws::String &&value)
Definition Item.h:126
Item & WithType(ChatItemType &&value)
Definition Item.h:113
void SetParticipantId(Aws::String &&value)
Definition Item.h:123
Item & WithMessageMetadata(MessageMetadata &&value)
Definition Item.h:180
void SetDisplayName(const Aws::String &value)
Definition Item.h:136
void SetParticipantId(const Aws::String &value)
Definition Item.h:122
const Aws::String & GetContentType() const
Definition Item.h:80
Item & WithAbsoluteTime(const char *value)
Definition Item.h:59
const Aws::String & GetAbsoluteTime() const
Definition Item.h:52
AWS_CONNECTPARTICIPANT_API Item(Aws::Utils::Json::JsonView jsonValue)
Item & WithContentType(const Aws::String &value)
Definition Item.h:85
Item & WithMessageMetadata(const MessageMetadata &value)
Definition Item.h:179
void SetType(const ChatItemType &value)
Definition Item.h:110
Item & WithParticipantRole(ParticipantRole &&value)
Definition Item.h:153
bool ParticipantRoleHasBeenSet() const
Definition Item.h:149
void SetContentType(const char *value)
Definition Item.h:84
void SetDisplayName(Aws::String &&value)
Definition Item.h:137
void SetContent(const char *value)
Definition Item.h:70
void SetAbsoluteTime(const Aws::String &value)
Definition Item.h:54
bool RelatedContactIdHasBeenSet() const
Definition Item.h:192
AWS_CONNECTPARTICIPANT_API Item()
Item & WithRelatedContactId(const Aws::String &value)
Definition Item.h:196
Item & WithId(const char *value)
Definition Item.h:101
const MessageMetadata & GetMessageMetadata() const
Definition Item.h:175
const Aws::String & GetParticipantId() const
Definition Item.h:120
void SetParticipantId(const char *value)
Definition Item.h:124
Item & WithDisplayName(const Aws::String &value)
Definition Item.h:139
bool MessageMetadataHasBeenSet() const
Definition Item.h:176
void SetContent(const Aws::String &value)
Definition Item.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue