aws_sdk_datasync/operation/update_task/
_update_task_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>UpdateTaskResponse</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct UpdateTaskInput {
7    /// <p>Specifies the ARN of the task that you want to update.</p>
8    pub task_arn: ::std::option::Option<::std::string::String>,
9    /// <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>
10    /// <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>
11    /// <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>
12    pub options: ::std::option::Option<crate::types::Options>,
13    /// <p>Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Specifying what DataSync transfers by using filters</a>.</p>
14    pub excludes: ::std::option::Option<::std::vec::Vec<crate::types::FilterRule>>,
15    /// <p>Specifies a schedule for when you want your task to run. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html">Scheduling your task</a>.</p>
16    pub schedule: ::std::option::Option<crate::types::TaskSchedule>,
17    /// <p>Specifies the name of your task.</p>
18    pub name: ::std::option::Option<::std::string::String>,
19    /// <p>Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.</p>
20    /// <p>For Enhanced mode tasks, you must use <code>/aws/datasync</code> as your log group name. For example:</p>
21    /// <p><code>arn:aws:logs:us-east-1:111222333444:log-group:/aws/datasync:*</code></p>
22    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-logging.html">Monitoring data transfers with CloudWatch Logs</a>.</p>
23    pub cloud_watch_log_group_arn: ::std::option::Option<::std::string::String>,
24    /// <p>Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Specifying what DataSync transfers by using filters</a>.</p>
25    pub includes: ::std::option::Option<::std::vec::Vec<crate::types::FilterRule>>,
26    /// <p>Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, 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>
27    /// <p>When using this parameter, your caller identity (the IAM role that you're using DataSync with) must have the <code>iam:PassRole</code> permission. The <a href="https://docs.aws.amazon.com/datasync/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-awsdatasyncfullaccess">AWSDataSyncFullAccess</a> policy includes this permission.</p>
28    /// <p>To remove a manifest configuration, specify this parameter as empty.</p>
29    pub manifest_config: ::std::option::Option<crate::types::ManifestConfig>,
30    /// <p>Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html">Monitoring your DataSync transfers with task reports</a>.</p>
31    /// <p>When using this parameter, your caller identity (the IAM role that you're using DataSync with) must have the <code>iam:PassRole</code> permission. The <a href="https://docs.aws.amazon.com/datasync/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-awsdatasyncfullaccess">AWSDataSyncFullAccess</a> policy includes this permission.</p>
32    /// <p>To remove a task report configuration, specify this parameter as empty.</p>
33    pub task_report_config: ::std::option::Option<crate::types::TaskReportConfig>,
34}
35impl UpdateTaskInput {
36    /// <p>Specifies the ARN of the task that you want to update.</p>
37    pub fn task_arn(&self) -> ::std::option::Option<&str> {
38        self.task_arn.as_deref()
39    }
40    /// <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>
41    /// <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>
42    /// <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>
43    pub fn options(&self) -> ::std::option::Option<&crate::types::Options> {
44        self.options.as_ref()
45    }
46    /// <p>Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Specifying what DataSync transfers by using filters</a>.</p>
47    ///
48    /// 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()`.
49    pub fn excludes(&self) -> &[crate::types::FilterRule] {
50        self.excludes.as_deref().unwrap_or_default()
51    }
52    /// <p>Specifies a schedule for when you want your task to run. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html">Scheduling your task</a>.</p>
53    pub fn schedule(&self) -> ::std::option::Option<&crate::types::TaskSchedule> {
54        self.schedule.as_ref()
55    }
56    /// <p>Specifies the name of your task.</p>
57    pub fn name(&self) -> ::std::option::Option<&str> {
58        self.name.as_deref()
59    }
60    /// <p>Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.</p>
61    /// <p>For Enhanced mode tasks, you must use <code>/aws/datasync</code> as your log group name. For example:</p>
62    /// <p><code>arn:aws:logs:us-east-1:111222333444:log-group:/aws/datasync:*</code></p>
63    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-logging.html">Monitoring data transfers with CloudWatch Logs</a>.</p>
64    pub fn cloud_watch_log_group_arn(&self) -> ::std::option::Option<&str> {
65        self.cloud_watch_log_group_arn.as_deref()
66    }
67    /// <p>Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Specifying what DataSync transfers by using filters</a>.</p>
68    ///
69    /// 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()`.
70    pub fn includes(&self) -> &[crate::types::FilterRule] {
71        self.includes.as_deref().unwrap_or_default()
72    }
73    /// <p>Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, 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>
74    /// <p>When using this parameter, your caller identity (the IAM role that you're using DataSync with) must have the <code>iam:PassRole</code> permission. The <a href="https://docs.aws.amazon.com/datasync/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-awsdatasyncfullaccess">AWSDataSyncFullAccess</a> policy includes this permission.</p>
75    /// <p>To remove a manifest configuration, specify this parameter as empty.</p>
76    pub fn manifest_config(&self) -> ::std::option::Option<&crate::types::ManifestConfig> {
77        self.manifest_config.as_ref()
78    }
79    /// <p>Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html">Monitoring your DataSync transfers with task reports</a>.</p>
80    /// <p>When using this parameter, your caller identity (the IAM role that you're using DataSync with) must have the <code>iam:PassRole</code> permission. The <a href="https://docs.aws.amazon.com/datasync/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-awsdatasyncfullaccess">AWSDataSyncFullAccess</a> policy includes this permission.</p>
81    /// <p>To remove a task report configuration, specify this parameter as empty.</p>
82    pub fn task_report_config(&self) -> ::std::option::Option<&crate::types::TaskReportConfig> {
83        self.task_report_config.as_ref()
84    }
85}
86impl UpdateTaskInput {
87    /// Creates a new builder-style object to manufacture [`UpdateTaskInput`](crate::operation::update_task::UpdateTaskInput).
88    pub fn builder() -> crate::operation::update_task::builders::UpdateTaskInputBuilder {
89        crate::operation::update_task::builders::UpdateTaskInputBuilder::default()
90    }
91}
92
93/// A builder for [`UpdateTaskInput`](crate::operation::update_task::UpdateTaskInput).
94#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
95#[non_exhaustive]
96pub struct UpdateTaskInputBuilder {
97    pub(crate) task_arn: ::std::option::Option<::std::string::String>,
98    pub(crate) options: ::std::option::Option<crate::types::Options>,
99    pub(crate) excludes: ::std::option::Option<::std::vec::Vec<crate::types::FilterRule>>,
100    pub(crate) schedule: ::std::option::Option<crate::types::TaskSchedule>,
101    pub(crate) name: ::std::option::Option<::std::string::String>,
102    pub(crate) cloud_watch_log_group_arn: ::std::option::Option<::std::string::String>,
103    pub(crate) includes: ::std::option::Option<::std::vec::Vec<crate::types::FilterRule>>,
104    pub(crate) manifest_config: ::std::option::Option<crate::types::ManifestConfig>,
105    pub(crate) task_report_config: ::std::option::Option<crate::types::TaskReportConfig>,
106}
107impl UpdateTaskInputBuilder {
108    /// <p>Specifies the ARN of the task that you want to update.</p>
109    /// This field is required.
110    pub fn task_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
111        self.task_arn = ::std::option::Option::Some(input.into());
112        self
113    }
114    /// <p>Specifies the ARN of the task that you want to update.</p>
115    pub fn set_task_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
116        self.task_arn = input;
117        self
118    }
119    /// <p>Specifies the ARN of the task that you want to update.</p>
120    pub fn get_task_arn(&self) -> &::std::option::Option<::std::string::String> {
121        &self.task_arn
122    }
123    /// <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>
124    /// <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>
125    /// <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>
126    pub fn options(mut self, input: crate::types::Options) -> Self {
127        self.options = ::std::option::Option::Some(input);
128        self
129    }
130    /// <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>
131    /// <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>
132    /// <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>
133    pub fn set_options(mut self, input: ::std::option::Option<crate::types::Options>) -> Self {
134        self.options = input;
135        self
136    }
137    /// <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>
138    /// <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>
139    /// <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>
140    pub fn get_options(&self) -> &::std::option::Option<crate::types::Options> {
141        &self.options
142    }
143    /// Appends an item to `excludes`.
144    ///
145    /// To override the contents of this collection use [`set_excludes`](Self::set_excludes).
146    ///
147    /// <p>Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Specifying what DataSync transfers by using filters</a>.</p>
148    pub fn excludes(mut self, input: crate::types::FilterRule) -> Self {
149        let mut v = self.excludes.unwrap_or_default();
150        v.push(input);
151        self.excludes = ::std::option::Option::Some(v);
152        self
153    }
154    /// <p>Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Specifying what DataSync transfers by using filters</a>.</p>
155    pub fn set_excludes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FilterRule>>) -> Self {
156        self.excludes = input;
157        self
158    }
159    /// <p>Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Specifying what DataSync transfers by using filters</a>.</p>
160    pub fn get_excludes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FilterRule>> {
161        &self.excludes
162    }
163    /// <p>Specifies a schedule for when you want your task to run. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html">Scheduling your task</a>.</p>
164    pub fn schedule(mut self, input: crate::types::TaskSchedule) -> Self {
165        self.schedule = ::std::option::Option::Some(input);
166        self
167    }
168    /// <p>Specifies a schedule for when you want your task to run. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html">Scheduling your task</a>.</p>
169    pub fn set_schedule(mut self, input: ::std::option::Option<crate::types::TaskSchedule>) -> Self {
170        self.schedule = input;
171        self
172    }
173    /// <p>Specifies a schedule for when you want your task to run. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html">Scheduling your task</a>.</p>
174    pub fn get_schedule(&self) -> &::std::option::Option<crate::types::TaskSchedule> {
175        &self.schedule
176    }
177    /// <p>Specifies the name of your task.</p>
178    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
179        self.name = ::std::option::Option::Some(input.into());
180        self
181    }
182    /// <p>Specifies the name of your task.</p>
183    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
184        self.name = input;
185        self
186    }
187    /// <p>Specifies the name of your task.</p>
188    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
189        &self.name
190    }
191    /// <p>Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.</p>
192    /// <p>For Enhanced mode tasks, you must use <code>/aws/datasync</code> as your log group name. For example:</p>
193    /// <p><code>arn:aws:logs:us-east-1:111222333444:log-group:/aws/datasync:*</code></p>
194    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-logging.html">Monitoring data transfers with CloudWatch Logs</a>.</p>
195    pub fn cloud_watch_log_group_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
196        self.cloud_watch_log_group_arn = ::std::option::Option::Some(input.into());
197        self
198    }
199    /// <p>Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.</p>
200    /// <p>For Enhanced mode tasks, you must use <code>/aws/datasync</code> as your log group name. For example:</p>
201    /// <p><code>arn:aws:logs:us-east-1:111222333444:log-group:/aws/datasync:*</code></p>
202    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-logging.html">Monitoring data transfers with CloudWatch Logs</a>.</p>
203    pub fn set_cloud_watch_log_group_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
204        self.cloud_watch_log_group_arn = input;
205        self
206    }
207    /// <p>Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.</p>
208    /// <p>For Enhanced mode tasks, you must use <code>/aws/datasync</code> as your log group name. For example:</p>
209    /// <p><code>arn:aws:logs:us-east-1:111222333444:log-group:/aws/datasync:*</code></p>
210    /// <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-logging.html">Monitoring data transfers with CloudWatch Logs</a>.</p>
211    pub fn get_cloud_watch_log_group_arn(&self) -> &::std::option::Option<::std::string::String> {
212        &self.cloud_watch_log_group_arn
213    }
214    /// Appends an item to `includes`.
215    ///
216    /// To override the contents of this collection use [`set_includes`](Self::set_includes).
217    ///
218    /// <p>Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Specifying what DataSync transfers by using filters</a>.</p>
219    pub fn includes(mut self, input: crate::types::FilterRule) -> Self {
220        let mut v = self.includes.unwrap_or_default();
221        v.push(input);
222        self.includes = ::std::option::Option::Some(v);
223        self
224    }
225    /// <p>Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Specifying what DataSync transfers by using filters</a>.</p>
226    pub fn set_includes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FilterRule>>) -> Self {
227        self.includes = input;
228        self
229    }
230    /// <p>Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html">Specifying what DataSync transfers by using filters</a>.</p>
231    pub fn get_includes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FilterRule>> {
232        &self.includes
233    }
234    /// <p>Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, 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>
235    /// <p>When using this parameter, your caller identity (the IAM role that you're using DataSync with) must have the <code>iam:PassRole</code> permission. The <a href="https://docs.aws.amazon.com/datasync/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-awsdatasyncfullaccess">AWSDataSyncFullAccess</a> policy includes this permission.</p>
236    /// <p>To remove a manifest configuration, specify this parameter as empty.</p>
237    pub fn manifest_config(mut self, input: crate::types::ManifestConfig) -> Self {
238        self.manifest_config = ::std::option::Option::Some(input);
239        self
240    }
241    /// <p>Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, 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>
242    /// <p>When using this parameter, your caller identity (the IAM role that you're using DataSync with) must have the <code>iam:PassRole</code> permission. The <a href="https://docs.aws.amazon.com/datasync/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-awsdatasyncfullaccess">AWSDataSyncFullAccess</a> policy includes this permission.</p>
243    /// <p>To remove a manifest configuration, specify this parameter as empty.</p>
244    pub fn set_manifest_config(mut self, input: ::std::option::Option<crate::types::ManifestConfig>) -> Self {
245        self.manifest_config = input;
246        self
247    }
248    /// <p>Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, 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>
249    /// <p>When using this parameter, your caller identity (the IAM role that you're using DataSync with) must have the <code>iam:PassRole</code> permission. The <a href="https://docs.aws.amazon.com/datasync/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-awsdatasyncfullaccess">AWSDataSyncFullAccess</a> policy includes this permission.</p>
250    /// <p>To remove a manifest configuration, specify this parameter as empty.</p>
251    pub fn get_manifest_config(&self) -> &::std::option::Option<crate::types::ManifestConfig> {
252        &self.manifest_config
253    }
254    /// <p>Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html">Monitoring your DataSync transfers with task reports</a>.</p>
255    /// <p>When using this parameter, your caller identity (the IAM role that you're using DataSync with) must have the <code>iam:PassRole</code> permission. The <a href="https://docs.aws.amazon.com/datasync/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-awsdatasyncfullaccess">AWSDataSyncFullAccess</a> policy includes this permission.</p>
256    /// <p>To remove a task report configuration, specify this parameter as empty.</p>
257    pub fn task_report_config(mut self, input: crate::types::TaskReportConfig) -> Self {
258        self.task_report_config = ::std::option::Option::Some(input);
259        self
260    }
261    /// <p>Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html">Monitoring your DataSync transfers with task reports</a>.</p>
262    /// <p>When using this parameter, your caller identity (the IAM role that you're using DataSync with) must have the <code>iam:PassRole</code> permission. The <a href="https://docs.aws.amazon.com/datasync/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-awsdatasyncfullaccess">AWSDataSyncFullAccess</a> policy includes this permission.</p>
263    /// <p>To remove a task report configuration, specify this parameter as empty.</p>
264    pub fn set_task_report_config(mut self, input: ::std::option::Option<crate::types::TaskReportConfig>) -> Self {
265        self.task_report_config = input;
266        self
267    }
268    /// <p>Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html">Monitoring your DataSync transfers with task reports</a>.</p>
269    /// <p>When using this parameter, your caller identity (the IAM role that you're using DataSync with) must have the <code>iam:PassRole</code> permission. The <a href="https://docs.aws.amazon.com/datasync/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-awsdatasyncfullaccess">AWSDataSyncFullAccess</a> policy includes this permission.</p>
270    /// <p>To remove a task report configuration, specify this parameter as empty.</p>
271    pub fn get_task_report_config(&self) -> &::std::option::Option<crate::types::TaskReportConfig> {
272        &self.task_report_config
273    }
274    /// Consumes the builder and constructs a [`UpdateTaskInput`](crate::operation::update_task::UpdateTaskInput).
275    pub fn build(self) -> ::std::result::Result<crate::operation::update_task::UpdateTaskInput, ::aws_smithy_types::error::operation::BuildError> {
276        ::std::result::Result::Ok(crate::operation::update_task::UpdateTaskInput {
277            task_arn: self.task_arn,
278            options: self.options,
279            excludes: self.excludes,
280            schedule: self.schedule,
281            name: self.name,
282            cloud_watch_log_group_arn: self.cloud_watch_log_group_arn,
283            includes: self.includes,
284            manifest_config: self.manifest_config,
285            task_report_config: self.task_report_config,
286        })
287    }
288}