AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
DescribeTaskExecutionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datasync/DataSync_EXPORTS.h>
12#include <aws/datasync/model/FilterRule.h>
13#include <aws/datasync/model/ManifestConfig.h>
14#include <aws/datasync/model/Options.h>
15#include <aws/datasync/model/ReportResult.h>
16#include <aws/datasync/model/TaskExecutionFilesFailedDetail.h>
17#include <aws/datasync/model/TaskExecutionFilesListedDetail.h>
18#include <aws/datasync/model/TaskExecutionFoldersFailedDetail.h>
19#include <aws/datasync/model/TaskExecutionFoldersListedDetail.h>
20#include <aws/datasync/model/TaskExecutionResultDetail.h>
21#include <aws/datasync/model/TaskExecutionStatus.h>
22#include <aws/datasync/model/TaskMode.h>
23#include <aws/datasync/model/TaskReportConfig.h>
24
25#include <utility>
26
27namespace Aws {
28template <typename RESULT_TYPE>
29class AmazonWebServiceResult;
30
31namespace Utils {
32namespace Json {
33class JsonValue;
34} // namespace Json
35} // namespace Utils
36namespace DataSync {
37namespace Model {
44 public:
45 AWS_DATASYNC_API DescribeTaskExecutionResult() = default;
48
50
60 inline const Aws::String& GetTaskExecutionArn() const { return m_taskExecutionArn; }
61 template <typename TaskExecutionArnT = Aws::String>
62 void SetTaskExecutionArn(TaskExecutionArnT&& value) {
63 m_taskExecutionArnHasBeenSet = true;
64 m_taskExecutionArn = std::forward<TaskExecutionArnT>(value);
65 }
66 template <typename TaskExecutionArnT = Aws::String>
68 SetTaskExecutionArn(std::forward<TaskExecutionArnT>(value));
69 return *this;
70 }
72
74
77 inline TaskExecutionStatus GetStatus() const { return m_status; }
78 inline void SetStatus(TaskExecutionStatus value) {
79 m_statusHasBeenSet = true;
80 m_status = value;
81 }
83 SetStatus(value);
84 return *this;
85 }
87
89
90 inline const Options& GetOptions() const { return m_options; }
91 template <typename OptionsT = Options>
92 void SetOptions(OptionsT&& value) {
93 m_optionsHasBeenSet = true;
94 m_options = std::forward<OptionsT>(value);
95 }
96 template <typename OptionsT = Options>
98 SetOptions(std::forward<OptionsT>(value));
99 return *this;
100 }
102
104
110 inline const Aws::Vector<FilterRule>& GetExcludes() const { return m_excludes; }
111 template <typename ExcludesT = Aws::Vector<FilterRule>>
112 void SetExcludes(ExcludesT&& value) {
113 m_excludesHasBeenSet = true;
114 m_excludes = std::forward<ExcludesT>(value);
115 }
116 template <typename ExcludesT = Aws::Vector<FilterRule>>
118 SetExcludes(std::forward<ExcludesT>(value));
119 return *this;
120 }
121 template <typename ExcludesT = FilterRule>
123 m_excludesHasBeenSet = true;
124 m_excludes.emplace_back(std::forward<ExcludesT>(value));
125 return *this;
126 }
128
130
136 inline const Aws::Vector<FilterRule>& GetIncludes() const { return m_includes; }
137 template <typename IncludesT = Aws::Vector<FilterRule>>
138 void SetIncludes(IncludesT&& value) {
139 m_includesHasBeenSet = true;
140 m_includes = std::forward<IncludesT>(value);
141 }
142 template <typename IncludesT = Aws::Vector<FilterRule>>
144 SetIncludes(std::forward<IncludesT>(value));
145 return *this;
146 }
147 template <typename IncludesT = FilterRule>
149 m_includesHasBeenSet = true;
150 m_includes.emplace_back(std::forward<IncludesT>(value));
151 return *this;
152 }
154
156
162 inline const ManifestConfig& GetManifestConfig() const { return m_manifestConfig; }
163 template <typename ManifestConfigT = ManifestConfig>
164 void SetManifestConfig(ManifestConfigT&& value) {
165 m_manifestConfigHasBeenSet = true;
166 m_manifestConfig = std::forward<ManifestConfigT>(value);
167 }
168 template <typename ManifestConfigT = ManifestConfig>
170 SetManifestConfig(std::forward<ManifestConfigT>(value));
171 return *this;
172 }
174
176
183 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
184 template <typename StartTimeT = Aws::Utils::DateTime>
185 void SetStartTime(StartTimeT&& value) {
186 m_startTimeHasBeenSet = true;
187 m_startTime = std::forward<StartTimeT>(value);
188 }
189 template <typename StartTimeT = Aws::Utils::DateTime>
191 SetStartTime(std::forward<StartTimeT>(value));
192 return *this;
193 }
195
197
224 inline long long GetEstimatedFilesToTransfer() const { return m_estimatedFilesToTransfer; }
225 inline void SetEstimatedFilesToTransfer(long long value) {
226 m_estimatedFilesToTransferHasBeenSet = true;
227 m_estimatedFilesToTransfer = value;
228 }
231 return *this;
232 }
234
236
240 inline long long GetEstimatedBytesToTransfer() const { return m_estimatedBytesToTransfer; }
241 inline void SetEstimatedBytesToTransfer(long long value) {
242 m_estimatedBytesToTransferHasBeenSet = true;
243 m_estimatedBytesToTransfer = value;
244 }
247 return *this;
248 }
250
252
268 inline long long GetFilesTransferred() const { return m_filesTransferred; }
269 inline void SetFilesTransferred(long long value) {
270 m_filesTransferredHasBeenSet = true;
271 m_filesTransferred = value;
272 }
274 SetFilesTransferred(value);
275 return *this;
276 }
278
280
284 inline long long GetBytesWritten() const { return m_bytesWritten; }
285 inline void SetBytesWritten(long long value) {
286 m_bytesWrittenHasBeenSet = true;
287 m_bytesWritten = value;
288 }
290 SetBytesWritten(value);
291 return *this;
292 }
294
296
303 inline long long GetBytesTransferred() const { return m_bytesTransferred; }
304 inline void SetBytesTransferred(long long value) {
305 m_bytesTransferredHasBeenSet = true;
306 m_bytesTransferred = value;
307 }
309 SetBytesTransferred(value);
310 return *this;
311 }
313
315
321 inline long long GetBytesCompressed() const { return m_bytesCompressed; }
322 inline void SetBytesCompressed(long long value) {
323 m_bytesCompressedHasBeenSet = true;
324 m_bytesCompressed = value;
325 }
327 SetBytesCompressed(value);
328 return *this;
329 }
331
333
336 inline const TaskExecutionResultDetail& GetResult() const { return m_result; }
337 template <typename ResultT = TaskExecutionResultDetail>
338 void SetResult(ResultT&& value) {
339 m_resultHasBeenSet = true;
340 m_result = std::forward<ResultT>(value);
341 }
342 template <typename ResultT = TaskExecutionResultDetail>
344 SetResult(std::forward<ResultT>(value));
345 return *this;
346 }
348
350
356 inline const TaskReportConfig& GetTaskReportConfig() const { return m_taskReportConfig; }
357 template <typename TaskReportConfigT = TaskReportConfig>
358 void SetTaskReportConfig(TaskReportConfigT&& value) {
359 m_taskReportConfigHasBeenSet = true;
360 m_taskReportConfig = std::forward<TaskReportConfigT>(value);
361 }
362 template <typename TaskReportConfigT = TaskReportConfig>
364 SetTaskReportConfig(std::forward<TaskReportConfigT>(value));
365 return *this;
366 }
368
370
382 inline long long GetFilesDeleted() const { return m_filesDeleted; }
383 inline void SetFilesDeleted(long long value) {
384 m_filesDeletedHasBeenSet = true;
385 m_filesDeleted = value;
386 }
388 SetFilesDeleted(value);
389 return *this;
390 }
392
394
403 inline long long GetFilesSkipped() const { return m_filesSkipped; }
404 inline void SetFilesSkipped(long long value) {
405 m_filesSkippedHasBeenSet = true;
406 m_filesSkipped = value;
407 }
409 SetFilesSkipped(value);
410 return *this;
411 }
413
415
427 inline long long GetFilesVerified() const { return m_filesVerified; }
428 inline void SetFilesVerified(long long value) {
429 m_filesVerifiedHasBeenSet = true;
430 m_filesVerified = value;
431 }
433 SetFilesVerified(value);
434 return *this;
435 }
437
439
444 inline const ReportResult& GetReportResult() const { return m_reportResult; }
445 template <typename ReportResultT = ReportResult>
446 void SetReportResult(ReportResultT&& value) {
447 m_reportResultHasBeenSet = true;
448 m_reportResult = std::forward<ReportResultT>(value);
449 }
450 template <typename ReportResultT = ReportResult>
452 SetReportResult(std::forward<ReportResultT>(value));
453 return *this;
454 }
456
458
470 inline long long GetEstimatedFilesToDelete() const { return m_estimatedFilesToDelete; }
471 inline void SetEstimatedFilesToDelete(long long value) {
472 m_estimatedFilesToDeleteHasBeenSet = true;
473 m_estimatedFilesToDelete = value;
474 }
477 return *this;
478 }
480
482
487 inline TaskMode GetTaskMode() const { return m_taskMode; }
488 inline void SetTaskMode(TaskMode value) {
489 m_taskModeHasBeenSet = true;
490 m_taskMode = value;
491 }
493 SetTaskMode(value);
494 return *this;
495 }
497
499
510 inline long long GetFilesPrepared() const { return m_filesPrepared; }
511 inline void SetFilesPrepared(long long value) {
512 m_filesPreparedHasBeenSet = true;
513 m_filesPrepared = value;
514 }
516 SetFilesPrepared(value);
517 return *this;
518 }
520
522
528 inline const TaskExecutionFilesListedDetail& GetFilesListed() const { return m_filesListed; }
529 template <typename FilesListedT = TaskExecutionFilesListedDetail>
530 void SetFilesListed(FilesListedT&& value) {
531 m_filesListedHasBeenSet = true;
532 m_filesListed = std::forward<FilesListedT>(value);
533 }
534 template <typename FilesListedT = TaskExecutionFilesListedDetail>
536 SetFilesListed(std::forward<FilesListedT>(value));
537 return *this;
538 }
540
542
548 inline const TaskExecutionFilesFailedDetail& GetFilesFailed() const { return m_filesFailed; }
549 template <typename FilesFailedT = TaskExecutionFilesFailedDetail>
550 void SetFilesFailed(FilesFailedT&& value) {
551 m_filesFailedHasBeenSet = true;
552 m_filesFailed = std::forward<FilesFailedT>(value);
553 }
554 template <typename FilesFailedT = TaskExecutionFilesFailedDetail>
556 SetFilesFailed(std::forward<FilesFailedT>(value));
557 return *this;
558 }
560
562
571 inline long long GetEstimatedFoldersToDelete() const { return m_estimatedFoldersToDelete; }
572 inline void SetEstimatedFoldersToDelete(long long value) {
573 m_estimatedFoldersToDeleteHasBeenSet = true;
574 m_estimatedFoldersToDelete = value;
575 }
578 return *this;
579 }
581
583
604 inline long long GetEstimatedFoldersToTransfer() const { return m_estimatedFoldersToTransfer; }
605 inline void SetEstimatedFoldersToTransfer(long long value) {
606 m_estimatedFoldersToTransferHasBeenSet = true;
607 m_estimatedFoldersToTransfer = value;
608 }
611 return *this;
612 }
614
616
622 inline long long GetFoldersSkipped() const { return m_foldersSkipped; }
623 inline void SetFoldersSkipped(long long value) {
624 m_foldersSkippedHasBeenSet = true;
625 m_foldersSkipped = value;
626 }
628 SetFoldersSkipped(value);
629 return *this;
630 }
632
634
645 inline long long GetFoldersPrepared() const { return m_foldersPrepared; }
646 inline void SetFoldersPrepared(long long value) {
647 m_foldersPreparedHasBeenSet = true;
648 m_foldersPrepared = value;
649 }
651 SetFoldersPrepared(value);
652 return *this;
653 }
655
657
668 inline long long GetFoldersTransferred() const { return m_foldersTransferred; }
669 inline void SetFoldersTransferred(long long value) {
670 m_foldersTransferredHasBeenSet = true;
671 m_foldersTransferred = value;
672 }
675 return *this;
676 }
678
680
686 inline long long GetFoldersVerified() const { return m_foldersVerified; }
687 inline void SetFoldersVerified(long long value) {
688 m_foldersVerifiedHasBeenSet = true;
689 m_foldersVerified = value;
690 }
692 SetFoldersVerified(value);
693 return *this;
694 }
696
698
707 inline long long GetFoldersDeleted() const { return m_foldersDeleted; }
708 inline void SetFoldersDeleted(long long value) {
709 m_foldersDeletedHasBeenSet = true;
710 m_foldersDeleted = value;
711 }
713 SetFoldersDeleted(value);
714 return *this;
715 }
717
719
725 inline const TaskExecutionFoldersListedDetail& GetFoldersListed() const { return m_foldersListed; }
726 template <typename FoldersListedT = TaskExecutionFoldersListedDetail>
727 void SetFoldersListed(FoldersListedT&& value) {
728 m_foldersListedHasBeenSet = true;
729 m_foldersListed = std::forward<FoldersListedT>(value);
730 }
731 template <typename FoldersListedT = TaskExecutionFoldersListedDetail>
733 SetFoldersListed(std::forward<FoldersListedT>(value));
734 return *this;
735 }
737
739
745 inline const TaskExecutionFoldersFailedDetail& GetFoldersFailed() const { return m_foldersFailed; }
746 template <typename FoldersFailedT = TaskExecutionFoldersFailedDetail>
747 void SetFoldersFailed(FoldersFailedT&& value) {
748 m_foldersFailedHasBeenSet = true;
749 m_foldersFailed = std::forward<FoldersFailedT>(value);
750 }
751 template <typename FoldersFailedT = TaskExecutionFoldersFailedDetail>
753 SetFoldersFailed(std::forward<FoldersFailedT>(value));
754 return *this;
755 }
757
759
766 inline const Aws::Utils::DateTime& GetLaunchTime() const { return m_launchTime; }
767 template <typename LaunchTimeT = Aws::Utils::DateTime>
768 void SetLaunchTime(LaunchTimeT&& value) {
769 m_launchTimeHasBeenSet = true;
770 m_launchTime = std::forward<LaunchTimeT>(value);
771 }
772 template <typename LaunchTimeT = Aws::Utils::DateTime>
774 SetLaunchTime(std::forward<LaunchTimeT>(value));
775 return *this;
776 }
778
780
783 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
784 template <typename EndTimeT = Aws::Utils::DateTime>
785 void SetEndTime(EndTimeT&& value) {
786 m_endTimeHasBeenSet = true;
787 m_endTime = std::forward<EndTimeT>(value);
788 }
789 template <typename EndTimeT = Aws::Utils::DateTime>
791 SetEndTime(std::forward<EndTimeT>(value));
792 return *this;
793 }
795
797
798 inline const Aws::String& GetRequestId() const { return m_requestId; }
799 template <typename RequestIdT = Aws::String>
800 void SetRequestId(RequestIdT&& value) {
801 m_requestIdHasBeenSet = true;
802 m_requestId = std::forward<RequestIdT>(value);
803 }
804 template <typename RequestIdT = Aws::String>
806 SetRequestId(std::forward<RequestIdT>(value));
807 return *this;
808 }
810 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
811
812 private:
813 Aws::String m_taskExecutionArn;
814
816
817 Options m_options;
818
819 Aws::Vector<FilterRule> m_excludes;
820
821 Aws::Vector<FilterRule> m_includes;
822
823 ManifestConfig m_manifestConfig;
824
825 Aws::Utils::DateTime m_startTime{};
826
827 long long m_estimatedFilesToTransfer{0};
828
829 long long m_estimatedBytesToTransfer{0};
830
831 long long m_filesTransferred{0};
832
833 long long m_bytesWritten{0};
834
835 long long m_bytesTransferred{0};
836
837 long long m_bytesCompressed{0};
838
839 TaskExecutionResultDetail m_result;
840
841 TaskReportConfig m_taskReportConfig;
842
843 long long m_filesDeleted{0};
844
845 long long m_filesSkipped{0};
846
847 long long m_filesVerified{0};
848
849 ReportResult m_reportResult;
850
851 long long m_estimatedFilesToDelete{0};
852
853 TaskMode m_taskMode{TaskMode::NOT_SET};
854
855 long long m_filesPrepared{0};
856
857 TaskExecutionFilesListedDetail m_filesListed;
858
859 TaskExecutionFilesFailedDetail m_filesFailed;
860
861 long long m_estimatedFoldersToDelete{0};
862
863 long long m_estimatedFoldersToTransfer{0};
864
865 long long m_foldersSkipped{0};
866
867 long long m_foldersPrepared{0};
868
869 long long m_foldersTransferred{0};
870
871 long long m_foldersVerified{0};
872
873 long long m_foldersDeleted{0};
874
875 TaskExecutionFoldersListedDetail m_foldersListed;
876
877 TaskExecutionFoldersFailedDetail m_foldersFailed;
878
879 Aws::Utils::DateTime m_launchTime{};
880
881 Aws::Utils::DateTime m_endTime{};
882
883 Aws::String m_requestId;
884 Aws::Http::HttpResponseCode m_HttpResponseCode;
885 bool m_taskExecutionArnHasBeenSet = false;
886 bool m_statusHasBeenSet = false;
887 bool m_optionsHasBeenSet = false;
888 bool m_excludesHasBeenSet = false;
889 bool m_includesHasBeenSet = false;
890 bool m_manifestConfigHasBeenSet = false;
891 bool m_startTimeHasBeenSet = false;
892 bool m_estimatedFilesToTransferHasBeenSet = false;
893 bool m_estimatedBytesToTransferHasBeenSet = false;
894 bool m_filesTransferredHasBeenSet = false;
895 bool m_bytesWrittenHasBeenSet = false;
896 bool m_bytesTransferredHasBeenSet = false;
897 bool m_bytesCompressedHasBeenSet = false;
898 bool m_resultHasBeenSet = false;
899 bool m_taskReportConfigHasBeenSet = false;
900 bool m_filesDeletedHasBeenSet = false;
901 bool m_filesSkippedHasBeenSet = false;
902 bool m_filesVerifiedHasBeenSet = false;
903 bool m_reportResultHasBeenSet = false;
904 bool m_estimatedFilesToDeleteHasBeenSet = false;
905 bool m_taskModeHasBeenSet = false;
906 bool m_filesPreparedHasBeenSet = false;
907 bool m_filesListedHasBeenSet = false;
908 bool m_filesFailedHasBeenSet = false;
909 bool m_estimatedFoldersToDeleteHasBeenSet = false;
910 bool m_estimatedFoldersToTransferHasBeenSet = false;
911 bool m_foldersSkippedHasBeenSet = false;
912 bool m_foldersPreparedHasBeenSet = false;
913 bool m_foldersTransferredHasBeenSet = false;
914 bool m_foldersVerifiedHasBeenSet = false;
915 bool m_foldersDeletedHasBeenSet = false;
916 bool m_foldersListedHasBeenSet = false;
917 bool m_foldersFailedHasBeenSet = false;
918 bool m_launchTimeHasBeenSet = false;
919 bool m_endTimeHasBeenSet = false;
920 bool m_requestIdHasBeenSet = false;
921};
922
923} // namespace Model
924} // namespace DataSync
925} // 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