AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DataRepositoryTask.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/fsx/FSx_EXPORTS.h>
11#include <aws/fsx/model/CompletionReport.h>
12#include <aws/fsx/model/DataRepositoryTaskFailureDetails.h>
13#include <aws/fsx/model/DataRepositoryTaskLifecycle.h>
14#include <aws/fsx/model/DataRepositoryTaskStatus.h>
15#include <aws/fsx/model/DataRepositoryTaskType.h>
16#include <aws/fsx/model/ReleaseConfiguration.h>
17#include <aws/fsx/model/Tag.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace FSx {
29namespace Model {
30
46 public:
47 AWS_FSX_API DataRepositoryTask() = default;
51
53
56 inline const Aws::String& GetTaskId() const { return m_taskId; }
57 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
58 template <typename TaskIdT = Aws::String>
59 void SetTaskId(TaskIdT&& value) {
60 m_taskIdHasBeenSet = true;
61 m_taskId = std::forward<TaskIdT>(value);
62 }
63 template <typename TaskIdT = Aws::String>
64 DataRepositoryTask& WithTaskId(TaskIdT&& value) {
65 SetTaskId(std::forward<TaskIdT>(value));
66 return *this;
67 }
69
71
89 inline DataRepositoryTaskLifecycle GetLifecycle() const { return m_lifecycle; }
90 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
92 m_lifecycleHasBeenSet = true;
93 m_lifecycle = value;
94 }
96 SetLifecycle(value);
97 return *this;
98 }
100
102
114 inline DataRepositoryTaskType GetType() const { return m_type; }
115 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
116 inline void SetType(DataRepositoryTaskType value) {
117 m_typeHasBeenSet = true;
118 m_type = value;
119 }
121 SetType(value);
122 return *this;
123 }
125
127
128 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
129 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
130 template <typename CreationTimeT = Aws::Utils::DateTime>
131 void SetCreationTime(CreationTimeT&& value) {
132 m_creationTimeHasBeenSet = true;
133 m_creationTime = std::forward<CreationTimeT>(value);
134 }
135 template <typename CreationTimeT = Aws::Utils::DateTime>
136 DataRepositoryTask& WithCreationTime(CreationTimeT&& value) {
137 SetCreationTime(std::forward<CreationTimeT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
147 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
148 template <typename StartTimeT = Aws::Utils::DateTime>
149 void SetStartTime(StartTimeT&& value) {
150 m_startTimeHasBeenSet = true;
151 m_startTime = std::forward<StartTimeT>(value);
152 }
153 template <typename StartTimeT = Aws::Utils::DateTime>
154 DataRepositoryTask& WithStartTime(StartTimeT&& value) {
155 SetStartTime(std::forward<StartTimeT>(value));
156 return *this;
157 }
159
161
165 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
166 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
167 template <typename EndTimeT = Aws::Utils::DateTime>
168 void SetEndTime(EndTimeT&& value) {
169 m_endTimeHasBeenSet = true;
170 m_endTime = std::forward<EndTimeT>(value);
171 }
172 template <typename EndTimeT = Aws::Utils::DateTime>
173 DataRepositoryTask& WithEndTime(EndTimeT&& value) {
174 SetEndTime(std::forward<EndTimeT>(value));
175 return *this;
176 }
178
180
181 inline const Aws::String& GetResourceARN() const { return m_resourceARN; }
182 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
183 template <typename ResourceARNT = Aws::String>
184 void SetResourceARN(ResourceARNT&& value) {
185 m_resourceARNHasBeenSet = true;
186 m_resourceARN = std::forward<ResourceARNT>(value);
187 }
188 template <typename ResourceARNT = Aws::String>
189 DataRepositoryTask& WithResourceARN(ResourceARNT&& value) {
190 SetResourceARN(std::forward<ResourceARNT>(value));
191 return *this;
192 }
194
196
197 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
198 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
199 template <typename TagsT = Aws::Vector<Tag>>
200 void SetTags(TagsT&& value) {
201 m_tagsHasBeenSet = true;
202 m_tags = std::forward<TagsT>(value);
203 }
204 template <typename TagsT = Aws::Vector<Tag>>
205 DataRepositoryTask& WithTags(TagsT&& value) {
206 SetTags(std::forward<TagsT>(value));
207 return *this;
208 }
209 template <typename TagsT = Tag>
210 DataRepositoryTask& AddTags(TagsT&& value) {
211 m_tagsHasBeenSet = true;
212 m_tags.emplace_back(std::forward<TagsT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
222 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
223 template <typename FileSystemIdT = Aws::String>
224 void SetFileSystemId(FileSystemIdT&& value) {
225 m_fileSystemIdHasBeenSet = true;
226 m_fileSystemId = std::forward<FileSystemIdT>(value);
227 }
228 template <typename FileSystemIdT = Aws::String>
229 DataRepositoryTask& WithFileSystemId(FileSystemIdT&& value) {
230 SetFileSystemId(std::forward<FileSystemIdT>(value));
231 return *this;
232 }
234
236
243 inline const Aws::Vector<Aws::String>& GetPaths() const { return m_paths; }
244 inline bool PathsHasBeenSet() const { return m_pathsHasBeenSet; }
245 template <typename PathsT = Aws::Vector<Aws::String>>
246 void SetPaths(PathsT&& value) {
247 m_pathsHasBeenSet = true;
248 m_paths = std::forward<PathsT>(value);
249 }
250 template <typename PathsT = Aws::Vector<Aws::String>>
251 DataRepositoryTask& WithPaths(PathsT&& value) {
252 SetPaths(std::forward<PathsT>(value));
253 return *this;
254 }
255 template <typename PathsT = Aws::String>
256 DataRepositoryTask& AddPaths(PathsT&& value) {
257 m_pathsHasBeenSet = true;
258 m_paths.emplace_back(std::forward<PathsT>(value));
259 return *this;
260 }
262
264
268 inline const DataRepositoryTaskFailureDetails& GetFailureDetails() const { return m_failureDetails; }
269 inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; }
270 template <typename FailureDetailsT = DataRepositoryTaskFailureDetails>
271 void SetFailureDetails(FailureDetailsT&& value) {
272 m_failureDetailsHasBeenSet = true;
273 m_failureDetails = std::forward<FailureDetailsT>(value);
274 }
275 template <typename FailureDetailsT = DataRepositoryTaskFailureDetails>
276 DataRepositoryTask& WithFailureDetails(FailureDetailsT&& value) {
277 SetFailureDetails(std::forward<FailureDetailsT>(value));
278 return *this;
279 }
281
283
287 inline const DataRepositoryTaskStatus& GetStatus() const { return m_status; }
288 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
289 template <typename StatusT = DataRepositoryTaskStatus>
290 void SetStatus(StatusT&& value) {
291 m_statusHasBeenSet = true;
292 m_status = std::forward<StatusT>(value);
293 }
294 template <typename StatusT = DataRepositoryTaskStatus>
295 DataRepositoryTask& WithStatus(StatusT&& value) {
296 SetStatus(std::forward<StatusT>(value));
297 return *this;
298 }
300
302
303 inline const CompletionReport& GetReport() const { return m_report; }
304 inline bool ReportHasBeenSet() const { return m_reportHasBeenSet; }
305 template <typename ReportT = CompletionReport>
306 void SetReport(ReportT&& value) {
307 m_reportHasBeenSet = true;
308 m_report = std::forward<ReportT>(value);
309 }
310 template <typename ReportT = CompletionReport>
311 DataRepositoryTask& WithReport(ReportT&& value) {
312 SetReport(std::forward<ReportT>(value));
313 return *this;
314 }
316
318
322 inline long long GetCapacityToRelease() const { return m_capacityToRelease; }
323 inline bool CapacityToReleaseHasBeenSet() const { return m_capacityToReleaseHasBeenSet; }
324 inline void SetCapacityToRelease(long long value) {
325 m_capacityToReleaseHasBeenSet = true;
326 m_capacityToRelease = value;
327 }
328 inline DataRepositoryTask& WithCapacityToRelease(long long value) {
330 return *this;
331 }
333
335
338 inline const Aws::String& GetFileCacheId() const { return m_fileCacheId; }
339 inline bool FileCacheIdHasBeenSet() const { return m_fileCacheIdHasBeenSet; }
340 template <typename FileCacheIdT = Aws::String>
341 void SetFileCacheId(FileCacheIdT&& value) {
342 m_fileCacheIdHasBeenSet = true;
343 m_fileCacheId = std::forward<FileCacheIdT>(value);
344 }
345 template <typename FileCacheIdT = Aws::String>
346 DataRepositoryTask& WithFileCacheId(FileCacheIdT&& value) {
347 SetFileCacheId(std::forward<FileCacheIdT>(value));
348 return *this;
349 }
351
353
357 inline const ReleaseConfiguration& GetReleaseConfiguration() const { return m_releaseConfiguration; }
358 inline bool ReleaseConfigurationHasBeenSet() const { return m_releaseConfigurationHasBeenSet; }
359 template <typename ReleaseConfigurationT = ReleaseConfiguration>
360 void SetReleaseConfiguration(ReleaseConfigurationT&& value) {
361 m_releaseConfigurationHasBeenSet = true;
362 m_releaseConfiguration = std::forward<ReleaseConfigurationT>(value);
363 }
364 template <typename ReleaseConfigurationT = ReleaseConfiguration>
365 DataRepositoryTask& WithReleaseConfiguration(ReleaseConfigurationT&& value) {
366 SetReleaseConfiguration(std::forward<ReleaseConfigurationT>(value));
367 return *this;
368 }
370 private:
371 Aws::String m_taskId;
372
374
376
377 Aws::Utils::DateTime m_creationTime{};
378
379 Aws::Utils::DateTime m_startTime{};
380
381 Aws::Utils::DateTime m_endTime{};
382
383 Aws::String m_resourceARN;
384
385 Aws::Vector<Tag> m_tags;
386
387 Aws::String m_fileSystemId;
388
390
391 DataRepositoryTaskFailureDetails m_failureDetails;
392
393 DataRepositoryTaskStatus m_status;
394
395 CompletionReport m_report;
396
397 long long m_capacityToRelease{0};
398
399 Aws::String m_fileCacheId;
400
401 ReleaseConfiguration m_releaseConfiguration;
402 bool m_taskIdHasBeenSet = false;
403 bool m_lifecycleHasBeenSet = false;
404 bool m_typeHasBeenSet = false;
405 bool m_creationTimeHasBeenSet = false;
406 bool m_startTimeHasBeenSet = false;
407 bool m_endTimeHasBeenSet = false;
408 bool m_resourceARNHasBeenSet = false;
409 bool m_tagsHasBeenSet = false;
410 bool m_fileSystemIdHasBeenSet = false;
411 bool m_pathsHasBeenSet = false;
412 bool m_failureDetailsHasBeenSet = false;
413 bool m_statusHasBeenSet = false;
414 bool m_reportHasBeenSet = false;
415 bool m_capacityToReleaseHasBeenSet = false;
416 bool m_fileCacheIdHasBeenSet = false;
417 bool m_releaseConfigurationHasBeenSet = false;
418};
419
420} // namespace Model
421} // namespace FSx
422} // namespace Aws
DataRepositoryTask & WithFileSystemId(FileSystemIdT &&value)
const Aws::Vector< Aws::String > & GetPaths() const
DataRepositoryTask & WithCapacityToRelease(long long value)
DataRepositoryTask & WithCreationTime(CreationTimeT &&value)
const DataRepositoryTaskFailureDetails & GetFailureDetails() const
void SetReleaseConfiguration(ReleaseConfigurationT &&value)
DataRepositoryTask & WithPaths(PathsT &&value)
const Aws::String & GetResourceARN() const
const ReleaseConfiguration & GetReleaseConfiguration() const
void SetFailureDetails(FailureDetailsT &&value)
void SetFileCacheId(FileCacheIdT &&value)
DataRepositoryTask & WithStatus(StatusT &&value)
DataRepositoryTask & WithTags(TagsT &&value)
DataRepositoryTask & AddTags(TagsT &&value)
void SetLifecycle(DataRepositoryTaskLifecycle value)
DataRepositoryTask & WithLifecycle(DataRepositoryTaskLifecycle value)
DataRepositoryTask & WithFileCacheId(FileCacheIdT &&value)
DataRepositoryTask & WithReleaseConfiguration(ReleaseConfigurationT &&value)
DataRepositoryTaskLifecycle GetLifecycle() const
void SetCreationTime(CreationTimeT &&value)
const Aws::String & GetFileSystemId() const
const Aws::Utils::DateTime & GetEndTime() const
AWS_FSX_API DataRepositoryTask(Aws::Utils::Json::JsonView jsonValue)
DataRepositoryTask & WithReport(ReportT &&value)
DataRepositoryTask & WithStartTime(StartTimeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
void SetFileSystemId(FileSystemIdT &&value)
AWS_FSX_API DataRepositoryTask()=default
const CompletionReport & GetReport() const
DataRepositoryTask & WithFailureDetails(FailureDetailsT &&value)
const Aws::Vector< Tag > & GetTags() const
DataRepositoryTask & WithTaskId(TaskIdT &&value)
const Aws::String & GetTaskId() const
const Aws::Utils::DateTime & GetCreationTime() const
DataRepositoryTask & WithType(DataRepositoryTaskType value)
const Aws::String & GetFileCacheId() const
AWS_FSX_API DataRepositoryTask & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceARN(ResourceARNT &&value)
const DataRepositoryTaskStatus & GetStatus() const
DataRepositoryTaskType GetType() const
DataRepositoryTask & AddPaths(PathsT &&value)
void SetType(DataRepositoryTaskType value)
DataRepositoryTask & WithEndTime(EndTimeT &&value)
DataRepositoryTask & WithResourceARN(ResourceARNT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue