AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetAttachedFileResult.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/CreatedByInfo.h>
9#include <aws/connect/model/DownloadUrlMetadata.h>
10#include <aws/connect/model/FileStatusType.h>
11#include <aws/connect/model/FileUseCaseType.h>
12#include <aws/core/http/HttpResponse.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Connect {
28namespace Model {
35 public:
36 AWS_CONNECT_API GetAttachedFileResult() = default;
39
41
44 inline const Aws::String& GetFileArn() const { return m_fileArn; }
45 template <typename FileArnT = Aws::String>
46 void SetFileArn(FileArnT&& value) {
47 m_fileArnHasBeenSet = true;
48 m_fileArn = std::forward<FileArnT>(value);
49 }
50 template <typename FileArnT = Aws::String>
52 SetFileArn(std::forward<FileArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetFileId() const { return m_fileId; }
62 template <typename FileIdT = Aws::String>
63 void SetFileId(FileIdT&& value) {
64 m_fileIdHasBeenSet = true;
65 m_fileId = std::forward<FileIdT>(value);
66 }
67 template <typename FileIdT = Aws::String>
69 SetFileId(std::forward<FileIdT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetCreationTime() const { return m_creationTime; }
81 template <typename CreationTimeT = Aws::String>
82 void SetCreationTime(CreationTimeT&& value) {
83 m_creationTimeHasBeenSet = true;
84 m_creationTime = std::forward<CreationTimeT>(value);
85 }
86 template <typename CreationTimeT = Aws::String>
87 GetAttachedFileResult& WithCreationTime(CreationTimeT&& value) {
88 SetCreationTime(std::forward<CreationTimeT>(value));
89 return *this;
90 }
92
94
97 inline FileStatusType GetFileStatus() const { return m_fileStatus; }
98 inline void SetFileStatus(FileStatusType value) {
99 m_fileStatusHasBeenSet = true;
100 m_fileStatus = value;
101 }
103 SetFileStatus(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetFileName() const { return m_fileName; }
113 template <typename FileNameT = Aws::String>
114 void SetFileName(FileNameT&& value) {
115 m_fileNameHasBeenSet = true;
116 m_fileName = std::forward<FileNameT>(value);
117 }
118 template <typename FileNameT = Aws::String>
120 SetFileName(std::forward<FileNameT>(value));
121 return *this;
122 }
124
126
129 inline long long GetFileSizeInBytes() const { return m_fileSizeInBytes; }
130 inline void SetFileSizeInBytes(long long value) {
131 m_fileSizeInBytesHasBeenSet = true;
132 m_fileSizeInBytes = value;
133 }
135 SetFileSizeInBytes(value);
136 return *this;
137 }
139
141
146 inline const Aws::String& GetAssociatedResourceArn() const { return m_associatedResourceArn; }
147 template <typename AssociatedResourceArnT = Aws::String>
148 void SetAssociatedResourceArn(AssociatedResourceArnT&& value) {
149 m_associatedResourceArnHasBeenSet = true;
150 m_associatedResourceArn = std::forward<AssociatedResourceArnT>(value);
151 }
152 template <typename AssociatedResourceArnT = Aws::String>
153 GetAttachedFileResult& WithAssociatedResourceArn(AssociatedResourceArnT&& value) {
154 SetAssociatedResourceArn(std::forward<AssociatedResourceArnT>(value));
155 return *this;
156 }
158
160
163 inline FileUseCaseType GetFileUseCaseType() const { return m_fileUseCaseType; }
165 m_fileUseCaseTypeHasBeenSet = true;
166 m_fileUseCaseType = value;
167 }
169 SetFileUseCaseType(value);
170 return *this;
171 }
173
175
178 inline const CreatedByInfo& GetCreatedBy() const { return m_createdBy; }
179 template <typename CreatedByT = CreatedByInfo>
180 void SetCreatedBy(CreatedByT&& value) {
181 m_createdByHasBeenSet = true;
182 m_createdBy = std::forward<CreatedByT>(value);
183 }
184 template <typename CreatedByT = CreatedByInfo>
186 SetCreatedBy(std::forward<CreatedByT>(value));
187 return *this;
188 }
190
192
195 inline const DownloadUrlMetadata& GetDownloadUrlMetadata() const { return m_downloadUrlMetadata; }
196 template <typename DownloadUrlMetadataT = DownloadUrlMetadata>
197 void SetDownloadUrlMetadata(DownloadUrlMetadataT&& value) {
198 m_downloadUrlMetadataHasBeenSet = true;
199 m_downloadUrlMetadata = std::forward<DownloadUrlMetadataT>(value);
200 }
201 template <typename DownloadUrlMetadataT = DownloadUrlMetadata>
202 GetAttachedFileResult& WithDownloadUrlMetadata(DownloadUrlMetadataT&& value) {
203 SetDownloadUrlMetadata(std::forward<DownloadUrlMetadataT>(value));
204 return *this;
205 }
207
209
213 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
214 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
215 void SetTags(TagsT&& value) {
216 m_tagsHasBeenSet = true;
217 m_tags = std::forward<TagsT>(value);
218 }
219 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
221 SetTags(std::forward<TagsT>(value));
222 return *this;
223 }
224 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
225 GetAttachedFileResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
226 m_tagsHasBeenSet = true;
227 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
228 return *this;
229 }
231
233
234 inline const Aws::String& GetRequestId() const { return m_requestId; }
235 template <typename RequestIdT = Aws::String>
236 void SetRequestId(RequestIdT&& value) {
237 m_requestIdHasBeenSet = true;
238 m_requestId = std::forward<RequestIdT>(value);
239 }
240 template <typename RequestIdT = Aws::String>
242 SetRequestId(std::forward<RequestIdT>(value));
243 return *this;
244 }
246 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
247
248 private:
249 Aws::String m_fileArn;
250
251 Aws::String m_fileId;
252
253 Aws::String m_creationTime;
254
256
257 Aws::String m_fileName;
258
259 long long m_fileSizeInBytes{0};
260
261 Aws::String m_associatedResourceArn;
262
263 FileUseCaseType m_fileUseCaseType{FileUseCaseType::NOT_SET};
264
265 CreatedByInfo m_createdBy;
266
267 DownloadUrlMetadata m_downloadUrlMetadata;
268
270
271 Aws::String m_requestId;
272 Aws::Http::HttpResponseCode m_HttpResponseCode;
273 bool m_fileArnHasBeenSet = false;
274 bool m_fileIdHasBeenSet = false;
275 bool m_creationTimeHasBeenSet = false;
276 bool m_fileStatusHasBeenSet = false;
277 bool m_fileNameHasBeenSet = false;
278 bool m_fileSizeInBytesHasBeenSet = false;
279 bool m_associatedResourceArnHasBeenSet = false;
280 bool m_fileUseCaseTypeHasBeenSet = false;
281 bool m_createdByHasBeenSet = false;
282 bool m_downloadUrlMetadataHasBeenSet = false;
283 bool m_tagsHasBeenSet = false;
284 bool m_requestIdHasBeenSet = false;
285};
286
287} // namespace Model
288} // namespace Connect
289} // namespace Aws
GetAttachedFileResult & WithFileId(FileIdT &&value)
void SetAssociatedResourceArn(AssociatedResourceArnT &&value)
GetAttachedFileResult & WithTags(TagsT &&value)
GetAttachedFileResult & WithCreatedBy(CreatedByT &&value)
const DownloadUrlMetadata & GetDownloadUrlMetadata() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetAttachedFileResult & WithDownloadUrlMetadata(DownloadUrlMetadataT &&value)
GetAttachedFileResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetAttachedFileResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_CONNECT_API GetAttachedFileResult()=default
AWS_CONNECT_API GetAttachedFileResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetDownloadUrlMetadata(DownloadUrlMetadataT &&value)
AWS_CONNECT_API GetAttachedFileResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAttachedFileResult & WithFileStatus(FileStatusType value)
GetAttachedFileResult & WithCreationTime(CreationTimeT &&value)
GetAttachedFileResult & WithFileName(FileNameT &&value)
GetAttachedFileResult & WithAssociatedResourceArn(AssociatedResourceArnT &&value)
GetAttachedFileResult & WithFileSizeInBytes(long long value)
GetAttachedFileResult & WithFileArn(FileArnT &&value)
GetAttachedFileResult & WithFileUseCaseType(FileUseCaseType value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue