AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DescribeTaskResult.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/datasync/DataSync_EXPORTS.h>
11#include <aws/datasync/model/FilterRule.h>
12#include <aws/datasync/model/ManifestConfig.h>
13#include <aws/datasync/model/Options.h>
14#include <aws/datasync/model/TaskMode.h>
15#include <aws/datasync/model/TaskReportConfig.h>
16#include <aws/datasync/model/TaskSchedule.h>
17#include <aws/datasync/model/TaskScheduleDetails.h>
18#include <aws/datasync/model/TaskStatus.h>
19
20#include <utility>
21
22namespace Aws {
23template <typename RESULT_TYPE>
24class AmazonWebServiceResult;
25
26namespace Utils {
27namespace Json {
28class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace DataSync {
32namespace Model {
39 public:
40 AWS_DATASYNC_API DescribeTaskResult() = default;
43
45
48 inline const Aws::String& GetTaskArn() const { return m_taskArn; }
49 template <typename TaskArnT = Aws::String>
50 void SetTaskArn(TaskArnT&& value) {
51 m_taskArnHasBeenSet = true;
52 m_taskArn = std::forward<TaskArnT>(value);
53 }
54 template <typename TaskArnT = Aws::String>
55 DescribeTaskResult& WithTaskArn(TaskArnT&& value) {
56 SetTaskArn(std::forward<TaskArnT>(value));
57 return *this;
58 }
60
62
67 inline TaskStatus GetStatus() const { return m_status; }
68 inline void SetStatus(TaskStatus value) {
69 m_statusHasBeenSet = true;
70 m_status = value;
71 }
73 SetStatus(value);
74 return *this;
75 }
77
79
82 inline const Aws::String& GetName() const { return m_name; }
83 template <typename NameT = Aws::String>
84 void SetName(NameT&& value) {
85 m_nameHasBeenSet = true;
86 m_name = std::forward<NameT>(value);
87 }
88 template <typename NameT = Aws::String>
89 DescribeTaskResult& WithName(NameT&& value) {
90 SetName(std::forward<NameT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetCurrentTaskExecutionArn() const { return m_currentTaskExecutionArn; }
100 template <typename CurrentTaskExecutionArnT = Aws::String>
101 void SetCurrentTaskExecutionArn(CurrentTaskExecutionArnT&& value) {
102 m_currentTaskExecutionArnHasBeenSet = true;
103 m_currentTaskExecutionArn = std::forward<CurrentTaskExecutionArnT>(value);
104 }
105 template <typename CurrentTaskExecutionArnT = Aws::String>
106 DescribeTaskResult& WithCurrentTaskExecutionArn(CurrentTaskExecutionArnT&& value) {
107 SetCurrentTaskExecutionArn(std::forward<CurrentTaskExecutionArnT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetSourceLocationArn() const { return m_sourceLocationArn; }
117 template <typename SourceLocationArnT = Aws::String>
118 void SetSourceLocationArn(SourceLocationArnT&& value) {
119 m_sourceLocationArnHasBeenSet = true;
120 m_sourceLocationArn = std::forward<SourceLocationArnT>(value);
121 }
122 template <typename SourceLocationArnT = Aws::String>
123 DescribeTaskResult& WithSourceLocationArn(SourceLocationArnT&& value) {
124 SetSourceLocationArn(std::forward<SourceLocationArnT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetDestinationLocationArn() const { return m_destinationLocationArn; }
134 template <typename DestinationLocationArnT = Aws::String>
135 void SetDestinationLocationArn(DestinationLocationArnT&& value) {
136 m_destinationLocationArnHasBeenSet = true;
137 m_destinationLocationArn = std::forward<DestinationLocationArnT>(value);
138 }
139 template <typename DestinationLocationArnT = Aws::String>
140 DescribeTaskResult& WithDestinationLocationArn(DestinationLocationArnT&& value) {
141 SetDestinationLocationArn(std::forward<DestinationLocationArnT>(value));
142 return *this;
143 }
145
147
153 inline const Aws::String& GetCloudWatchLogGroupArn() const { return m_cloudWatchLogGroupArn; }
154 template <typename CloudWatchLogGroupArnT = Aws::String>
155 void SetCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) {
156 m_cloudWatchLogGroupArnHasBeenSet = true;
157 m_cloudWatchLogGroupArn = std::forward<CloudWatchLogGroupArnT>(value);
158 }
159 template <typename CloudWatchLogGroupArnT = Aws::String>
160 DescribeTaskResult& WithCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) {
161 SetCloudWatchLogGroupArn(std::forward<CloudWatchLogGroupArnT>(value));
162 return *this;
163 }
165
167
172 inline const Aws::Vector<Aws::String>& GetSourceNetworkInterfaceArns() const { return m_sourceNetworkInterfaceArns; }
173 template <typename SourceNetworkInterfaceArnsT = Aws::Vector<Aws::String>>
174 void SetSourceNetworkInterfaceArns(SourceNetworkInterfaceArnsT&& value) {
175 m_sourceNetworkInterfaceArnsHasBeenSet = true;
176 m_sourceNetworkInterfaceArns = std::forward<SourceNetworkInterfaceArnsT>(value);
177 }
178 template <typename SourceNetworkInterfaceArnsT = Aws::Vector<Aws::String>>
179 DescribeTaskResult& WithSourceNetworkInterfaceArns(SourceNetworkInterfaceArnsT&& value) {
180 SetSourceNetworkInterfaceArns(std::forward<SourceNetworkInterfaceArnsT>(value));
181 return *this;
182 }
183 template <typename SourceNetworkInterfaceArnsT = Aws::String>
184 DescribeTaskResult& AddSourceNetworkInterfaceArns(SourceNetworkInterfaceArnsT&& value) {
185 m_sourceNetworkInterfaceArnsHasBeenSet = true;
186 m_sourceNetworkInterfaceArns.emplace_back(std::forward<SourceNetworkInterfaceArnsT>(value));
187 return *this;
188 }
190
192
197 inline const Aws::Vector<Aws::String>& GetDestinationNetworkInterfaceArns() const { return m_destinationNetworkInterfaceArns; }
198 template <typename DestinationNetworkInterfaceArnsT = Aws::Vector<Aws::String>>
199 void SetDestinationNetworkInterfaceArns(DestinationNetworkInterfaceArnsT&& value) {
200 m_destinationNetworkInterfaceArnsHasBeenSet = true;
201 m_destinationNetworkInterfaceArns = std::forward<DestinationNetworkInterfaceArnsT>(value);
202 }
203 template <typename DestinationNetworkInterfaceArnsT = Aws::Vector<Aws::String>>
204 DescribeTaskResult& WithDestinationNetworkInterfaceArns(DestinationNetworkInterfaceArnsT&& value) {
205 SetDestinationNetworkInterfaceArns(std::forward<DestinationNetworkInterfaceArnsT>(value));
206 return *this;
207 }
208 template <typename DestinationNetworkInterfaceArnsT = Aws::String>
209 DescribeTaskResult& AddDestinationNetworkInterfaceArns(DestinationNetworkInterfaceArnsT&& value) {
210 m_destinationNetworkInterfaceArnsHasBeenSet = true;
211 m_destinationNetworkInterfaceArns.emplace_back(std::forward<DestinationNetworkInterfaceArnsT>(value));
212 return *this;
213 }
215
217
222 inline const Options& GetOptions() const { return m_options; }
223 template <typename OptionsT = Options>
224 void SetOptions(OptionsT&& value) {
225 m_optionsHasBeenSet = true;
226 m_options = std::forward<OptionsT>(value);
227 }
228 template <typename OptionsT = Options>
229 DescribeTaskResult& WithOptions(OptionsT&& value) {
230 SetOptions(std::forward<OptionsT>(value));
231 return *this;
232 }
234
236
243 inline const Aws::Vector<FilterRule>& GetExcludes() const { return m_excludes; }
244 template <typename ExcludesT = Aws::Vector<FilterRule>>
245 void SetExcludes(ExcludesT&& value) {
246 m_excludesHasBeenSet = true;
247 m_excludes = std::forward<ExcludesT>(value);
248 }
249 template <typename ExcludesT = Aws::Vector<FilterRule>>
250 DescribeTaskResult& WithExcludes(ExcludesT&& value) {
251 SetExcludes(std::forward<ExcludesT>(value));
252 return *this;
253 }
254 template <typename ExcludesT = FilterRule>
255 DescribeTaskResult& AddExcludes(ExcludesT&& value) {
256 m_excludesHasBeenSet = true;
257 m_excludes.emplace_back(std::forward<ExcludesT>(value));
258 return *this;
259 }
261
263
268 inline const TaskSchedule& GetSchedule() const { return m_schedule; }
269 template <typename ScheduleT = TaskSchedule>
270 void SetSchedule(ScheduleT&& value) {
271 m_scheduleHasBeenSet = true;
272 m_schedule = std::forward<ScheduleT>(value);
273 }
274 template <typename ScheduleT = TaskSchedule>
275 DescribeTaskResult& WithSchedule(ScheduleT&& value) {
276 SetSchedule(std::forward<ScheduleT>(value));
277 return *this;
278 }
280
282
288 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
289 template <typename ErrorCodeT = Aws::String>
290 void SetErrorCode(ErrorCodeT&& value) {
291 m_errorCodeHasBeenSet = true;
292 m_errorCode = std::forward<ErrorCodeT>(value);
293 }
294 template <typename ErrorCodeT = Aws::String>
295 DescribeTaskResult& WithErrorCode(ErrorCodeT&& value) {
296 SetErrorCode(std::forward<ErrorCodeT>(value));
297 return *this;
298 }
300
302
308 inline const Aws::String& GetErrorDetail() const { return m_errorDetail; }
309 template <typename ErrorDetailT = Aws::String>
310 void SetErrorDetail(ErrorDetailT&& value) {
311 m_errorDetailHasBeenSet = true;
312 m_errorDetail = std::forward<ErrorDetailT>(value);
313 }
314 template <typename ErrorDetailT = Aws::String>
315 DescribeTaskResult& WithErrorDetail(ErrorDetailT&& value) {
316 SetErrorDetail(std::forward<ErrorDetailT>(value));
317 return *this;
318 }
320
322
325 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
326 template <typename CreationTimeT = Aws::Utils::DateTime>
327 void SetCreationTime(CreationTimeT&& value) {
328 m_creationTimeHasBeenSet = true;
329 m_creationTime = std::forward<CreationTimeT>(value);
330 }
331 template <typename CreationTimeT = Aws::Utils::DateTime>
332 DescribeTaskResult& WithCreationTime(CreationTimeT&& value) {
333 SetCreationTime(std::forward<CreationTimeT>(value));
334 return *this;
335 }
337
339
346 inline const Aws::Vector<FilterRule>& GetIncludes() const { return m_includes; }
347 template <typename IncludesT = Aws::Vector<FilterRule>>
348 void SetIncludes(IncludesT&& value) {
349 m_includesHasBeenSet = true;
350 m_includes = std::forward<IncludesT>(value);
351 }
352 template <typename IncludesT = Aws::Vector<FilterRule>>
353 DescribeTaskResult& WithIncludes(IncludesT&& value) {
354 SetIncludes(std::forward<IncludesT>(value));
355 return *this;
356 }
357 template <typename IncludesT = FilterRule>
358 DescribeTaskResult& AddIncludes(IncludesT&& value) {
359 m_includesHasBeenSet = true;
360 m_includes.emplace_back(std::forward<IncludesT>(value));
361 return *this;
362 }
364
366
372 inline const ManifestConfig& GetManifestConfig() const { return m_manifestConfig; }
373 template <typename ManifestConfigT = ManifestConfig>
374 void SetManifestConfig(ManifestConfigT&& value) {
375 m_manifestConfigHasBeenSet = true;
376 m_manifestConfig = std::forward<ManifestConfigT>(value);
377 }
378 template <typename ManifestConfigT = ManifestConfig>
379 DescribeTaskResult& WithManifestConfig(ManifestConfigT&& value) {
380 SetManifestConfig(std::forward<ManifestConfigT>(value));
381 return *this;
382 }
384
386
392 inline const TaskReportConfig& GetTaskReportConfig() const { return m_taskReportConfig; }
393 template <typename TaskReportConfigT = TaskReportConfig>
394 void SetTaskReportConfig(TaskReportConfigT&& value) {
395 m_taskReportConfigHasBeenSet = true;
396 m_taskReportConfig = std::forward<TaskReportConfigT>(value);
397 }
398 template <typename TaskReportConfigT = TaskReportConfig>
399 DescribeTaskResult& WithTaskReportConfig(TaskReportConfigT&& value) {
400 SetTaskReportConfig(std::forward<TaskReportConfigT>(value));
401 return *this;
402 }
404
406
411 inline const TaskScheduleDetails& GetScheduleDetails() const { return m_scheduleDetails; }
412 template <typename ScheduleDetailsT = TaskScheduleDetails>
413 void SetScheduleDetails(ScheduleDetailsT&& value) {
414 m_scheduleDetailsHasBeenSet = true;
415 m_scheduleDetails = std::forward<ScheduleDetailsT>(value);
416 }
417 template <typename ScheduleDetailsT = TaskScheduleDetails>
418 DescribeTaskResult& WithScheduleDetails(ScheduleDetailsT&& value) {
419 SetScheduleDetails(std::forward<ScheduleDetailsT>(value));
420 return *this;
421 }
423
425
430 inline TaskMode GetTaskMode() const { return m_taskMode; }
431 inline void SetTaskMode(TaskMode value) {
432 m_taskModeHasBeenSet = true;
433 m_taskMode = value;
434 }
436 SetTaskMode(value);
437 return *this;
438 }
440
442
443 inline const Aws::String& GetRequestId() const { return m_requestId; }
444 template <typename RequestIdT = Aws::String>
445 void SetRequestId(RequestIdT&& value) {
446 m_requestIdHasBeenSet = true;
447 m_requestId = std::forward<RequestIdT>(value);
448 }
449 template <typename RequestIdT = Aws::String>
450 DescribeTaskResult& WithRequestId(RequestIdT&& value) {
451 SetRequestId(std::forward<RequestIdT>(value));
452 return *this;
453 }
455 private:
456 Aws::String m_taskArn;
457
459
460 Aws::String m_name;
461
462 Aws::String m_currentTaskExecutionArn;
463
464 Aws::String m_sourceLocationArn;
465
466 Aws::String m_destinationLocationArn;
467
468 Aws::String m_cloudWatchLogGroupArn;
469
470 Aws::Vector<Aws::String> m_sourceNetworkInterfaceArns;
471
472 Aws::Vector<Aws::String> m_destinationNetworkInterfaceArns;
473
474 Options m_options;
475
476 Aws::Vector<FilterRule> m_excludes;
477
478 TaskSchedule m_schedule;
479
480 Aws::String m_errorCode;
481
482 Aws::String m_errorDetail;
483
484 Aws::Utils::DateTime m_creationTime{};
485
486 Aws::Vector<FilterRule> m_includes;
487
488 ManifestConfig m_manifestConfig;
489
490 TaskReportConfig m_taskReportConfig;
491
492 TaskScheduleDetails m_scheduleDetails;
493
494 TaskMode m_taskMode{TaskMode::NOT_SET};
495
496 Aws::String m_requestId;
497 bool m_taskArnHasBeenSet = false;
498 bool m_statusHasBeenSet = false;
499 bool m_nameHasBeenSet = false;
500 bool m_currentTaskExecutionArnHasBeenSet = false;
501 bool m_sourceLocationArnHasBeenSet = false;
502 bool m_destinationLocationArnHasBeenSet = false;
503 bool m_cloudWatchLogGroupArnHasBeenSet = false;
504 bool m_sourceNetworkInterfaceArnsHasBeenSet = false;
505 bool m_destinationNetworkInterfaceArnsHasBeenSet = false;
506 bool m_optionsHasBeenSet = false;
507 bool m_excludesHasBeenSet = false;
508 bool m_scheduleHasBeenSet = false;
509 bool m_errorCodeHasBeenSet = false;
510 bool m_errorDetailHasBeenSet = false;
511 bool m_creationTimeHasBeenSet = false;
512 bool m_includesHasBeenSet = false;
513 bool m_manifestConfigHasBeenSet = false;
514 bool m_taskReportConfigHasBeenSet = false;
515 bool m_scheduleDetailsHasBeenSet = false;
516 bool m_taskModeHasBeenSet = false;
517 bool m_requestIdHasBeenSet = false;
518};
519
520} // namespace Model
521} // namespace DataSync
522} // namespace Aws
DescribeTaskResult & WithDestinationLocationArn(DestinationLocationArnT &&value)
void SetDestinationNetworkInterfaceArns(DestinationNetworkInterfaceArnsT &&value)
const Aws::Vector< FilterRule > & GetExcludes() const
DescribeTaskResult & AddSourceNetworkInterfaceArns(SourceNetworkInterfaceArnsT &&value)
DescribeTaskResult & WithTaskReportConfig(TaskReportConfigT &&value)
DescribeTaskResult & WithOptions(OptionsT &&value)
DescribeTaskResult & WithManifestConfig(ManifestConfigT &&value)
const Aws::String & GetDestinationLocationArn() const
const Aws::Vector< Aws::String > & GetDestinationNetworkInterfaceArns() const
DescribeTaskResult & WithName(NameT &&value)
DescribeTaskResult & AddExcludes(ExcludesT &&value)
DescribeTaskResult & WithErrorCode(ErrorCodeT &&value)
void SetSourceNetworkInterfaceArns(SourceNetworkInterfaceArnsT &&value)
const TaskScheduleDetails & GetScheduleDetails() const
DescribeTaskResult & WithSourceLocationArn(SourceLocationArnT &&value)
DescribeTaskResult & WithCloudWatchLogGroupArn(CloudWatchLogGroupArnT &&value)
void SetTaskReportConfig(TaskReportConfigT &&value)
AWS_DATASYNC_API DescribeTaskResult()=default
DescribeTaskResult & WithExcludes(ExcludesT &&value)
DescribeTaskResult & WithStatus(TaskStatus value)
const Aws::Vector< Aws::String > & GetSourceNetworkInterfaceArns() const
DescribeTaskResult & WithCurrentTaskExecutionArn(CurrentTaskExecutionArnT &&value)
void SetScheduleDetails(ScheduleDetailsT &&value)
AWS_DATASYNC_API DescribeTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTaskResult & WithScheduleDetails(ScheduleDetailsT &&value)
DescribeTaskResult & WithErrorDetail(ErrorDetailT &&value)
const ManifestConfig & GetManifestConfig() const
const Aws::String & GetCurrentTaskExecutionArn() const
DescribeTaskResult & WithIncludes(IncludesT &&value)
DescribeTaskResult & WithCreationTime(CreationTimeT &&value)
void SetManifestConfig(ManifestConfigT &&value)
void SetDestinationLocationArn(DestinationLocationArnT &&value)
void SetCurrentTaskExecutionArn(CurrentTaskExecutionArnT &&value)
void SetCloudWatchLogGroupArn(CloudWatchLogGroupArnT &&value)
void SetSourceLocationArn(SourceLocationArnT &&value)
void SetCreationTime(CreationTimeT &&value)
DescribeTaskResult & WithSchedule(ScheduleT &&value)
const Aws::Vector< FilterRule > & GetIncludes() const
const Aws::String & GetCloudWatchLogGroupArn() const
DescribeTaskResult & WithDestinationNetworkInterfaceArns(DestinationNetworkInterfaceArnsT &&value)
DescribeTaskResult & AddIncludes(IncludesT &&value)
AWS_DATASYNC_API DescribeTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTaskResult & WithRequestId(RequestIdT &&value)
const TaskReportConfig & GetTaskReportConfig() const
DescribeTaskResult & WithSourceNetworkInterfaceArns(SourceNetworkInterfaceArnsT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
DescribeTaskResult & AddDestinationNetworkInterfaceArns(DestinationNetworkInterfaceArnsT &&value)
const Aws::String & GetSourceLocationArn() const
DescribeTaskResult & WithTaskMode(TaskMode value)
DescribeTaskResult & WithTaskArn(TaskArnT &&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