AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
AttachedFile.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/CreatedByInfo.h>
9#include <aws/connect/model/FileStatusType.h>
10#include <aws/connect/model/FileUseCaseType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect {
24namespace Model {
25
32 public:
33 AWS_CONNECT_API AttachedFile() = default;
34 AWS_CONNECT_API AttachedFile(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::String& GetCreationTime() const { return m_creationTime; }
45 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
46 template <typename CreationTimeT = Aws::String>
47 void SetCreationTime(CreationTimeT&& value) {
48 m_creationTimeHasBeenSet = true;
49 m_creationTime = std::forward<CreationTimeT>(value);
50 }
51 template <typename CreationTimeT = Aws::String>
52 AttachedFile& WithCreationTime(CreationTimeT&& value) {
53 SetCreationTime(std::forward<CreationTimeT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetFileArn() const { return m_fileArn; }
63 inline bool FileArnHasBeenSet() const { return m_fileArnHasBeenSet; }
64 template <typename FileArnT = Aws::String>
65 void SetFileArn(FileArnT&& value) {
66 m_fileArnHasBeenSet = true;
67 m_fileArn = std::forward<FileArnT>(value);
68 }
69 template <typename FileArnT = Aws::String>
70 AttachedFile& WithFileArn(FileArnT&& value) {
71 SetFileArn(std::forward<FileArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetFileId() const { return m_fileId; }
81 inline bool FileIdHasBeenSet() const { return m_fileIdHasBeenSet; }
82 template <typename FileIdT = Aws::String>
83 void SetFileId(FileIdT&& value) {
84 m_fileIdHasBeenSet = true;
85 m_fileId = std::forward<FileIdT>(value);
86 }
87 template <typename FileIdT = Aws::String>
88 AttachedFile& WithFileId(FileIdT&& value) {
89 SetFileId(std::forward<FileIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetFileName() const { return m_fileName; }
99 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
100 template <typename FileNameT = Aws::String>
101 void SetFileName(FileNameT&& value) {
102 m_fileNameHasBeenSet = true;
103 m_fileName = std::forward<FileNameT>(value);
104 }
105 template <typename FileNameT = Aws::String>
106 AttachedFile& WithFileName(FileNameT&& value) {
107 SetFileName(std::forward<FileNameT>(value));
108 return *this;
109 }
111
113
116 inline long long GetFileSizeInBytes() const { return m_fileSizeInBytes; }
117 inline bool FileSizeInBytesHasBeenSet() const { return m_fileSizeInBytesHasBeenSet; }
118 inline void SetFileSizeInBytes(long long value) {
119 m_fileSizeInBytesHasBeenSet = true;
120 m_fileSizeInBytes = value;
121 }
122 inline AttachedFile& WithFileSizeInBytes(long long value) {
123 SetFileSizeInBytes(value);
124 return *this;
125 }
127
129
132 inline FileStatusType GetFileStatus() const { return m_fileStatus; }
133 inline bool FileStatusHasBeenSet() const { return m_fileStatusHasBeenSet; }
134 inline void SetFileStatus(FileStatusType value) {
135 m_fileStatusHasBeenSet = true;
136 m_fileStatus = value;
137 }
139 SetFileStatus(value);
140 return *this;
141 }
143
145
148 inline const CreatedByInfo& GetCreatedBy() const { return m_createdBy; }
149 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
150 template <typename CreatedByT = CreatedByInfo>
151 void SetCreatedBy(CreatedByT&& value) {
152 m_createdByHasBeenSet = true;
153 m_createdBy = std::forward<CreatedByT>(value);
154 }
155 template <typename CreatedByT = CreatedByInfo>
156 AttachedFile& WithCreatedBy(CreatedByT&& value) {
157 SetCreatedBy(std::forward<CreatedByT>(value));
158 return *this;
159 }
161
163
166 inline FileUseCaseType GetFileUseCaseType() const { return m_fileUseCaseType; }
167 inline bool FileUseCaseTypeHasBeenSet() const { return m_fileUseCaseTypeHasBeenSet; }
169 m_fileUseCaseTypeHasBeenSet = true;
170 m_fileUseCaseType = value;
171 }
173 SetFileUseCaseType(value);
174 return *this;
175 }
177
179
185 inline const Aws::String& GetAssociatedResourceArn() const { return m_associatedResourceArn; }
186 inline bool AssociatedResourceArnHasBeenSet() const { return m_associatedResourceArnHasBeenSet; }
187 template <typename AssociatedResourceArnT = Aws::String>
188 void SetAssociatedResourceArn(AssociatedResourceArnT&& value) {
189 m_associatedResourceArnHasBeenSet = true;
190 m_associatedResourceArn = std::forward<AssociatedResourceArnT>(value);
191 }
192 template <typename AssociatedResourceArnT = Aws::String>
193 AttachedFile& WithAssociatedResourceArn(AssociatedResourceArnT&& value) {
194 SetAssociatedResourceArn(std::forward<AssociatedResourceArnT>(value));
195 return *this;
196 }
198
200
204 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
205 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
206 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
207 void SetTags(TagsT&& value) {
208 m_tagsHasBeenSet = true;
209 m_tags = std::forward<TagsT>(value);
210 }
211 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
212 AttachedFile& WithTags(TagsT&& value) {
213 SetTags(std::forward<TagsT>(value));
214 return *this;
215 }
216 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
217 AttachedFile& AddTags(TagsKeyT&& key, TagsValueT&& value) {
218 m_tagsHasBeenSet = true;
219 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
220 return *this;
221 }
223 private:
224 Aws::String m_creationTime;
225
226 Aws::String m_fileArn;
227
228 Aws::String m_fileId;
229
230 Aws::String m_fileName;
231
232 long long m_fileSizeInBytes{0};
233
235
236 CreatedByInfo m_createdBy;
237
238 FileUseCaseType m_fileUseCaseType{FileUseCaseType::NOT_SET};
239
240 Aws::String m_associatedResourceArn;
241
243 bool m_creationTimeHasBeenSet = false;
244 bool m_fileArnHasBeenSet = false;
245 bool m_fileIdHasBeenSet = false;
246 bool m_fileNameHasBeenSet = false;
247 bool m_fileSizeInBytesHasBeenSet = false;
248 bool m_fileStatusHasBeenSet = false;
249 bool m_createdByHasBeenSet = false;
250 bool m_fileUseCaseTypeHasBeenSet = false;
251 bool m_associatedResourceArnHasBeenSet = false;
252 bool m_tagsHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace Connect
257} // namespace Aws
void SetCreatedBy(CreatedByT &&value)
void SetAssociatedResourceArn(AssociatedResourceArnT &&value)
AttachedFile & AddTags(TagsKeyT &&key, TagsValueT &&value)
AttachedFile & WithFileStatus(FileStatusType value)
void SetFileArn(FileArnT &&value)
AttachedFile & WithTags(TagsT &&value)
AWS_CONNECT_API AttachedFile()=default
AttachedFile & WithFileSizeInBytes(long long value)
void SetFileUseCaseType(FileUseCaseType value)
void SetFileName(FileNameT &&value)
AttachedFile & WithFileName(FileNameT &&value)
FileUseCaseType GetFileUseCaseType() const
const Aws::String & GetCreationTime() const
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AttachedFile & WithFileArn(FileArnT &&value)
AttachedFile & WithFileUseCaseType(FileUseCaseType value)
const Aws::String & GetAssociatedResourceArn() const
AttachedFile & WithCreatedBy(CreatedByT &&value)
AttachedFile & WithFileId(FileIdT &&value)
AttachedFile & WithCreationTime(CreationTimeT &&value)
AWS_CONNECT_API AttachedFile(Aws::Utils::Json::JsonView jsonValue)
void SetFileSizeInBytes(long long value)
const Aws::String & GetFileArn() const
const CreatedByInfo & GetCreatedBy() const
AWS_CONNECT_API AttachedFile & operator=(Aws::Utils::Json::JsonView jsonValue)
AttachedFile & WithAssociatedResourceArn(AssociatedResourceArnT &&value)
void SetFileStatus(FileStatusType value)
const Aws::String & GetFileId() const
const Aws::String & GetFileName() const
void SetCreationTime(CreationTimeT &&value)
void SetFileId(FileIdT &&value)
FileStatusType GetFileStatus() const
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