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>
24namespace ConnectParticipant {
35 AWS_CONNECTPARTICIPANT_API
Item() =
default;
48 template <
typename AbsoluteTimeT = Aws::String>
50 m_absoluteTimeHasBeenSet =
true;
51 m_absoluteTime = std::forward<AbsoluteTimeT>(value);
53 template <
typename AbsoluteTimeT = Aws::String>
66 template <
typename ContentT = Aws::String>
68 m_contentHasBeenSet =
true;
69 m_content = std::forward<ContentT>(value);
71 template <
typename ContentT = Aws::String>
84 template <
typename ContentTypeT = Aws::String>
86 m_contentTypeHasBeenSet =
true;
87 m_contentType = std::forward<ContentTypeT>(value);
89 template <
typename ContentTypeT = Aws::String>
102 template <
typename IdT = Aws::String>
104 m_idHasBeenSet =
true;
105 m_id = std::forward<IdT>(value);
107 template <
typename IdT = Aws::String>
109 SetId(std::forward<IdT>(value));
121 m_typeHasBeenSet =
true;
136 template <
typename ParticipantIdT = Aws::String>
138 m_participantIdHasBeenSet =
true;
139 m_participantId = std::forward<ParticipantIdT>(value);
141 template <
typename ParticipantIdT = Aws::String>
154 template <
typename DisplayNameT = Aws::String>
156 m_displayNameHasBeenSet =
true;
157 m_displayName = std::forward<DisplayNameT>(value);
159 template <
typename DisplayNameT = Aws::String>
173 m_participantRoleHasBeenSet =
true;
174 m_participantRole = value;
188 template <
typename AttachmentsT = Aws::Vector<AttachmentItem>>
190 m_attachmentsHasBeenSet =
true;
191 m_attachments = std::forward<AttachmentsT>(value);
193 template <
typename AttachmentsT = Aws::Vector<AttachmentItem>>
198 template <
typename AttachmentsT = AttachmentItem>
200 m_attachmentsHasBeenSet =
true;
201 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
213 template <
typename MessageMetadataT = MessageMetadata>
215 m_messageMetadataHasBeenSet =
true;
216 m_messageMetadata = std::forward<MessageMetadataT>(value);
218 template <
typename MessageMetadataT = MessageMetadata>
235 template <
typename RelatedContactIdT = Aws::String>
237 m_relatedContactIdHasBeenSet =
true;
238 m_relatedContactId = std::forward<RelatedContactIdT>(value);
240 template <
typename RelatedContactIdT = Aws::String>
254 template <
typename ContactIdT = Aws::String>
256 m_contactIdHasBeenSet =
true;
257 m_contactId = std::forward<ContactIdT>(value);
259 template <
typename ContactIdT = Aws::String>
284 MessageMetadata m_messageMetadata;
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;
void SetType(ChatItemType value)
Item & WithParticipantRole(ParticipantRole value)
Item & WithMessageMetadata(MessageMetadataT &&value)
const Aws::String & GetId() const
void SetParticipantId(ParticipantIdT &&value)
AWS_CONNECTPARTICIPANT_API Item & operator=(Aws::Utils::Json::JsonView jsonValue)
ChatItemType GetType() const
bool AbsoluteTimeHasBeenSet() const
const Aws::String & GetDisplayName() const
void SetRelatedContactId(RelatedContactIdT &&value)
const Aws::String & GetContent() const
Item & WithContentType(ContentTypeT &&value)
Item & WithAttachments(AttachmentsT &&value)
bool ContentTypeHasBeenSet() const
bool DisplayNameHasBeenSet() const
void SetAbsoluteTime(AbsoluteTimeT &&value)
AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const
bool ContentHasBeenSet() const
AWS_CONNECTPARTICIPANT_API Item()=default
const Aws::Vector< AttachmentItem > & GetAttachments() const
bool AttachmentsHasBeenSet() const
void SetContactId(ContactIdT &&value)
void SetContentType(ContentTypeT &&value)
Item & WithId(IdT &&value)
const Aws::String & GetRelatedContactId() const
Item & WithAbsoluteTime(AbsoluteTimeT &&value)
const Aws::String & GetContactId() const
void SetContent(ContentT &&value)
Item & AddAttachments(AttachmentsT &&value)
Item & WithContactId(ContactIdT &&value)
Item & WithContent(ContentT &&value)
void SetAttachments(AttachmentsT &&value)
void SetMessageMetadata(MessageMetadataT &&value)
Item & WithType(ChatItemType value)
Item & WithDisplayName(DisplayNameT &&value)
const Aws::String & GetContentType() const
const Aws::String & GetAbsoluteTime() const
AWS_CONNECTPARTICIPANT_API Item(Aws::Utils::Json::JsonView jsonValue)
Item & WithParticipantId(ParticipantIdT &&value)
bool TypeHasBeenSet() const
bool ParticipantRoleHasBeenSet() const
bool ParticipantIdHasBeenSet() const
bool RelatedContactIdHasBeenSet() const
void SetParticipantRole(ParticipantRole value)
const MessageMetadata & GetMessageMetadata() const
const Aws::String & GetParticipantId() const
Item & WithRelatedContactId(RelatedContactIdT &&value)
bool IdHasBeenSet() const
bool MessageMetadataHasBeenSet() const
bool ContactIdHasBeenSet() const
void SetDisplayName(DisplayNameT &&value)
ParticipantRole GetParticipantRole() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue