AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AbsoluteTimeT = Aws::String>
55 void SetAbsoluteTime(AbsoluteTimeT&& value) { m_absoluteTimeHasBeenSet = true; m_absoluteTime = std::forward<AbsoluteTimeT>(value); }
56 template<typename AbsoluteTimeT = Aws::String>
57 Item& WithAbsoluteTime(AbsoluteTimeT&& value) { SetAbsoluteTime(std::forward<AbsoluteTimeT>(value)); return *this;}
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) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
68 template<typename ContentT = Aws::String>
69 Item& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
71
73
76 inline const Aws::String& GetContentType() const { return m_contentType; }
77 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
78 template<typename ContentTypeT = Aws::String>
79 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
80 template<typename ContentTypeT = Aws::String>
81 Item& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
83
85
88 inline const Aws::String& GetId() const { return m_id; }
89 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
90 template<typename IdT = Aws::String>
91 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
92 template<typename IdT = Aws::String>
93 Item& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
95
97
100 inline ChatItemType GetType() const { return m_type; }
101 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
102 inline void SetType(ChatItemType value) { m_typeHasBeenSet = true; m_type = value; }
103 inline Item& WithType(ChatItemType value) { SetType(value); return *this;}
105
107
110 inline const Aws::String& GetParticipantId() const { return m_participantId; }
111 inline bool ParticipantIdHasBeenSet() const { return m_participantIdHasBeenSet; }
112 template<typename ParticipantIdT = Aws::String>
113 void SetParticipantId(ParticipantIdT&& value) { m_participantIdHasBeenSet = true; m_participantId = std::forward<ParticipantIdT>(value); }
114 template<typename ParticipantIdT = Aws::String>
115 Item& WithParticipantId(ParticipantIdT&& value) { SetParticipantId(std::forward<ParticipantIdT>(value)); return *this;}
117
119
122 inline const Aws::String& GetDisplayName() const { return m_displayName; }
123 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
124 template<typename DisplayNameT = Aws::String>
125 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
126 template<typename DisplayNameT = Aws::String>
127 Item& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
129
131
134 inline ParticipantRole GetParticipantRole() const { return m_participantRole; }
135 inline bool ParticipantRoleHasBeenSet() const { return m_participantRoleHasBeenSet; }
136 inline void SetParticipantRole(ParticipantRole value) { m_participantRoleHasBeenSet = true; m_participantRole = value; }
137 inline Item& WithParticipantRole(ParticipantRole value) { SetParticipantRole(value); return *this;}
139
141
144 inline const Aws::Vector<AttachmentItem>& GetAttachments() const { return m_attachments; }
145 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
146 template<typename AttachmentsT = Aws::Vector<AttachmentItem>>
147 void SetAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::forward<AttachmentsT>(value); }
148 template<typename AttachmentsT = Aws::Vector<AttachmentItem>>
149 Item& WithAttachments(AttachmentsT&& value) { SetAttachments(std::forward<AttachmentsT>(value)); return *this;}
150 template<typename AttachmentsT = AttachmentItem>
151 Item& AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments.emplace_back(std::forward<AttachmentsT>(value)); return *this; }
153
155
159 inline const MessageMetadata& GetMessageMetadata() const { return m_messageMetadata; }
160 inline bool MessageMetadataHasBeenSet() const { return m_messageMetadataHasBeenSet; }
161 template<typename MessageMetadataT = MessageMetadata>
162 void SetMessageMetadata(MessageMetadataT&& value) { m_messageMetadataHasBeenSet = true; m_messageMetadata = std::forward<MessageMetadataT>(value); }
163 template<typename MessageMetadataT = MessageMetadata>
164 Item& WithMessageMetadata(MessageMetadataT&& value) { SetMessageMetadata(std::forward<MessageMetadataT>(value)); return *this;}
166
168
175 inline const Aws::String& GetRelatedContactId() const { return m_relatedContactId; }
176 inline bool RelatedContactIdHasBeenSet() const { return m_relatedContactIdHasBeenSet; }
177 template<typename RelatedContactIdT = Aws::String>
178 void SetRelatedContactId(RelatedContactIdT&& value) { m_relatedContactIdHasBeenSet = true; m_relatedContactId = std::forward<RelatedContactIdT>(value); }
179 template<typename RelatedContactIdT = Aws::String>
180 Item& WithRelatedContactId(RelatedContactIdT&& value) { SetRelatedContactId(std::forward<RelatedContactIdT>(value)); return *this;}
182
184
188 inline const Aws::String& GetContactId() const { return m_contactId; }
189 inline bool ContactIdHasBeenSet() const { return m_contactIdHasBeenSet; }
190 template<typename ContactIdT = Aws::String>
191 void SetContactId(ContactIdT&& value) { m_contactIdHasBeenSet = true; m_contactId = std::forward<ContactIdT>(value); }
192 template<typename ContactIdT = Aws::String>
193 Item& WithContactId(ContactIdT&& value) { SetContactId(std::forward<ContactIdT>(value)); return *this;}
195 private:
196
197 Aws::String m_absoluteTime;
198 bool m_absoluteTimeHasBeenSet = false;
199
200 Aws::String m_content;
201 bool m_contentHasBeenSet = false;
202
203 Aws::String m_contentType;
204 bool m_contentTypeHasBeenSet = false;
205
206 Aws::String m_id;
207 bool m_idHasBeenSet = false;
208
210 bool m_typeHasBeenSet = false;
211
212 Aws::String m_participantId;
213 bool m_participantIdHasBeenSet = false;
214
215 Aws::String m_displayName;
216 bool m_displayNameHasBeenSet = false;
217
218 ParticipantRole m_participantRole{ParticipantRole::NOT_SET};
219 bool m_participantRoleHasBeenSet = false;
220
221 Aws::Vector<AttachmentItem> m_attachments;
222 bool m_attachmentsHasBeenSet = false;
223
224 MessageMetadata m_messageMetadata;
225 bool m_messageMetadataHasBeenSet = false;
226
227 Aws::String m_relatedContactId;
228 bool m_relatedContactIdHasBeenSet = false;
229
230 Aws::String m_contactId;
231 bool m_contactIdHasBeenSet = false;
232 };
233
234} // namespace Model
235} // namespace ConnectParticipant
236} // namespace Aws
void SetType(ChatItemType value)
Definition Item.h:102
Item & WithParticipantRole(ParticipantRole value)
Definition Item.h:137
Item & WithMessageMetadata(MessageMetadataT &&value)
Definition Item.h:164
const Aws::String & GetId() const
Definition Item.h:88
void SetParticipantId(ParticipantIdT &&value)
Definition Item.h:113
AWS_CONNECTPARTICIPANT_API Item & operator=(Aws::Utils::Json::JsonView jsonValue)
ChatItemType GetType() const
Definition Item.h:100
bool AbsoluteTimeHasBeenSet() const
Definition Item.h:53
const Aws::String & GetDisplayName() const
Definition Item.h:122
void SetRelatedContactId(RelatedContactIdT &&value)
Definition Item.h:178
const Aws::String & GetContent() const
Definition Item.h:64
Item & WithContentType(ContentTypeT &&value)
Definition Item.h:81
Item & WithAttachments(AttachmentsT &&value)
Definition Item.h:149
void SetAbsoluteTime(AbsoluteTimeT &&value)
Definition Item.h:55
AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTPARTICIPANT_API Item()=default
const Aws::Vector< AttachmentItem > & GetAttachments() const
Definition Item.h:144
void SetContactId(ContactIdT &&value)
Definition Item.h:191
void SetContentType(ContentTypeT &&value)
Definition Item.h:79
Item & WithId(IdT &&value)
Definition Item.h:93
const Aws::String & GetRelatedContactId() const
Definition Item.h:175
Item & WithAbsoluteTime(AbsoluteTimeT &&value)
Definition Item.h:57
const Aws::String & GetContactId() const
Definition Item.h:188
void SetContent(ContentT &&value)
Definition Item.h:67
Item & AddAttachments(AttachmentsT &&value)
Definition Item.h:151
Item & WithContactId(ContactIdT &&value)
Definition Item.h:193
Item & WithContent(ContentT &&value)
Definition Item.h:69
void SetAttachments(AttachmentsT &&value)
Definition Item.h:147
void SetMessageMetadata(MessageMetadataT &&value)
Definition Item.h:162
Item & WithType(ChatItemType value)
Definition Item.h:103
Item & WithDisplayName(DisplayNameT &&value)
Definition Item.h:127
const Aws::String & GetContentType() const
Definition Item.h:76
const Aws::String & GetAbsoluteTime() const
Definition Item.h:52
AWS_CONNECTPARTICIPANT_API Item(Aws::Utils::Json::JsonView jsonValue)
Item & WithParticipantId(ParticipantIdT &&value)
Definition Item.h:115
bool ParticipantRoleHasBeenSet() const
Definition Item.h:135
bool RelatedContactIdHasBeenSet() const
Definition Item.h:176
void SetParticipantRole(ParticipantRole value)
Definition Item.h:136
const MessageMetadata & GetMessageMetadata() const
Definition Item.h:159
const Aws::String & GetParticipantId() const
Definition Item.h:110
Item & WithRelatedContactId(RelatedContactIdT &&value)
Definition Item.h:180
bool MessageMetadataHasBeenSet() const
Definition Item.h:160
void SetDisplayName(DisplayNameT &&value)
Definition Item.h:125
ParticipantRole GetParticipantRole() const
Definition Item.h:134
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue