AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetAttachedFileResult.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/FileStatusType.h>
10#include <aws/connect/model/FileUseCaseType.h>
11#include <aws/connect/model/CreatedByInfo.h>
12#include <aws/connect/model/DownloadUrlMetadata.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace Connect
29{
30namespace Model
31{
38 {
39 public:
40 AWS_CONNECT_API GetAttachedFileResult() = default;
43
44
46
49 inline const Aws::String& GetFileArn() const { return m_fileArn; }
50 template<typename FileArnT = Aws::String>
51 void SetFileArn(FileArnT&& value) { m_fileArnHasBeenSet = true; m_fileArn = std::forward<FileArnT>(value); }
52 template<typename FileArnT = Aws::String>
53 GetAttachedFileResult& WithFileArn(FileArnT&& value) { SetFileArn(std::forward<FileArnT>(value)); return *this;}
55
57
60 inline const Aws::String& GetFileId() const { return m_fileId; }
61 template<typename FileIdT = Aws::String>
62 void SetFileId(FileIdT&& value) { m_fileIdHasBeenSet = true; m_fileId = std::forward<FileIdT>(value); }
63 template<typename FileIdT = Aws::String>
64 GetAttachedFileResult& WithFileId(FileIdT&& value) { SetFileId(std::forward<FileIdT>(value)); return *this;}
66
68
73 inline const Aws::String& GetCreationTime() const { return m_creationTime; }
74 template<typename CreationTimeT = Aws::String>
75 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
76 template<typename CreationTimeT = Aws::String>
77 GetAttachedFileResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
79
81
84 inline FileStatusType GetFileStatus() const { return m_fileStatus; }
85 inline void SetFileStatus(FileStatusType value) { m_fileStatusHasBeenSet = true; m_fileStatus = value; }
86 inline GetAttachedFileResult& WithFileStatus(FileStatusType value) { SetFileStatus(value); return *this;}
88
90
93 inline const Aws::String& GetFileName() const { return m_fileName; }
94 template<typename FileNameT = Aws::String>
95 void SetFileName(FileNameT&& value) { m_fileNameHasBeenSet = true; m_fileName = std::forward<FileNameT>(value); }
96 template<typename FileNameT = Aws::String>
97 GetAttachedFileResult& WithFileName(FileNameT&& value) { SetFileName(std::forward<FileNameT>(value)); return *this;}
99
101
104 inline long long GetFileSizeInBytes() const { return m_fileSizeInBytes; }
105 inline void SetFileSizeInBytes(long long value) { m_fileSizeInBytesHasBeenSet = true; m_fileSizeInBytes = value; }
106 inline GetAttachedFileResult& WithFileSizeInBytes(long long value) { SetFileSizeInBytes(value); return *this;}
108
110
115 inline const Aws::String& GetAssociatedResourceArn() const { return m_associatedResourceArn; }
116 template<typename AssociatedResourceArnT = Aws::String>
117 void SetAssociatedResourceArn(AssociatedResourceArnT&& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = std::forward<AssociatedResourceArnT>(value); }
118 template<typename AssociatedResourceArnT = Aws::String>
119 GetAttachedFileResult& WithAssociatedResourceArn(AssociatedResourceArnT&& value) { SetAssociatedResourceArn(std::forward<AssociatedResourceArnT>(value)); return *this;}
121
123
126 inline FileUseCaseType GetFileUseCaseType() const { return m_fileUseCaseType; }
127 inline void SetFileUseCaseType(FileUseCaseType value) { m_fileUseCaseTypeHasBeenSet = true; m_fileUseCaseType = value; }
130
132
135 inline const CreatedByInfo& GetCreatedBy() const { return m_createdBy; }
136 template<typename CreatedByT = CreatedByInfo>
137 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
138 template<typename CreatedByT = CreatedByInfo>
139 GetAttachedFileResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
141
143
146 inline const DownloadUrlMetadata& GetDownloadUrlMetadata() const { return m_downloadUrlMetadata; }
147 template<typename DownloadUrlMetadataT = DownloadUrlMetadata>
148 void SetDownloadUrlMetadata(DownloadUrlMetadataT&& value) { m_downloadUrlMetadataHasBeenSet = true; m_downloadUrlMetadata = std::forward<DownloadUrlMetadataT>(value); }
149 template<typename DownloadUrlMetadataT = DownloadUrlMetadata>
150 GetAttachedFileResult& WithDownloadUrlMetadata(DownloadUrlMetadataT&& value) { SetDownloadUrlMetadata(std::forward<DownloadUrlMetadataT>(value)); return *this;}
152
154
158 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
159 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
160 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
161 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
162 GetAttachedFileResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
163 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
164 GetAttachedFileResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
165 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
166 }
168
170
171 inline const Aws::String& GetRequestId() const { return m_requestId; }
172 template<typename RequestIdT = Aws::String>
173 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
174 template<typename RequestIdT = Aws::String>
175 GetAttachedFileResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
177 private:
178
179 Aws::String m_fileArn;
180 bool m_fileArnHasBeenSet = false;
181
182 Aws::String m_fileId;
183 bool m_fileIdHasBeenSet = false;
184
185 Aws::String m_creationTime;
186 bool m_creationTimeHasBeenSet = false;
187
189 bool m_fileStatusHasBeenSet = false;
190
191 Aws::String m_fileName;
192 bool m_fileNameHasBeenSet = false;
193
194 long long m_fileSizeInBytes{0};
195 bool m_fileSizeInBytesHasBeenSet = false;
196
197 Aws::String m_associatedResourceArn;
198 bool m_associatedResourceArnHasBeenSet = false;
199
200 FileUseCaseType m_fileUseCaseType{FileUseCaseType::NOT_SET};
201 bool m_fileUseCaseTypeHasBeenSet = false;
202
203 CreatedByInfo m_createdBy;
204 bool m_createdByHasBeenSet = false;
205
206 DownloadUrlMetadata m_downloadUrlMetadata;
207 bool m_downloadUrlMetadataHasBeenSet = false;
208
210 bool m_tagsHasBeenSet = false;
211
212 Aws::String m_requestId;
213 bool m_requestIdHasBeenSet = false;
214 };
215
216} // namespace Model
217} // namespace Connect
218} // 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_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