1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>DescribeTaskExecutionResponse</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeTaskExecutionOutput {
/// <p>The ARN of the task execution that you wanted information about. <code>TaskExecutionArn</code> is hierarchical and includes <code>TaskArn</code> for the task that was executed.</p>
/// <p>For example, a <code>TaskExecution</code> value with the ARN <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b</code> executed the task with the ARN <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2</code>.</p>
pub task_execution_arn: ::std::option::Option<::std::string::String>,
/// <p>The status of the task execution.</p>
pub status: ::std::option::Option<crate::types::TaskExecutionStatus>,
/// <p>Indicates how your transfer task is configured. These options include how DataSync handles files, objects, and their associated metadata during your transfer. You also can specify how to verify data integrity, set bandwidth limits for your task, among other options.</p>
/// <p>Each option has a default value. Unless you need to, you don't have to configure any option before calling <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_StartTaskExecution.html">StartTaskExecution</a>.</p>
/// <p>You also can override your task options for each task execution. For example, you might want to adjust the <code>LogLevel</code> for an individual execution.</p>
pub options: ::std::option::Option<crate::types::Options>,
/// <p>A list of filter rules that exclude specific data during your transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Filtering data transferred by DataSync</a>.</p>
pub excludes: ::std::option::Option<::std::vec::Vec<crate::types::FilterRule>>,
/// <p>A list of filter rules that include specific data during your transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Filtering data transferred by DataSync</a>.</p>
pub includes: ::std::option::Option<::std::vec::Vec<crate::types::FilterRule>>,
/// <p>The configuration of the manifest that lists the files or objects to transfer. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html">Specifying what DataSync transfers by using a manifest</a>.</p>
pub manifest_config: ::std::option::Option<crate::types::ManifestConfig>,
/// <p>The time that DataSync sends the request to start the task execution. For non-queued tasks, <code>LaunchTime</code> and <code>StartTime</code> are typically the same. For queued tasks, <code>LaunchTime</code> is typically later than <code>StartTime</code> because previously queued tasks must finish running before newer tasks can begin.</p>
pub start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The number of files, objects, and directories that DataSync expects to transfer over the network. This value is calculated while DataSync <a href="https://docs.aws.amazon.com/datasync/latest/userguide/run-task.html#understand-task-execution-statuses">prepares</a> the transfer.</p>
/// <p>How this gets calculated depends primarily on your task’s <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-TransferMode">transfer mode</a> configuration:</p>
/// <ul>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>CHANGED</code> - The calculation is based on comparing the content of the source and destination locations and determining the difference that needs to be transferred. The difference can include:</p>
/// <ul>
/// <li>
/// <p>Anything that's added or modified at the source location.</p></li>
/// <li>
/// <p>Anything that's in both locations and modified at the destination after an initial transfer (unless <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-OverwriteMode">OverwriteMode</a> is set to <code>NEVER</code>).</p></li>
/// <li>
/// <p><b>(Basic task mode only)</b> The number of items that DataSync expects to delete (if <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-PreserveDeletedFiles">PreserveDeletedFiles</a> is set to <code>REMOVE</code>).</p></li>
/// </ul></li>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>ALL</code> - The calculation is based only on the items that DataSync finds at the source location.</p></li>
/// </ul><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-EstimatedFoldersToTransfer">EstimatedFoldersToTransfer</a>.</p>
/// </note>
pub estimated_files_to_transfer: i64,
/// <p>The number of logical bytes that DataSync expects to write to the destination location.</p>
pub estimated_bytes_to_transfer: i64,
/// <p>The number of files, objects, and directories that DataSync actually transfers over the network. This value is updated periodically during your task execution when something is read from the source and sent over the network.</p>
/// <p>If DataSync fails to transfer something, this value can be less than <code>EstimatedFilesToTransfer</code>. In some cases, this value can also be greater than <code>EstimatedFilesToTransfer</code>. This element is implementation-specific for some location types, so don't use it as an exact indication of what's transferring or to monitor your task execution.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersTransferred">FoldersTransferred</a>.</p>
/// </note>
pub files_transferred: i64,
/// <p>The number of logical bytes that DataSync actually writes to the destination location.</p>
pub bytes_written: i64,
/// <p>The number of bytes that DataSync sends to the network before compression (if compression is possible). For the number of bytes transferred over the network, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-BytesCompressed">BytesCompressed</a>.</p>
pub bytes_transferred: i64,
/// <p>The number of physical bytes that DataSync transfers over the network after compression (if compression is possible). This number is typically less than <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-BytesTransferred">BytesTransferred</a> unless the data isn't compressible.</p>
pub bytes_compressed: i64,
/// <p>The result of the task execution.</p>
pub result: ::std::option::Option<crate::types::TaskExecutionResultDetail>,
/// <p>The configuration of your task report, which provides detailed information about for your DataSync transfer. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html">Creating a task report</a>.</p>
pub task_report_config: ::std::option::Option<crate::types::TaskReportConfig>,
/// <p>The number of files, objects, and directories that DataSync actually deletes in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersDeleted">FoldersDeleted</a>.</p>
/// </note>
pub files_deleted: i64,
/// <p>The number of files, objects, and directories that DataSync skips during your transfer.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersSkipped">FoldersSkipped</a>.</p>
/// </note>
pub files_skipped: i64,
/// <p>The number of files, objects, and directories that DataSync verifies during your transfer.</p><note>
/// <p>When you configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-data-verification-options.html">verify only the data that's transferred</a>, DataSync doesn't verify directories in some situations or files that fail to transfer.</p>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersVerified">FoldersVerified</a>.</p>
/// </note>
pub files_verified: i64,
/// <p>Indicates whether DataSync generated a complete <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html">task report</a> for your transfer.</p>
pub report_result: ::std::option::Option<crate::types::ReportResult>,
/// <p>The number of files, objects, and directories that DataSync expects to delete in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-EstimatedFoldersToDelete">EstimatedFoldersToDelete</a>.</p>
/// </note>
pub estimated_files_to_delete: i64,
/// <p>The task mode that you're using. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Choosing a task mode for your data transfer</a>.</p>
pub task_mode: ::std::option::Option<crate::types::TaskMode>,
/// <p>The number of files or objects that DataSync will attempt to transfer after comparing your source and destination locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
/// <p>This counter isn't applicable if you configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html#task-option-transfer-mode">transfer all data</a>. In that scenario, DataSync copies everything from the source to the destination without comparing differences between the locations.</p>
pub files_prepared: i64,
/// <p>The number of files or objects that DataSync finds at your locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub files_listed: ::std::option::Option<crate::types::TaskExecutionFilesListedDetail>,
/// <p>The number of files or objects that DataSync fails to prepare, transfer, verify, and delete during your task execution.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub files_failed: ::std::option::Option<crate::types::TaskExecutionFilesFailedDetail>,
/// <p>The number of directories that DataSync expects to delete in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub estimated_folders_to_delete: ::std::option::Option<i64>,
/// <p>The number of directories that DataSync expects to transfer over the network. This value is calculated as DataSync <a href="https://docs.aws.amazon.com/datasync/latest/userguide/run-task.html#understand-task-execution-statuses">prepares</a> directories to transfer.</p>
/// <p>How this gets calculated depends primarily on your task’s <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-TransferMode">transfer mode</a> configuration:</p>
/// <ul>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>CHANGED</code> - The calculation is based on comparing the content of the source and destination locations and determining the difference that needs to be transferred. The difference can include:</p>
/// <ul>
/// <li>
/// <p>Anything that's added or modified at the source location.</p></li>
/// <li>
/// <p>Anything that's in both locations and modified at the destination after an initial transfer (unless <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-OverwriteMode">OverwriteMode</a> is set to <code>NEVER</code>).</p></li>
/// </ul></li>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>ALL</code> - The calculation is based only on the items that DataSync finds at the source location.</p></li>
/// </ul><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub estimated_folders_to_transfer: ::std::option::Option<i64>,
/// <p>The number of directories that DataSync skips during your transfer.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub folders_skipped: ::std::option::Option<i64>,
/// <p>The number of directories that DataSync will attempt to transfer after comparing your source and destination locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
/// <p>This counter isn't applicable if you configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html#task-option-transfer-mode">transfer all data</a>. In that scenario, DataSync copies everything from the source to the destination without comparing differences between the locations.</p>
pub folders_prepared: ::std::option::Option<i64>,
/// <p>The number of directories that DataSync actually transfers over the network. This value is updated periodically during your task execution when something is read from the source and sent over the network.</p>
/// <p>If DataSync fails to transfer something, this value can be less than <code>EstimatedFoldersToTransfer</code>. In some cases, this value can also be greater than <code>EstimatedFoldersToTransfer</code>.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub folders_transferred: ::std::option::Option<i64>,
/// <p>The number of directories that DataSync verifies during your transfer.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub folders_verified: ::std::option::Option<i64>,
/// <p>The number of directories that DataSync actually deletes in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub folders_deleted: ::std::option::Option<i64>,
/// <p>The number of directories that DataSync finds at your locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub folders_listed: ::std::option::Option<crate::types::TaskExecutionFoldersListedDetail>,
/// <p>The number of directories that DataSync fails to list, prepare, transfer, verify, and delete during your task execution.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub folders_failed: ::std::option::Option<crate::types::TaskExecutionFoldersFailedDetail>,
/// <p>The time that the task execution actually begins. For non-queued tasks, <code>LaunchTime</code> and <code>StartTime</code> are typically the same. For queued tasks, <code>LaunchTime</code> is typically later than <code>StartTime</code> because previously queued tasks must finish running before newer tasks can begin.</p>
pub launch_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The time that the transfer task ends.</p>
pub end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
_request_id: Option<String>,
}
impl DescribeTaskExecutionOutput {
/// <p>The ARN of the task execution that you wanted information about. <code>TaskExecutionArn</code> is hierarchical and includes <code>TaskArn</code> for the task that was executed.</p>
/// <p>For example, a <code>TaskExecution</code> value with the ARN <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b</code> executed the task with the ARN <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2</code>.</p>
pub fn task_execution_arn(&self) -> ::std::option::Option<&str> {
self.task_execution_arn.as_deref()
}
/// <p>The status of the task execution.</p>
pub fn status(&self) -> ::std::option::Option<&crate::types::TaskExecutionStatus> {
self.status.as_ref()
}
/// <p>Indicates how your transfer task is configured. These options include how DataSync handles files, objects, and their associated metadata during your transfer. You also can specify how to verify data integrity, set bandwidth limits for your task, among other options.</p>
/// <p>Each option has a default value. Unless you need to, you don't have to configure any option before calling <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_StartTaskExecution.html">StartTaskExecution</a>.</p>
/// <p>You also can override your task options for each task execution. For example, you might want to adjust the <code>LogLevel</code> for an individual execution.</p>
pub fn options(&self) -> ::std::option::Option<&crate::types::Options> {
self.options.as_ref()
}
/// <p>A list of filter rules that exclude specific data during your transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Filtering data transferred by DataSync</a>.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.excludes.is_none()`.
pub fn excludes(&self) -> &[crate::types::FilterRule] {
self.excludes.as_deref().unwrap_or_default()
}
/// <p>A list of filter rules that include specific data during your transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Filtering data transferred by DataSync</a>.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.includes.is_none()`.
pub fn includes(&self) -> &[crate::types::FilterRule] {
self.includes.as_deref().unwrap_or_default()
}
/// <p>The configuration of the manifest that lists the files or objects to transfer. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html">Specifying what DataSync transfers by using a manifest</a>.</p>
pub fn manifest_config(&self) -> ::std::option::Option<&crate::types::ManifestConfig> {
self.manifest_config.as_ref()
}
/// <p>The time that DataSync sends the request to start the task execution. For non-queued tasks, <code>LaunchTime</code> and <code>StartTime</code> are typically the same. For queued tasks, <code>LaunchTime</code> is typically later than <code>StartTime</code> because previously queued tasks must finish running before newer tasks can begin.</p>
pub fn start_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.start_time.as_ref()
}
/// <p>The number of files, objects, and directories that DataSync expects to transfer over the network. This value is calculated while DataSync <a href="https://docs.aws.amazon.com/datasync/latest/userguide/run-task.html#understand-task-execution-statuses">prepares</a> the transfer.</p>
/// <p>How this gets calculated depends primarily on your task’s <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-TransferMode">transfer mode</a> configuration:</p>
/// <ul>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>CHANGED</code> - The calculation is based on comparing the content of the source and destination locations and determining the difference that needs to be transferred. The difference can include:</p>
/// <ul>
/// <li>
/// <p>Anything that's added or modified at the source location.</p></li>
/// <li>
/// <p>Anything that's in both locations and modified at the destination after an initial transfer (unless <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-OverwriteMode">OverwriteMode</a> is set to <code>NEVER</code>).</p></li>
/// <li>
/// <p><b>(Basic task mode only)</b> The number of items that DataSync expects to delete (if <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-PreserveDeletedFiles">PreserveDeletedFiles</a> is set to <code>REMOVE</code>).</p></li>
/// </ul></li>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>ALL</code> - The calculation is based only on the items that DataSync finds at the source location.</p></li>
/// </ul><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-EstimatedFoldersToTransfer">EstimatedFoldersToTransfer</a>.</p>
/// </note>
pub fn estimated_files_to_transfer(&self) -> i64 {
self.estimated_files_to_transfer
}
/// <p>The number of logical bytes that DataSync expects to write to the destination location.</p>
pub fn estimated_bytes_to_transfer(&self) -> i64 {
self.estimated_bytes_to_transfer
}
/// <p>The number of files, objects, and directories that DataSync actually transfers over the network. This value is updated periodically during your task execution when something is read from the source and sent over the network.</p>
/// <p>If DataSync fails to transfer something, this value can be less than <code>EstimatedFilesToTransfer</code>. In some cases, this value can also be greater than <code>EstimatedFilesToTransfer</code>. This element is implementation-specific for some location types, so don't use it as an exact indication of what's transferring or to monitor your task execution.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersTransferred">FoldersTransferred</a>.</p>
/// </note>
pub fn files_transferred(&self) -> i64 {
self.files_transferred
}
/// <p>The number of logical bytes that DataSync actually writes to the destination location.</p>
pub fn bytes_written(&self) -> i64 {
self.bytes_written
}
/// <p>The number of bytes that DataSync sends to the network before compression (if compression is possible). For the number of bytes transferred over the network, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-BytesCompressed">BytesCompressed</a>.</p>
pub fn bytes_transferred(&self) -> i64 {
self.bytes_transferred
}
/// <p>The number of physical bytes that DataSync transfers over the network after compression (if compression is possible). This number is typically less than <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-BytesTransferred">BytesTransferred</a> unless the data isn't compressible.</p>
pub fn bytes_compressed(&self) -> i64 {
self.bytes_compressed
}
/// <p>The result of the task execution.</p>
pub fn result(&self) -> ::std::option::Option<&crate::types::TaskExecutionResultDetail> {
self.result.as_ref()
}
/// <p>The configuration of your task report, which provides detailed information about for your DataSync transfer. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html">Creating a task report</a>.</p>
pub fn task_report_config(&self) -> ::std::option::Option<&crate::types::TaskReportConfig> {
self.task_report_config.as_ref()
}
/// <p>The number of files, objects, and directories that DataSync actually deletes in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersDeleted">FoldersDeleted</a>.</p>
/// </note>
pub fn files_deleted(&self) -> i64 {
self.files_deleted
}
/// <p>The number of files, objects, and directories that DataSync skips during your transfer.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersSkipped">FoldersSkipped</a>.</p>
/// </note>
pub fn files_skipped(&self) -> i64 {
self.files_skipped
}
/// <p>The number of files, objects, and directories that DataSync verifies during your transfer.</p><note>
/// <p>When you configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-data-verification-options.html">verify only the data that's transferred</a>, DataSync doesn't verify directories in some situations or files that fail to transfer.</p>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersVerified">FoldersVerified</a>.</p>
/// </note>
pub fn files_verified(&self) -> i64 {
self.files_verified
}
/// <p>Indicates whether DataSync generated a complete <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html">task report</a> for your transfer.</p>
pub fn report_result(&self) -> ::std::option::Option<&crate::types::ReportResult> {
self.report_result.as_ref()
}
/// <p>The number of files, objects, and directories that DataSync expects to delete in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-EstimatedFoldersToDelete">EstimatedFoldersToDelete</a>.</p>
/// </note>
pub fn estimated_files_to_delete(&self) -> i64 {
self.estimated_files_to_delete
}
/// <p>The task mode that you're using. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Choosing a task mode for your data transfer</a>.</p>
pub fn task_mode(&self) -> ::std::option::Option<&crate::types::TaskMode> {
self.task_mode.as_ref()
}
/// <p>The number of files or objects that DataSync will attempt to transfer after comparing your source and destination locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
/// <p>This counter isn't applicable if you configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html#task-option-transfer-mode">transfer all data</a>. In that scenario, DataSync copies everything from the source to the destination without comparing differences between the locations.</p>
pub fn files_prepared(&self) -> i64 {
self.files_prepared
}
/// <p>The number of files or objects that DataSync finds at your locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn files_listed(&self) -> ::std::option::Option<&crate::types::TaskExecutionFilesListedDetail> {
self.files_listed.as_ref()
}
/// <p>The number of files or objects that DataSync fails to prepare, transfer, verify, and delete during your task execution.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn files_failed(&self) -> ::std::option::Option<&crate::types::TaskExecutionFilesFailedDetail> {
self.files_failed.as_ref()
}
/// <p>The number of directories that DataSync expects to delete in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn estimated_folders_to_delete(&self) -> ::std::option::Option<i64> {
self.estimated_folders_to_delete
}
/// <p>The number of directories that DataSync expects to transfer over the network. This value is calculated as DataSync <a href="https://docs.aws.amazon.com/datasync/latest/userguide/run-task.html#understand-task-execution-statuses">prepares</a> directories to transfer.</p>
/// <p>How this gets calculated depends primarily on your task’s <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-TransferMode">transfer mode</a> configuration:</p>
/// <ul>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>CHANGED</code> - The calculation is based on comparing the content of the source and destination locations and determining the difference that needs to be transferred. The difference can include:</p>
/// <ul>
/// <li>
/// <p>Anything that's added or modified at the source location.</p></li>
/// <li>
/// <p>Anything that's in both locations and modified at the destination after an initial transfer (unless <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-OverwriteMode">OverwriteMode</a> is set to <code>NEVER</code>).</p></li>
/// </ul></li>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>ALL</code> - The calculation is based only on the items that DataSync finds at the source location.</p></li>
/// </ul><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn estimated_folders_to_transfer(&self) -> ::std::option::Option<i64> {
self.estimated_folders_to_transfer
}
/// <p>The number of directories that DataSync skips during your transfer.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn folders_skipped(&self) -> ::std::option::Option<i64> {
self.folders_skipped
}
/// <p>The number of directories that DataSync will attempt to transfer after comparing your source and destination locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
/// <p>This counter isn't applicable if you configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html#task-option-transfer-mode">transfer all data</a>. In that scenario, DataSync copies everything from the source to the destination without comparing differences between the locations.</p>
pub fn folders_prepared(&self) -> ::std::option::Option<i64> {
self.folders_prepared
}
/// <p>The number of directories that DataSync actually transfers over the network. This value is updated periodically during your task execution when something is read from the source and sent over the network.</p>
/// <p>If DataSync fails to transfer something, this value can be less than <code>EstimatedFoldersToTransfer</code>. In some cases, this value can also be greater than <code>EstimatedFoldersToTransfer</code>.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn folders_transferred(&self) -> ::std::option::Option<i64> {
self.folders_transferred
}
/// <p>The number of directories that DataSync verifies during your transfer.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn folders_verified(&self) -> ::std::option::Option<i64> {
self.folders_verified
}
/// <p>The number of directories that DataSync actually deletes in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn folders_deleted(&self) -> ::std::option::Option<i64> {
self.folders_deleted
}
/// <p>The number of directories that DataSync finds at your locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn folders_listed(&self) -> ::std::option::Option<&crate::types::TaskExecutionFoldersListedDetail> {
self.folders_listed.as_ref()
}
/// <p>The number of directories that DataSync fails to list, prepare, transfer, verify, and delete during your task execution.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn folders_failed(&self) -> ::std::option::Option<&crate::types::TaskExecutionFoldersFailedDetail> {
self.folders_failed.as_ref()
}
/// <p>The time that the task execution actually begins. For non-queued tasks, <code>LaunchTime</code> and <code>StartTime</code> are typically the same. For queued tasks, <code>LaunchTime</code> is typically later than <code>StartTime</code> because previously queued tasks must finish running before newer tasks can begin.</p>
pub fn launch_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.launch_time.as_ref()
}
/// <p>The time that the transfer task ends.</p>
pub fn end_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.end_time.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DescribeTaskExecutionOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeTaskExecutionOutput {
/// Creates a new builder-style object to manufacture [`DescribeTaskExecutionOutput`](crate::operation::describe_task_execution::DescribeTaskExecutionOutput).
pub fn builder() -> crate::operation::describe_task_execution::builders::DescribeTaskExecutionOutputBuilder {
crate::operation::describe_task_execution::builders::DescribeTaskExecutionOutputBuilder::default()
}
}
/// A builder for [`DescribeTaskExecutionOutput`](crate::operation::describe_task_execution::DescribeTaskExecutionOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeTaskExecutionOutputBuilder {
pub(crate) task_execution_arn: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<crate::types::TaskExecutionStatus>,
pub(crate) options: ::std::option::Option<crate::types::Options>,
pub(crate) excludes: ::std::option::Option<::std::vec::Vec<crate::types::FilterRule>>,
pub(crate) includes: ::std::option::Option<::std::vec::Vec<crate::types::FilterRule>>,
pub(crate) manifest_config: ::std::option::Option<crate::types::ManifestConfig>,
pub(crate) start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) estimated_files_to_transfer: ::std::option::Option<i64>,
pub(crate) estimated_bytes_to_transfer: ::std::option::Option<i64>,
pub(crate) files_transferred: ::std::option::Option<i64>,
pub(crate) bytes_written: ::std::option::Option<i64>,
pub(crate) bytes_transferred: ::std::option::Option<i64>,
pub(crate) bytes_compressed: ::std::option::Option<i64>,
pub(crate) result: ::std::option::Option<crate::types::TaskExecutionResultDetail>,
pub(crate) task_report_config: ::std::option::Option<crate::types::TaskReportConfig>,
pub(crate) files_deleted: ::std::option::Option<i64>,
pub(crate) files_skipped: ::std::option::Option<i64>,
pub(crate) files_verified: ::std::option::Option<i64>,
pub(crate) report_result: ::std::option::Option<crate::types::ReportResult>,
pub(crate) estimated_files_to_delete: ::std::option::Option<i64>,
pub(crate) task_mode: ::std::option::Option<crate::types::TaskMode>,
pub(crate) files_prepared: ::std::option::Option<i64>,
pub(crate) files_listed: ::std::option::Option<crate::types::TaskExecutionFilesListedDetail>,
pub(crate) files_failed: ::std::option::Option<crate::types::TaskExecutionFilesFailedDetail>,
pub(crate) estimated_folders_to_delete: ::std::option::Option<i64>,
pub(crate) estimated_folders_to_transfer: ::std::option::Option<i64>,
pub(crate) folders_skipped: ::std::option::Option<i64>,
pub(crate) folders_prepared: ::std::option::Option<i64>,
pub(crate) folders_transferred: ::std::option::Option<i64>,
pub(crate) folders_verified: ::std::option::Option<i64>,
pub(crate) folders_deleted: ::std::option::Option<i64>,
pub(crate) folders_listed: ::std::option::Option<crate::types::TaskExecutionFoldersListedDetail>,
pub(crate) folders_failed: ::std::option::Option<crate::types::TaskExecutionFoldersFailedDetail>,
pub(crate) launch_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
_request_id: Option<String>,
}
impl DescribeTaskExecutionOutputBuilder {
/// <p>The ARN of the task execution that you wanted information about. <code>TaskExecutionArn</code> is hierarchical and includes <code>TaskArn</code> for the task that was executed.</p>
/// <p>For example, a <code>TaskExecution</code> value with the ARN <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b</code> executed the task with the ARN <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2</code>.</p>
pub fn task_execution_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.task_execution_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The ARN of the task execution that you wanted information about. <code>TaskExecutionArn</code> is hierarchical and includes <code>TaskArn</code> for the task that was executed.</p>
/// <p>For example, a <code>TaskExecution</code> value with the ARN <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b</code> executed the task with the ARN <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2</code>.</p>
pub fn set_task_execution_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.task_execution_arn = input;
self
}
/// <p>The ARN of the task execution that you wanted information about. <code>TaskExecutionArn</code> is hierarchical and includes <code>TaskArn</code> for the task that was executed.</p>
/// <p>For example, a <code>TaskExecution</code> value with the ARN <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b</code> executed the task with the ARN <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2</code>.</p>
pub fn get_task_execution_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.task_execution_arn
}
/// <p>The status of the task execution.</p>
pub fn status(mut self, input: crate::types::TaskExecutionStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
/// <p>The status of the task execution.</p>
pub fn set_status(mut self, input: ::std::option::Option<crate::types::TaskExecutionStatus>) -> Self {
self.status = input;
self
}
/// <p>The status of the task execution.</p>
pub fn get_status(&self) -> &::std::option::Option<crate::types::TaskExecutionStatus> {
&self.status
}
/// <p>Indicates how your transfer task is configured. These options include how DataSync handles files, objects, and their associated metadata during your transfer. You also can specify how to verify data integrity, set bandwidth limits for your task, among other options.</p>
/// <p>Each option has a default value. Unless you need to, you don't have to configure any option before calling <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_StartTaskExecution.html">StartTaskExecution</a>.</p>
/// <p>You also can override your task options for each task execution. For example, you might want to adjust the <code>LogLevel</code> for an individual execution.</p>
pub fn options(mut self, input: crate::types::Options) -> Self {
self.options = ::std::option::Option::Some(input);
self
}
/// <p>Indicates how your transfer task is configured. These options include how DataSync handles files, objects, and their associated metadata during your transfer. You also can specify how to verify data integrity, set bandwidth limits for your task, among other options.</p>
/// <p>Each option has a default value. Unless you need to, you don't have to configure any option before calling <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_StartTaskExecution.html">StartTaskExecution</a>.</p>
/// <p>You also can override your task options for each task execution. For example, you might want to adjust the <code>LogLevel</code> for an individual execution.</p>
pub fn set_options(mut self, input: ::std::option::Option<crate::types::Options>) -> Self {
self.options = input;
self
}
/// <p>Indicates how your transfer task is configured. These options include how DataSync handles files, objects, and their associated metadata during your transfer. You also can specify how to verify data integrity, set bandwidth limits for your task, among other options.</p>
/// <p>Each option has a default value. Unless you need to, you don't have to configure any option before calling <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_StartTaskExecution.html">StartTaskExecution</a>.</p>
/// <p>You also can override your task options for each task execution. For example, you might want to adjust the <code>LogLevel</code> for an individual execution.</p>
pub fn get_options(&self) -> &::std::option::Option<crate::types::Options> {
&self.options
}
/// Appends an item to `excludes`.
///
/// To override the contents of this collection use [`set_excludes`](Self::set_excludes).
///
/// <p>A list of filter rules that exclude specific data during your transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Filtering data transferred by DataSync</a>.</p>
pub fn excludes(mut self, input: crate::types::FilterRule) -> Self {
let mut v = self.excludes.unwrap_or_default();
v.push(input);
self.excludes = ::std::option::Option::Some(v);
self
}
/// <p>A list of filter rules that exclude specific data during your transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Filtering data transferred by DataSync</a>.</p>
pub fn set_excludes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FilterRule>>) -> Self {
self.excludes = input;
self
}
/// <p>A list of filter rules that exclude specific data during your transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Filtering data transferred by DataSync</a>.</p>
pub fn get_excludes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FilterRule>> {
&self.excludes
}
/// Appends an item to `includes`.
///
/// To override the contents of this collection use [`set_includes`](Self::set_includes).
///
/// <p>A list of filter rules that include specific data during your transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Filtering data transferred by DataSync</a>.</p>
pub fn includes(mut self, input: crate::types::FilterRule) -> Self {
let mut v = self.includes.unwrap_or_default();
v.push(input);
self.includes = ::std::option::Option::Some(v);
self
}
/// <p>A list of filter rules that include specific data during your transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Filtering data transferred by DataSync</a>.</p>
pub fn set_includes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FilterRule>>) -> Self {
self.includes = input;
self
}
/// <p>A list of filter rules that include specific data during your transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Filtering data transferred by DataSync</a>.</p>
pub fn get_includes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FilterRule>> {
&self.includes
}
/// <p>The configuration of the manifest that lists the files or objects to transfer. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html">Specifying what DataSync transfers by using a manifest</a>.</p>
pub fn manifest_config(mut self, input: crate::types::ManifestConfig) -> Self {
self.manifest_config = ::std::option::Option::Some(input);
self
}
/// <p>The configuration of the manifest that lists the files or objects to transfer. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html">Specifying what DataSync transfers by using a manifest</a>.</p>
pub fn set_manifest_config(mut self, input: ::std::option::Option<crate::types::ManifestConfig>) -> Self {
self.manifest_config = input;
self
}
/// <p>The configuration of the manifest that lists the files or objects to transfer. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html">Specifying what DataSync transfers by using a manifest</a>.</p>
pub fn get_manifest_config(&self) -> &::std::option::Option<crate::types::ManifestConfig> {
&self.manifest_config
}
/// <p>The time that DataSync sends the request to start the task execution. For non-queued tasks, <code>LaunchTime</code> and <code>StartTime</code> are typically the same. For queued tasks, <code>LaunchTime</code> is typically later than <code>StartTime</code> because previously queued tasks must finish running before newer tasks can begin.</p>
pub fn start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.start_time = ::std::option::Option::Some(input);
self
}
/// <p>The time that DataSync sends the request to start the task execution. For non-queued tasks, <code>LaunchTime</code> and <code>StartTime</code> are typically the same. For queued tasks, <code>LaunchTime</code> is typically later than <code>StartTime</code> because previously queued tasks must finish running before newer tasks can begin.</p>
pub fn set_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.start_time = input;
self
}
/// <p>The time that DataSync sends the request to start the task execution. For non-queued tasks, <code>LaunchTime</code> and <code>StartTime</code> are typically the same. For queued tasks, <code>LaunchTime</code> is typically later than <code>StartTime</code> because previously queued tasks must finish running before newer tasks can begin.</p>
pub fn get_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.start_time
}
/// <p>The number of files, objects, and directories that DataSync expects to transfer over the network. This value is calculated while DataSync <a href="https://docs.aws.amazon.com/datasync/latest/userguide/run-task.html#understand-task-execution-statuses">prepares</a> the transfer.</p>
/// <p>How this gets calculated depends primarily on your task’s <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-TransferMode">transfer mode</a> configuration:</p>
/// <ul>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>CHANGED</code> - The calculation is based on comparing the content of the source and destination locations and determining the difference that needs to be transferred. The difference can include:</p>
/// <ul>
/// <li>
/// <p>Anything that's added or modified at the source location.</p></li>
/// <li>
/// <p>Anything that's in both locations and modified at the destination after an initial transfer (unless <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-OverwriteMode">OverwriteMode</a> is set to <code>NEVER</code>).</p></li>
/// <li>
/// <p><b>(Basic task mode only)</b> The number of items that DataSync expects to delete (if <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-PreserveDeletedFiles">PreserveDeletedFiles</a> is set to <code>REMOVE</code>).</p></li>
/// </ul></li>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>ALL</code> - The calculation is based only on the items that DataSync finds at the source location.</p></li>
/// </ul><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-EstimatedFoldersToTransfer">EstimatedFoldersToTransfer</a>.</p>
/// </note>
pub fn estimated_files_to_transfer(mut self, input: i64) -> Self {
self.estimated_files_to_transfer = ::std::option::Option::Some(input);
self
}
/// <p>The number of files, objects, and directories that DataSync expects to transfer over the network. This value is calculated while DataSync <a href="https://docs.aws.amazon.com/datasync/latest/userguide/run-task.html#understand-task-execution-statuses">prepares</a> the transfer.</p>
/// <p>How this gets calculated depends primarily on your task’s <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-TransferMode">transfer mode</a> configuration:</p>
/// <ul>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>CHANGED</code> - The calculation is based on comparing the content of the source and destination locations and determining the difference that needs to be transferred. The difference can include:</p>
/// <ul>
/// <li>
/// <p>Anything that's added or modified at the source location.</p></li>
/// <li>
/// <p>Anything that's in both locations and modified at the destination after an initial transfer (unless <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-OverwriteMode">OverwriteMode</a> is set to <code>NEVER</code>).</p></li>
/// <li>
/// <p><b>(Basic task mode only)</b> The number of items that DataSync expects to delete (if <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-PreserveDeletedFiles">PreserveDeletedFiles</a> is set to <code>REMOVE</code>).</p></li>
/// </ul></li>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>ALL</code> - The calculation is based only on the items that DataSync finds at the source location.</p></li>
/// </ul><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-EstimatedFoldersToTransfer">EstimatedFoldersToTransfer</a>.</p>
/// </note>
pub fn set_estimated_files_to_transfer(mut self, input: ::std::option::Option<i64>) -> Self {
self.estimated_files_to_transfer = input;
self
}
/// <p>The number of files, objects, and directories that DataSync expects to transfer over the network. This value is calculated while DataSync <a href="https://docs.aws.amazon.com/datasync/latest/userguide/run-task.html#understand-task-execution-statuses">prepares</a> the transfer.</p>
/// <p>How this gets calculated depends primarily on your task’s <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-TransferMode">transfer mode</a> configuration:</p>
/// <ul>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>CHANGED</code> - The calculation is based on comparing the content of the source and destination locations and determining the difference that needs to be transferred. The difference can include:</p>
/// <ul>
/// <li>
/// <p>Anything that's added or modified at the source location.</p></li>
/// <li>
/// <p>Anything that's in both locations and modified at the destination after an initial transfer (unless <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-OverwriteMode">OverwriteMode</a> is set to <code>NEVER</code>).</p></li>
/// <li>
/// <p><b>(Basic task mode only)</b> The number of items that DataSync expects to delete (if <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-PreserveDeletedFiles">PreserveDeletedFiles</a> is set to <code>REMOVE</code>).</p></li>
/// </ul></li>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>ALL</code> - The calculation is based only on the items that DataSync finds at the source location.</p></li>
/// </ul><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-EstimatedFoldersToTransfer">EstimatedFoldersToTransfer</a>.</p>
/// </note>
pub fn get_estimated_files_to_transfer(&self) -> &::std::option::Option<i64> {
&self.estimated_files_to_transfer
}
/// <p>The number of logical bytes that DataSync expects to write to the destination location.</p>
pub fn estimated_bytes_to_transfer(mut self, input: i64) -> Self {
self.estimated_bytes_to_transfer = ::std::option::Option::Some(input);
self
}
/// <p>The number of logical bytes that DataSync expects to write to the destination location.</p>
pub fn set_estimated_bytes_to_transfer(mut self, input: ::std::option::Option<i64>) -> Self {
self.estimated_bytes_to_transfer = input;
self
}
/// <p>The number of logical bytes that DataSync expects to write to the destination location.</p>
pub fn get_estimated_bytes_to_transfer(&self) -> &::std::option::Option<i64> {
&self.estimated_bytes_to_transfer
}
/// <p>The number of files, objects, and directories that DataSync actually transfers over the network. This value is updated periodically during your task execution when something is read from the source and sent over the network.</p>
/// <p>If DataSync fails to transfer something, this value can be less than <code>EstimatedFilesToTransfer</code>. In some cases, this value can also be greater than <code>EstimatedFilesToTransfer</code>. This element is implementation-specific for some location types, so don't use it as an exact indication of what's transferring or to monitor your task execution.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersTransferred">FoldersTransferred</a>.</p>
/// </note>
pub fn files_transferred(mut self, input: i64) -> Self {
self.files_transferred = ::std::option::Option::Some(input);
self
}
/// <p>The number of files, objects, and directories that DataSync actually transfers over the network. This value is updated periodically during your task execution when something is read from the source and sent over the network.</p>
/// <p>If DataSync fails to transfer something, this value can be less than <code>EstimatedFilesToTransfer</code>. In some cases, this value can also be greater than <code>EstimatedFilesToTransfer</code>. This element is implementation-specific for some location types, so don't use it as an exact indication of what's transferring or to monitor your task execution.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersTransferred">FoldersTransferred</a>.</p>
/// </note>
pub fn set_files_transferred(mut self, input: ::std::option::Option<i64>) -> Self {
self.files_transferred = input;
self
}
/// <p>The number of files, objects, and directories that DataSync actually transfers over the network. This value is updated periodically during your task execution when something is read from the source and sent over the network.</p>
/// <p>If DataSync fails to transfer something, this value can be less than <code>EstimatedFilesToTransfer</code>. In some cases, this value can also be greater than <code>EstimatedFilesToTransfer</code>. This element is implementation-specific for some location types, so don't use it as an exact indication of what's transferring or to monitor your task execution.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersTransferred">FoldersTransferred</a>.</p>
/// </note>
pub fn get_files_transferred(&self) -> &::std::option::Option<i64> {
&self.files_transferred
}
/// <p>The number of logical bytes that DataSync actually writes to the destination location.</p>
pub fn bytes_written(mut self, input: i64) -> Self {
self.bytes_written = ::std::option::Option::Some(input);
self
}
/// <p>The number of logical bytes that DataSync actually writes to the destination location.</p>
pub fn set_bytes_written(mut self, input: ::std::option::Option<i64>) -> Self {
self.bytes_written = input;
self
}
/// <p>The number of logical bytes that DataSync actually writes to the destination location.</p>
pub fn get_bytes_written(&self) -> &::std::option::Option<i64> {
&self.bytes_written
}
/// <p>The number of bytes that DataSync sends to the network before compression (if compression is possible). For the number of bytes transferred over the network, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-BytesCompressed">BytesCompressed</a>.</p>
pub fn bytes_transferred(mut self, input: i64) -> Self {
self.bytes_transferred = ::std::option::Option::Some(input);
self
}
/// <p>The number of bytes that DataSync sends to the network before compression (if compression is possible). For the number of bytes transferred over the network, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-BytesCompressed">BytesCompressed</a>.</p>
pub fn set_bytes_transferred(mut self, input: ::std::option::Option<i64>) -> Self {
self.bytes_transferred = input;
self
}
/// <p>The number of bytes that DataSync sends to the network before compression (if compression is possible). For the number of bytes transferred over the network, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-BytesCompressed">BytesCompressed</a>.</p>
pub fn get_bytes_transferred(&self) -> &::std::option::Option<i64> {
&self.bytes_transferred
}
/// <p>The number of physical bytes that DataSync transfers over the network after compression (if compression is possible). This number is typically less than <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-BytesTransferred">BytesTransferred</a> unless the data isn't compressible.</p>
pub fn bytes_compressed(mut self, input: i64) -> Self {
self.bytes_compressed = ::std::option::Option::Some(input);
self
}
/// <p>The number of physical bytes that DataSync transfers over the network after compression (if compression is possible). This number is typically less than <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-BytesTransferred">BytesTransferred</a> unless the data isn't compressible.</p>
pub fn set_bytes_compressed(mut self, input: ::std::option::Option<i64>) -> Self {
self.bytes_compressed = input;
self
}
/// <p>The number of physical bytes that DataSync transfers over the network after compression (if compression is possible). This number is typically less than <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-BytesTransferred">BytesTransferred</a> unless the data isn't compressible.</p>
pub fn get_bytes_compressed(&self) -> &::std::option::Option<i64> {
&self.bytes_compressed
}
/// <p>The result of the task execution.</p>
pub fn result(mut self, input: crate::types::TaskExecutionResultDetail) -> Self {
self.result = ::std::option::Option::Some(input);
self
}
/// <p>The result of the task execution.</p>
pub fn set_result(mut self, input: ::std::option::Option<crate::types::TaskExecutionResultDetail>) -> Self {
self.result = input;
self
}
/// <p>The result of the task execution.</p>
pub fn get_result(&self) -> &::std::option::Option<crate::types::TaskExecutionResultDetail> {
&self.result
}
/// <p>The configuration of your task report, which provides detailed information about for your DataSync transfer. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html">Creating a task report</a>.</p>
pub fn task_report_config(mut self, input: crate::types::TaskReportConfig) -> Self {
self.task_report_config = ::std::option::Option::Some(input);
self
}
/// <p>The configuration of your task report, which provides detailed information about for your DataSync transfer. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html">Creating a task report</a>.</p>
pub fn set_task_report_config(mut self, input: ::std::option::Option<crate::types::TaskReportConfig>) -> Self {
self.task_report_config = input;
self
}
/// <p>The configuration of your task report, which provides detailed information about for your DataSync transfer. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html">Creating a task report</a>.</p>
pub fn get_task_report_config(&self) -> &::std::option::Option<crate::types::TaskReportConfig> {
&self.task_report_config
}
/// <p>The number of files, objects, and directories that DataSync actually deletes in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersDeleted">FoldersDeleted</a>.</p>
/// </note>
pub fn files_deleted(mut self, input: i64) -> Self {
self.files_deleted = ::std::option::Option::Some(input);
self
}
/// <p>The number of files, objects, and directories that DataSync actually deletes in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersDeleted">FoldersDeleted</a>.</p>
/// </note>
pub fn set_files_deleted(mut self, input: ::std::option::Option<i64>) -> Self {
self.files_deleted = input;
self
}
/// <p>The number of files, objects, and directories that DataSync actually deletes in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersDeleted">FoldersDeleted</a>.</p>
/// </note>
pub fn get_files_deleted(&self) -> &::std::option::Option<i64> {
&self.files_deleted
}
/// <p>The number of files, objects, and directories that DataSync skips during your transfer.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersSkipped">FoldersSkipped</a>.</p>
/// </note>
pub fn files_skipped(mut self, input: i64) -> Self {
self.files_skipped = ::std::option::Option::Some(input);
self
}
/// <p>The number of files, objects, and directories that DataSync skips during your transfer.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersSkipped">FoldersSkipped</a>.</p>
/// </note>
pub fn set_files_skipped(mut self, input: ::std::option::Option<i64>) -> Self {
self.files_skipped = input;
self
}
/// <p>The number of files, objects, and directories that DataSync skips during your transfer.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersSkipped">FoldersSkipped</a>.</p>
/// </note>
pub fn get_files_skipped(&self) -> &::std::option::Option<i64> {
&self.files_skipped
}
/// <p>The number of files, objects, and directories that DataSync verifies during your transfer.</p><note>
/// <p>When you configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-data-verification-options.html">verify only the data that's transferred</a>, DataSync doesn't verify directories in some situations or files that fail to transfer.</p>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersVerified">FoldersVerified</a>.</p>
/// </note>
pub fn files_verified(mut self, input: i64) -> Self {
self.files_verified = ::std::option::Option::Some(input);
self
}
/// <p>The number of files, objects, and directories that DataSync verifies during your transfer.</p><note>
/// <p>When you configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-data-verification-options.html">verify only the data that's transferred</a>, DataSync doesn't verify directories in some situations or files that fail to transfer.</p>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersVerified">FoldersVerified</a>.</p>
/// </note>
pub fn set_files_verified(mut self, input: ::std::option::Option<i64>) -> Self {
self.files_verified = input;
self
}
/// <p>The number of files, objects, and directories that DataSync verifies during your transfer.</p><note>
/// <p>When you configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-data-verification-options.html">verify only the data that's transferred</a>, DataSync doesn't verify directories in some situations or files that fail to transfer.</p>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersVerified">FoldersVerified</a>.</p>
/// </note>
pub fn get_files_verified(&self) -> &::std::option::Option<i64> {
&self.files_verified
}
/// <p>Indicates whether DataSync generated a complete <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html">task report</a> for your transfer.</p>
pub fn report_result(mut self, input: crate::types::ReportResult) -> Self {
self.report_result = ::std::option::Option::Some(input);
self
}
/// <p>Indicates whether DataSync generated a complete <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html">task report</a> for your transfer.</p>
pub fn set_report_result(mut self, input: ::std::option::Option<crate::types::ReportResult>) -> Self {
self.report_result = input;
self
}
/// <p>Indicates whether DataSync generated a complete <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html">task report</a> for your transfer.</p>
pub fn get_report_result(&self) -> &::std::option::Option<crate::types::ReportResult> {
&self.report_result
}
/// <p>The number of files, objects, and directories that DataSync expects to delete in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-EstimatedFoldersToDelete">EstimatedFoldersToDelete</a>.</p>
/// </note>
pub fn estimated_files_to_delete(mut self, input: i64) -> Self {
self.estimated_files_to_delete = ::std::option::Option::Some(input);
self
}
/// <p>The number of files, objects, and directories that DataSync expects to delete in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-EstimatedFoldersToDelete">EstimatedFoldersToDelete</a>.</p>
/// </note>
pub fn set_estimated_files_to_delete(mut self, input: ::std::option::Option<i64>) -> Self {
self.estimated_files_to_delete = input;
self
}
/// <p>The number of files, objects, and directories that DataSync expects to delete in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>For <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-EstimatedFoldersToDelete">EstimatedFoldersToDelete</a>.</p>
/// </note>
pub fn get_estimated_files_to_delete(&self) -> &::std::option::Option<i64> {
&self.estimated_files_to_delete
}
/// <p>The task mode that you're using. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Choosing a task mode for your data transfer</a>.</p>
pub fn task_mode(mut self, input: crate::types::TaskMode) -> Self {
self.task_mode = ::std::option::Option::Some(input);
self
}
/// <p>The task mode that you're using. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Choosing a task mode for your data transfer</a>.</p>
pub fn set_task_mode(mut self, input: ::std::option::Option<crate::types::TaskMode>) -> Self {
self.task_mode = input;
self
}
/// <p>The task mode that you're using. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Choosing a task mode for your data transfer</a>.</p>
pub fn get_task_mode(&self) -> &::std::option::Option<crate::types::TaskMode> {
&self.task_mode
}
/// <p>The number of files or objects that DataSync will attempt to transfer after comparing your source and destination locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
/// <p>This counter isn't applicable if you configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html#task-option-transfer-mode">transfer all data</a>. In that scenario, DataSync copies everything from the source to the destination without comparing differences between the locations.</p>
pub fn files_prepared(mut self, input: i64) -> Self {
self.files_prepared = ::std::option::Option::Some(input);
self
}
/// <p>The number of files or objects that DataSync will attempt to transfer after comparing your source and destination locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
/// <p>This counter isn't applicable if you configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html#task-option-transfer-mode">transfer all data</a>. In that scenario, DataSync copies everything from the source to the destination without comparing differences between the locations.</p>
pub fn set_files_prepared(mut self, input: ::std::option::Option<i64>) -> Self {
self.files_prepared = input;
self
}
/// <p>The number of files or objects that DataSync will attempt to transfer after comparing your source and destination locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
/// <p>This counter isn't applicable if you configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html#task-option-transfer-mode">transfer all data</a>. In that scenario, DataSync copies everything from the source to the destination without comparing differences between the locations.</p>
pub fn get_files_prepared(&self) -> &::std::option::Option<i64> {
&self.files_prepared
}
/// <p>The number of files or objects that DataSync finds at your locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn files_listed(mut self, input: crate::types::TaskExecutionFilesListedDetail) -> Self {
self.files_listed = ::std::option::Option::Some(input);
self
}
/// <p>The number of files or objects that DataSync finds at your locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn set_files_listed(mut self, input: ::std::option::Option<crate::types::TaskExecutionFilesListedDetail>) -> Self {
self.files_listed = input;
self
}
/// <p>The number of files or objects that DataSync finds at your locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn get_files_listed(&self) -> &::std::option::Option<crate::types::TaskExecutionFilesListedDetail> {
&self.files_listed
}
/// <p>The number of files or objects that DataSync fails to prepare, transfer, verify, and delete during your task execution.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn files_failed(mut self, input: crate::types::TaskExecutionFilesFailedDetail) -> Self {
self.files_failed = ::std::option::Option::Some(input);
self
}
/// <p>The number of files or objects that DataSync fails to prepare, transfer, verify, and delete during your task execution.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn set_files_failed(mut self, input: ::std::option::Option<crate::types::TaskExecutionFilesFailedDetail>) -> Self {
self.files_failed = input;
self
}
/// <p>The number of files or objects that DataSync fails to prepare, transfer, verify, and delete during your task execution.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn get_files_failed(&self) -> &::std::option::Option<crate::types::TaskExecutionFilesFailedDetail> {
&self.files_failed
}
/// <p>The number of directories that DataSync expects to delete in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn estimated_folders_to_delete(mut self, input: i64) -> Self {
self.estimated_folders_to_delete = ::std::option::Option::Some(input);
self
}
/// <p>The number of directories that DataSync expects to delete in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn set_estimated_folders_to_delete(mut self, input: ::std::option::Option<i64>) -> Self {
self.estimated_folders_to_delete = input;
self
}
/// <p>The number of directories that DataSync expects to delete in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn get_estimated_folders_to_delete(&self) -> &::std::option::Option<i64> {
&self.estimated_folders_to_delete
}
/// <p>The number of directories that DataSync expects to transfer over the network. This value is calculated as DataSync <a href="https://docs.aws.amazon.com/datasync/latest/userguide/run-task.html#understand-task-execution-statuses">prepares</a> directories to transfer.</p>
/// <p>How this gets calculated depends primarily on your task’s <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-TransferMode">transfer mode</a> configuration:</p>
/// <ul>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>CHANGED</code> - The calculation is based on comparing the content of the source and destination locations and determining the difference that needs to be transferred. The difference can include:</p>
/// <ul>
/// <li>
/// <p>Anything that's added or modified at the source location.</p></li>
/// <li>
/// <p>Anything that's in both locations and modified at the destination after an initial transfer (unless <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-OverwriteMode">OverwriteMode</a> is set to <code>NEVER</code>).</p></li>
/// </ul></li>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>ALL</code> - The calculation is based only on the items that DataSync finds at the source location.</p></li>
/// </ul><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn estimated_folders_to_transfer(mut self, input: i64) -> Self {
self.estimated_folders_to_transfer = ::std::option::Option::Some(input);
self
}
/// <p>The number of directories that DataSync expects to transfer over the network. This value is calculated as DataSync <a href="https://docs.aws.amazon.com/datasync/latest/userguide/run-task.html#understand-task-execution-statuses">prepares</a> directories to transfer.</p>
/// <p>How this gets calculated depends primarily on your task’s <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-TransferMode">transfer mode</a> configuration:</p>
/// <ul>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>CHANGED</code> - The calculation is based on comparing the content of the source and destination locations and determining the difference that needs to be transferred. The difference can include:</p>
/// <ul>
/// <li>
/// <p>Anything that's added or modified at the source location.</p></li>
/// <li>
/// <p>Anything that's in both locations and modified at the destination after an initial transfer (unless <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-OverwriteMode">OverwriteMode</a> is set to <code>NEVER</code>).</p></li>
/// </ul></li>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>ALL</code> - The calculation is based only on the items that DataSync finds at the source location.</p></li>
/// </ul><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn set_estimated_folders_to_transfer(mut self, input: ::std::option::Option<i64>) -> Self {
self.estimated_folders_to_transfer = input;
self
}
/// <p>The number of directories that DataSync expects to transfer over the network. This value is calculated as DataSync <a href="https://docs.aws.amazon.com/datasync/latest/userguide/run-task.html#understand-task-execution-statuses">prepares</a> directories to transfer.</p>
/// <p>How this gets calculated depends primarily on your task’s <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-TransferMode">transfer mode</a> configuration:</p>
/// <ul>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>CHANGED</code> - The calculation is based on comparing the content of the source and destination locations and determining the difference that needs to be transferred. The difference can include:</p>
/// <ul>
/// <li>
/// <p>Anything that's added or modified at the source location.</p></li>
/// <li>
/// <p>Anything that's in both locations and modified at the destination after an initial transfer (unless <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-OverwriteMode">OverwriteMode</a> is set to <code>NEVER</code>).</p></li>
/// </ul></li>
/// <li>
/// <p>If <code>TranserMode</code> is set to <code>ALL</code> - The calculation is based only on the items that DataSync finds at the source location.</p></li>
/// </ul><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn get_estimated_folders_to_transfer(&self) -> &::std::option::Option<i64> {
&self.estimated_folders_to_transfer
}
/// <p>The number of directories that DataSync skips during your transfer.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn folders_skipped(mut self, input: i64) -> Self {
self.folders_skipped = ::std::option::Option::Some(input);
self
}
/// <p>The number of directories that DataSync skips during your transfer.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn set_folders_skipped(mut self, input: ::std::option::Option<i64>) -> Self {
self.folders_skipped = input;
self
}
/// <p>The number of directories that DataSync skips during your transfer.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn get_folders_skipped(&self) -> &::std::option::Option<i64> {
&self.folders_skipped
}
/// <p>The number of directories that DataSync will attempt to transfer after comparing your source and destination locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
/// <p>This counter isn't applicable if you configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html#task-option-transfer-mode">transfer all data</a>. In that scenario, DataSync copies everything from the source to the destination without comparing differences between the locations.</p>
pub fn folders_prepared(mut self, input: i64) -> Self {
self.folders_prepared = ::std::option::Option::Some(input);
self
}
/// <p>The number of directories that DataSync will attempt to transfer after comparing your source and destination locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
/// <p>This counter isn't applicable if you configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html#task-option-transfer-mode">transfer all data</a>. In that scenario, DataSync copies everything from the source to the destination without comparing differences between the locations.</p>
pub fn set_folders_prepared(mut self, input: ::std::option::Option<i64>) -> Self {
self.folders_prepared = input;
self
}
/// <p>The number of directories that DataSync will attempt to transfer after comparing your source and destination locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
/// <p>This counter isn't applicable if you configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html#task-option-transfer-mode">transfer all data</a>. In that scenario, DataSync copies everything from the source to the destination without comparing differences between the locations.</p>
pub fn get_folders_prepared(&self) -> &::std::option::Option<i64> {
&self.folders_prepared
}
/// <p>The number of directories that DataSync actually transfers over the network. This value is updated periodically during your task execution when something is read from the source and sent over the network.</p>
/// <p>If DataSync fails to transfer something, this value can be less than <code>EstimatedFoldersToTransfer</code>. In some cases, this value can also be greater than <code>EstimatedFoldersToTransfer</code>.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn folders_transferred(mut self, input: i64) -> Self {
self.folders_transferred = ::std::option::Option::Some(input);
self
}
/// <p>The number of directories that DataSync actually transfers over the network. This value is updated periodically during your task execution when something is read from the source and sent over the network.</p>
/// <p>If DataSync fails to transfer something, this value can be less than <code>EstimatedFoldersToTransfer</code>. In some cases, this value can also be greater than <code>EstimatedFoldersToTransfer</code>.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn set_folders_transferred(mut self, input: ::std::option::Option<i64>) -> Self {
self.folders_transferred = input;
self
}
/// <p>The number of directories that DataSync actually transfers over the network. This value is updated periodically during your task execution when something is read from the source and sent over the network.</p>
/// <p>If DataSync fails to transfer something, this value can be less than <code>EstimatedFoldersToTransfer</code>. In some cases, this value can also be greater than <code>EstimatedFoldersToTransfer</code>.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn get_folders_transferred(&self) -> &::std::option::Option<i64> {
&self.folders_transferred
}
/// <p>The number of directories that DataSync verifies during your transfer.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn folders_verified(mut self, input: i64) -> Self {
self.folders_verified = ::std::option::Option::Some(input);
self
}
/// <p>The number of directories that DataSync verifies during your transfer.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn set_folders_verified(mut self, input: ::std::option::Option<i64>) -> Self {
self.folders_verified = input;
self
}
/// <p>The number of directories that DataSync verifies during your transfer.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn get_folders_verified(&self) -> &::std::option::Option<i64> {
&self.folders_verified
}
/// <p>The number of directories that DataSync actually deletes in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn folders_deleted(mut self, input: i64) -> Self {
self.folders_deleted = ::std::option::Option::Some(input);
self
}
/// <p>The number of directories that DataSync actually deletes in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn set_folders_deleted(mut self, input: ::std::option::Option<i64>) -> Self {
self.folders_deleted = input;
self
}
/// <p>The number of directories that DataSync actually deletes in your destination location. If you don't configure your task to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn get_folders_deleted(&self) -> &::std::option::Option<i64> {
&self.folders_deleted
}
/// <p>The number of directories that DataSync finds at your locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn folders_listed(mut self, input: crate::types::TaskExecutionFoldersListedDetail) -> Self {
self.folders_listed = ::std::option::Option::Some(input);
self
}
/// <p>The number of directories that DataSync finds at your locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn set_folders_listed(mut self, input: ::std::option::Option<crate::types::TaskExecutionFoldersListedDetail>) -> Self {
self.folders_listed = input;
self
}
/// <p>The number of directories that DataSync finds at your locations.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn get_folders_listed(&self) -> &::std::option::Option<crate::types::TaskExecutionFoldersListedDetail> {
&self.folders_listed
}
/// <p>The number of directories that DataSync fails to list, prepare, transfer, verify, and delete during your task execution.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn folders_failed(mut self, input: crate::types::TaskExecutionFoldersFailedDetail) -> Self {
self.folders_failed = ::std::option::Option::Some(input);
self
}
/// <p>The number of directories that DataSync fails to list, prepare, transfer, verify, and delete during your task execution.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn set_folders_failed(mut self, input: ::std::option::Option<crate::types::TaskExecutionFoldersFailedDetail>) -> Self {
self.folders_failed = input;
self
}
/// <p>The number of directories that DataSync fails to list, prepare, transfer, verify, and delete during your task execution.</p><note>
/// <p>Applies only to <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
/// </note>
pub fn get_folders_failed(&self) -> &::std::option::Option<crate::types::TaskExecutionFoldersFailedDetail> {
&self.folders_failed
}
/// <p>The time that the task execution actually begins. For non-queued tasks, <code>LaunchTime</code> and <code>StartTime</code> are typically the same. For queued tasks, <code>LaunchTime</code> is typically later than <code>StartTime</code> because previously queued tasks must finish running before newer tasks can begin.</p>
pub fn launch_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.launch_time = ::std::option::Option::Some(input);
self
}
/// <p>The time that the task execution actually begins. For non-queued tasks, <code>LaunchTime</code> and <code>StartTime</code> are typically the same. For queued tasks, <code>LaunchTime</code> is typically later than <code>StartTime</code> because previously queued tasks must finish running before newer tasks can begin.</p>
pub fn set_launch_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.launch_time = input;
self
}
/// <p>The time that the task execution actually begins. For non-queued tasks, <code>LaunchTime</code> and <code>StartTime</code> are typically the same. For queued tasks, <code>LaunchTime</code> is typically later than <code>StartTime</code> because previously queued tasks must finish running before newer tasks can begin.</p>
pub fn get_launch_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.launch_time
}
/// <p>The time that the transfer task ends.</p>
pub fn end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.end_time = ::std::option::Option::Some(input);
self
}
/// <p>The time that the transfer task ends.</p>
pub fn set_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.end_time = input;
self
}
/// <p>The time that the transfer task ends.</p>
pub fn get_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.end_time
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
/// Consumes the builder and constructs a [`DescribeTaskExecutionOutput`](crate::operation::describe_task_execution::DescribeTaskExecutionOutput).
pub fn build(self) -> crate::operation::describe_task_execution::DescribeTaskExecutionOutput {
crate::operation::describe_task_execution::DescribeTaskExecutionOutput {
task_execution_arn: self.task_execution_arn,
status: self.status,
options: self.options,
excludes: self.excludes,
includes: self.includes,
manifest_config: self.manifest_config,
start_time: self.start_time,
estimated_files_to_transfer: self.estimated_files_to_transfer.unwrap_or_default(),
estimated_bytes_to_transfer: self.estimated_bytes_to_transfer.unwrap_or_default(),
files_transferred: self.files_transferred.unwrap_or_default(),
bytes_written: self.bytes_written.unwrap_or_default(),
bytes_transferred: self.bytes_transferred.unwrap_or_default(),
bytes_compressed: self.bytes_compressed.unwrap_or_default(),
result: self.result,
task_report_config: self.task_report_config,
files_deleted: self.files_deleted.unwrap_or_default(),
files_skipped: self.files_skipped.unwrap_or_default(),
files_verified: self.files_verified.unwrap_or_default(),
report_result: self.report_result,
estimated_files_to_delete: self.estimated_files_to_delete.unwrap_or_default(),
task_mode: self.task_mode,
files_prepared: self.files_prepared.unwrap_or_default(),
files_listed: self.files_listed,
files_failed: self.files_failed,
estimated_folders_to_delete: self.estimated_folders_to_delete,
estimated_folders_to_transfer: self.estimated_folders_to_transfer,
folders_skipped: self.folders_skipped,
folders_prepared: self.folders_prepared,
folders_transferred: self.folders_transferred,
folders_verified: self.folders_verified,
folders_deleted: self.folders_deleted,
folders_listed: self.folders_listed,
folders_failed: self.folders_failed,
launch_time: self.launch_time,
end_time: self.end_time,
_request_id: self._request_id,
}
}
}