7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10#include <aws/qbusiness/model/AttachmentStatus.h>
11#include <aws/qbusiness/model/CopyFromSource.h>
12#include <aws/qbusiness/model/ErrorDetail.h>
45 template <
typename AttachmentIdT = Aws::String>
47 m_attachmentIdHasBeenSet =
true;
48 m_attachmentId = std::forward<AttachmentIdT>(value);
50 template <
typename AttachmentIdT = Aws::String>
64 template <
typename ConversationIdT = Aws::String>
66 m_conversationIdHasBeenSet =
true;
67 m_conversationId = std::forward<ConversationIdT>(value);
69 template <
typename ConversationIdT = Aws::String>
82 template <
typename NameT = Aws::String>
84 m_nameHasBeenSet =
true;
85 m_name = std::forward<NameT>(value);
87 template <
typename NameT = Aws::String>
89 SetName(std::forward<NameT>(value));
101 template <
typename CopyFromT = CopyFromSource>
103 m_copyFromHasBeenSet =
true;
104 m_copyFrom = std::forward<CopyFromT>(value);
106 template <
typename CopyFromT = CopyFromSource>
119 template <
typename FileTypeT = Aws::String>
121 m_fileTypeHasBeenSet =
true;
122 m_fileType = std::forward<FileTypeT>(value);
124 template <
typename FileTypeT = Aws::String>
138 m_fileSizeHasBeenSet =
true;
153 template <
typename Md5chksumT = Aws::String>
155 m_md5chksumHasBeenSet =
true;
156 m_md5chksum = std::forward<Md5chksumT>(value);
158 template <
typename Md5chksumT = Aws::String>
171 template <
typename CreatedAtT = Aws::Utils::DateTime>
173 m_createdAtHasBeenSet =
true;
174 m_createdAt = std::forward<CreatedAtT>(value);
176 template <
typename CreatedAtT = Aws::Utils::DateTime>
190 m_statusHasBeenSet =
true;
206 template <
typename ErrorT = ErrorDetail>
208 m_errorHasBeenSet =
true;
209 m_error = std::forward<ErrorT>(value);
211 template <
typename ErrorT = ErrorDetail>
213 SetError(std::forward<ErrorT>(value));
237 bool m_attachmentIdHasBeenSet =
false;
238 bool m_conversationIdHasBeenSet =
false;
239 bool m_nameHasBeenSet =
false;
240 bool m_copyFromHasBeenSet =
false;
241 bool m_fileTypeHasBeenSet =
false;
242 bool m_fileSizeHasBeenSet =
false;
243 bool m_md5chksumHasBeenSet =
false;
244 bool m_createdAtHasBeenSet =
false;
245 bool m_statusHasBeenSet =
false;
246 bool m_errorHasBeenSet =
false;
bool FileTypeHasBeenSet() const
bool CopyFromHasBeenSet() const
AWS_QBUSINESS_API Attachment(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_QBUSINESS_API Attachment & operator=(Aws::Utils::Json::JsonView jsonValue)
Attachment & WithConversationId(ConversationIdT &&value)
const Aws::String & GetConversationId() const
Attachment & WithAttachmentId(AttachmentIdT &&value)
Attachment & WithCopyFrom(CopyFromT &&value)
void SetMd5chksum(Md5chksumT &&value)
bool ErrorHasBeenSet() const
const CopyFromSource & GetCopyFrom() const
const Aws::String & GetAttachmentId() const
bool AttachmentIdHasBeenSet() const
bool Md5chksumHasBeenSet() const
void SetFileSize(int value)
bool StatusHasBeenSet() const
void SetName(NameT &&value)
Attachment & WithError(ErrorT &&value)
void SetError(ErrorT &&value)
Attachment & WithFileType(FileTypeT &&value)
AttachmentStatus GetStatus() const
Attachment & WithStatus(AttachmentStatus value)
void SetFileType(FileTypeT &&value)
const Aws::String & GetMd5chksum() const
bool NameHasBeenSet() const
void SetCopyFrom(CopyFromT &&value)
const Aws::String & GetName() const
const Aws::String & GetFileType() const
Attachment & WithName(NameT &&value)
Attachment & WithMd5chksum(Md5chksumT &&value)
Attachment & WithFileSize(int value)
const ErrorDetail & GetError() const
bool FileSizeHasBeenSet() const
void SetAttachmentId(AttachmentIdT &&value)
bool ConversationIdHasBeenSet() const
bool CreatedAtHasBeenSet() const
void SetConversationId(ConversationIdT &&value)
Attachment & WithCreatedAt(CreatedAtT &&value)
void SetCreatedAt(CreatedAtT &&value)
AWS_QBUSINESS_API Attachment()=default
void SetStatus(AttachmentStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue