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>
26namespace ConnectParticipant
40 AWS_CONNECTPARTICIPANT_API
Item() =
default;
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>
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>
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>
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>
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>
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>
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>>
150 template<
typename AttachmentsT = AttachmentItem>
151 Item&
AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet =
true; m_attachments.emplace_back(std::forward<AttachmentsT>(value));
return *
this; }
161 template<
typename MessageMetadataT = MessageMetadata>
162 void SetMessageMetadata(MessageMetadataT&& value) { m_messageMetadataHasBeenSet =
true; m_messageMetadata = std::forward<MessageMetadataT>(value); }
163 template<
typename MessageMetadataT = MessageMetadata>
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>
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>
198 bool m_absoluteTimeHasBeenSet =
false;
201 bool m_contentHasBeenSet =
false;
204 bool m_contentTypeHasBeenSet =
false;
207 bool m_idHasBeenSet =
false;
210 bool m_typeHasBeenSet =
false;
213 bool m_participantIdHasBeenSet =
false;
216 bool m_displayNameHasBeenSet =
false;
219 bool m_participantRoleHasBeenSet =
false;
222 bool m_attachmentsHasBeenSet =
false;
224 MessageMetadata m_messageMetadata;
225 bool m_messageMetadataHasBeenSet =
false;
228 bool m_relatedContactIdHasBeenSet =
false;
231 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