AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DescribeTaskExecutionResult.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/ReportResult.h>
15#include <aws/datasync/model/TaskExecutionFilesFailedDetail.h>
16#include <aws/datasync/model/TaskExecutionFilesListedDetail.h>
17#include <aws/datasync/model/TaskExecutionFoldersFailedDetail.h>
18#include <aws/datasync/model/TaskExecutionFoldersListedDetail.h>
19#include <aws/datasync/model/TaskExecutionResultDetail.h>
20#include <aws/datasync/model/TaskExecutionStatus.h>
21#include <aws/datasync/model/TaskMode.h>
22#include <aws/datasync/model/TaskReportConfig.h>
23
24#include <utility>
25
26namespace Aws {
27template <typename RESULT_TYPE>
28class AmazonWebServiceResult;
29
30namespace Utils {
31namespace Json {
32class JsonValue;
33} // namespace Json
34} // namespace Utils
35namespace DataSync {
36namespace Model {
43 public:
44 AWS_DATASYNC_API DescribeTaskExecutionResult() = default;
47
49
59 inline const Aws::String& GetTaskExecutionArn() const { return m_taskExecutionArn; }
60 template <typename TaskExecutionArnT = Aws::String>
61 void SetTaskExecutionArn(TaskExecutionArnT&& value) {
62 m_taskExecutionArnHasBeenSet = true;
63 m_taskExecutionArn = std::forward<TaskExecutionArnT>(value);
64 }
65 template <typename TaskExecutionArnT = Aws::String>
67 SetTaskExecutionArn(std::forward<TaskExecutionArnT>(value));
68 return *this;
69 }
71
73
76 inline TaskExecutionStatus GetStatus() const { return m_status; }
77 inline void SetStatus(TaskExecutionStatus value) {
78 m_statusHasBeenSet = true;
79 m_status = value;
80 }
82 SetStatus(value);
83 return *this;
84 }
86
88
89 inline const Options& GetOptions() const { return m_options; }
90 template <typename OptionsT = Options>
91 void SetOptions(OptionsT&& value) {
92 m_optionsHasBeenSet = true;
93 m_options = std::forward<OptionsT>(value);
94 }
95 template <typename OptionsT = Options>
97 SetOptions(std::forward<OptionsT>(value));
98 return *this;
99 }
101
103
109 inline const Aws::Vector<FilterRule>& GetExcludes() const { return m_excludes; }
110 template <typename ExcludesT = Aws::Vector<FilterRule>>
111 void SetExcludes(ExcludesT&& value) {
112 m_excludesHasBeenSet = true;
113 m_excludes = std::forward<ExcludesT>(value);
114 }
115 template <typename ExcludesT = Aws::Vector<FilterRule>>
117 SetExcludes(std::forward<ExcludesT>(value));
118 return *this;
119 }
120 template <typename ExcludesT = FilterRule>
122 m_excludesHasBeenSet = true;
123 m_excludes.emplace_back(std::forward<ExcludesT>(value));
124 return *this;
125 }
127
129
135 inline const Aws::Vector<FilterRule>& GetIncludes() const { return m_includes; }
136 template <typename IncludesT = Aws::Vector<FilterRule>>
137 void SetIncludes(IncludesT&& value) {
138 m_includesHasBeenSet = true;
139 m_includes = std::forward<IncludesT>(value);
140 }
141 template <typename IncludesT = Aws::Vector<FilterRule>>
143 SetIncludes(std::forward<IncludesT>(value));
144 return *this;
145 }
146 template <typename IncludesT = FilterRule>
148 m_includesHasBeenSet = true;
149 m_includes.emplace_back(std::forward<IncludesT>(value));
150 return *this;
151 }
153
155
161 inline const ManifestConfig& GetManifestConfig() const { return m_manifestConfig; }
162 template <typename ManifestConfigT = ManifestConfig>
163 void SetManifestConfig(ManifestConfigT&& value) {
164 m_manifestConfigHasBeenSet = true;
165 m_manifestConfig = std::forward<ManifestConfigT>(value);
166 }
167 template <typename ManifestConfigT = ManifestConfig>
169 SetManifestConfig(std::forward<ManifestConfigT>(value));
170 return *this;
171 }
173
175
182 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
183 template <typename StartTimeT = Aws::Utils::DateTime>
184 void SetStartTime(StartTimeT&& value) {
185 m_startTimeHasBeenSet = true;
186 m_startTime = std::forward<StartTimeT>(value);
187 }
188 template <typename StartTimeT = Aws::Utils::DateTime>
190 SetStartTime(std::forward<StartTimeT>(value));
191 return *this;
192 }
194
196
223 inline long long GetEstimatedFilesToTransfer() const { return m_estimatedFilesToTransfer; }
224 inline void SetEstimatedFilesToTransfer(long long value) {
225 m_estimatedFilesToTransferHasBeenSet = true;
226 m_estimatedFilesToTransfer = value;
227 }
230 return *this;
231 }
233
235
239 inline long long GetEstimatedBytesToTransfer() const { return m_estimatedBytesToTransfer; }
240 inline void SetEstimatedBytesToTransfer(long long value) {
241 m_estimatedBytesToTransferHasBeenSet = true;
242 m_estimatedBytesToTransfer = value;
243 }
246 return *this;
247 }
249
251
267 inline long long GetFilesTransferred() const { return m_filesTransferred; }
268 inline void SetFilesTransferred(long long value) {
269 m_filesTransferredHasBeenSet = true;
270 m_filesTransferred = value;
271 }
273 SetFilesTransferred(value);
274 return *this;
275 }
277
279
283 inline long long GetBytesWritten() const { return m_bytesWritten; }
284 inline void SetBytesWritten(long long value) {
285 m_bytesWrittenHasBeenSet = true;
286 m_bytesWritten = value;
287 }
289 SetBytesWritten(value);
290 return *this;
291 }
293
295
302 inline long long GetBytesTransferred() const { return m_bytesTransferred; }
303 inline void SetBytesTransferred(long long value) {
304 m_bytesTransferredHasBeenSet = true;
305 m_bytesTransferred = value;
306 }
308 SetBytesTransferred(value);
309 return *this;
310 }
312
314
320 inline long long GetBytesCompressed() const { return m_bytesCompressed; }
321 inline void SetBytesCompressed(long long value) {
322 m_bytesCompressedHasBeenSet = true;
323 m_bytesCompressed = value;
324 }
326 SetBytesCompressed(value);
327 return *this;
328 }
330
332
335 inline const TaskExecutionResultDetail& GetResult() const { return m_result; }
336 template <typename ResultT = TaskExecutionResultDetail>
337 void SetResult(ResultT&& value) {
338 m_resultHasBeenSet = true;
339 m_result = std::forward<ResultT>(value);
340 }
341 template <typename ResultT = TaskExecutionResultDetail>
343 SetResult(std::forward<ResultT>(value));
344 return *this;
345 }
347
349
355 inline const TaskReportConfig& GetTaskReportConfig() const { return m_taskReportConfig; }
356 template <typename TaskReportConfigT = TaskReportConfig>
357 void SetTaskReportConfig(TaskReportConfigT&& value) {
358 m_taskReportConfigHasBeenSet = true;
359 m_taskReportConfig = std::forward<TaskReportConfigT>(value);
360 }
361 template <typename TaskReportConfigT = TaskReportConfig>
363 SetTaskReportConfig(std::forward<TaskReportConfigT>(value));
364 return *this;
365 }
367
369
381 inline long long GetFilesDeleted() const { return m_filesDeleted; }
382 inline void SetFilesDeleted(long long value) {
383 m_filesDeletedHasBeenSet = true;
384 m_filesDeleted = value;
385 }
387 SetFilesDeleted(value);
388 return *this;
389 }
391
393
402 inline long long GetFilesSkipped() const { return m_filesSkipped; }
403 inline void SetFilesSkipped(long long value) {
404 m_filesSkippedHasBeenSet = true;
405 m_filesSkipped = value;
406 }
408 SetFilesSkipped(value);
409 return *this;
410 }
412
414
426 inline long long GetFilesVerified() const { return m_filesVerified; }
427 inline void SetFilesVerified(long long value) {
428 m_filesVerifiedHasBeenSet = true;
429 m_filesVerified = value;
430 }
432 SetFilesVerified(value);
433 return *this;
434 }
436
438
443 inline const ReportResult& GetReportResult() const { return m_reportResult; }
444 template <typename ReportResultT = ReportResult>
445 void SetReportResult(ReportResultT&& value) {
446 m_reportResultHasBeenSet = true;
447 m_reportResult = std::forward<ReportResultT>(value);
448 }
449 template <typename ReportResultT = ReportResult>
451 SetReportResult(std::forward<ReportResultT>(value));
452 return *this;
453 }
455
457
469 inline long long GetEstimatedFilesToDelete() const { return m_estimatedFilesToDelete; }
470 inline void SetEstimatedFilesToDelete(long long value) {
471 m_estimatedFilesToDeleteHasBeenSet = true;
472 m_estimatedFilesToDelete = value;
473 }
476 return *this;
477 }
479
481
486 inline TaskMode GetTaskMode() const { return m_taskMode; }
487 inline void SetTaskMode(TaskMode value) {
488 m_taskModeHasBeenSet = true;
489 m_taskMode = value;
490 }
492 SetTaskMode(value);
493 return *this;
494 }
496
498
509 inline long long GetFilesPrepared() const { return m_filesPrepared; }
510 inline void SetFilesPrepared(long long value) {
511 m_filesPreparedHasBeenSet = true;
512 m_filesPrepared = value;
513 }
515 SetFilesPrepared(value);
516 return *this;
517 }
519
521
527 inline const TaskExecutionFilesListedDetail& GetFilesListed() const { return m_filesListed; }
528 template <typename FilesListedT = TaskExecutionFilesListedDetail>
529 void SetFilesListed(FilesListedT&& value) {
530 m_filesListedHasBeenSet = true;
531 m_filesListed = std::forward<FilesListedT>(value);
532 }
533 template <typename FilesListedT = TaskExecutionFilesListedDetail>
535 SetFilesListed(std::forward<FilesListedT>(value));
536 return *this;
537 }
539
541
547 inline const TaskExecutionFilesFailedDetail& GetFilesFailed() const { return m_filesFailed; }
548 template <typename FilesFailedT = TaskExecutionFilesFailedDetail>
549 void SetFilesFailed(FilesFailedT&& value) {
550 m_filesFailedHasBeenSet = true;
551 m_filesFailed = std::forward<FilesFailedT>(value);
552 }
553 template <typename FilesFailedT = TaskExecutionFilesFailedDetail>
555 SetFilesFailed(std::forward<FilesFailedT>(value));
556 return *this;
557 }
559
561
570 inline long long GetEstimatedFoldersToDelete() const { return m_estimatedFoldersToDelete; }
571 inline void SetEstimatedFoldersToDelete(long long value) {
572 m_estimatedFoldersToDeleteHasBeenSet = true;
573 m_estimatedFoldersToDelete = value;
574 }
577 return *this;
578 }
580
582
603 inline long long GetEstimatedFoldersToTransfer() const { return m_estimatedFoldersToTransfer; }
604 inline void SetEstimatedFoldersToTransfer(long long value) {
605 m_estimatedFoldersToTransferHasBeenSet = true;
606 m_estimatedFoldersToTransfer = value;
607 }
610 return *this;
611 }
613
615
621 inline long long GetFoldersSkipped() const { return m_foldersSkipped; }
622 inline void SetFoldersSkipped(long long value) {
623 m_foldersSkippedHasBeenSet = true;
624 m_foldersSkipped = value;
625 }
627 SetFoldersSkipped(value);
628 return *this;
629 }
631
633
644 inline long long GetFoldersPrepared() const { return m_foldersPrepared; }
645 inline void SetFoldersPrepared(long long value) {
646 m_foldersPreparedHasBeenSet = true;
647 m_foldersPrepared = value;
648 }
650 SetFoldersPrepared(value);
651 return *this;
652 }
654
656
667 inline long long GetFoldersTransferred() const { return m_foldersTransferred; }
668 inline void SetFoldersTransferred(long long value) {
669 m_foldersTransferredHasBeenSet = true;
670 m_foldersTransferred = value;
671 }
674 return *this;
675 }
677
679
685 inline long long GetFoldersVerified() const { return m_foldersVerified; }
686 inline void SetFoldersVerified(long long value) {
687 m_foldersVerifiedHasBeenSet = true;
688 m_foldersVerified = value;
689 }
691 SetFoldersVerified(value);
692 return *this;
693 }
695
697
706 inline long long GetFoldersDeleted() const { return m_foldersDeleted; }
707 inline void SetFoldersDeleted(long long value) {
708 m_foldersDeletedHasBeenSet = true;
709 m_foldersDeleted = value;
710 }
712 SetFoldersDeleted(value);
713 return *this;
714 }
716
718
724 inline const TaskExecutionFoldersListedDetail& GetFoldersListed() const { return m_foldersListed; }
725 template <typename FoldersListedT = TaskExecutionFoldersListedDetail>
726 void SetFoldersListed(FoldersListedT&& value) {
727 m_foldersListedHasBeenSet = true;
728 m_foldersListed = std::forward<FoldersListedT>(value);
729 }
730 template <typename FoldersListedT = TaskExecutionFoldersListedDetail>
732 SetFoldersListed(std::forward<FoldersListedT>(value));
733 return *this;
734 }
736
738
744 inline const TaskExecutionFoldersFailedDetail& GetFoldersFailed() const { return m_foldersFailed; }
745 template <typename FoldersFailedT = TaskExecutionFoldersFailedDetail>
746 void SetFoldersFailed(FoldersFailedT&& value) {
747 m_foldersFailedHasBeenSet = true;
748 m_foldersFailed = std::forward<FoldersFailedT>(value);
749 }
750 template <typename FoldersFailedT = TaskExecutionFoldersFailedDetail>
752 SetFoldersFailed(std::forward<FoldersFailedT>(value));
753 return *this;
754 }
756
758
765 inline const Aws::Utils::DateTime& GetLaunchTime() const { return m_launchTime; }
766 template <typename LaunchTimeT = Aws::Utils::DateTime>
767 void SetLaunchTime(LaunchTimeT&& value) {
768 m_launchTimeHasBeenSet = true;
769 m_launchTime = std::forward<LaunchTimeT>(value);
770 }
771 template <typename LaunchTimeT = Aws::Utils::DateTime>
773 SetLaunchTime(std::forward<LaunchTimeT>(value));
774 return *this;
775 }
777
779
782 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
783 template <typename EndTimeT = Aws::Utils::DateTime>
784 void SetEndTime(EndTimeT&& value) {
785 m_endTimeHasBeenSet = true;
786 m_endTime = std::forward<EndTimeT>(value);
787 }
788 template <typename EndTimeT = Aws::Utils::DateTime>
790 SetEndTime(std::forward<EndTimeT>(value));
791 return *this;
792 }
794
796
797 inline const Aws::String& GetRequestId() const { return m_requestId; }
798 template <typename RequestIdT = Aws::String>
799 void SetRequestId(RequestIdT&& value) {
800 m_requestIdHasBeenSet = true;
801 m_requestId = std::forward<RequestIdT>(value);
802 }
803 template <typename RequestIdT = Aws::String>
805 SetRequestId(std::forward<RequestIdT>(value));
806 return *this;
807 }
809 private:
810 Aws::String m_taskExecutionArn;
811
813
814 Options m_options;
815
816 Aws::Vector<FilterRule> m_excludes;
817
818 Aws::Vector<FilterRule> m_includes;
819
820 ManifestConfig m_manifestConfig;
821
822 Aws::Utils::DateTime m_startTime{};
823
824 long long m_estimatedFilesToTransfer{0};
825
826 long long m_estimatedBytesToTransfer{0};
827
828 long long m_filesTransferred{0};
829
830 long long m_bytesWritten{0};
831
832 long long m_bytesTransferred{0};
833
834 long long m_bytesCompressed{0};
835
836 TaskExecutionResultDetail m_result;
837
838 TaskReportConfig m_taskReportConfig;
839
840 long long m_filesDeleted{0};
841
842 long long m_filesSkipped{0};
843
844 long long m_filesVerified{0};
845
846 ReportResult m_reportResult;
847
848 long long m_estimatedFilesToDelete{0};
849
850 TaskMode m_taskMode{TaskMode::NOT_SET};
851
852 long long m_filesPrepared{0};
853
854 TaskExecutionFilesListedDetail m_filesListed;
855
856 TaskExecutionFilesFailedDetail m_filesFailed;
857
858 long long m_estimatedFoldersToDelete{0};
859
860 long long m_estimatedFoldersToTransfer{0};
861
862 long long m_foldersSkipped{0};
863
864 long long m_foldersPrepared{0};
865
866 long long m_foldersTransferred{0};
867
868 long long m_foldersVerified{0};
869
870 long long m_foldersDeleted{0};
871
872 TaskExecutionFoldersListedDetail m_foldersListed;
873
874 TaskExecutionFoldersFailedDetail m_foldersFailed;
875
876 Aws::Utils::DateTime m_launchTime{};
877
878 Aws::Utils::DateTime m_endTime{};
879
880 Aws::String m_requestId;
881 bool m_taskExecutionArnHasBeenSet = false;
882 bool m_statusHasBeenSet = false;
883 bool m_optionsHasBeenSet = false;
884 bool m_excludesHasBeenSet = false;
885 bool m_includesHasBeenSet = false;
886 bool m_manifestConfigHasBeenSet = false;
887 bool m_startTimeHasBeenSet = false;
888 bool m_estimatedFilesToTransferHasBeenSet = false;
889 bool m_estimatedBytesToTransferHasBeenSet = false;
890 bool m_filesTransferredHasBeenSet = false;
891 bool m_bytesWrittenHasBeenSet = false;
892 bool m_bytesTransferredHasBeenSet = false;
893 bool m_bytesCompressedHasBeenSet = false;
894 bool m_resultHasBeenSet = false;
895 bool m_taskReportConfigHasBeenSet = false;
896 bool m_filesDeletedHasBeenSet = false;
897 bool m_filesSkippedHasBeenSet = false;
898 bool m_filesVerifiedHasBeenSet = false;
899 bool m_reportResultHasBeenSet = false;
900 bool m_estimatedFilesToDeleteHasBeenSet = false;
901 bool m_taskModeHasBeenSet = false;
902 bool m_filesPreparedHasBeenSet = false;
903 bool m_filesListedHasBeenSet = false;
904 bool m_filesFailedHasBeenSet = false;
905 bool m_estimatedFoldersToDeleteHasBeenSet = false;
906 bool m_estimatedFoldersToTransferHasBeenSet = false;
907 bool m_foldersSkippedHasBeenSet = false;
908 bool m_foldersPreparedHasBeenSet = false;
909 bool m_foldersTransferredHasBeenSet = false;
910 bool m_foldersVerifiedHasBeenSet = false;
911 bool m_foldersDeletedHasBeenSet = false;
912 bool m_foldersListedHasBeenSet = false;
913 bool m_foldersFailedHasBeenSet = false;
914 bool m_launchTimeHasBeenSet = false;
915 bool m_endTimeHasBeenSet = false;
916 bool m_requestIdHasBeenSet = false;
917};
918
919} // namespace Model
920} // namespace DataSync
921} // namespace Aws
DescribeTaskExecutionResult & WithTaskMode(TaskMode value)
DescribeTaskExecutionResult & WithFoldersSkipped(long long value)
DescribeTaskExecutionResult & WithFilesPrepared(long long value)
DescribeTaskExecutionResult & WithStartTime(StartTimeT &&value)
DescribeTaskExecutionResult & WithRequestId(RequestIdT &&value)
DescribeTaskExecutionResult & WithFoldersDeleted(long long value)
DescribeTaskExecutionResult & WithFoldersPrepared(long long value)
DescribeTaskExecutionResult & WithStatus(TaskExecutionStatus value)
DescribeTaskExecutionResult & WithFilesDeleted(long long value)
DescribeTaskExecutionResult & WithFilesTransferred(long long value)
DescribeTaskExecutionResult & WithBytesWritten(long long value)
DescribeTaskExecutionResult & WithEstimatedFilesToTransfer(long long value)
DescribeTaskExecutionResult & WithFoldersListed(FoldersListedT &&value)
DescribeTaskExecutionResult & WithIncludes(IncludesT &&value)
DescribeTaskExecutionResult & WithEstimatedFoldersToDelete(long long value)
DescribeTaskExecutionResult & WithFilesListed(FilesListedT &&value)
AWS_DATASYNC_API DescribeTaskExecutionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTaskExecutionResult & WithOptions(OptionsT &&value)
DescribeTaskExecutionResult & WithEstimatedBytesToTransfer(long long value)
DescribeTaskExecutionResult & AddIncludes(IncludesT &&value)
DescribeTaskExecutionResult & WithFoldersTransferred(long long value)
const TaskExecutionFilesFailedDetail & GetFilesFailed() const
const TaskExecutionFoldersFailedDetail & GetFoldersFailed() const
const TaskExecutionFilesListedDetail & GetFilesListed() const
const TaskExecutionFoldersListedDetail & GetFoldersListed() const
DescribeTaskExecutionResult & WithEndTime(EndTimeT &&value)
const TaskExecutionResultDetail & GetResult() const
DescribeTaskExecutionResult & WithResult(ResultT &&value)
DescribeTaskExecutionResult & WithTaskReportConfig(TaskReportConfigT &&value)
DescribeTaskExecutionResult & WithFilesSkipped(long long value)
DescribeTaskExecutionResult & WithTaskExecutionArn(TaskExecutionArnT &&value)
DescribeTaskExecutionResult & WithEstimatedFilesToDelete(long long value)
DescribeTaskExecutionResult & AddExcludes(ExcludesT &&value)
DescribeTaskExecutionResult & WithManifestConfig(ManifestConfigT &&value)
DescribeTaskExecutionResult & WithEstimatedFoldersToTransfer(long long value)
DescribeTaskExecutionResult & WithReportResult(ReportResultT &&value)
DescribeTaskExecutionResult & WithLaunchTime(LaunchTimeT &&value)
DescribeTaskExecutionResult & WithFilesVerified(long long value)
const Aws::Vector< FilterRule > & GetIncludes() const
AWS_DATASYNC_API DescribeTaskExecutionResult()=default
DescribeTaskExecutionResult & WithFoldersVerified(long long value)
const Aws::Vector< FilterRule > & GetExcludes() const
DescribeTaskExecutionResult & WithBytesCompressed(long long value)
DescribeTaskExecutionResult & WithFilesFailed(FilesFailedT &&value)
DescribeTaskExecutionResult & WithBytesTransferred(long long value)
AWS_DATASYNC_API DescribeTaskExecutionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTaskExecutionResult & WithFoldersFailed(FoldersFailedT &&value)
DescribeTaskExecutionResult & WithExcludes(ExcludesT &&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