7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/model/CopyFromSource.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/qbusiness/model/AttachmentStatus.h>
12#include <aws/qbusiness/model/ErrorDetail.h>
51 template<
typename AttachmentIdT = Aws::String>
52 void SetAttachmentId(AttachmentIdT&& value) { m_attachmentIdHasBeenSet =
true; m_attachmentId = std::forward<AttachmentIdT>(value); }
53 template<
typename AttachmentIdT = Aws::String>
64 template<
typename ConversationIdT = Aws::String>
65 void SetConversationId(ConversationIdT&& value) { m_conversationIdHasBeenSet =
true; m_conversationId = std::forward<ConversationIdT>(value); }
66 template<
typename ConversationIdT = Aws::String>
76 template<
typename NameT = Aws::String>
77 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
78 template<
typename NameT = Aws::String>
89 template<
typename CopyFromT = CopyFromSource>
90 void SetCopyFrom(CopyFromT&& value) { m_copyFromHasBeenSet =
true; m_copyFrom = std::forward<CopyFromT>(value); }
91 template<
typename CopyFromT = CopyFromSource>
101 template<
typename FileTypeT = Aws::String>
102 void SetFileType(FileTypeT&& value) { m_fileTypeHasBeenSet =
true; m_fileType = std::forward<FileTypeT>(value); }
103 template<
typename FileTypeT = Aws::String>
113 inline void SetFileSize(
int value) { m_fileSizeHasBeenSet =
true; m_fileSize = value; }
123 template<
typename Md5chksumT = Aws::String>
124 void SetMd5chksum(Md5chksumT&& value) { m_md5chksumHasBeenSet =
true; m_md5chksum = std::forward<Md5chksumT>(value); }
125 template<
typename Md5chksumT = Aws::String>
135 template<
typename CreatedAtT = Aws::Utils::DateTime>
136 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
137 template<
typename CreatedAtT = Aws::Utils::DateTime>
158 template<
typename ErrorT = ErrorDetail>
159 void SetError(ErrorT&& value) { m_errorHasBeenSet =
true; m_error = std::forward<ErrorT>(value); }
160 template<
typename ErrorT = ErrorDetail>
166 bool m_attachmentIdHasBeenSet =
false;
169 bool m_conversationIdHasBeenSet =
false;
172 bool m_nameHasBeenSet =
false;
175 bool m_copyFromHasBeenSet =
false;
178 bool m_fileTypeHasBeenSet =
false;
181 bool m_fileSizeHasBeenSet =
false;
184 bool m_md5chksumHasBeenSet =
false;
187 bool m_createdAtHasBeenSet =
false;
190 bool m_statusHasBeenSet =
false;
193 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