AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Attachment.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace QBusiness
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_QBUSINESS_API Attachment() = default;
40 AWS_QBUSINESS_API Attachment(Aws::Utils::Json::JsonView jsonValue);
41 AWS_QBUSINESS_API Attachment& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
50 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
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>
54 Attachment& WithAttachmentId(AttachmentIdT&& value) { SetAttachmentId(std::forward<AttachmentIdT>(value)); return *this;}
56
58
62 inline const Aws::String& GetConversationId() const { return m_conversationId; }
63 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
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>
67 Attachment& WithConversationId(ConversationIdT&& value) { SetConversationId(std::forward<ConversationIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetName() const { return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
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>
79 Attachment& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
81
83
87 inline const CopyFromSource& GetCopyFrom() const { return m_copyFrom; }
88 inline bool CopyFromHasBeenSet() const { return m_copyFromHasBeenSet; }
89 template<typename CopyFromT = CopyFromSource>
90 void SetCopyFrom(CopyFromT&& value) { m_copyFromHasBeenSet = true; m_copyFrom = std::forward<CopyFromT>(value); }
91 template<typename CopyFromT = CopyFromSource>
92 Attachment& WithCopyFrom(CopyFromT&& value) { SetCopyFrom(std::forward<CopyFromT>(value)); return *this;}
94
96
99 inline const Aws::String& GetFileType() const { return m_fileType; }
100 inline bool FileTypeHasBeenSet() const { return m_fileTypeHasBeenSet; }
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>
104 Attachment& WithFileType(FileTypeT&& value) { SetFileType(std::forward<FileTypeT>(value)); return *this;}
106
108
111 inline int GetFileSize() const { return m_fileSize; }
112 inline bool FileSizeHasBeenSet() const { return m_fileSizeHasBeenSet; }
113 inline void SetFileSize(int value) { m_fileSizeHasBeenSet = true; m_fileSize = value; }
114 inline Attachment& WithFileSize(int value) { SetFileSize(value); return *this;}
116
118
121 inline const Aws::String& GetMd5chksum() const { return m_md5chksum; }
122 inline bool Md5chksumHasBeenSet() const { return m_md5chksumHasBeenSet; }
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>
126 Attachment& WithMd5chksum(Md5chksumT&& value) { SetMd5chksum(std::forward<Md5chksumT>(value)); return *this;}
128
130
133 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
134 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
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>
138 Attachment& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
140
142
145 inline AttachmentStatus GetStatus() const { return m_status; }
146 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
147 inline void SetStatus(AttachmentStatus value) { m_statusHasBeenSet = true; m_status = value; }
148 inline Attachment& WithStatus(AttachmentStatus value) { SetStatus(value); return *this;}
150
152
156 inline const ErrorDetail& GetError() const { return m_error; }
157 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
158 template<typename ErrorT = ErrorDetail>
159 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
160 template<typename ErrorT = ErrorDetail>
161 Attachment& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
163 private:
164
165 Aws::String m_attachmentId;
166 bool m_attachmentIdHasBeenSet = false;
167
168 Aws::String m_conversationId;
169 bool m_conversationIdHasBeenSet = false;
170
171 Aws::String m_name;
172 bool m_nameHasBeenSet = false;
173
174 CopyFromSource m_copyFrom;
175 bool m_copyFromHasBeenSet = false;
176
177 Aws::String m_fileType;
178 bool m_fileTypeHasBeenSet = false;
179
180 int m_fileSize{0};
181 bool m_fileSizeHasBeenSet = false;
182
183 Aws::String m_md5chksum;
184 bool m_md5chksumHasBeenSet = false;
185
186 Aws::Utils::DateTime m_createdAt{};
187 bool m_createdAtHasBeenSet = false;
188
190 bool m_statusHasBeenSet = false;
191
192 ErrorDetail m_error;
193 bool m_errorHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace QBusiness
198} // namespace Aws
AWS_QBUSINESS_API Attachment(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Attachment.h:133
AWS_QBUSINESS_API Attachment & operator=(Aws::Utils::Json::JsonView jsonValue)
Attachment & WithConversationId(ConversationIdT &&value)
Definition Attachment.h:67
const Aws::String & GetConversationId() const
Definition Attachment.h:62
Attachment & WithAttachmentId(AttachmentIdT &&value)
Definition Attachment.h:54
Attachment & WithCopyFrom(CopyFromT &&value)
Definition Attachment.h:92
void SetMd5chksum(Md5chksumT &&value)
Definition Attachment.h:124
const CopyFromSource & GetCopyFrom() const
Definition Attachment.h:87
const Aws::String & GetAttachmentId() const
Definition Attachment.h:49
void SetName(NameT &&value)
Definition Attachment.h:77
Attachment & WithError(ErrorT &&value)
Definition Attachment.h:161
void SetError(ErrorT &&value)
Definition Attachment.h:159
Attachment & WithFileType(FileTypeT &&value)
Definition Attachment.h:104
AttachmentStatus GetStatus() const
Definition Attachment.h:145
Attachment & WithStatus(AttachmentStatus value)
Definition Attachment.h:148
void SetFileType(FileTypeT &&value)
Definition Attachment.h:102
const Aws::String & GetMd5chksum() const
Definition Attachment.h:121
void SetCopyFrom(CopyFromT &&value)
Definition Attachment.h:90
const Aws::String & GetName() const
Definition Attachment.h:74
const Aws::String & GetFileType() const
Definition Attachment.h:99
Attachment & WithName(NameT &&value)
Definition Attachment.h:79
Attachment & WithMd5chksum(Md5chksumT &&value)
Definition Attachment.h:126
Attachment & WithFileSize(int value)
Definition Attachment.h:114
const ErrorDetail & GetError() const
Definition Attachment.h:156
void SetAttachmentId(AttachmentIdT &&value)
Definition Attachment.h:52
void SetConversationId(ConversationIdT &&value)
Definition Attachment.h:65
Attachment & WithCreatedAt(CreatedAtT &&value)
Definition Attachment.h:138
void SetCreatedAt(CreatedAtT &&value)
Definition Attachment.h:136
AWS_QBUSINESS_API Attachment()=default
void SetStatus(AttachmentStatus value)
Definition Attachment.h:147
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue