AWS SDK for C++

AWS SDK for C++ Version 1.11.869

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
150 inline const Aws::String& GetAssociatedResourceArn() const { return m_associatedResourceArn; }
151 template <typename AssociatedResourceArnT = Aws::String>
152 void SetAssociatedResourceArn(AssociatedResourceArnT&& value) {
153 m_associatedResourceArnHasBeenSet = true;
154 m_associatedResourceArn = std::forward<AssociatedResourceArnT>(value);
155 }
156 template <typename AssociatedResourceArnT = Aws::String>
157 GetAttachedFileResult& WithAssociatedResourceArn(AssociatedResourceArnT&& value) {
158 SetAssociatedResourceArn(std::forward<AssociatedResourceArnT>(value));
159 return *this;
160 }
162
164
167 inline FileUseCaseType GetFileUseCaseType() const { return m_fileUseCaseType; }
169 m_fileUseCaseTypeHasBeenSet = true;
170 m_fileUseCaseType = value;
171 }
173 SetFileUseCaseType(value);
174 return *this;
175 }
177
179
182 inline const CreatedByInfo& GetCreatedBy() const { return m_createdBy; }
183 template <typename CreatedByT = CreatedByInfo>
184 void SetCreatedBy(CreatedByT&& value) {
185 m_createdByHasBeenSet = true;
186 m_createdBy = std::forward<CreatedByT>(value);
187 }
188 template <typename CreatedByT = CreatedByInfo>
190 SetCreatedBy(std::forward<CreatedByT>(value));
191 return *this;
192 }
194
196
199 inline const DownloadUrlMetadata& GetDownloadUrlMetadata() const { return m_downloadUrlMetadata; }
200 template <typename DownloadUrlMetadataT = DownloadUrlMetadata>
201 void SetDownloadUrlMetadata(DownloadUrlMetadataT&& value) {
202 m_downloadUrlMetadataHasBeenSet = true;
203 m_downloadUrlMetadata = std::forward<DownloadUrlMetadataT>(value);
204 }
205 template <typename DownloadUrlMetadataT = DownloadUrlMetadata>
206 GetAttachedFileResult& WithDownloadUrlMetadata(DownloadUrlMetadataT&& value) {
207 SetDownloadUrlMetadata(std::forward<DownloadUrlMetadataT>(value));
208 return *this;
209 }
211
213
217 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
218 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
219 void SetTags(TagsT&& value) {
220 m_tagsHasBeenSet = true;
221 m_tags = std::forward<TagsT>(value);
222 }
223 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
225 SetTags(std::forward<TagsT>(value));
226 return *this;
227 }
228 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
229 GetAttachedFileResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
230 m_tagsHasBeenSet = true;
231 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
232 return *this;
233 }
235
237
238 inline const Aws::String& GetRequestId() const { return m_requestId; }
239 template <typename RequestIdT = Aws::String>
240 void SetRequestId(RequestIdT&& value) {
241 m_requestIdHasBeenSet = true;
242 m_requestId = std::forward<RequestIdT>(value);
243 }
244 template <typename RequestIdT = Aws::String>
246 SetRequestId(std::forward<RequestIdT>(value));
247 return *this;
248 }
250 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
251
252 private:
253 Aws::String m_fileArn;
254
255 Aws::String m_fileId;
256
257 Aws::String m_creationTime;
258
260
261 Aws::String m_fileName;
262
263 long long m_fileSizeInBytes{0};
264
265 Aws::String m_associatedResourceArn;
266
267 FileUseCaseType m_fileUseCaseType{FileUseCaseType::NOT_SET};
268
269 CreatedByInfo m_createdBy;
270
271 DownloadUrlMetadata m_downloadUrlMetadata;
272
274
275 Aws::String m_requestId;
276 Aws::Http::HttpResponseCode m_HttpResponseCode;
277 bool m_fileArnHasBeenSet = false;
278 bool m_fileIdHasBeenSet = false;
279 bool m_creationTimeHasBeenSet = false;
280 bool m_fileStatusHasBeenSet = false;
281 bool m_fileNameHasBeenSet = false;
282 bool m_fileSizeInBytesHasBeenSet = false;
283 bool m_associatedResourceArnHasBeenSet = false;
284 bool m_fileUseCaseTypeHasBeenSet = false;
285 bool m_createdByHasBeenSet = false;
286 bool m_downloadUrlMetadataHasBeenSet = false;
287 bool m_tagsHasBeenSet = false;
288 bool m_requestIdHasBeenSet = false;
289};
290
291} // namespace Model
292} // namespace Connect
293} // 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