aws-sdk-datasync 1.109.0

AWS SDK for AWS DataSync
Documentation
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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <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>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Options {
    /// <p>Specifies if and how DataSync checks the integrity of your data at the end of your transfer.</p>
    /// <ul>
    /// <li>
    /// <p><code>ONLY_FILES_TRANSFERRED</code> (recommended) - DataSync calculates the checksum of transferred data (including metadata) at the source location. At the end of the transfer, DataSync then compares this checksum to the checksum calculated on that data at the destination.</p><note>
    /// <p>This is the default option for <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
    /// </note>
    /// <p>We recommend this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Storage class considerations with Amazon S3 locations</a>.</p></li>
    /// <li>
    /// <p><code>POINT_IN_TIME_CONSISTENT</code> - At the end of the transfer, DataSync checks the entire source and destination to verify that both locations are fully synchronized.</p><note>
    /// <p>The is the default option for <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Basic mode tasks</a> and isn't currently supported with Enhanced mode tasks.</p>
    /// </note>
    /// <p>If you use a <a href="https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html">manifest</a>, DataSync only scans and verifies what's listed in the manifest.</p>
    /// <p>You can't use this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Storage class considerations with Amazon S3 locations</a>.</p></li>
    /// <li>
    /// <p><code>NONE</code> - DataSync performs data integrity checks only during your transfer. Unlike other options, there's no additional verification at the end of your transfer.</p></li>
    /// </ul>
    pub verify_mode: ::std::option::Option<crate::types::VerifyMode>,
    /// <p>Specifies whether DataSync should modify or preserve data at the destination location.</p>
    /// <ul>
    /// <li>
    /// <p><code>ALWAYS</code> (default) - DataSync modifies data in the destination location when source data (including metadata) has changed.</p>
    /// <p>If DataSync overwrites objects, you might incur additional charges for certain Amazon S3 storage classes (for example, for retrieval or early deletion). For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Storage class considerations with Amazon S3 transfers</a>.</p></li>
    /// <li>
    /// <p><code>NEVER</code> - DataSync doesn't overwrite data in the destination location even if the source data has changed. You can use this option to protect against overwriting changes made to files or objects in the destination.</p></li>
    /// </ul>
    pub overwrite_mode: ::std::option::Option<crate::types::OverwriteMode>,
    /// <p>Specifies whether to preserve metadata indicating the last time a file was read or written to.</p><note>
    /// <p>The behavior of <code>Atime</code> isn't fully standard across platforms, so DataSync can only do this on a best-effort basis.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>BEST_EFFORT</code> (default) - DataSync attempts to preserve the original <code>Atime</code> attribute on all source files (that is, the version before the <code>PREPARING</code> steps of the task execution). This option is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores <code>Atime</code>.</p></li>
    /// </ul><note>
    /// <p>If <code>Atime</code> is set to <code>BEST_EFFORT</code>, <code>Mtime</code> must be set to <code>PRESERVE</code>.</p>
    /// <p>If <code>Atime</code> is set to <code>NONE</code>, <code>Mtime</code> must also be <code>NONE</code>.</p>
    /// </note>
    pub atime: ::std::option::Option<crate::types::Atime>,
    /// <p>Specifies whether to preserve metadata indicating the last time that a file was written to before the <code>PREPARING</code> step of your task execution. This option is required when you need to run the a task more than once.</p>
    /// <ul>
    /// <li>
    /// <p><code>PRESERVE</code> (default) - Preserves original <code>Mtime</code>, which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores <code>Mtime</code>.</p></li>
    /// </ul><note>
    /// <p>If <code>Mtime</code> is set to <code>PRESERVE</code>, <code>Atime</code> must be set to <code>BEST_EFFORT</code>.</p>
    /// <p>If <code>Mtime</code> is set to <code>NONE</code>, <code>Atime</code> must also be set to <code>NONE</code>.</p>
    /// </note>
    pub mtime: ::std::option::Option<crate::types::Mtime>,
    /// <p>Specifies the POSIX user ID (UID) of the file's owner.</p>
    /// <ul>
    /// <li>
    /// <p><code>INT_VALUE</code> (default) - Preserves the integer value of UID and group ID (GID), which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores UID and GID.</p></li>
    /// </ul>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/special-files.html#metadata-copied">Metadata copied by DataSync</a>.</p>
    pub uid: ::std::option::Option<crate::types::Uid>,
    /// <p>Specifies the POSIX group ID (GID) of the file's owners.</p>
    /// <ul>
    /// <li>
    /// <p><code>INT_VALUE</code> (default) - Preserves the integer value of user ID (UID) and GID, which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores UID and GID.</p></li>
    /// </ul>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/metadata-copied.html">Understanding how DataSync handles file and object metadata</a>.</p>
    pub gid: ::std::option::Option<crate::types::Gid>,
    /// <p>Specifies whether files in the destination location that don't exist in the source should be preserved. This option can affect your Amazon S3 storage cost. If your task deletes objects, you might incur minimum storage duration charges for certain storage classes. For detailed information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Considerations when working with Amazon S3 storage classes in DataSync</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>PRESERVE</code> (default) - Ignores such destination files, which is recommended.</p></li>
    /// <li>
    /// <p><code>REMOVE</code> - Deletes destination files that aren’t present in the source.</p></li>
    /// </ul><note>
    /// <p>If you set this parameter to <code>REMOVE</code>, you can't set <code>TransferMode</code> to <code>ALL</code>. When you transfer all data, DataSync doesn't scan your destination location and doesn't know what to delete.</p>
    /// </note>
    pub preserve_deleted_files: ::std::option::Option<crate::types::PreserveDeletedFiles>,
    /// <p>Specifies whether DataSync should preserve the metadata of block and character devices in the source location and recreate the files with that device name and metadata on the destination. DataSync copies only the name and metadata of such devices.</p><note>
    /// <p>DataSync can't copy the actual contents of these devices because they're nonterminal and don't return an end-of-file (EOF) marker.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>NONE</code> (default) - Ignores special devices (recommended).</p></li>
    /// <li>
    /// <p><code>PRESERVE</code> - Preserves character and block device metadata. This option currently isn't supported for Amazon EFS.</p></li>
    /// </ul>
    pub preserve_devices: ::std::option::Option<crate::types::PreserveDevices>,
    /// <p>Specifies which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file.</p>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/metadata-copied.html">Understanding how DataSync handles file and object metadata</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>PRESERVE</code> (default) - Preserves POSIX-style permissions, which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores POSIX-style permissions.</p></li>
    /// </ul><note>
    /// <p>DataSync can preserve extant permissions of a source location.</p>
    /// </note>
    pub posix_permissions: ::std::option::Option<crate::types::PosixPermissions>,
    /// <p>Limits the bandwidth used by a DataSync task. For example, if you want DataSync to use a maximum of 1 MB, set this value to <code>1048576</code> (<code>=1024*1024</code>).</p>
    pub bytes_per_second: ::std::option::Option<i64>,
    /// <p>Specifies whether your transfer tasks should be put into a queue during certain scenarios when <a href="https://docs.aws.amazon.com/datasync/latest/userguide/run-task.html#running-multiple-tasks">running multiple tasks</a>. This is <code>ENABLED</code> by default.</p>
    pub task_queueing: ::std::option::Option<crate::types::TaskQueueing>,
    /// <p>Specifies the type of logs that DataSync publishes to a Amazon CloudWatch Logs log group. To specify the log group, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_CreateTask.html#DataSync-CreateTask-request-CloudWatchLogGroupArn">CloudWatchLogGroupArn</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>BASIC</code> - Publishes logs with only basic information (such as transfer errors).</p></li>
    /// <li>
    /// <p><code>TRANSFER</code> - Publishes logs for all files or objects that your DataSync task transfers and performs data-integrity checks on.</p></li>
    /// <li>
    /// <p><code>OFF</code> - No logs are published.</p></li>
    /// </ul>
    pub log_level: ::std::option::Option<crate::types::LogLevel>,
    /// <p>Specifies whether DataSync transfers only the data (including metadata) that differs between locations following an initial copy or transfers all data every time you run the task. If you're planning on recurring transfers, you might only want to transfer what's changed since your previous task execution.</p>
    /// <ul>
    /// <li>
    /// <p><code>CHANGED</code> (default) - After your initial full transfer, DataSync copies only the data and metadata that differs between the source and destination location.</p></li>
    /// <li>
    /// <p><code>ALL</code> - DataSync copies everything in the source to the destination without comparing differences between the locations.</p></li>
    /// </ul>
    pub transfer_mode: ::std::option::Option<crate::types::TransferMode>,
    /// <p>Specifies which components of the SMB security descriptor are copied from source to destination objects.</p>
    /// <p>This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations or between two FSx for Windows File Server locations. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/metadata-copied.html">Understanding how DataSync handles file and object metadata</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>OWNER_DACL</code> (default) - For each copied object, DataSync copies the following metadata:</p>
    /// <ul>
    /// <li>
    /// <p>The object owner.</p></li>
    /// <li>
    /// <p>NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.</p>
    /// <p>DataSync won't copy NTFS system access control lists (SACLs) with this option.</p></li>
    /// </ul></li>
    /// <li>
    /// <p><code>OWNER_DACL_SACL</code> - For each copied object, DataSync copies the following metadata:</p>
    /// <ul>
    /// <li>
    /// <p>The object owner.</p></li>
    /// <li>
    /// <p>NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.</p></li>
    /// <li>
    /// <p>SACLs, which are used by administrators to log attempts to access a secured object.</p>
    /// <p>Copying SACLs requires granting additional permissions to the Windows user that DataSync uses to access your SMB location. For information about choosing a user with the right permissions, see required permissions for <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-smb-location.html#configuring-smb-permissions">SMB</a>, <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-fsx-location.html#create-fsx-windows-location-permissions">FSx for Windows File Server</a>, or <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-ontap-location.html#create-ontap-location-smb">FSx for ONTAP</a> (depending on the type of location in your transfer).</p></li>
    /// </ul></li>
    /// <li>
    /// <p><code>NONE</code> - None of the SMB security descriptor components are copied. Destination objects are owned by the user that was provided for accessing the destination location. DACLs and SACLs are set based on the destination server’s configuration.</p></li>
    /// </ul>
    pub security_descriptor_copy_flags: ::std::option::Option<crate::types::SmbSecurityDescriptorCopyFlags>,
    /// <p>Specifies whether you want DataSync to <code>PRESERVE</code> object tags (default behavior) when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify the <code>NONE</code> value.</p>
    pub object_tags: ::std::option::Option<crate::types::ObjectTags>,
}
impl Options {
    /// <p>Specifies if and how DataSync checks the integrity of your data at the end of your transfer.</p>
    /// <ul>
    /// <li>
    /// <p><code>ONLY_FILES_TRANSFERRED</code> (recommended) - DataSync calculates the checksum of transferred data (including metadata) at the source location. At the end of the transfer, DataSync then compares this checksum to the checksum calculated on that data at the destination.</p><note>
    /// <p>This is the default option for <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
    /// </note>
    /// <p>We recommend this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Storage class considerations with Amazon S3 locations</a>.</p></li>
    /// <li>
    /// <p><code>POINT_IN_TIME_CONSISTENT</code> - At the end of the transfer, DataSync checks the entire source and destination to verify that both locations are fully synchronized.</p><note>
    /// <p>The is the default option for <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Basic mode tasks</a> and isn't currently supported with Enhanced mode tasks.</p>
    /// </note>
    /// <p>If you use a <a href="https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html">manifest</a>, DataSync only scans and verifies what's listed in the manifest.</p>
    /// <p>You can't use this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Storage class considerations with Amazon S3 locations</a>.</p></li>
    /// <li>
    /// <p><code>NONE</code> - DataSync performs data integrity checks only during your transfer. Unlike other options, there's no additional verification at the end of your transfer.</p></li>
    /// </ul>
    pub fn verify_mode(&self) -> ::std::option::Option<&crate::types::VerifyMode> {
        self.verify_mode.as_ref()
    }
    /// <p>Specifies whether DataSync should modify or preserve data at the destination location.</p>
    /// <ul>
    /// <li>
    /// <p><code>ALWAYS</code> (default) - DataSync modifies data in the destination location when source data (including metadata) has changed.</p>
    /// <p>If DataSync overwrites objects, you might incur additional charges for certain Amazon S3 storage classes (for example, for retrieval or early deletion). For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Storage class considerations with Amazon S3 transfers</a>.</p></li>
    /// <li>
    /// <p><code>NEVER</code> - DataSync doesn't overwrite data in the destination location even if the source data has changed. You can use this option to protect against overwriting changes made to files or objects in the destination.</p></li>
    /// </ul>
    pub fn overwrite_mode(&self) -> ::std::option::Option<&crate::types::OverwriteMode> {
        self.overwrite_mode.as_ref()
    }
    /// <p>Specifies whether to preserve metadata indicating the last time a file was read or written to.</p><note>
    /// <p>The behavior of <code>Atime</code> isn't fully standard across platforms, so DataSync can only do this on a best-effort basis.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>BEST_EFFORT</code> (default) - DataSync attempts to preserve the original <code>Atime</code> attribute on all source files (that is, the version before the <code>PREPARING</code> steps of the task execution). This option is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores <code>Atime</code>.</p></li>
    /// </ul><note>
    /// <p>If <code>Atime</code> is set to <code>BEST_EFFORT</code>, <code>Mtime</code> must be set to <code>PRESERVE</code>.</p>
    /// <p>If <code>Atime</code> is set to <code>NONE</code>, <code>Mtime</code> must also be <code>NONE</code>.</p>
    /// </note>
    pub fn atime(&self) -> ::std::option::Option<&crate::types::Atime> {
        self.atime.as_ref()
    }
    /// <p>Specifies whether to preserve metadata indicating the last time that a file was written to before the <code>PREPARING</code> step of your task execution. This option is required when you need to run the a task more than once.</p>
    /// <ul>
    /// <li>
    /// <p><code>PRESERVE</code> (default) - Preserves original <code>Mtime</code>, which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores <code>Mtime</code>.</p></li>
    /// </ul><note>
    /// <p>If <code>Mtime</code> is set to <code>PRESERVE</code>, <code>Atime</code> must be set to <code>BEST_EFFORT</code>.</p>
    /// <p>If <code>Mtime</code> is set to <code>NONE</code>, <code>Atime</code> must also be set to <code>NONE</code>.</p>
    /// </note>
    pub fn mtime(&self) -> ::std::option::Option<&crate::types::Mtime> {
        self.mtime.as_ref()
    }
    /// <p>Specifies the POSIX user ID (UID) of the file's owner.</p>
    /// <ul>
    /// <li>
    /// <p><code>INT_VALUE</code> (default) - Preserves the integer value of UID and group ID (GID), which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores UID and GID.</p></li>
    /// </ul>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/special-files.html#metadata-copied">Metadata copied by DataSync</a>.</p>
    pub fn uid(&self) -> ::std::option::Option<&crate::types::Uid> {
        self.uid.as_ref()
    }
    /// <p>Specifies the POSIX group ID (GID) of the file's owners.</p>
    /// <ul>
    /// <li>
    /// <p><code>INT_VALUE</code> (default) - Preserves the integer value of user ID (UID) and GID, which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores UID and GID.</p></li>
    /// </ul>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/metadata-copied.html">Understanding how DataSync handles file and object metadata</a>.</p>
    pub fn gid(&self) -> ::std::option::Option<&crate::types::Gid> {
        self.gid.as_ref()
    }
    /// <p>Specifies whether files in the destination location that don't exist in the source should be preserved. This option can affect your Amazon S3 storage cost. If your task deletes objects, you might incur minimum storage duration charges for certain storage classes. For detailed information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Considerations when working with Amazon S3 storage classes in DataSync</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>PRESERVE</code> (default) - Ignores such destination files, which is recommended.</p></li>
    /// <li>
    /// <p><code>REMOVE</code> - Deletes destination files that aren’t present in the source.</p></li>
    /// </ul><note>
    /// <p>If you set this parameter to <code>REMOVE</code>, you can't set <code>TransferMode</code> to <code>ALL</code>. When you transfer all data, DataSync doesn't scan your destination location and doesn't know what to delete.</p>
    /// </note>
    pub fn preserve_deleted_files(&self) -> ::std::option::Option<&crate::types::PreserveDeletedFiles> {
        self.preserve_deleted_files.as_ref()
    }
    /// <p>Specifies whether DataSync should preserve the metadata of block and character devices in the source location and recreate the files with that device name and metadata on the destination. DataSync copies only the name and metadata of such devices.</p><note>
    /// <p>DataSync can't copy the actual contents of these devices because they're nonterminal and don't return an end-of-file (EOF) marker.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>NONE</code> (default) - Ignores special devices (recommended).</p></li>
    /// <li>
    /// <p><code>PRESERVE</code> - Preserves character and block device metadata. This option currently isn't supported for Amazon EFS.</p></li>
    /// </ul>
    pub fn preserve_devices(&self) -> ::std::option::Option<&crate::types::PreserveDevices> {
        self.preserve_devices.as_ref()
    }
    /// <p>Specifies which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file.</p>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/metadata-copied.html">Understanding how DataSync handles file and object metadata</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>PRESERVE</code> (default) - Preserves POSIX-style permissions, which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores POSIX-style permissions.</p></li>
    /// </ul><note>
    /// <p>DataSync can preserve extant permissions of a source location.</p>
    /// </note>
    pub fn posix_permissions(&self) -> ::std::option::Option<&crate::types::PosixPermissions> {
        self.posix_permissions.as_ref()
    }
    /// <p>Limits the bandwidth used by a DataSync task. For example, if you want DataSync to use a maximum of 1 MB, set this value to <code>1048576</code> (<code>=1024*1024</code>).</p>
    pub fn bytes_per_second(&self) -> ::std::option::Option<i64> {
        self.bytes_per_second
    }
    /// <p>Specifies whether your transfer tasks should be put into a queue during certain scenarios when <a href="https://docs.aws.amazon.com/datasync/latest/userguide/run-task.html#running-multiple-tasks">running multiple tasks</a>. This is <code>ENABLED</code> by default.</p>
    pub fn task_queueing(&self) -> ::std::option::Option<&crate::types::TaskQueueing> {
        self.task_queueing.as_ref()
    }
    /// <p>Specifies the type of logs that DataSync publishes to a Amazon CloudWatch Logs log group. To specify the log group, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_CreateTask.html#DataSync-CreateTask-request-CloudWatchLogGroupArn">CloudWatchLogGroupArn</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>BASIC</code> - Publishes logs with only basic information (such as transfer errors).</p></li>
    /// <li>
    /// <p><code>TRANSFER</code> - Publishes logs for all files or objects that your DataSync task transfers and performs data-integrity checks on.</p></li>
    /// <li>
    /// <p><code>OFF</code> - No logs are published.</p></li>
    /// </ul>
    pub fn log_level(&self) -> ::std::option::Option<&crate::types::LogLevel> {
        self.log_level.as_ref()
    }
    /// <p>Specifies whether DataSync transfers only the data (including metadata) that differs between locations following an initial copy or transfers all data every time you run the task. If you're planning on recurring transfers, you might only want to transfer what's changed since your previous task execution.</p>
    /// <ul>
    /// <li>
    /// <p><code>CHANGED</code> (default) - After your initial full transfer, DataSync copies only the data and metadata that differs between the source and destination location.</p></li>
    /// <li>
    /// <p><code>ALL</code> - DataSync copies everything in the source to the destination without comparing differences between the locations.</p></li>
    /// </ul>
    pub fn transfer_mode(&self) -> ::std::option::Option<&crate::types::TransferMode> {
        self.transfer_mode.as_ref()
    }
    /// <p>Specifies which components of the SMB security descriptor are copied from source to destination objects.</p>
    /// <p>This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations or between two FSx for Windows File Server locations. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/metadata-copied.html">Understanding how DataSync handles file and object metadata</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>OWNER_DACL</code> (default) - For each copied object, DataSync copies the following metadata:</p>
    /// <ul>
    /// <li>
    /// <p>The object owner.</p></li>
    /// <li>
    /// <p>NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.</p>
    /// <p>DataSync won't copy NTFS system access control lists (SACLs) with this option.</p></li>
    /// </ul></li>
    /// <li>
    /// <p><code>OWNER_DACL_SACL</code> - For each copied object, DataSync copies the following metadata:</p>
    /// <ul>
    /// <li>
    /// <p>The object owner.</p></li>
    /// <li>
    /// <p>NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.</p></li>
    /// <li>
    /// <p>SACLs, which are used by administrators to log attempts to access a secured object.</p>
    /// <p>Copying SACLs requires granting additional permissions to the Windows user that DataSync uses to access your SMB location. For information about choosing a user with the right permissions, see required permissions for <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-smb-location.html#configuring-smb-permissions">SMB</a>, <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-fsx-location.html#create-fsx-windows-location-permissions">FSx for Windows File Server</a>, or <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-ontap-location.html#create-ontap-location-smb">FSx for ONTAP</a> (depending on the type of location in your transfer).</p></li>
    /// </ul></li>
    /// <li>
    /// <p><code>NONE</code> - None of the SMB security descriptor components are copied. Destination objects are owned by the user that was provided for accessing the destination location. DACLs and SACLs are set based on the destination server’s configuration.</p></li>
    /// </ul>
    pub fn security_descriptor_copy_flags(&self) -> ::std::option::Option<&crate::types::SmbSecurityDescriptorCopyFlags> {
        self.security_descriptor_copy_flags.as_ref()
    }
    /// <p>Specifies whether you want DataSync to <code>PRESERVE</code> object tags (default behavior) when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify the <code>NONE</code> value.</p>
    pub fn object_tags(&self) -> ::std::option::Option<&crate::types::ObjectTags> {
        self.object_tags.as_ref()
    }
}
impl Options {
    /// Creates a new builder-style object to manufacture [`Options`](crate::types::Options).
    pub fn builder() -> crate::types::builders::OptionsBuilder {
        crate::types::builders::OptionsBuilder::default()
    }
}

