AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ExportTask.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mgn/Mgn_EXPORTS.h>
10#include <aws/mgn/model/ExportStatus.h>
11#include <aws/mgn/model/ExportTaskSummary.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace mgn {
23namespace Model {
24
31 public:
32 AWS_MGN_API ExportTask() = default;
33 AWS_MGN_API ExportTask(Aws::Utils::Json::JsonView jsonValue);
36
38
41 inline const Aws::String& GetExportID() const { return m_exportID; }
42 inline bool ExportIDHasBeenSet() const { return m_exportIDHasBeenSet; }
43 template <typename ExportIDT = Aws::String>
44 void SetExportID(ExportIDT&& value) {
45 m_exportIDHasBeenSet = true;
46 m_exportID = std::forward<ExportIDT>(value);
47 }
48 template <typename ExportIDT = Aws::String>
49 ExportTask& WithExportID(ExportIDT&& value) {
50 SetExportID(std::forward<ExportIDT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetArn() const { return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 template <typename ArnT = Aws::String>
62 void SetArn(ArnT&& value) {
63 m_arnHasBeenSet = true;
64 m_arn = std::forward<ArnT>(value);
65 }
66 template <typename ArnT = Aws::String>
67 ExportTask& WithArn(ArnT&& value) {
68 SetArn(std::forward<ArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
78 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
79 template <typename S3BucketT = Aws::String>
80 void SetS3Bucket(S3BucketT&& value) {
81 m_s3BucketHasBeenSet = true;
82 m_s3Bucket = std::forward<S3BucketT>(value);
83 }
84 template <typename S3BucketT = Aws::String>
85 ExportTask& WithS3Bucket(S3BucketT&& value) {
86 SetS3Bucket(std::forward<S3BucketT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetS3Key() const { return m_s3Key; }
96 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
97 template <typename S3KeyT = Aws::String>
98 void SetS3Key(S3KeyT&& value) {
99 m_s3KeyHasBeenSet = true;
100 m_s3Key = std::forward<S3KeyT>(value);
101 }
102 template <typename S3KeyT = Aws::String>
103 ExportTask& WithS3Key(S3KeyT&& value) {
104 SetS3Key(std::forward<S3KeyT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetS3BucketOwner() const { return m_s3BucketOwner; }
114 inline bool S3BucketOwnerHasBeenSet() const { return m_s3BucketOwnerHasBeenSet; }
115 template <typename S3BucketOwnerT = Aws::String>
116 void SetS3BucketOwner(S3BucketOwnerT&& value) {
117 m_s3BucketOwnerHasBeenSet = true;
118 m_s3BucketOwner = std::forward<S3BucketOwnerT>(value);
119 }
120 template <typename S3BucketOwnerT = Aws::String>
121 ExportTask& WithS3BucketOwner(S3BucketOwnerT&& value) {
122 SetS3BucketOwner(std::forward<S3BucketOwnerT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetCreationDateTime() const { return m_creationDateTime; }
132 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
133 template <typename CreationDateTimeT = Aws::String>
134 void SetCreationDateTime(CreationDateTimeT&& value) {
135 m_creationDateTimeHasBeenSet = true;
136 m_creationDateTime = std::forward<CreationDateTimeT>(value);
137 }
138 template <typename CreationDateTimeT = Aws::String>
139 ExportTask& WithCreationDateTime(CreationDateTimeT&& value) {
140 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetEndDateTime() const { return m_endDateTime; }
150 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
151 template <typename EndDateTimeT = Aws::String>
152 void SetEndDateTime(EndDateTimeT&& value) {
153 m_endDateTimeHasBeenSet = true;
154 m_endDateTime = std::forward<EndDateTimeT>(value);
155 }
156 template <typename EndDateTimeT = Aws::String>
157 ExportTask& WithEndDateTime(EndDateTimeT&& value) {
158 SetEndDateTime(std::forward<EndDateTimeT>(value));
159 return *this;
160 }
162
164
167 inline ExportStatus GetStatus() const { return m_status; }
168 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
169 inline void SetStatus(ExportStatus value) {
170 m_statusHasBeenSet = true;
171 m_status = value;
172 }
174 SetStatus(value);
175 return *this;
176 }
178
180
183 inline double GetProgressPercentage() const { return m_progressPercentage; }
184 inline bool ProgressPercentageHasBeenSet() const { return m_progressPercentageHasBeenSet; }
185 inline void SetProgressPercentage(double value) {
186 m_progressPercentageHasBeenSet = true;
187 m_progressPercentage = value;
188 }
189 inline ExportTask& WithProgressPercentage(double value) {
191 return *this;
192 }
194
196
199 inline const ExportTaskSummary& GetSummary() const { return m_summary; }
200 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
201 template <typename SummaryT = ExportTaskSummary>
202 void SetSummary(SummaryT&& value) {
203 m_summaryHasBeenSet = true;
204 m_summary = std::forward<SummaryT>(value);
205 }
206 template <typename SummaryT = ExportTaskSummary>
207 ExportTask& WithSummary(SummaryT&& value) {
208 SetSummary(std::forward<SummaryT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
218 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
219 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
220 void SetTags(TagsT&& value) {
221 m_tagsHasBeenSet = true;
222 m_tags = std::forward<TagsT>(value);
223 }
224 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
225 ExportTask& WithTags(TagsT&& value) {
226 SetTags(std::forward<TagsT>(value));
227 return *this;
228 }
229 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
230 ExportTask& AddTags(TagsKeyT&& key, TagsValueT&& value) {
231 m_tagsHasBeenSet = true;
232 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
233 return *this;
234 }
236 private:
237 Aws::String m_exportID;
238
239 Aws::String m_arn;
240
241 Aws::String m_s3Bucket;
242
243 Aws::String m_s3Key;
244
245 Aws::String m_s3BucketOwner;
246
247 Aws::String m_creationDateTime;
248
249 Aws::String m_endDateTime;
250
252
253 double m_progressPercentage{0.0};
254
255 ExportTaskSummary m_summary;
256
258 bool m_exportIDHasBeenSet = false;
259 bool m_arnHasBeenSet = false;
260 bool m_s3BucketHasBeenSet = false;
261 bool m_s3KeyHasBeenSet = false;
262 bool m_s3BucketOwnerHasBeenSet = false;
263 bool m_creationDateTimeHasBeenSet = false;
264 bool m_endDateTimeHasBeenSet = false;
265 bool m_statusHasBeenSet = false;
266 bool m_progressPercentageHasBeenSet = false;
267 bool m_summaryHasBeenSet = false;
268 bool m_tagsHasBeenSet = false;
269};
270
271} // namespace Model
272} // namespace mgn
273} // namespace Aws
void SetProgressPercentage(double value)
Definition ExportTask.h:185
ExportTask & WithS3BucketOwner(S3BucketOwnerT &&value)
Definition ExportTask.h:121
const Aws::String & GetS3Key() const
Definition ExportTask.h:95
void SetEndDateTime(EndDateTimeT &&value)
Definition ExportTask.h:152
bool S3BucketOwnerHasBeenSet() const
Definition ExportTask.h:114
const Aws::String & GetArn() const
Definition ExportTask.h:59
ExportTask & WithCreationDateTime(CreationDateTimeT &&value)
Definition ExportTask.h:139
const ExportTaskSummary & GetSummary() const
Definition ExportTask.h:199
void SetStatus(ExportStatus value)
Definition ExportTask.h:169
ExportTask & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition ExportTask.h:230
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition ExportTask.h:217
const Aws::String & GetS3BucketOwner() const
Definition ExportTask.h:113
bool EndDateTimeHasBeenSet() const
Definition ExportTask.h:150
void SetCreationDateTime(CreationDateTimeT &&value)
Definition ExportTask.h:134
ExportTask & WithStatus(ExportStatus value)
Definition ExportTask.h:173
const Aws::String & GetExportID() const
Definition ExportTask.h:41
bool S3BucketHasBeenSet() const
Definition ExportTask.h:78
void SetS3Key(S3KeyT &&value)
Definition ExportTask.h:98
void SetTags(TagsT &&value)
Definition ExportTask.h:220
ExportTask & WithEndDateTime(EndDateTimeT &&value)
Definition ExportTask.h:157
ExportTask & WithS3Key(S3KeyT &&value)
Definition ExportTask.h:103
bool CreationDateTimeHasBeenSet() const
Definition ExportTask.h:132
const Aws::String & GetCreationDateTime() const
Definition ExportTask.h:131
ExportTask & WithTags(TagsT &&value)
Definition ExportTask.h:225
AWS_MGN_API ExportTask(Aws::Utils::Json::JsonView jsonValue)
void SetS3BucketOwner(S3BucketOwnerT &&value)
Definition ExportTask.h:116
void SetArn(ArnT &&value)
Definition ExportTask.h:62
double GetProgressPercentage() const
Definition ExportTask.h:183
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
bool ExportIDHasBeenSet() const
Definition ExportTask.h:42
ExportTask & WithExportID(ExportIDT &&value)
Definition ExportTask.h:49
void SetS3Bucket(S3BucketT &&value)
Definition ExportTask.h:80
ExportTask & WithSummary(SummaryT &&value)
Definition ExportTask.h:207
ExportTask & WithS3Bucket(S3BucketT &&value)
Definition ExportTask.h:85
const Aws::String & GetEndDateTime() const
Definition ExportTask.h:149
ExportStatus GetStatus() const
Definition ExportTask.h:167
AWS_MGN_API ExportTask()=default
AWS_MGN_API ExportTask & operator=(Aws::Utils::Json::JsonView jsonValue)
ExportTask & WithArn(ArnT &&value)
Definition ExportTask.h:67
void SetSummary(SummaryT &&value)
Definition ExportTask.h:202
const Aws::String & GetS3Bucket() const
Definition ExportTask.h:77
bool ProgressPercentageHasBeenSet() const
Definition ExportTask.h:184
void SetExportID(ExportIDT &&value)
Definition ExportTask.h:44
ExportTask & WithProgressPercentage(double value)
Definition ExportTask.h:189
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