AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCreationTime(const Aws::String& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
53 inline void SetCreationTime(Aws::String&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
54 inline void SetCreationTime(const char* value) { m_creationTimeHasBeenSet = true; m_creationTime.assign(value); }
55 inline AttachedFile& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;}
56 inline AttachedFile& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;}
57 inline AttachedFile& WithCreationTime(const char* value) { SetCreationTime(value); return *this;}
59
61
64 inline const Aws::String& GetFileArn() const{ return m_fileArn; }
65 inline bool FileArnHasBeenSet() const { return m_fileArnHasBeenSet; }
66 inline void SetFileArn(const Aws::String& value) { m_fileArnHasBeenSet = true; m_fileArn = value; }
67 inline void SetFileArn(Aws::String&& value) { m_fileArnHasBeenSet = true; m_fileArn = std::move(value); }
68 inline void SetFileArn(const char* value) { m_fileArnHasBeenSet = true; m_fileArn.assign(value); }
69 inline AttachedFile& WithFileArn(const Aws::String& value) { SetFileArn(value); return *this;}
70 inline AttachedFile& WithFileArn(Aws::String&& value) { SetFileArn(std::move(value)); return *this;}
71 inline AttachedFile& WithFileArn(const char* value) { SetFileArn(value); return *this;}
73
75
78 inline const Aws::String& GetFileId() const{ return m_fileId; }
79 inline bool FileIdHasBeenSet() const { return m_fileIdHasBeenSet; }
80 inline void SetFileId(const Aws::String& value) { m_fileIdHasBeenSet = true; m_fileId = value; }
81 inline void SetFileId(Aws::String&& value) { m_fileIdHasBeenSet = true; m_fileId = std::move(value); }
82 inline void SetFileId(const char* value) { m_fileIdHasBeenSet = true; m_fileId.assign(value); }
83 inline AttachedFile& WithFileId(const Aws::String& value) { SetFileId(value); return *this;}
84 inline AttachedFile& WithFileId(Aws::String&& value) { SetFileId(std::move(value)); return *this;}
85 inline AttachedFile& WithFileId(const char* value) { SetFileId(value); return *this;}
87
89
92 inline const Aws::String& GetFileName() const{ return m_fileName; }
93 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
94 inline void SetFileName(const Aws::String& value) { m_fileNameHasBeenSet = true; m_fileName = value; }
95 inline void SetFileName(Aws::String&& value) { m_fileNameHasBeenSet = true; m_fileName = std::move(value); }
96 inline void SetFileName(const char* value) { m_fileNameHasBeenSet = true; m_fileName.assign(value); }
97 inline AttachedFile& WithFileName(const Aws::String& value) { SetFileName(value); return *this;}
98 inline AttachedFile& WithFileName(Aws::String&& value) { SetFileName(std::move(value)); return *this;}
99 inline AttachedFile& WithFileName(const char* value) { SetFileName(value); return *this;}
101
103
106 inline long long GetFileSizeInBytes() const{ return m_fileSizeInBytes; }
107 inline bool FileSizeInBytesHasBeenSet() const { return m_fileSizeInBytesHasBeenSet; }
108 inline void SetFileSizeInBytes(long long value) { m_fileSizeInBytesHasBeenSet = true; m_fileSizeInBytes = value; }
109 inline AttachedFile& WithFileSizeInBytes(long long value) { SetFileSizeInBytes(value); return *this;}
111
113
116 inline const FileStatusType& GetFileStatus() const{ return m_fileStatus; }
117 inline bool FileStatusHasBeenSet() const { return m_fileStatusHasBeenSet; }
118 inline void SetFileStatus(const FileStatusType& value) { m_fileStatusHasBeenSet = true; m_fileStatus = value; }
119 inline void SetFileStatus(FileStatusType&& value) { m_fileStatusHasBeenSet = true; m_fileStatus = std::move(value); }
120 inline AttachedFile& WithFileStatus(const FileStatusType& value) { SetFileStatus(value); return *this;}
121 inline AttachedFile& WithFileStatus(FileStatusType&& value) { SetFileStatus(std::move(value)); return *this;}
123
125
128 inline const CreatedByInfo& GetCreatedBy() const{ return m_createdBy; }
129 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
130 inline void SetCreatedBy(const CreatedByInfo& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
131 inline void SetCreatedBy(CreatedByInfo&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
132 inline AttachedFile& WithCreatedBy(const CreatedByInfo& value) { SetCreatedBy(value); return *this;}
133 inline AttachedFile& WithCreatedBy(CreatedByInfo&& value) { SetCreatedBy(std::move(value)); return *this;}
135
137
140 inline const FileUseCaseType& GetFileUseCaseType() const{ return m_fileUseCaseType; }
141 inline bool FileUseCaseTypeHasBeenSet() const { return m_fileUseCaseTypeHasBeenSet; }
142 inline void SetFileUseCaseType(const FileUseCaseType& value) { m_fileUseCaseTypeHasBeenSet = true; m_fileUseCaseType = value; }
143 inline void SetFileUseCaseType(FileUseCaseType&& value) { m_fileUseCaseTypeHasBeenSet = true; m_fileUseCaseType = std::move(value); }
144 inline AttachedFile& WithFileUseCaseType(const FileUseCaseType& value) { SetFileUseCaseType(value); return *this;}
145 inline AttachedFile& WithFileUseCaseType(FileUseCaseType&& value) { SetFileUseCaseType(std::move(value)); return *this;}
147
149
155 inline const Aws::String& GetAssociatedResourceArn() const{ return m_associatedResourceArn; }
156 inline bool AssociatedResourceArnHasBeenSet() const { return m_associatedResourceArnHasBeenSet; }
157 inline void SetAssociatedResourceArn(const Aws::String& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = value; }
158 inline void SetAssociatedResourceArn(Aws::String&& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = std::move(value); }
159 inline void SetAssociatedResourceArn(const char* value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn.assign(value); }
160 inline AttachedFile& WithAssociatedResourceArn(const Aws::String& value) { SetAssociatedResourceArn(value); return *this;}
161 inline AttachedFile& WithAssociatedResourceArn(Aws::String&& value) { SetAssociatedResourceArn(std::move(value)); return *this;}
162 inline AttachedFile& WithAssociatedResourceArn(const char* value) { SetAssociatedResourceArn(value); return *this;}
164
166
170 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
171 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
172 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
173 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
174 inline AttachedFile& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
175 inline AttachedFile& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
176 inline AttachedFile& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
177 inline AttachedFile& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
178 inline AttachedFile& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
179 inline AttachedFile& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
180 inline AttachedFile& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
181 inline AttachedFile& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
182 inline AttachedFile& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
184 private:
185
186 Aws::String m_creationTime;
187 bool m_creationTimeHasBeenSet = false;
188
189 Aws::String m_fileArn;
190 bool m_fileArnHasBeenSet = false;
191
192 Aws::String m_fileId;
193 bool m_fileIdHasBeenSet = false;
194
195 Aws::String m_fileName;
196 bool m_fileNameHasBeenSet = false;
197
198 long long m_fileSizeInBytes;
199 bool m_fileSizeInBytesHasBeenSet = false;
200
201 FileStatusType m_fileStatus;
202 bool m_fileStatusHasBeenSet = false;
203
204 CreatedByInfo m_createdBy;
205 bool m_createdByHasBeenSet = false;
206
207 FileUseCaseType m_fileUseCaseType;
208 bool m_fileUseCaseTypeHasBeenSet = false;
209
210 Aws::String m_associatedResourceArn;
211 bool m_associatedResourceArnHasBeenSet = false;
212
214 bool m_tagsHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace Connect
219} // namespace Aws
AttachedFile & WithFileUseCaseType(const FileUseCaseType &value)
void SetFileArn(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AttachedFile & WithCreationTime(const char *value)
AttachedFile & WithCreatedBy(const CreatedByInfo &value)
AttachedFile & WithCreationTime(const Aws::String &value)
void SetCreatedBy(CreatedByInfo &&value)
void SetCreatedBy(const CreatedByInfo &value)
AttachedFile & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AttachedFile & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AttachedFile & AddTags(const char *key, Aws::String &&value)
void SetFileArn(const Aws::String &value)
void SetCreationTime(const Aws::String &value)
AttachedFile & WithFileSizeInBytes(long long value)
void SetFileName(const char *value)
void SetAssociatedResourceArn(Aws::String &&value)
const Aws::String & GetCreationTime() const
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const FileUseCaseType & GetFileUseCaseType() const
void SetAssociatedResourceArn(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AttachedFile & WithCreatedBy(CreatedByInfo &&value)
AttachedFile & WithFileUseCaseType(FileUseCaseType &&value)
AttachedFile & WithAssociatedResourceArn(const char *value)
AttachedFile & WithAssociatedResourceArn(Aws::String &&value)
const Aws::String & GetAssociatedResourceArn() const
AttachedFile & AddTags(Aws::String &&key, const char *value)
void SetFileName(const Aws::String &value)
void SetFileStatus(const FileStatusType &value)
AWS_CONNECT_API AttachedFile(Aws::Utils::Json::JsonView jsonValue)
void SetFileId(Aws::String &&value)
AttachedFile & WithFileArn(const Aws::String &value)
AttachedFile & WithFileName(const char *value)
AttachedFile & AddTags(Aws::String &&key, const Aws::String &value)
const FileStatusType & GetFileStatus() const
AttachedFile & WithCreationTime(Aws::String &&value)
void SetAssociatedResourceArn(const Aws::String &value)
AttachedFile & WithFileName(Aws::String &&value)
void SetFileName(Aws::String &&value)
void SetFileSizeInBytes(long long value)
void SetFileUseCaseType(const FileUseCaseType &value)
AttachedFile & AddTags(Aws::String &&key, Aws::String &&value)
void SetFileId(const Aws::String &value)
const Aws::String & GetFileArn() const
AttachedFile & AddTags(const Aws::String &key, Aws::String &&value)
void SetFileStatus(FileStatusType &&value)
AttachedFile & WithFileId(const char *value)
const CreatedByInfo & GetCreatedBy() const
void SetFileArn(Aws::String &&value)
AttachedFile & WithFileId(const Aws::String &value)
AWS_CONNECT_API AttachedFile & operator=(Aws::Utils::Json::JsonView jsonValue)
AttachedFile & WithFileId(Aws::String &&value)
AttachedFile & AddTags(const Aws::String &key, const Aws::String &value)
void SetCreationTime(Aws::String &&value)
const Aws::String & GetFileId() const
const Aws::String & GetFileName() const
AttachedFile & WithFileStatus(const FileStatusType &value)
AttachedFile & WithFileName(const Aws::String &value)
void SetFileId(const char *value)
void SetCreationTime(const char *value)
AttachedFile & WithFileArn(Aws::String &&value)
AttachedFile & WithAssociatedResourceArn(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AttachedFile & WithFileStatus(FileStatusType &&value)
AttachedFile & AddTags(const char *key, const char *value)
AttachedFile & WithFileArn(const char *value)
void SetFileUseCaseType(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