/// A builder for [`Options`](crate::types::Options).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct OptionsBuilder {
    pub(crate) verify_mode: ::std::option::Option<crate::types::VerifyMode>,
    pub(crate) overwrite_mode: ::std::option::Option<crate::types::OverwriteMode>,
    pub(crate) atime: ::std::option::Option<crate::types::Atime>,
    pub(crate) mtime: ::std::option::Option<crate::types::Mtime>,
    pub(crate) uid: ::std::option::Option<crate::types::Uid>,
    pub(crate) gid: ::std::option::Option<crate::types::Gid>,
    pub(crate) preserve_deleted_files: ::std::option::Option<crate::types::PreserveDeletedFiles>,
    pub(crate) preserve_devices: ::std::option::Option<crate::types::PreserveDevices>,
    pub(crate) posix_permissions: ::std::option::Option<crate::types::PosixPermissions>,
    pub(crate) bytes_per_second: ::std::option::Option<i64>,
    pub(crate) task_queueing: ::std::option::Option<crate::types::TaskQueueing>,
    pub(crate) log_level: ::std::option::Option<crate::types::LogLevel>,
    pub(crate) transfer_mode: ::std::option::Option<crate::types::TransferMode>,
    pub(crate) security_descriptor_copy_flags: ::std::option::Option<crate::types::SmbSecurityDescriptorCopyFlags>,
    pub(crate) object_tags: ::std::option::Option<crate::types::ObjectTags>,
}
impl OptionsBuilder {
    /// <p>Specifies if and how DataSync checks the integrity of your data at the end of your transfer.</p>
    /// <ul>
    /// <li>
    /// <p><code>ONLY_FILES_TRANSFERRED</code> (recommended) - DataSync calculates the checksum of transferred data (including metadata) at the source location. At the end of the transfer, DataSync then compares this checksum to the checksum calculated on that data at the destination.</p><note>
    /// <p>This is the default option for <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
    /// </note>
    /// <p>We recommend this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Storage class considerations with Amazon S3 locations</a>.</p></li>
    /// <li>
    /// <p><code>POINT_IN_TIME_CONSISTENT</code> - At the end of the transfer, DataSync checks the entire source and destination to verify that both locations are fully synchronized.</p><note>
    /// <p>The is the default option for <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Basic mode tasks</a> and isn't currently supported with Enhanced mode tasks.</p>
    /// </note>
    /// <p>If you use a <a href="https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html">manifest</a>, DataSync only scans and verifies what's listed in the manifest.</p>
    /// <p>You can't use this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Storage class considerations with Amazon S3 locations</a>.</p></li>
    /// <li>
    /// <p><code>NONE</code> - DataSync performs data integrity checks only during your transfer. Unlike other options, there's no additional verification at the end of your transfer.</p></li>
    /// </ul>
    pub fn verify_mode(mut self, input: crate::types::VerifyMode) -> Self {
        self.verify_mode = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies if and how DataSync checks the integrity of your data at the end of your transfer.</p>
    /// <ul>
    /// <li>
    /// <p><code>ONLY_FILES_TRANSFERRED</code> (recommended) - DataSync calculates the checksum of transferred data (including metadata) at the source location. At the end of the transfer, DataSync then compares this checksum to the checksum calculated on that data at the destination.</p><note>
    /// <p>This is the default option for <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
    /// </note>
    /// <p>We recommend this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Storage class considerations with Amazon S3 locations</a>.</p></li>
    /// <li>
    /// <p><code>POINT_IN_TIME_CONSISTENT</code> - At the end of the transfer, DataSync checks the entire source and destination to verify that both locations are fully synchronized.</p><note>
    /// <p>The is the default option for <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Basic mode tasks</a> and isn't currently supported with Enhanced mode tasks.</p>
    /// </note>
    /// <p>If you use a <a href="https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html">manifest</a>, DataSync only scans and verifies what's listed in the manifest.</p>
    /// <p>You can't use this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Storage class considerations with Amazon S3 locations</a>.</p></li>
    /// <li>
    /// <p><code>NONE</code> - DataSync performs data integrity checks only during your transfer. Unlike other options, there's no additional verification at the end of your transfer.</p></li>
    /// </ul>
    pub fn set_verify_mode(mut self, input: ::std::option::Option<crate::types::VerifyMode>) -> Self {
        self.verify_mode = input;
        self
    }
    /// <p>Specifies if and how DataSync checks the integrity of your data at the end of your transfer.</p>
    /// <ul>
    /// <li>
    /// <p><code>ONLY_FILES_TRANSFERRED</code> (recommended) - DataSync calculates the checksum of transferred data (including metadata) at the source location. At the end of the transfer, DataSync then compares this checksum to the checksum calculated on that data at the destination.</p><note>
    /// <p>This is the default option for <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Enhanced mode tasks</a>.</p>
    /// </note>
    /// <p>We recommend this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Storage class considerations with Amazon S3 locations</a>.</p></li>
    /// <li>
    /// <p><code>POINT_IN_TIME_CONSISTENT</code> - At the end of the transfer, DataSync checks the entire source and destination to verify that both locations are fully synchronized.</p><note>
    /// <p>The is the default option for <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html">Basic mode tasks</a> and isn't currently supported with Enhanced mode tasks.</p>
    /// </note>
    /// <p>If you use a <a href="https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html">manifest</a>, DataSync only scans and verifies what's listed in the manifest.</p>
    /// <p>You can't use this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Storage class considerations with Amazon S3 locations</a>.</p></li>
    /// <li>
    /// <p><code>NONE</code> - DataSync performs data integrity checks only during your transfer. Unlike other options, there's no additional verification at the end of your transfer.</p></li>
    /// </ul>
    pub fn get_verify_mode(&self) -> &::std::option::Option<crate::types::VerifyMode> {
        &self.verify_mode
    }
    /// <p>Specifies whether DataSync should modify or preserve data at the destination location.</p>
    /// <ul>
    /// <li>
    /// <p><code>ALWAYS</code> (default) - DataSync modifies data in the destination location when source data (including metadata) has changed.</p>
    /// <p>If DataSync overwrites objects, you might incur additional charges for certain Amazon S3 storage classes (for example, for retrieval or early deletion). For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Storage class considerations with Amazon S3 transfers</a>.</p></li>
    /// <li>
    /// <p><code>NEVER</code> - DataSync doesn't overwrite data in the destination location even if the source data has changed. You can use this option to protect against overwriting changes made to files or objects in the destination.</p></li>
    /// </ul>
    pub fn overwrite_mode(mut self, input: crate::types::OverwriteMode) -> Self {
        self.overwrite_mode = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies whether DataSync should modify or preserve data at the destination location.</p>
    /// <ul>
    /// <li>
    /// <p><code>ALWAYS</code> (default) - DataSync modifies data in the destination location when source data (including metadata) has changed.</p>
    /// <p>If DataSync overwrites objects, you might incur additional charges for certain Amazon S3 storage classes (for example, for retrieval or early deletion). For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Storage class considerations with Amazon S3 transfers</a>.</p></li>
    /// <li>
    /// <p><code>NEVER</code> - DataSync doesn't overwrite data in the destination location even if the source data has changed. You can use this option to protect against overwriting changes made to files or objects in the destination.</p></li>
    /// </ul>
    pub fn set_overwrite_mode(mut self, input: ::std::option::Option<crate::types::OverwriteMode>) -> Self {
        self.overwrite_mode = input;
        self
    }
    /// <p>Specifies whether DataSync should modify or preserve data at the destination location.</p>
    /// <ul>
    /// <li>
    /// <p><code>ALWAYS</code> (default) - DataSync modifies data in the destination location when source data (including metadata) has changed.</p>
    /// <p>If DataSync overwrites objects, you might incur additional charges for certain Amazon S3 storage classes (for example, for retrieval or early deletion). For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Storage class considerations with Amazon S3 transfers</a>.</p></li>
    /// <li>
    /// <p><code>NEVER</code> - DataSync doesn't overwrite data in the destination location even if the source data has changed. You can use this option to protect against overwriting changes made to files or objects in the destination.</p></li>
    /// </ul>
    pub fn get_overwrite_mode(&self) -> &::std::option::Option<crate::types::OverwriteMode> {
        &self.overwrite_mode
    }
    /// <p>Specifies whether to preserve metadata indicating the last time a file was read or written to.</p><note>
    /// <p>The behavior of <code>Atime</code> isn't fully standard across platforms, so DataSync can only do this on a best-effort basis.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>BEST_EFFORT</code> (default) - DataSync attempts to preserve the original <code>Atime</code> attribute on all source files (that is, the version before the <code>PREPARING</code> steps of the task execution). This option is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores <code>Atime</code>.</p></li>
    /// </ul><note>
    /// <p>If <code>Atime</code> is set to <code>BEST_EFFORT</code>, <code>Mtime</code> must be set to <code>PRESERVE</code>.</p>
    /// <p>If <code>Atime</code> is set to <code>NONE</code>, <code>Mtime</code> must also be <code>NONE</code>.</p>
    /// </note>
    pub fn atime(mut self, input: crate::types::Atime) -> Self {
        self.atime = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies whether to preserve metadata indicating the last time a file was read or written to.</p><note>
    /// <p>The behavior of <code>Atime</code> isn't fully standard across platforms, so DataSync can only do this on a best-effort basis.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>BEST_EFFORT</code> (default) - DataSync attempts to preserve the original <code>Atime</code> attribute on all source files (that is, the version before the <code>PREPARING</code> steps of the task execution). This option is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores <code>Atime</code>.</p></li>
    /// </ul><note>
    /// <p>If <code>Atime</code> is set to <code>BEST_EFFORT</code>, <code>Mtime</code> must be set to <code>PRESERVE</code>.</p>
    /// <p>If <code>Atime</code> is set to <code>NONE</code>, <code>Mtime</code> must also be <code>NONE</code>.</p>
    /// </note>
    pub fn set_atime(mut self, input: ::std::option::Option<crate::types::Atime>) -> Self {
        self.atime = input;
        self
    }
    /// <p>Specifies whether to preserve metadata indicating the last time a file was read or written to.</p><note>
    /// <p>The behavior of <code>Atime</code> isn't fully standard across platforms, so DataSync can only do this on a best-effort basis.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>BEST_EFFORT</code> (default) - DataSync attempts to preserve the original <code>Atime</code> attribute on all source files (that is, the version before the <code>PREPARING</code> steps of the task execution). This option is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores <code>Atime</code>.</p></li>
    /// </ul><note>
    /// <p>If <code>Atime</code> is set to <code>BEST_EFFORT</code>, <code>Mtime</code> must be set to <code>PRESERVE</code>.</p>
    /// <p>If <code>Atime</code> is set to <code>NONE</code>, <code>Mtime</code> must also be <code>NONE</code>.</p>
    /// </note>
    pub fn get_atime(&self) -> &::std::option::Option<crate::types::Atime> {
        &self.atime
    }
    /// <p>Specifies whether to preserve metadata indicating the last time that a file was written to before the <code>PREPARING</code> step of your task execution. This option is required when you need to run the a task more than once.</p>
    /// <ul>
    /// <li>
    /// <p><code>PRESERVE</code> (default) - Preserves original <code>Mtime</code>, which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores <code>Mtime</code>.</p></li>
    /// </ul><note>
    /// <p>If <code>Mtime</code> is set to <code>PRESERVE</code>, <code>Atime</code> must be set to <code>BEST_EFFORT</code>.</p>
    /// <p>If <code>Mtime</code> is set to <code>NONE</code>, <code>Atime</code> must also be set to <code>NONE</code>.</p>
    /// </note>
    pub fn mtime(mut self, input: crate::types::Mtime) -> Self {
        self.mtime = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies whether to preserve metadata indicating the last time that a file was written to before the <code>PREPARING</code> step of your task execution. This option is required when you need to run the a task more than once.</p>
    /// <ul>
    /// <li>
    /// <p><code>PRESERVE</code> (default) - Preserves original <code>Mtime</code>, which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores <code>Mtime</code>.</p></li>
    /// </ul><note>
    /// <p>If <code>Mtime</code> is set to <code>PRESERVE</code>, <code>Atime</code> must be set to <code>BEST_EFFORT</code>.</p>
    /// <p>If <code>Mtime</code> is set to <code>NONE</code>, <code>Atime</code> must also be set to <code>NONE</code>.</p>
    /// </note>
    pub fn set_mtime(mut self, input: ::std::option::Option<crate::types::Mtime>) -> Self {
        self.mtime = input;
        self
    }
    /// <p>Specifies whether to preserve metadata indicating the last time that a file was written to before the <code>PREPARING</code> step of your task execution. This option is required when you need to run the a task more than once.</p>
    /// <ul>
    /// <li>
    /// <p><code>PRESERVE</code> (default) - Preserves original <code>Mtime</code>, which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores <code>Mtime</code>.</p></li>
    /// </ul><note>
    /// <p>If <code>Mtime</code> is set to <code>PRESERVE</code>, <code>Atime</code> must be set to <code>BEST_EFFORT</code>.</p>
    /// <p>If <code>Mtime</code> is set to <code>NONE</code>, <code>Atime</code> must also be set to <code>NONE</code>.</p>
    /// </note>
    pub fn get_mtime(&self) -> &::std::option::Option<crate::types::Mtime> {
        &self.mtime
    }
    /// <p>Specifies the POSIX user ID (UID) of the file's owner.</p>
    /// <ul>
    /// <li>
    /// <p><code>INT_VALUE</code> (default) - Preserves the integer value of UID and group ID (GID), which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores UID and GID.</p></li>
    /// </ul>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/special-files.html#metadata-copied">Metadata copied by DataSync</a>.</p>
    pub fn uid(mut self, input: crate::types::Uid) -> Self {
        self.uid = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies the POSIX user ID (UID) of the file's owner.</p>
    /// <ul>
    /// <li>
    /// <p><code>INT_VALUE</code> (default) - Preserves the integer value of UID and group ID (GID), which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores UID and GID.</p></li>
    /// </ul>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/special-files.html#metadata-copied">Metadata copied by DataSync</a>.</p>
    pub fn set_uid(mut self, input: ::std::option::Option<crate::types::Uid>) -> Self {
        self.uid = input;
        self
    }
    /// <p>Specifies the POSIX user ID (UID) of the file's owner.</p>
    /// <ul>
    /// <li>
    /// <p><code>INT_VALUE</code> (default) - Preserves the integer value of UID and group ID (GID), which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores UID and GID.</p></li>
    /// </ul>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/special-files.html#metadata-copied">Metadata copied by DataSync</a>.</p>
    pub fn get_uid(&self) -> &::std::option::Option<crate::types::Uid> {
        &self.uid
    }
    /// <p>Specifies the POSIX group ID (GID) of the file's owners.</p>
    /// <ul>
    /// <li>
    /// <p><code>INT_VALUE</code> (default) - Preserves the integer value of user ID (UID) and GID, which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores UID and GID.</p></li>
    /// </ul>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/metadata-copied.html">Understanding how DataSync handles file and object metadata</a>.</p>
    pub fn gid(mut self, input: crate::types::Gid) -> Self {
        self.gid = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies the POSIX group ID (GID) of the file's owners.</p>
    /// <ul>
    /// <li>
    /// <p><code>INT_VALUE</code> (default) - Preserves the integer value of user ID (UID) and GID, which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores UID and GID.</p></li>
    /// </ul>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/metadata-copied.html">Understanding how DataSync handles file and object metadata</a>.</p>
    pub fn set_gid(mut self, input: ::std::option::Option<crate::types::Gid>) -> Self {
        self.gid = input;
        self
    }
    /// <p>Specifies the POSIX group ID (GID) of the file's owners.</p>
    /// <ul>
    /// <li>
    /// <p><code>INT_VALUE</code> (default) - Preserves the integer value of user ID (UID) and GID, which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores UID and GID.</p></li>
    /// </ul>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/metadata-copied.html">Understanding how DataSync handles file and object metadata</a>.</p>
    pub fn get_gid(&self) -> &::std::option::Option<crate::types::Gid> {
        &self.gid
    }
    /// <p>Specifies whether files in the destination location that don't exist in the source should be preserved. This option can affect your Amazon S3 storage cost. If your task deletes objects, you might incur minimum storage duration charges for certain storage classes. For detailed information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Considerations when working with Amazon S3 storage classes in DataSync</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>PRESERVE</code> (default) - Ignores such destination files, which is recommended.</p></li>
    /// <li>
    /// <p><code>REMOVE</code> - Deletes destination files that aren’t present in the source.</p></li>
    /// </ul><note>
    /// <p>If you set this parameter to <code>REMOVE</code>, you can't set <code>TransferMode</code> to <code>ALL</code>. When you transfer all data, DataSync doesn't scan your destination location and doesn't know what to delete.</p>
    /// </note>
    pub fn preserve_deleted_files(mut self, input: crate::types::PreserveDeletedFiles) -> Self {
        self.preserve_deleted_files = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies whether files in the destination location that don't exist in the source should be preserved. This option can affect your Amazon S3 storage cost. If your task deletes objects, you might incur minimum storage duration charges for certain storage classes. For detailed information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Considerations when working with Amazon S3 storage classes in DataSync</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>PRESERVE</code> (default) - Ignores such destination files, which is recommended.</p></li>
    /// <li>
    /// <p><code>REMOVE</code> - Deletes destination files that aren’t present in the source.</p></li>
    /// </ul><note>
    /// <p>If you set this parameter to <code>REMOVE</code>, you can't set <code>TransferMode</code> to <code>ALL</code>. When you transfer all data, DataSync doesn't scan your destination location and doesn't know what to delete.</p>
    /// </note>
    pub fn set_preserve_deleted_files(mut self, input: ::std::option::Option<crate::types::PreserveDeletedFiles>) -> Self {
        self.preserve_deleted_files = input;
        self
    }
    /// <p>Specifies whether files in the destination location that don't exist in the source should be preserved. This option can affect your Amazon S3 storage cost. If your task deletes objects, you might incur minimum storage duration charges for certain storage classes. For detailed information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes">Considerations when working with Amazon S3 storage classes in DataSync</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>PRESERVE</code> (default) - Ignores such destination files, which is recommended.</p></li>
    /// <li>
    /// <p><code>REMOVE</code> - Deletes destination files that aren’t present in the source.</p></li>
    /// </ul><note>
    /// <p>If you set this parameter to <code>REMOVE</code>, you can't set <code>TransferMode</code> to <code>ALL</code>. When you transfer all data, DataSync doesn't scan your destination location and doesn't know what to delete.</p>
    /// </note>
    pub fn get_preserve_deleted_files(&self) -> &::std::option::Option<crate::types::PreserveDeletedFiles> {
        &self.preserve_deleted_files
    }
    /// <p>Specifies whether DataSync should preserve the metadata of block and character devices in the source location and recreate the files with that device name and metadata on the destination. DataSync copies only the name and metadata of such devices.</p><note>
    /// <p>DataSync can't copy the actual contents of these devices because they're nonterminal and don't return an end-of-file (EOF) marker.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>NONE</code> (default) - Ignores special devices (recommended).</p></li>
    /// <li>
    /// <p><code>PRESERVE</code> - Preserves character and block device metadata. This option currently isn't supported for Amazon EFS.</p></li>
    /// </ul>
    pub fn preserve_devices(mut self, input: crate::types::PreserveDevices) -> Self {
        self.preserve_devices = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies whether DataSync should preserve the metadata of block and character devices in the source location and recreate the files with that device name and metadata on the destination. DataSync copies only the name and metadata of such devices.</p><note>
    /// <p>DataSync can't copy the actual contents of these devices because they're nonterminal and don't return an end-of-file (EOF) marker.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>NONE</code> (default) - Ignores special devices (recommended).</p></li>
    /// <li>
    /// <p><code>PRESERVE</code> - Preserves character and block device metadata. This option currently isn't supported for Amazon EFS.</p></li>
    /// </ul>
    pub fn set_preserve_devices(mut self, input: ::std::option::Option<crate::types::PreserveDevices>) -> Self {
        self.preserve_devices = input;
        self
    }
    /// <p>Specifies whether DataSync should preserve the metadata of block and character devices in the source location and recreate the files with that device name and metadata on the destination. DataSync copies only the name and metadata of such devices.</p><note>
    /// <p>DataSync can't copy the actual contents of these devices because they're nonterminal and don't return an end-of-file (EOF) marker.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>NONE</code> (default) - Ignores special devices (recommended).</p></li>
    /// <li>
    /// <p><code>PRESERVE</code> - Preserves character and block device metadata. This option currently isn't supported for Amazon EFS.</p></li>
    /// </ul>
    pub fn get_preserve_devices(&self) -> &::std::option::Option<crate::types::PreserveDevices> {
        &self.preserve_devices
    }
    /// <p>Specifies which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file.</p>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/metadata-copied.html">Understanding how DataSync handles file and object metadata</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>PRESERVE</code> (default) - Preserves POSIX-style permissions, which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores POSIX-style permissions.</p></li>
    /// </ul><note>
    /// <p>DataSync can preserve extant permissions of a source location.</p>
    /// </note>
    pub fn posix_permissions(mut self, input: crate::types::PosixPermissions) -> Self {
        self.posix_permissions = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file.</p>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/metadata-copied.html">Understanding how DataSync handles file and object metadata</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>PRESERVE</code> (default) - Preserves POSIX-style permissions, which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores POSIX-style permissions.</p></li>
    /// </ul><note>
    /// <p>DataSync can preserve extant permissions of a source location.</p>
    /// </note>
    pub fn set_posix_permissions(mut self, input: ::std::option::Option<crate::types::PosixPermissions>) -> Self {
        self.posix_permissions = input;
        self
    }
    /// <p>Specifies which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file.</p>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/metadata-copied.html">Understanding how DataSync handles file and object metadata</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>PRESERVE</code> (default) - Preserves POSIX-style permissions, which is recommended.</p></li>
    /// <li>
    /// <p><code>NONE</code> - Ignores POSIX-style permissions.</p></li>
    /// </ul><note>
    /// <p>DataSync can preserve extant permissions of a source location.</p>
    /// </note>
    pub fn get_posix_permissions(&self) -> &::std::option::Option<crate::types::PosixPermissions> {
        &self.posix_permissions
    }
    /// <p>Limits the bandwidth used by a DataSync task. For example, if you want DataSync to use a maximum of 1 MB, set this value to <code>1048576</code> (<code>=1024*1024</code>).</p>
    pub fn bytes_per_second(mut self, input: i64) -> Self {
        self.bytes_per_second = ::std::option::Option::Some(input);
        self
    }
    /// <p>Limits the bandwidth used by a DataSync task. For example, if you want DataSync to use a maximum of 1 MB, set this value to <code>1048576</code> (<code>=1024*1024</code>).</p>
    pub fn set_bytes_per_second(mut self, input: ::std::option::Option<i64>) -> Self {
        self.bytes_per_second = input;
        self
    }
    /// <p>Limits the bandwidth used by a DataSync task. For example, if you want DataSync to use a maximum of 1 MB, set this value to <code>1048576</code> (<code>=1024*1024</code>).</p>
    pub fn get_bytes_per_second(&self) -> &::std::option::Option<i64> {
        &self.bytes_per_second
    }
    /// <p>Specifies whether your transfer tasks should be put into a queue during certain scenarios when <a href="https://docs.aws.amazon.com/datasync/latest/userguide/run-task.html#running-multiple-tasks">running multiple tasks</a>. This is <code>ENABLED</code> by default.</p>
    pub fn task_queueing(mut self, input: crate::types::TaskQueueing) -> Self {
        self.task_queueing = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies whether your transfer tasks should be put into a queue during certain scenarios when <a href="https://docs.aws.amazon.com/datasync/latest/userguide/run-task.html#running-multiple-tasks">running multiple tasks</a>. This is <code>ENABLED</code> by default.</p>
    pub fn set_task_queueing(mut self, input: ::std::option::Option<crate::types::TaskQueueing>) -> Self {
        self.task_queueing = input;
        self
    }
    /// <p>Specifies whether your transfer tasks should be put into a queue during certain scenarios when <a href="https://docs.aws.amazon.com/datasync/latest/userguide/run-task.html#running-multiple-tasks">running multiple tasks</a>. This is <code>ENABLED</code> by default.</p>
    pub fn get_task_queueing(&self) -> &::std::option::Option<crate::types::TaskQueueing> {
        &self.task_queueing
    }
    /// <p>Specifies the type of logs that DataSync publishes to a Amazon CloudWatch Logs log group. To specify the log group, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_CreateTask.html#DataSync-CreateTask-request-CloudWatchLogGroupArn">CloudWatchLogGroupArn</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>BASIC</code> - Publishes logs with only basic information (such as transfer errors).</p></li>
    /// <li>
    /// <p><code>TRANSFER</code> - Publishes logs for all files or objects that your DataSync task transfers and performs data-integrity checks on.</p></li>
    /// <li>
    /// <p><code>OFF</code> - No logs are published.</p></li>
    /// </ul>
    pub fn log_level(mut self, input: crate::types::LogLevel) -> Self {
        self.log_level = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies the type of logs that DataSync publishes to a Amazon CloudWatch Logs log group. To specify the log group, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_CreateTask.html#DataSync-CreateTask-request-CloudWatchLogGroupArn">CloudWatchLogGroupArn</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>BASIC</code> - Publishes logs with only basic information (such as transfer errors).</p></li>
    /// <li>
    /// <p><code>TRANSFER</code> - Publishes logs for all files or objects that your DataSync task transfers and performs data-integrity checks on.</p></li>
    /// <li>
    /// <p><code>OFF</code> - No logs are published.</p></li>
    /// </ul>
    pub fn set_log_level(mut self, input: ::std::option::Option<crate::types::LogLevel>) -> Self {
        self.log_level = input;
        self
    }
    /// <p>Specifies the type of logs that DataSync publishes to a Amazon CloudWatch Logs log group. To specify the log group, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_CreateTask.html#DataSync-CreateTask-request-CloudWatchLogGroupArn">CloudWatchLogGroupArn</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>BASIC</code> - Publishes logs with only basic information (such as transfer errors).</p></li>
    /// <li>
    /// <p><code>TRANSFER</code> - Publishes logs for all files or objects that your DataSync task transfers and performs data-integrity checks on.</p></li>
    /// <li>
    /// <p><code>OFF</code> - No logs are published.</p></li>
    /// </ul>
    pub fn get_log_level(&self) -> &::std::option::Option<crate::types::LogLevel> {
        &self.log_level
    }
    /// <p>Specifies whether DataSync transfers only the data (including metadata) that differs between locations following an initial copy or transfers all data every time you run the task. If you're planning on recurring transfers, you might only want to transfer what's changed since your previous task execution.</p>
    /// <ul>
    /// <li>
    /// <p><code>CHANGED</code> (default) - After your initial full transfer, DataSync copies only the data and metadata that differs between the source and destination location.</p></li>
    /// <li>
    /// <p><code>ALL</code> - DataSync copies everything in the source to the destination without comparing differences between the locations.</p></li>
    /// </ul>
    pub fn transfer_mode(mut self, input: crate::types::TransferMode) -> Self {
        self.transfer_mode = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies whether DataSync transfers only the data (including metadata) that differs between locations following an initial copy or transfers all data every time you run the task. If you're planning on recurring transfers, you might only want to transfer what's changed since your previous task execution.</p>
    /// <ul>
    /// <li>
    /// <p><code>CHANGED</code> (default) - After your initial full transfer, DataSync copies only the data and metadata that differs between the source and destination location.</p></li>
    /// <li>
    /// <p><code>ALL</code> - DataSync copies everything in the source to the destination without comparing differences between the locations.</p></li>
    /// </ul>
    pub fn set_transfer_mode(mut self, input: ::std::option::Option<crate::types::TransferMode>) -> Self {
        self.transfer_mode = input;
        self
    }
    /// <p>Specifies whether DataSync transfers only the data (including metadata) that differs between locations following an initial copy or transfers all data every time you run the task. If you're planning on recurring transfers, you might only want to transfer what's changed since your previous task execution.</p>
    /// <ul>
    /// <li>
    /// <p><code>CHANGED</code> (default) - After your initial full transfer, DataSync copies only the data and metadata that differs between the source and destination location.</p></li>
    /// <li>
    /// <p><code>ALL</code> - DataSync copies everything in the source to the destination without comparing differences between the locations.</p></li>
    /// </ul>
    pub fn get_transfer_mode(&self) -> &::std::option::Option<crate::types::TransferMode> {
        &self.transfer_mode
    }
    /// <p>Specifies which components of the SMB security descriptor are copied from source to destination objects.</p>
    /// <p>This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations or between two FSx for Windows File Server locations. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/metadata-copied.html">Understanding how DataSync handles file and object metadata</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>OWNER_DACL</code> (default) - For each copied object, DataSync copies the following metadata:</p>
    /// <ul>
    /// <li>
    /// <p>The object owner.</p></li>
    /// <li>
    /// <p>NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.</p>
    /// <p>DataSync won't copy NTFS system access control lists (SACLs) with this option.</p></li>
    /// </ul></li>
    /// <li>
    /// <p><code>OWNER_DACL_SACL</code> - For each copied object, DataSync copies the following metadata:</p>
    /// <ul>
    /// <li>
    /// <p>The object owner.</p></li>
    /// <li>
    /// <p>NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.</p></li>
    /// <li>
    /// <p>SACLs, which are used by administrators to log attempts to access a secured object.</p>
    /// <p>Copying SACLs requires granting additional permissions to the Windows user that DataSync uses to access your SMB location. For information about choosing a user with the right permissions, see required permissions for <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-smb-location.html#configuring-smb-permissions">SMB</a>, <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-fsx-location.html#create-fsx-windows-location-permissions">FSx for Windows File Server</a>, or <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-ontap-location.html#create-ontap-location-smb">FSx for ONTAP</a> (depending on the type of location in your transfer).</p></li>
    /// </ul></li>
    /// <li>
    /// <p><code>NONE</code> - None of the SMB security descriptor components are copied. Destination objects are owned by the user that was provided for accessing the destination location. DACLs and SACLs are set based on the destination server’s configuration.</p></li>
    /// </ul>
    pub fn security_descriptor_copy_flags(mut self, input: crate::types::SmbSecurityDescriptorCopyFlags) -> Self {
        self.security_descriptor_copy_flags = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies which components of the SMB security descriptor are copied from source to destination objects.</p>
    /// <p>This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations or between two FSx for Windows File Server locations. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/metadata-copied.html">Understanding how DataSync handles file and object metadata</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>OWNER_DACL</code> (default) - For each copied object, DataSync copies the following metadata:</p>
    /// <ul>
    /// <li>
    /// <p>The object owner.</p></li>
    /// <li>
    /// <p>NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.</p>
    /// <p>DataSync won't copy NTFS system access control lists (SACLs) with this option.</p></li>
    /// </ul></li>
    /// <li>
    /// <p><code>OWNER_DACL_SACL</code> - For each copied object, DataSync copies the following metadata:</p>
    /// <ul>
    /// <li>
    /// <p>The object owner.</p></li>
    /// <li>
    /// <p>NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.</p></li>
    /// <li>
    /// <p>SACLs, which are used by administrators to log attempts to access a secured object.</p>
    /// <p>Copying SACLs requires granting additional permissions to the Windows user that DataSync uses to access your SMB location. For information about choosing a user with the right permissions, see required permissions for <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-smb-location.html#configuring-smb-permissions">SMB</a>, <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-fsx-location.html#create-fsx-windows-location-permissions">FSx for Windows File Server</a>, or <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-ontap-location.html#create-ontap-location-smb">FSx for ONTAP</a> (depending on the type of location in your transfer).</p></li>
    /// </ul></li>
    /// <li>
    /// <p><code>NONE</code> - None of the SMB security descriptor components are copied. Destination objects are owned by the user that was provided for accessing the destination location. DACLs and SACLs are set based on the destination server’s configuration.</p></li>
    /// </ul>
    pub fn set_security_descriptor_copy_flags(mut self, input: ::std::option::Option<crate::types::SmbSecurityDescriptorCopyFlags>) -> Self {
        self.security_descriptor_copy_flags = input;
        self
    }
    /// <p>Specifies which components of the SMB security descriptor are copied from source to destination objects.</p>
    /// <p>This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations or between two FSx for Windows File Server locations. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/metadata-copied.html">Understanding how DataSync handles file and object metadata</a>.</p>
    /// <ul>
    /// <li>
    /// <p><code>OWNER_DACL</code> (default) - For each copied object, DataSync copies the following metadata:</p>
    /// <ul>
    /// <li>
    /// <p>The object owner.</p></li>
    /// <li>
    /// <p>NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.</p>
    /// <p>DataSync won't copy NTFS system access control lists (SACLs) with this option.</p></li>
    /// </ul></li>
    /// <li>
    /// <p><code>OWNER_DACL_SACL</code> - For each copied object, DataSync copies the following metadata:</p>
    /// <ul>
    /// <li>
    /// <p>The object owner.</p></li>
    /// <li>
    /// <p>NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.</p></li>
    /// <li>
    /// <p>SACLs, which are used by administrators to log attempts to access a secured object.</p>
    /// <p>Copying SACLs requires granting additional permissions to the Windows user that DataSync uses to access your SMB location. For information about choosing a user with the right permissions, see required permissions for <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-smb-location.html#configuring-smb-permissions">SMB</a>, <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-fsx-location.html#create-fsx-windows-location-permissions">FSx for Windows File Server</a>, or <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-ontap-location.html#create-ontap-location-smb">FSx for ONTAP</a> (depending on the type of location in your transfer).</p></li>
    /// </ul></li>
    /// <li>
    /// <p><code>NONE</code> - None of the SMB security descriptor components are copied. Destination objects are owned by the user that was provided for accessing the destination location. DACLs and SACLs are set based on the destination server’s configuration.</p></li>
    /// </ul>
    pub fn get_security_descriptor_copy_flags(&self) -> &::std::option::Option<crate::types::SmbSecurityDescriptorCopyFlags> {
        &self.security_descriptor_copy_flags
    }
    /// <p>Specifies whether you want DataSync to <code>PRESERVE</code> object tags (default behavior) when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify the <code>NONE</code> value.</p>
    pub fn object_tags(mut self, input: crate::types::ObjectTags) -> Self {
        self.object_tags = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies whether you want DataSync to <code>PRESERVE</code> object tags (default behavior) when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify the <code>NONE</code> value.</p>
    pub fn set_object_tags(mut self, input: ::std::option::Option<crate::types::ObjectTags>) -> Self {
        self.object_tags = input;
        self
    }
    /// <p>Specifies whether you want DataSync to <code>PRESERVE</code> object tags (default behavior) when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify the <code>NONE</code> value.</p>
    pub fn get_object_tags(&self) -> &::std::option::Option<crate::types::ObjectTags> {
        &self.object_tags
    }
    /// Consumes the builder and constructs a [`Options`](crate::types::Options).
    pub fn build(self) -> crate::types::Options {
        crate::types::Options {
            verify_mode: self.verify_mode,
            overwrite_mode: self.overwrite_mode,
            atime: self.atime,
            mtime: self.mtime,
            uid: self.uid,
            gid: self.gid,
            preserve_deleted_files: self.preserve_deleted_files,
            preserve_devices: self.preserve_devices,
            posix_permissions: self.posix_permissions,
            bytes_per_second: self.bytes_per_second,
            task_queueing: self.task_queueing,
            log_level: self.log_level,
            transfer_mode: self.transfer_mode,
            security_descriptor_copy_flags: self.security_descriptor_copy_flags,
            object_tags: self.object_tags,
        }
    }
}