AWS SDK for C++

AWS SDK for C++ Version 1.11.869

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
189 inline const Aws::String& GetAssociatedResourceArn() const { return m_associatedResourceArn; }
190 inline bool AssociatedResourceArnHasBeenSet() const { return m_associatedResourceArnHasBeenSet; }
191 template <typename AssociatedResourceArnT = Aws::String>
192 void SetAssociatedResourceArn(AssociatedResourceArnT&& value) {
193 m_associatedResourceArnHasBeenSet = true;
194 m_associatedResourceArn = std::forward<AssociatedResourceArnT>(value);
195 }
196 template <typename AssociatedResourceArnT = Aws::String>
197 AttachedFile& WithAssociatedResourceArn(AssociatedResourceArnT&& value) {
198 SetAssociatedResourceArn(std::forward<AssociatedResourceArnT>(value));
199 return *this;
200 }
202
204
208 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
209 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
210 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
211 void SetTags(TagsT&& value) {
212 m_tagsHasBeenSet = true;
213 m_tags = std::forward<TagsT>(value);
214 }
215 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
216 AttachedFile& WithTags(TagsT&& value) {
217 SetTags(std::forward<TagsT>(value));
218 return *this;
219 }
220 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
221 AttachedFile& AddTags(TagsKeyT&& key, TagsValueT&& value) {
222 m_tagsHasBeenSet = true;
223 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
224 return *this;
225 }
227 private:
228 Aws::String m_creationTime;
229
230 Aws::String m_fileArn;
231
232 Aws::String m_fileId;
233
234 Aws::String m_fileName;
235
236 long long m_fileSizeInBytes{0};
237
239
240 CreatedByInfo m_createdBy;
241
242 FileUseCaseType m_fileUseCaseType{FileUseCaseType::NOT_SET};
243
244 Aws::String m_associatedResourceArn;
245
247 bool m_creationTimeHasBeenSet = false;
248 bool m_fileArnHasBeenSet = false;
249 bool m_fileIdHasBeenSet = false;
250 bool m_fileNameHasBeenSet = false;
251 bool m_fileSizeInBytesHasBeenSet = false;
252 bool m_fileStatusHasBeenSet = false;
253 bool m_createdByHasBeenSet = false;
254 bool m_fileUseCaseTypeHasBeenSet = false;
255 bool m_associatedResourceArnHasBeenSet = false;
256 bool m_tagsHasBeenSet = false;
257};
258
259} // namespace Model
260} // namespace Connect
261} // 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