AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AttachedFile.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/CreatedByInfo.h>
11#include <aws/connect/model/FileUseCaseType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Connect
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_CONNECT_API AttachedFile() = default;
39 AWS_CONNECT_API AttachedFile(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::String& GetCreationTime() const { return m_creationTime; }
51 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
52 template<typename CreationTimeT = Aws::String>
53 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
54 template<typename CreationTimeT = Aws::String>
55 AttachedFile& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
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) { m_fileArnHasBeenSet = true; m_fileArn = std::forward<FileArnT>(value); }
66 template<typename FileArnT = Aws::String>
67 AttachedFile& WithFileArn(FileArnT&& value) { SetFileArn(std::forward<FileArnT>(value)); return *this;}
69
71
74 inline const Aws::String& GetFileId() const { return m_fileId; }
75 inline bool FileIdHasBeenSet() const { return m_fileIdHasBeenSet; }
76 template<typename FileIdT = Aws::String>
77 void SetFileId(FileIdT&& value) { m_fileIdHasBeenSet = true; m_fileId = std::forward<FileIdT>(value); }
78 template<typename FileIdT = Aws::String>
79 AttachedFile& WithFileId(FileIdT&& value) { SetFileId(std::forward<FileIdT>(value)); return *this;}
81
83
86 inline const Aws::String& GetFileName() const { return m_fileName; }
87 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
88 template<typename FileNameT = Aws::String>
89 void SetFileName(FileNameT&& value) { m_fileNameHasBeenSet = true; m_fileName = std::forward<FileNameT>(value); }
90 template<typename FileNameT = Aws::String>
91 AttachedFile& WithFileName(FileNameT&& value) { SetFileName(std::forward<FileNameT>(value)); return *this;}
93
95
98 inline long long GetFileSizeInBytes() const { return m_fileSizeInBytes; }
99 inline bool FileSizeInBytesHasBeenSet() const { return m_fileSizeInBytesHasBeenSet; }
100 inline void SetFileSizeInBytes(long long value) { m_fileSizeInBytesHasBeenSet = true; m_fileSizeInBytes = value; }
101 inline AttachedFile& WithFileSizeInBytes(long long value) { SetFileSizeInBytes(value); return *this;}
103
105
108 inline FileStatusType GetFileStatus() const { return m_fileStatus; }
109 inline bool FileStatusHasBeenSet() const { return m_fileStatusHasBeenSet; }
110 inline void SetFileStatus(FileStatusType value) { m_fileStatusHasBeenSet = true; m_fileStatus = value; }
111 inline AttachedFile& WithFileStatus(FileStatusType value) { SetFileStatus(value); return *this;}
113
115
118 inline const CreatedByInfo& GetCreatedBy() const { return m_createdBy; }
119 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
120 template<typename CreatedByT = CreatedByInfo>
121 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
122 template<typename CreatedByT = CreatedByInfo>
123 AttachedFile& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
125
127
130 inline FileUseCaseType GetFileUseCaseType() const { return m_fileUseCaseType; }
131 inline bool FileUseCaseTypeHasBeenSet() const { return m_fileUseCaseTypeHasBeenSet; }
132 inline void SetFileUseCaseType(FileUseCaseType value) { m_fileUseCaseTypeHasBeenSet = true; m_fileUseCaseType = value; }
135
137
143 inline const Aws::String& GetAssociatedResourceArn() const { return m_associatedResourceArn; }
144 inline bool AssociatedResourceArnHasBeenSet() const { return m_associatedResourceArnHasBeenSet; }
145 template<typename AssociatedResourceArnT = Aws::String>
146 void SetAssociatedResourceArn(AssociatedResourceArnT&& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = std::forward<AssociatedResourceArnT>(value); }
147 template<typename AssociatedResourceArnT = Aws::String>
148 AttachedFile& WithAssociatedResourceArn(AssociatedResourceArnT&& value) { SetAssociatedResourceArn(std::forward<AssociatedResourceArnT>(value)); return *this;}
150
152
156 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
157 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
158 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
159 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
160 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
161 AttachedFile& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
162 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
163 AttachedFile& AddTags(TagsKeyT&& key, TagsValueT&& value) {
164 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
165 }
167 private:
168
169 Aws::String m_creationTime;
170 bool m_creationTimeHasBeenSet = false;
171
172 Aws::String m_fileArn;
173 bool m_fileArnHasBeenSet = false;
174
175 Aws::String m_fileId;
176 bool m_fileIdHasBeenSet = false;
177
178 Aws::String m_fileName;
179 bool m_fileNameHasBeenSet = false;
180
181 long long m_fileSizeInBytes{0};
182 bool m_fileSizeInBytesHasBeenSet = false;
183
185 bool m_fileStatusHasBeenSet = false;
186
187 CreatedByInfo m_createdBy;
188 bool m_createdByHasBeenSet = false;
189
190 FileUseCaseType m_fileUseCaseType{FileUseCaseType::NOT_SET};
191 bool m_fileUseCaseTypeHasBeenSet = false;
192
193 Aws::String m_associatedResourceArn;
194 bool m_associatedResourceArnHasBeenSet = false;
195
197 bool m_tagsHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace Connect
202} // 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)
long long GetFileSizeInBytes() const
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