AWS SDK

AWS SDK

rev. 3388bf5e18f4269f2b46f39cdc814c5c39d413d0 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/update_maintenance_window_task/_update_maintenance_window_task_input.rs

@@ -0,1 +0,1074 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
#[allow(missing_docs)] // documentation missing in model
           3  +
#[non_exhaustive]
           4  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
           5  +
pub struct UpdateMaintenanceWindowTaskInput {
           6  +
    /// <p>The maintenance window ID that contains the task to modify.</p>
           7  +
    pub window_id: ::std::option::Option<::std::string::String>,
           8  +
    /// <p>The task ID to modify.</p>
           9  +
    pub window_task_id: ::std::option::Option<::std::string::String>,
          10  +
    /// <p>The targets (either managed nodes or tags) to modify. Managed nodes are specified using the format <code>Key=instanceids,Values=instanceID_1,instanceID_2</code>. Tags are specified using the format <code> Key=tag_name,Values=tag_value</code>.</p><note>
          11  +
    /// <p>One or more targets must be specified for maintenance window Run Command-type tasks. Depending on the task, targets are optional for other maintenance window task types (Automation, Lambda, and Step Functions). For more information about running tasks that don't specify targets, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">Registering maintenance window tasks without targets</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
          12  +
    /// </note>
          13  +
    pub targets: ::std::option::Option<::std::vec::Vec<crate::types::Target>>,
          14  +
    /// <p>The task ARN to modify.</p>
          15  +
    pub task_arn: ::std::option::Option<::std::string::String>,
          16  +
    /// <p>The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run <code>RegisterTaskWithMaintenanceWindow</code>.</p>
          17  +
    /// <p>However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html">Setting up Maintenance Windows</a> in the in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
          18  +
    pub service_role_arn: ::std::option::Option<::std::string::String>,
          19  +
    /// <p>The parameters to modify.</p><note>
          20  +
    /// <p><code>TaskParameters</code> has been deprecated. To specify parameters to pass to a task when it runs, instead use the <code>Parameters</code> option in the <code>TaskInvocationParameters</code> structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
          21  +
    /// </note>
          22  +
    /// <p>The map has the following format:</p>
          23  +
    /// <p>Key: string, between 1 and 255 characters</p>
          24  +
    /// <p>Value: an array of strings, each string is between 1 and 255 characters</p>
          25  +
    pub task_parameters:
          26  +
        ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::MaintenanceWindowTaskParameterValueExpression>>,
          27  +
    /// <p>The parameters that the task should use during execution. Populate only the fields that match the task type. All other fields should be empty.</p><important>
          28  +
    /// <p>When you update a maintenance window task that has options specified in <code>TaskInvocationParameters</code>, you must provide again all the <code>TaskInvocationParameters</code> values that you want to retain. The values you don't specify again are removed. For example, suppose that when you registered a Run Command task, you specified <code>TaskInvocationParameters</code> values for <code>Comment</code>, <code>NotificationConfig</code>, and <code>OutputS3BucketName</code>. If you update the maintenance window task and specify only a different <code>OutputS3BucketName</code> value, the values for <code>Comment</code> and <code>NotificationConfig</code> are removed.</p>
          29  +
    /// </important>
          30  +
    pub task_invocation_parameters: ::std::option::Option<crate::types::MaintenanceWindowTaskInvocationParameters>,
          31  +
    /// <p>The new task priority to specify. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.</p>
          32  +
    pub priority: ::std::option::Option<i32>,
          33  +
    /// <p>The new <code>MaxConcurrency</code> value you want to specify. <code>MaxConcurrency</code> is the number of targets that are allowed to run this task, in parallel.</p><note>
          34  +
    /// <p>Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">targetless task</a> You must provide a value in all other cases.</p>
          35  +
    /// <p>For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of <code>1</code>. This value doesn't affect the running of your task.</p>
          36  +
    /// </note>
          37  +
    pub max_concurrency: ::std::option::Option<::std::string::String>,
          38  +
    /// <p>The new <code>MaxErrors</code> value to specify. <code>MaxErrors</code> is the maximum number of errors that are allowed before the task stops being scheduled.</p><note>
          39  +
    /// <p>Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">targetless task</a> You must provide a value in all other cases.</p>
          40  +
    /// <p>For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of <code>1</code>. This value doesn't affect the running of your task.</p>
          41  +
    /// </note>
          42  +
    pub max_errors: ::std::option::Option<::std::string::String>,
          43  +
    /// <p>The new logging location in Amazon S3 to specify.</p><note>
          44  +
    /// <p><code>LoggingInfo</code> has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the <code>OutputS3BucketName</code> and <code>OutputS3KeyPrefix</code> options in the <code>TaskInvocationParameters</code> structure. For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
          45  +
    /// </note>
          46  +
    pub logging_info: ::std::option::Option<crate::types::LoggingInfo>,
          47  +
    /// <p>The new task name to specify.</p>
          48  +
    pub name: ::std::option::Option<::std::string::String>,
          49  +
    /// <p>The new task description to specify.</p>
          50  +
    pub description: ::std::option::Option<::std::string::String>,
          51  +
    /// <p>If True, then all fields that are required by the <code>RegisterTaskWithMaintenanceWindow</code> operation are also required for this API request. Optional fields that aren't specified are set to null.</p>
          52  +
    pub replace: ::std::option::Option<bool>,
          53  +
    /// <p>Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.</p>
          54  +
    /// <ul>
          55  +
    /// <li>
          56  +
    /// <p><code>CONTINUE_TASK</code>: When the cutoff time is reached, any tasks that are running continue. The default value.</p></li>
          57  +
    /// <li>
          58  +
    /// <p><code>CANCEL_TASK</code>:</p>
          59  +
    /// <ul>
          60  +
    /// <li>
          61  +
    /// <p>For Automation, Lambda, Step Functions tasks: When the cutoff time is reached, any task invocations that are already running continue, but no new task invocations are started.</p></li>
          62  +
    /// <li>
          63  +
    /// <p>For Run Command tasks: When the cutoff time is reached, the system sends a <code>CancelCommand</code> operation that attempts to cancel the command associated with the task. However, there is no guarantee that the command will be terminated and the underlying process stopped.</p></li>
          64  +
    /// </ul>
          65  +
    /// <p>The status for tasks that are not completed is <code>TIMED_OUT</code>.</p></li>
          66  +
    /// </ul>
          67  +
    pub cutoff_behavior: ::std::option::Option<crate::types::MaintenanceWindowTaskCutoffBehavior>,
          68  +
    /// <p>The CloudWatch alarm you want to apply to your maintenance window task.</p>
          69  +
    pub alarm_configuration: ::std::option::Option<crate::types::AlarmConfiguration>,
          70  +
}
          71  +
impl UpdateMaintenanceWindowTaskInput {
          72  +
    /// <p>The maintenance window ID that contains the task to modify.</p>
          73  +
    pub fn window_id(&self) -> ::std::option::Option<&str> {
          74  +
        self.window_id.as_deref()
          75  +
    }
          76  +
    /// <p>The task ID to modify.</p>
          77  +
    pub fn window_task_id(&self) -> ::std::option::Option<&str> {
          78  +
        self.window_task_id.as_deref()
          79  +
    }
          80  +
    /// <p>The targets (either managed nodes or tags) to modify. Managed nodes are specified using the format <code>Key=instanceids,Values=instanceID_1,instanceID_2</code>. Tags are specified using the format <code> Key=tag_name,Values=tag_value</code>.</p><note>
          81  +
    /// <p>One or more targets must be specified for maintenance window Run Command-type tasks. Depending on the task, targets are optional for other maintenance window task types (Automation, Lambda, and Step Functions). For more information about running tasks that don't specify targets, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">Registering maintenance window tasks without targets</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
          82  +
    /// </note>
          83  +
    ///
          84  +
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.targets.is_none()`.
          85  +
    pub fn targets(&self) -> &[crate::types::Target] {
          86  +
        self.targets.as_deref().unwrap_or_default()
          87  +
    }
          88  +
    /// <p>The task ARN to modify.</p>
          89  +
    pub fn task_arn(&self) -> ::std::option::Option<&str> {
          90  +
        self.task_arn.as_deref()
          91  +
    }
          92  +
    /// <p>The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run <code>RegisterTaskWithMaintenanceWindow</code>.</p>
          93  +
    /// <p>However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html">Setting up Maintenance Windows</a> in the in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
          94  +
    pub fn service_role_arn(&self) -> ::std::option::Option<&str> {
          95  +
        self.service_role_arn.as_deref()
          96  +
    }
          97  +
    /// <p>The parameters to modify.</p><note>
          98  +
    /// <p><code>TaskParameters</code> has been deprecated. To specify parameters to pass to a task when it runs, instead use the <code>Parameters</code> option in the <code>TaskInvocationParameters</code> structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
          99  +
    /// </note>
         100  +
    /// <p>The map has the following format:</p>
         101  +
    /// <p>Key: string, between 1 and 255 characters</p>
         102  +
    /// <p>Value: an array of strings, each string is between 1 and 255 characters</p>
         103  +
    pub fn task_parameters(
         104  +
        &self,
         105  +
    ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, crate::types::MaintenanceWindowTaskParameterValueExpression>> {
         106  +
        self.task_parameters.as_ref()
         107  +
    }
         108  +
    /// <p>The parameters that the task should use during execution. Populate only the fields that match the task type. All other fields should be empty.</p><important>
         109  +
    /// <p>When you update a maintenance window task that has options specified in <code>TaskInvocationParameters</code>, you must provide again all the <code>TaskInvocationParameters</code> values that you want to retain. The values you don't specify again are removed. For example, suppose that when you registered a Run Command task, you specified <code>TaskInvocationParameters</code> values for <code>Comment</code>, <code>NotificationConfig</code>, and <code>OutputS3BucketName</code>. If you update the maintenance window task and specify only a different <code>OutputS3BucketName</code> value, the values for <code>Comment</code> and <code>NotificationConfig</code> are removed.</p>
         110  +
    /// </important>
         111  +
    pub fn task_invocation_parameters(&self) -> ::std::option::Option<&crate::types::MaintenanceWindowTaskInvocationParameters> {
         112  +
        self.task_invocation_parameters.as_ref()
         113  +
    }
         114  +
    /// <p>The new task priority to specify. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.</p>
         115  +
    pub fn priority(&self) -> ::std::option::Option<i32> {
         116  +
        self.priority
         117  +
    }
         118  +
    /// <p>The new <code>MaxConcurrency</code> value you want to specify. <code>MaxConcurrency</code> is the number of targets that are allowed to run this task, in parallel.</p><note>
         119  +
    /// <p>Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">targetless task</a> You must provide a value in all other cases.</p>
         120  +
    /// <p>For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of <code>1</code>. This value doesn't affect the running of your task.</p>
         121  +
    /// </note>
         122  +
    pub fn max_concurrency(&self) -> ::std::option::Option<&str> {
         123  +
        self.max_concurrency.as_deref()
         124  +
    }
         125  +
    /// <p>The new <code>MaxErrors</code> value to specify. <code>MaxErrors</code> is the maximum number of errors that are allowed before the task stops being scheduled.</p><note>
         126  +
    /// <p>Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">targetless task</a> You must provide a value in all other cases.</p>
         127  +
    /// <p>For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of <code>1</code>. This value doesn't affect the running of your task.</p>
         128  +
    /// </note>
         129  +
    pub fn max_errors(&self) -> ::std::option::Option<&str> {
         130  +
        self.max_errors.as_deref()
         131  +
    }
         132  +
    /// <p>The new logging location in Amazon S3 to specify.</p><note>
         133  +
    /// <p><code>LoggingInfo</code> has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the <code>OutputS3BucketName</code> and <code>OutputS3KeyPrefix</code> options in the <code>TaskInvocationParameters</code> structure. For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
         134  +
    /// </note>
         135  +
    pub fn logging_info(&self) -> ::std::option::Option<&crate::types::LoggingInfo> {
         136  +
        self.logging_info.as_ref()
         137  +
    }
         138  +
    /// <p>The new task name to specify.</p>
         139  +
    pub fn name(&self) -> ::std::option::Option<&str> {
         140  +
        self.name.as_deref()
         141  +
    }
         142  +
    /// <p>The new task description to specify.</p>
         143  +
    pub fn description(&self) -> ::std::option::Option<&str> {
         144  +
        self.description.as_deref()
         145  +
    }
         146  +
    /// <p>If True, then all fields that are required by the <code>RegisterTaskWithMaintenanceWindow</code> operation are also required for this API request. Optional fields that aren't specified are set to null.</p>
         147  +
    pub fn replace(&self) -> ::std::option::Option<bool> {
         148  +
        self.replace
         149  +
    }
         150  +
    /// <p>Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.</p>
         151  +
    /// <ul>
         152  +
    /// <li>
         153  +
    /// <p><code>CONTINUE_TASK</code>: When the cutoff time is reached, any tasks that are running continue. The default value.</p></li>
         154  +
    /// <li>
         155  +
    /// <p><code>CANCEL_TASK</code>:</p>
         156  +
    /// <ul>
         157  +
    /// <li>
         158  +
    /// <p>For Automation, Lambda, Step Functions tasks: When the cutoff time is reached, any task invocations that are already running continue, but no new task invocations are started.</p></li>
         159  +
    /// <li>
         160  +
    /// <p>For Run Command tasks: When the cutoff time is reached, the system sends a <code>CancelCommand</code> operation that attempts to cancel the command associated with the task. However, there is no guarantee that the command will be terminated and the underlying process stopped.</p></li>
         161  +
    /// </ul>
         162  +
    /// <p>The status for tasks that are not completed is <code>TIMED_OUT</code>.</p></li>
         163  +
    /// </ul>
         164  +
    pub fn cutoff_behavior(&self) -> ::std::option::Option<&crate::types::MaintenanceWindowTaskCutoffBehavior> {
         165  +
        self.cutoff_behavior.as_ref()
         166  +
    }
         167  +
    /// <p>The CloudWatch alarm you want to apply to your maintenance window task.</p>
         168  +
    pub fn alarm_configuration(&self) -> ::std::option::Option<&crate::types::AlarmConfiguration> {
         169  +
        self.alarm_configuration.as_ref()
         170  +
    }
         171  +
}
         172  +
impl ::std::fmt::Debug for UpdateMaintenanceWindowTaskInput {
         173  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         174  +
        let mut formatter = f.debug_struct("UpdateMaintenanceWindowTaskInput");
         175  +
        formatter.field("window_id", &self.window_id);
         176  +
        formatter.field("window_task_id", &self.window_task_id);
         177  +
        formatter.field("targets", &self.targets);
         178  +
        formatter.field("task_arn", &self.task_arn);
         179  +
        formatter.field("service_role_arn", &self.service_role_arn);
         180  +
        formatter.field("task_parameters", &"*** Sensitive Data Redacted ***");
         181  +
        formatter.field("task_invocation_parameters", &self.task_invocation_parameters);
         182  +
        formatter.field("priority", &self.priority);
         183  +
        formatter.field("max_concurrency", &self.max_concurrency);
         184  +
        formatter.field("max_errors", &self.max_errors);
         185  +
        formatter.field("logging_info", &self.logging_info);
         186  +
        formatter.field("name", &self.name);
         187  +
        formatter.field("description", &"*** Sensitive Data Redacted ***");
         188  +
        formatter.field("replace", &self.replace);
         189  +
        formatter.field("cutoff_behavior", &self.cutoff_behavior);
         190  +
        formatter.field("alarm_configuration", &self.alarm_configuration);
         191  +
        formatter.finish()
         192  +
    }
         193  +
}
         194  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_WINDOW_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         195  +
    ::aws_smithy_schema::ShapeId::from_parts(
         196  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTaskInput$WindowId",
         197  +
        "com.amazonaws.ssm.synthetic",
         198  +
        "UpdateMaintenanceWindowTaskInput",
         199  +
    ),
         200  +
    ::aws_smithy_schema::ShapeType::String,
         201  +
    "WindowId",
         202  +
    0,
         203  +
);
         204  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_WINDOW_TASK_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         205  +
    ::aws_smithy_schema::ShapeId::from_parts(
         206  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTaskInput$WindowTaskId",
         207  +
        "com.amazonaws.ssm.synthetic",
         208  +
        "UpdateMaintenanceWindowTaskInput",
         209  +
    ),
         210  +
    ::aws_smithy_schema::ShapeType::String,
         211  +
    "WindowTaskId",
         212  +
    1,
         213  +
);
         214  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_TARGETS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         215  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Targets$member", "com.amazonaws.ssm", "Targets"),
         216  +
    ::aws_smithy_schema::ShapeType::Structure,
         217  +
    "member",
         218  +
    0,
         219  +
);
         220  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_TARGETS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         221  +
    ::aws_smithy_schema::ShapeId::from_parts(
         222  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTaskInput$Targets",
         223  +
        "com.amazonaws.ssm.synthetic",
         224  +
        "UpdateMaintenanceWindowTaskInput",
         225  +
    ),
         226  +
    ::aws_smithy_schema::ShapeType::List,
         227  +
    "Targets",
         228  +
    2,
         229  +
)
         230  +
.with_list_member(&UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_TARGETS_MEMBER);
         231  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_TASK_ARN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         232  +
    ::aws_smithy_schema::ShapeId::from_parts(
         233  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTaskInput$TaskArn",
         234  +
        "com.amazonaws.ssm.synthetic",
         235  +
        "UpdateMaintenanceWindowTaskInput",
         236  +
    ),
         237  +
    ::aws_smithy_schema::ShapeType::String,
         238  +
    "TaskArn",
         239  +
    3,
         240  +
);
         241  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_SERVICE_ROLE_ARN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         242  +
    ::aws_smithy_schema::ShapeId::from_parts(
         243  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTaskInput$ServiceRoleArn",
         244  +
        "com.amazonaws.ssm.synthetic",
         245  +
        "UpdateMaintenanceWindowTaskInput",
         246  +
    ),
         247  +
    ::aws_smithy_schema::ShapeType::String,
         248  +
    "ServiceRoleArn",
         249  +
    4,
         250  +
);
         251  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_TASK_PARAMETERS_KEY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         252  +
    ::aws_smithy_schema::ShapeId::from_parts(
         253  +
        "com.amazonaws.ssm#MaintenanceWindowTaskParameters$key",
         254  +
        "com.amazonaws.ssm",
         255  +
        "MaintenanceWindowTaskParameters",
         256  +
    ),
         257  +
    ::aws_smithy_schema::ShapeType::String,
         258  +
    "key",
         259  +
    0,
         260  +
);
         261  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_TASK_PARAMETERS_VALUE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         262  +
    ::aws_smithy_schema::ShapeId::from_parts(
         263  +
        "com.amazonaws.ssm#MaintenanceWindowTaskParameters$value",
         264  +
        "com.amazonaws.ssm",
         265  +
        "MaintenanceWindowTaskParameters",
         266  +
    ),
         267  +
    ::aws_smithy_schema::ShapeType::Structure,
         268  +
    "value",
         269  +
    1,
         270  +
);
         271  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_TASK_PARAMETERS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         272  +
    ::aws_smithy_schema::ShapeId::from_parts(
         273  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTaskInput$TaskParameters",
         274  +
        "com.amazonaws.ssm.synthetic",
         275  +
        "UpdateMaintenanceWindowTaskInput",
         276  +
    ),
         277  +
    ::aws_smithy_schema::ShapeType::Map,
         278  +
    "TaskParameters",
         279  +
    5,
         280  +
)
         281  +
.with_map_members(
         282  +
    &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_TASK_PARAMETERS_KEY,
         283  +
    &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_TASK_PARAMETERS_VALUE,
         284  +
);
         285  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_TASK_INVOCATION_PARAMETERS: ::aws_smithy_schema::Schema<'static> =
         286  +
    ::aws_smithy_schema::Schema::new_member(
         287  +
        ::aws_smithy_schema::ShapeId::from_parts(
         288  +
            "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTaskInput$TaskInvocationParameters",
         289  +
            "com.amazonaws.ssm.synthetic",
         290  +
            "UpdateMaintenanceWindowTaskInput",
         291  +
        ),
         292  +
        ::aws_smithy_schema::ShapeType::Structure,
         293  +
        "TaskInvocationParameters",
         294  +
        6,
         295  +
    );
         296  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_PRIORITY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         297  +
    ::aws_smithy_schema::ShapeId::from_parts(
         298  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTaskInput$Priority",
         299  +
        "com.amazonaws.ssm.synthetic",
         300  +
        "UpdateMaintenanceWindowTaskInput",
         301  +
    ),
         302  +
    ::aws_smithy_schema::ShapeType::Integer,
         303  +
    "Priority",
         304  +
    7,
         305  +
);
         306  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_MAX_CONCURRENCY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         307  +
    ::aws_smithy_schema::ShapeId::from_parts(
         308  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTaskInput$MaxConcurrency",
         309  +
        "com.amazonaws.ssm.synthetic",
         310  +
        "UpdateMaintenanceWindowTaskInput",
         311  +
    ),
         312  +
    ::aws_smithy_schema::ShapeType::String,
         313  +
    "MaxConcurrency",
         314  +
    8,
         315  +
);
         316  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_MAX_ERRORS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         317  +
    ::aws_smithy_schema::ShapeId::from_parts(
         318  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTaskInput$MaxErrors",
         319  +
        "com.amazonaws.ssm.synthetic",
         320  +
        "UpdateMaintenanceWindowTaskInput",
         321  +
    ),
         322  +
    ::aws_smithy_schema::ShapeType::String,
         323  +
    "MaxErrors",
         324  +
    9,
         325  +
);
         326  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_LOGGING_INFO: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         327  +
    ::aws_smithy_schema::ShapeId::from_parts(
         328  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTaskInput$LoggingInfo",
         329  +
        "com.amazonaws.ssm.synthetic",
         330  +
        "UpdateMaintenanceWindowTaskInput",
         331  +
    ),
         332  +
    ::aws_smithy_schema::ShapeType::Structure,
         333  +
    "LoggingInfo",
         334  +
    10,
         335  +
);
         336  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         337  +
    ::aws_smithy_schema::ShapeId::from_parts(
         338  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTaskInput$Name",
         339  +
        "com.amazonaws.ssm.synthetic",
         340  +
        "UpdateMaintenanceWindowTaskInput",
         341  +
    ),
         342  +
    ::aws_smithy_schema::ShapeType::String,
         343  +
    "Name",
         344  +
    11,
         345  +
);
         346  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         347  +
    ::aws_smithy_schema::ShapeId::from_parts(
         348  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTaskInput$Description",
         349  +
        "com.amazonaws.ssm.synthetic",
         350  +
        "UpdateMaintenanceWindowTaskInput",
         351  +
    ),
         352  +
    ::aws_smithy_schema::ShapeType::String,
         353  +
    "Description",
         354  +
    12,
         355  +
);
         356  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_REPLACE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         357  +
    ::aws_smithy_schema::ShapeId::from_parts(
         358  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTaskInput$Replace",
         359  +
        "com.amazonaws.ssm.synthetic",
         360  +
        "UpdateMaintenanceWindowTaskInput",
         361  +
    ),
         362  +
    ::aws_smithy_schema::ShapeType::Boolean,
         363  +
    "Replace",
         364  +
    13,
         365  +
);
         366  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_CUTOFF_BEHAVIOR: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         367  +
    ::aws_smithy_schema::ShapeId::from_parts(
         368  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTaskInput$CutoffBehavior",
         369  +
        "com.amazonaws.ssm.synthetic",
         370  +
        "UpdateMaintenanceWindowTaskInput",
         371  +
    ),
         372  +
    ::aws_smithy_schema::ShapeType::String,
         373  +
    "CutoffBehavior",
         374  +
    14,
         375  +
);
         376  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_ALARM_CONFIGURATION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         377  +
    ::aws_smithy_schema::ShapeId::from_parts(
         378  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTaskInput$AlarmConfiguration",
         379  +
        "com.amazonaws.ssm.synthetic",
         380  +
        "UpdateMaintenanceWindowTaskInput",
         381  +
    ),
         382  +
    ::aws_smithy_schema::ShapeType::Structure,
         383  +
    "AlarmConfiguration",
         384  +
    15,
         385  +
);
         386  +
static UPDATEMAINTENANCEWINDOWTASKINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
         387  +
    ::aws_smithy_schema::ShapeId::from_parts(
         388  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTaskInput",
         389  +
        "com.amazonaws.ssm.synthetic",
         390  +
        "UpdateMaintenanceWindowTaskInput",
         391  +
    ),
         392  +
    ::aws_smithy_schema::ShapeType::Structure,
         393  +
    &[
         394  +
        &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_WINDOW_ID,
         395  +
        &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_WINDOW_TASK_ID,
         396  +
        &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_TARGETS,
         397  +
        &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_TASK_ARN,
         398  +
        &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_SERVICE_ROLE_ARN,
         399  +
        &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_TASK_PARAMETERS,
         400  +
        &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_TASK_INVOCATION_PARAMETERS,
         401  +
        &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_PRIORITY,
         402  +
        &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_MAX_CONCURRENCY,
         403  +
        &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_MAX_ERRORS,
         404  +
        &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_LOGGING_INFO,
         405  +
        &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_NAME,
         406  +
        &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_DESCRIPTION,
         407  +
        &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_REPLACE,
         408  +
        &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_CUTOFF_BEHAVIOR,
         409  +
        &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_ALARM_CONFIGURATION,
         410  +
    ],
         411  +
)
         412  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
         413  +
.with_original_name("UpdateMaintenanceWindowTaskRequest");
         414  +
impl UpdateMaintenanceWindowTaskInput {
         415  +
    /// The schema for this shape.
         416  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &UPDATEMAINTENANCEWINDOWTASKINPUT_SCHEMA;
         417  +
}
         418  +
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateMaintenanceWindowTaskInput {
         419  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
         420  +
    fn serialize_members(
         421  +
        &self,
         422  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
         423  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
         424  +
        if let Some(ref val) = self.window_id {
         425  +
            ser.write_string(&UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_WINDOW_ID, val)?;
         426  +
        }
         427  +
        if let Some(ref val) = self.window_task_id {
         428  +
            ser.write_string(&UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_WINDOW_TASK_ID, val)?;
         429  +
        }
         430  +
        if let Some(ref val) = self.targets {
         431  +
            ser.write_list(
         432  +
                &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_TARGETS,
         433  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         434  +
                    for item in val {
         435  +
                        ser.write_struct(crate::types::Target::SCHEMA, item)?;
         436  +
                    }
         437  +
                    Ok(())
         438  +
                },
         439  +
            )?;
         440  +
        }
         441  +
        if let Some(ref val) = self.task_arn {
         442  +
            ser.write_string(&UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_TASK_ARN, val)?;
         443  +
        }
         444  +
        if let Some(ref val) = self.service_role_arn {
         445  +
            ser.write_string(&UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_SERVICE_ROLE_ARN, val)?;
         446  +
        }
         447  +
        if let Some(ref val) = self.task_parameters {
         448  +
            ser.write_map(
         449  +
                &UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_TASK_PARAMETERS,
         450  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         451  +
                    for (key, value) in val {
         452  +
                        ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
         453  +
                        ser.write_struct(crate::types::MaintenanceWindowTaskParameterValueExpression::SCHEMA, value)?;
         454  +
                    }
         455  +
                    Ok(())
         456  +
                },
         457  +
            )?;
         458  +
        }
         459  +
        if let Some(ref val) = self.task_invocation_parameters {
         460  +
            ser.write_struct(&UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_TASK_INVOCATION_PARAMETERS, val)?;
         461  +
        }
         462  +
        if let Some(ref val) = self.priority {
         463  +
            ser.write_integer(&UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_PRIORITY, *val)?;
         464  +
        }
         465  +
        if let Some(ref val) = self.max_concurrency {
         466  +
            ser.write_string(&UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_MAX_CONCURRENCY, val)?;
         467  +
        }
         468  +
        if let Some(ref val) = self.max_errors {
         469  +
            ser.write_string(&UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_MAX_ERRORS, val)?;
         470  +
        }
         471  +
        if let Some(ref val) = self.logging_info {
         472  +
            ser.write_struct(&UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_LOGGING_INFO, val)?;
         473  +
        }
         474  +
        if let Some(ref val) = self.name {
         475  +
            ser.write_string(&UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_NAME, val)?;
         476  +
        }
         477  +
        if let Some(ref val) = self.description {
         478  +
            ser.write_string(&UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_DESCRIPTION, val)?;
         479  +
        }
         480  +
        if let Some(ref val) = self.replace {
         481  +
            ser.write_boolean(&UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_REPLACE, *val)?;
         482  +
        }
         483  +
        if let Some(ref val) = self.cutoff_behavior {
         484  +
            ser.write_string(&UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_CUTOFF_BEHAVIOR, val.as_str())?;
         485  +
        }
         486  +
        if let Some(ref val) = self.alarm_configuration {
         487  +
            ser.write_struct(&UPDATEMAINTENANCEWINDOWTASKINPUT_MEMBER_ALARM_CONFIGURATION, val)?;
         488  +
        }
         489  +
        Ok(())
         490  +
    }
         491  +
}
         492  +
impl UpdateMaintenanceWindowTaskInput {
         493  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         494  +
    pub fn deserialize(
         495  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         496  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         497  +
        #[allow(unused_variables, unused_mut)]
         498  +
        let mut builder = Self::builder();
         499  +
        #[allow(
         500  +
            unused_variables,
         501  +
            unreachable_code,
         502  +
            clippy::single_match,
         503  +
            clippy::match_single_binding,
         504  +
            clippy::diverging_sub_expression
         505  +
        )]
         506  +
        deserializer.read_struct(&UPDATEMAINTENANCEWINDOWTASKINPUT_SCHEMA, &mut |member, deser| {
         507  +
            match member.member_index() {
         508  +
                Some(0) => {
         509  +
                    if deser.is_null() {
         510  +
                        deser.read_null()?;
         511  +
                    } else {
         512  +
                        builder.window_id = Some(deser.read_string(member)?);
         513  +
                    }
         514  +
                }
         515  +
                Some(1) => {
         516  +
                    if deser.is_null() {
         517  +
                        deser.read_null()?;
         518  +
                    } else {
         519  +
                        builder.window_task_id = Some(deser.read_string(member)?);
         520  +
                    }
         521  +
                }
         522  +
                Some(2) => {
         523  +
                    if deser.is_null() {
         524  +
                        deser.read_null()?;
         525  +
                    } else {
         526  +
                        builder.targets = Some({
         527  +
                            let mut container = Vec::new();
         528  +
                            deser.read_list(member, &mut |deser| {
         529  +
                                container.push(crate::types::Target::deserialize(deser)?);
         530  +
                                Ok(())
         531  +
                            })?;
         532  +
                            container
         533  +
                        });
         534  +
                    }
         535  +
                }
         536  +
                Some(3) => {
         537  +
                    if deser.is_null() {
         538  +
                        deser.read_null()?;
         539  +
                    } else {
         540  +
                        builder.task_arn = Some(deser.read_string(member)?);
         541  +
                    }
         542  +
                }
         543  +
                Some(4) => {
         544  +
                    if deser.is_null() {
         545  +
                        deser.read_null()?;
         546  +
                    } else {
         547  +
                        builder.service_role_arn = Some(deser.read_string(member)?);
         548  +
                    }
         549  +
                }
         550  +
                Some(5) => {
         551  +
                    if deser.is_null() {
         552  +
                        deser.read_null()?;
         553  +
                    } else {
         554  +
                        builder.task_parameters = Some({
         555  +
                            let mut container = std::collections::HashMap::new();
         556  +
                            deser.read_map(member, &mut |key, deser| {
         557  +
                                container.insert(key, crate::types::MaintenanceWindowTaskParameterValueExpression::deserialize(deser)?);
         558  +
                                Ok(())
         559  +
                            })?;
         560  +
                            container
         561  +
                        });
         562  +
                    }
         563  +
                }
         564  +
                Some(6) => {
         565  +
                    if deser.is_null() {
         566  +
                        deser.read_null()?;
         567  +
                    } else {
         568  +
                        builder.task_invocation_parameters = Some(crate::types::MaintenanceWindowTaskInvocationParameters::deserialize(deser)?);
         569  +
                    }
         570  +
                }
         571  +
                Some(7) => {
         572  +
                    if deser.is_null() {
         573  +
                        deser.read_null()?;
         574  +
                    } else {
         575  +
                        builder.priority = Some(deser.read_integer(member)?);
         576  +
                    }
         577  +
                }
         578  +
                Some(8) => {
         579  +
                    if deser.is_null() {
         580  +
                        deser.read_null()?;
         581  +
                    } else {
         582  +
                        builder.max_concurrency = Some(deser.read_string(member)?);
         583  +
                    }
         584  +
                }
         585  +
                Some(9) => {
         586  +
                    if deser.is_null() {
         587  +
                        deser.read_null()?;
         588  +
                    } else {
         589  +
                        builder.max_errors = Some(deser.read_string(member)?);
         590  +
                    }
         591  +
                }
         592  +
                Some(10) => {
         593  +
                    if deser.is_null() {
         594  +
                        deser.read_null()?;
         595  +
                    } else {
         596  +
                        builder.logging_info = Some(crate::types::LoggingInfo::deserialize(deser)?);
         597  +
                    }
         598  +
                }
         599  +
                Some(11) => {
         600  +
                    if deser.is_null() {
         601  +
                        deser.read_null()?;
         602  +
                    } else {
         603  +
                        builder.name = Some(deser.read_string(member)?);
         604  +
                    }
         605  +
                }
         606  +
                Some(12) => {
         607  +
                    if deser.is_null() {
         608  +
                        deser.read_null()?;
         609  +
                    } else {
         610  +
                        builder.description = Some(deser.read_string(member)?);
         611  +
                    }
         612  +
                }
         613  +
                Some(13) => {
         614  +
                    if deser.is_null() {
         615  +
                        deser.read_null()?;
         616  +
                    } else {
         617  +
                        builder.replace = Some(deser.read_boolean(member)?);
         618  +
                    }
         619  +
                }
         620  +
                Some(14) => {
         621  +
                    if deser.is_null() {
         622  +
                        deser.read_null()?;
         623  +
                    } else {
         624  +
                        builder.cutoff_behavior = Some(crate::types::MaintenanceWindowTaskCutoffBehavior::from(
         625  +
                            deser.read_string(member)?.as_str(),
         626  +
                        ));
         627  +
                    }
         628  +
                }
         629  +
                Some(15) => {
         630  +
                    if deser.is_null() {
         631  +
                        deser.read_null()?;
         632  +
                    } else {
         633  +
                        builder.alarm_configuration = Some(crate::types::AlarmConfiguration::deserialize(deser)?);
         634  +
                    }
         635  +
                }
         636  +
                _ => {}
         637  +
            }
         638  +
            Ok(())
         639  +
        })?;
         640  +
        builder.window_id = builder.window_id.or(Some(String::new()));
         641  +
        builder.window_task_id = builder.window_task_id.or(Some(String::new()));
         642  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
         643  +
    }
         644  +
}
         645  +
impl UpdateMaintenanceWindowTaskInput {
         646  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         647  +
    pub fn deserialize_with_response(
         648  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         649  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         650  +
        _status: u16,
         651  +
        _body: &[u8],
         652  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         653  +
        Self::deserialize(deserializer)
         654  +
    }
         655  +
}
         656  +
impl UpdateMaintenanceWindowTaskInput {
         657  +
    /// Creates a new builder-style object to manufacture [`UpdateMaintenanceWindowTaskInput`](crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskInput).
         658  +
    pub fn builder() -> crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskInputBuilder {
         659  +
        crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskInputBuilder::default()
         660  +
    }
         661  +
}
         662  +
         663  +
/// A builder for [`UpdateMaintenanceWindowTaskInput`](crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskInput).
         664  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
         665  +
#[non_exhaustive]
         666  +
pub struct UpdateMaintenanceWindowTaskInputBuilder {
         667  +
    pub(crate) window_id: ::std::option::Option<::std::string::String>,
         668  +
    pub(crate) window_task_id: ::std::option::Option<::std::string::String>,
         669  +
    pub(crate) targets: ::std::option::Option<::std::vec::Vec<crate::types::Target>>,
         670  +
    pub(crate) task_arn: ::std::option::Option<::std::string::String>,
         671  +
    pub(crate) service_role_arn: ::std::option::Option<::std::string::String>,
         672  +
    pub(crate) task_parameters:
         673  +
        ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::MaintenanceWindowTaskParameterValueExpression>>,
         674  +
    pub(crate) task_invocation_parameters: ::std::option::Option<crate::types::MaintenanceWindowTaskInvocationParameters>,
         675  +
    pub(crate) priority: ::std::option::Option<i32>,
         676  +
    pub(crate) max_concurrency: ::std::option::Option<::std::string::String>,
         677  +
    pub(crate) max_errors: ::std::option::Option<::std::string::String>,
         678  +
    pub(crate) logging_info: ::std::option::Option<crate::types::LoggingInfo>,
         679  +
    pub(crate) name: ::std::option::Option<::std::string::String>,
         680  +
    pub(crate) description: ::std::option::Option<::std::string::String>,
         681  +
    pub(crate) replace: ::std::option::Option<bool>,
         682  +
    pub(crate) cutoff_behavior: ::std::option::Option<crate::types::MaintenanceWindowTaskCutoffBehavior>,
         683  +
    pub(crate) alarm_configuration: ::std::option::Option<crate::types::AlarmConfiguration>,
         684  +
}
         685  +
impl UpdateMaintenanceWindowTaskInputBuilder {
         686  +
    /// <p>The maintenance window ID that contains the task to modify.</p>
         687  +
    /// This field is required.
         688  +
    pub fn window_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         689  +
        self.window_id = ::std::option::Option::Some(input.into());
         690  +
        self
         691  +
    }
         692  +
    /// <p>The maintenance window ID that contains the task to modify.</p>
         693  +
    pub fn set_window_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         694  +
        self.window_id = input;
         695  +
        self
         696  +
    }
         697  +
    /// <p>The maintenance window ID that contains the task to modify.</p>
         698  +
    pub fn get_window_id(&self) -> &::std::option::Option<::std::string::String> {
         699  +
        &self.window_id
         700  +
    }
         701  +
    /// <p>The task ID to modify.</p>
         702  +
    /// This field is required.
         703  +
    pub fn window_task_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         704  +
        self.window_task_id = ::std::option::Option::Some(input.into());
         705  +
        self
         706  +
    }
         707  +
    /// <p>The task ID to modify.</p>
         708  +
    pub fn set_window_task_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         709  +
        self.window_task_id = input;
         710  +
        self
         711  +
    }
         712  +
    /// <p>The task ID to modify.</p>
         713  +
    pub fn get_window_task_id(&self) -> &::std::option::Option<::std::string::String> {
         714  +
        &self.window_task_id
         715  +
    }
         716  +
    /// Appends an item to `targets`.
         717  +
    ///
         718  +
    /// To override the contents of this collection use [`set_targets`](Self::set_targets).
         719  +
    ///
         720  +
    /// <p>The targets (either managed nodes or tags) to modify. Managed nodes are specified using the format <code>Key=instanceids,Values=instanceID_1,instanceID_2</code>. Tags are specified using the format <code> Key=tag_name,Values=tag_value</code>.</p><note>
         721  +
    /// <p>One or more targets must be specified for maintenance window Run Command-type tasks. Depending on the task, targets are optional for other maintenance window task types (Automation, Lambda, and Step Functions). For more information about running tasks that don't specify targets, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">Registering maintenance window tasks without targets</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         722  +
    /// </note>
         723  +
    pub fn targets(mut self, input: crate::types::Target) -> Self {
         724  +
        let mut v = self.targets.unwrap_or_default();
         725  +
        v.push(input);
         726  +
        self.targets = ::std::option::Option::Some(v);
         727  +
        self
         728  +
    }
         729  +
    /// <p>The targets (either managed nodes or tags) to modify. Managed nodes are specified using the format <code>Key=instanceids,Values=instanceID_1,instanceID_2</code>. Tags are specified using the format <code> Key=tag_name,Values=tag_value</code>.</p><note>
         730  +
    /// <p>One or more targets must be specified for maintenance window Run Command-type tasks. Depending on the task, targets are optional for other maintenance window task types (Automation, Lambda, and Step Functions). For more information about running tasks that don't specify targets, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">Registering maintenance window tasks without targets</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         731  +
    /// </note>
         732  +
    pub fn set_targets(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Target>>) -> Self {
         733  +
        self.targets = input;
         734  +
        self
         735  +
    }
         736  +
    /// <p>The targets (either managed nodes or tags) to modify. Managed nodes are specified using the format <code>Key=instanceids,Values=instanceID_1,instanceID_2</code>. Tags are specified using the format <code> Key=tag_name,Values=tag_value</code>.</p><note>
         737  +
    /// <p>One or more targets must be specified for maintenance window Run Command-type tasks. Depending on the task, targets are optional for other maintenance window task types (Automation, Lambda, and Step Functions). For more information about running tasks that don't specify targets, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">Registering maintenance window tasks without targets</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         738  +
    /// </note>
         739  +
    pub fn get_targets(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Target>> {
         740  +
        &self.targets
         741  +
    }
         742  +
    /// <p>The task ARN to modify.</p>
         743  +
    pub fn task_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         744  +
        self.task_arn = ::std::option::Option::Some(input.into());
         745  +
        self
         746  +
    }
         747  +
    /// <p>The task ARN to modify.</p>
         748  +
    pub fn set_task_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         749  +
        self.task_arn = input;
         750  +
        self
         751  +
    }
         752  +
    /// <p>The task ARN to modify.</p>
         753  +
    pub fn get_task_arn(&self) -> &::std::option::Option<::std::string::String> {
         754  +
        &self.task_arn
         755  +
    }
         756  +
    /// <p>The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run <code>RegisterTaskWithMaintenanceWindow</code>.</p>
         757  +
    /// <p>However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html">Setting up Maintenance Windows</a> in the in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         758  +
    pub fn service_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         759  +
        self.service_role_arn = ::std::option::Option::Some(input.into());
         760  +
        self
         761  +
    }
         762  +
    /// <p>The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run <code>RegisterTaskWithMaintenanceWindow</code>.</p>
         763  +
    /// <p>However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html">Setting up Maintenance Windows</a> in the in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         764  +
    pub fn set_service_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         765  +
        self.service_role_arn = input;
         766  +
        self
         767  +
    }
         768  +
    /// <p>The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run <code>RegisterTaskWithMaintenanceWindow</code>.</p>
         769  +
    /// <p>However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html">Setting up Maintenance Windows</a> in the in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         770  +
    pub fn get_service_role_arn(&self) -> &::std::option::Option<::std::string::String> {
         771  +
        &self.service_role_arn
         772  +
    }
         773  +
    /// Adds a key-value pair to `task_parameters`.
         774  +
    ///
         775  +
    /// To override the contents of this collection use [`set_task_parameters`](Self::set_task_parameters).
         776  +
    ///
         777  +
    /// <p>The parameters to modify.</p><note>
         778  +
    /// <p><code>TaskParameters</code> has been deprecated. To specify parameters to pass to a task when it runs, instead use the <code>Parameters</code> option in the <code>TaskInvocationParameters</code> structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
         779  +
    /// </note>
         780  +
    /// <p>The map has the following format:</p>
         781  +
    /// <p>Key: string, between 1 and 255 characters</p>
         782  +
    /// <p>Value: an array of strings, each string is between 1 and 255 characters</p>
         783  +
    pub fn task_parameters(
         784  +
        mut self,
         785  +
        k: impl ::std::convert::Into<::std::string::String>,
         786  +
        v: crate::types::MaintenanceWindowTaskParameterValueExpression,
         787  +
    ) -> Self {
         788  +
        let mut hash_map = self.task_parameters.unwrap_or_default();
         789  +
        hash_map.insert(k.into(), v);
         790  +
        self.task_parameters = ::std::option::Option::Some(hash_map);
         791  +
        self
         792  +
    }
         793  +
    /// <p>The parameters to modify.</p><note>
         794  +
    /// <p><code>TaskParameters</code> has been deprecated. To specify parameters to pass to a task when it runs, instead use the <code>Parameters</code> option in the <code>TaskInvocationParameters</code> structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
         795  +
    /// </note>
         796  +
    /// <p>The map has the following format:</p>
         797  +
    /// <p>Key: string, between 1 and 255 characters</p>
         798  +
    /// <p>Value: an array of strings, each string is between 1 and 255 characters</p>
         799  +
    pub fn set_task_parameters(
         800  +
        mut self,
         801  +
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::MaintenanceWindowTaskParameterValueExpression>>,
         802  +
    ) -> Self {
         803  +
        self.task_parameters = input;
         804  +
        self
         805  +
    }
         806  +
    /// <p>The parameters to modify.</p><note>
         807  +
    /// <p><code>TaskParameters</code> has been deprecated. To specify parameters to pass to a task when it runs, instead use the <code>Parameters</code> option in the <code>TaskInvocationParameters</code> structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
         808  +
    /// </note>
         809  +
    /// <p>The map has the following format:</p>
         810  +
    /// <p>Key: string, between 1 and 255 characters</p>
         811  +
    /// <p>Value: an array of strings, each string is between 1 and 255 characters</p>
         812  +
    pub fn get_task_parameters(
         813  +
        &self,
         814  +
    ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::MaintenanceWindowTaskParameterValueExpression>> {
         815  +
        &self.task_parameters
         816  +
    }
         817  +
    /// <p>The parameters that the task should use during execution. Populate only the fields that match the task type. All other fields should be empty.</p><important>
         818  +
    /// <p>When you update a maintenance window task that has options specified in <code>TaskInvocationParameters</code>, you must provide again all the <code>TaskInvocationParameters</code> values that you want to retain. The values you don't specify again are removed. For example, suppose that when you registered a Run Command task, you specified <code>TaskInvocationParameters</code> values for <code>Comment</code>, <code>NotificationConfig</code>, and <code>OutputS3BucketName</code>. If you update the maintenance window task and specify only a different <code>OutputS3BucketName</code> value, the values for <code>Comment</code> and <code>NotificationConfig</code> are removed.</p>
         819  +
    /// </important>
         820  +
    pub fn task_invocation_parameters(mut self, input: crate::types::MaintenanceWindowTaskInvocationParameters) -> Self {
         821  +
        self.task_invocation_parameters = ::std::option::Option::Some(input);
         822  +
        self
         823  +
    }
         824  +
    /// <p>The parameters that the task should use during execution. Populate only the fields that match the task type. All other fields should be empty.</p><important>
         825  +
    /// <p>When you update a maintenance window task that has options specified in <code>TaskInvocationParameters</code>, you must provide again all the <code>TaskInvocationParameters</code> values that you want to retain. The values you don't specify again are removed. For example, suppose that when you registered a Run Command task, you specified <code>TaskInvocationParameters</code> values for <code>Comment</code>, <code>NotificationConfig</code>, and <code>OutputS3BucketName</code>. If you update the maintenance window task and specify only a different <code>OutputS3BucketName</code> value, the values for <code>Comment</code> and <code>NotificationConfig</code> are removed.</p>
         826  +
    /// </important>
         827  +
    pub fn set_task_invocation_parameters(mut self, input: ::std::option::Option<crate::types::MaintenanceWindowTaskInvocationParameters>) -> Self {
         828  +
        self.task_invocation_parameters = input;
         829  +
        self
         830  +
    }
         831  +
    /// <p>The parameters that the task should use during execution. Populate only the fields that match the task type. All other fields should be empty.</p><important>
         832  +
    /// <p>When you update a maintenance window task that has options specified in <code>TaskInvocationParameters</code>, you must provide again all the <code>TaskInvocationParameters</code> values that you want to retain. The values you don't specify again are removed. For example, suppose that when you registered a Run Command task, you specified <code>TaskInvocationParameters</code> values for <code>Comment</code>, <code>NotificationConfig</code>, and <code>OutputS3BucketName</code>. If you update the maintenance window task and specify only a different <code>OutputS3BucketName</code> value, the values for <code>Comment</code> and <code>NotificationConfig</code> are removed.</p>
         833  +
    /// </important>
         834  +
    pub fn get_task_invocation_parameters(&self) -> &::std::option::Option<crate::types::MaintenanceWindowTaskInvocationParameters> {
         835  +
        &self.task_invocation_parameters
         836  +
    }
         837  +
    /// <p>The new task priority to specify. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.</p>
         838  +
    pub fn priority(mut self, input: i32) -> Self {
         839  +
        self.priority = ::std::option::Option::Some(input);
         840  +
        self
         841  +
    }
         842  +
    /// <p>The new task priority to specify. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.</p>
         843  +
    pub fn set_priority(mut self, input: ::std::option::Option<i32>) -> Self {
         844  +
        self.priority = input;
         845  +
        self
         846  +
    }
         847  +
    /// <p>The new task priority to specify. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.</p>
         848  +
    pub fn get_priority(&self) -> &::std::option::Option<i32> {
         849  +
        &self.priority
         850  +
    }
         851  +
    /// <p>The new <code>MaxConcurrency</code> value you want to specify. <code>MaxConcurrency</code> is the number of targets that are allowed to run this task, in parallel.</p><note>
         852  +
    /// <p>Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">targetless task</a> You must provide a value in all other cases.</p>
         853  +
    /// <p>For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of <code>1</code>. This value doesn't affect the running of your task.</p>
         854  +
    /// </note>
         855  +
    pub fn max_concurrency(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         856  +
        self.max_concurrency = ::std::option::Option::Some(input.into());
         857  +
        self
         858  +
    }
         859  +
    /// <p>The new <code>MaxConcurrency</code> value you want to specify. <code>MaxConcurrency</code> is the number of targets that are allowed to run this task, in parallel.</p><note>
         860  +
    /// <p>Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">targetless task</a> You must provide a value in all other cases.</p>
         861  +
    /// <p>For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of <code>1</code>. This value doesn't affect the running of your task.</p>
         862  +
    /// </note>
         863  +
    pub fn set_max_concurrency(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         864  +
        self.max_concurrency = input;
         865  +
        self
         866  +
    }
         867  +
    /// <p>The new <code>MaxConcurrency</code> value you want to specify. <code>MaxConcurrency</code> is the number of targets that are allowed to run this task, in parallel.</p><note>
         868  +
    /// <p>Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">targetless task</a> You must provide a value in all other cases.</p>
         869  +
    /// <p>For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of <code>1</code>. This value doesn't affect the running of your task.</p>
         870  +
    /// </note>
         871  +
    pub fn get_max_concurrency(&self) -> &::std::option::Option<::std::string::String> {
         872  +
        &self.max_concurrency
         873  +
    }
         874  +
    /// <p>The new <code>MaxErrors</code> value to specify. <code>MaxErrors</code> is the maximum number of errors that are allowed before the task stops being scheduled.</p><note>
         875  +
    /// <p>Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">targetless task</a> You must provide a value in all other cases.</p>
         876  +
    /// <p>For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of <code>1</code>. This value doesn't affect the running of your task.</p>
         877  +
    /// </note>
         878  +
    pub fn max_errors(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         879  +
        self.max_errors = ::std::option::Option::Some(input.into());
         880  +
        self
         881  +
    }
         882  +
    /// <p>The new <code>MaxErrors</code> value to specify. <code>MaxErrors</code> is the maximum number of errors that are allowed before the task stops being scheduled.</p><note>
         883  +
    /// <p>Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">targetless task</a> You must provide a value in all other cases.</p>
         884  +
    /// <p>For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of <code>1</code>. This value doesn't affect the running of your task.</p>
         885  +
    /// </note>
         886  +
    pub fn set_max_errors(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         887  +
        self.max_errors = input;
         888  +
        self
         889  +
    }
         890  +
    /// <p>The new <code>MaxErrors</code> value to specify. <code>MaxErrors</code> is the maximum number of errors that are allowed before the task stops being scheduled.</p><note>
         891  +
    /// <p>Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">targetless task</a> You must provide a value in all other cases.</p>
         892  +
    /// <p>For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of <code>1</code>. This value doesn't affect the running of your task.</p>
         893  +
    /// </note>
         894  +
    pub fn get_max_errors(&self) -> &::std::option::Option<::std::string::String> {
         895  +
        &self.max_errors
         896  +
    }
         897  +
    /// <p>The new logging location in Amazon S3 to specify.</p><note>
         898  +
    /// <p><code>LoggingInfo</code> has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the <code>OutputS3BucketName</code> and <code>OutputS3KeyPrefix</code> options in the <code>TaskInvocationParameters</code> structure. For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
         899  +
    /// </note>
         900  +
    pub fn logging_info(mut self, input: crate::types::LoggingInfo) -> Self {
         901  +
        self.logging_info = ::std::option::Option::Some(input);
         902  +
        self
         903  +
    }
         904  +
    /// <p>The new logging location in Amazon S3 to specify.</p><note>
         905  +
    /// <p><code>LoggingInfo</code> has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the <code>OutputS3BucketName</code> and <code>OutputS3KeyPrefix</code> options in the <code>TaskInvocationParameters</code> structure. For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
         906  +
    /// </note>
         907  +
    pub fn set_logging_info(mut self, input: ::std::option::Option<crate::types::LoggingInfo>) -> Self {
         908  +
        self.logging_info = input;
         909  +
        self
         910  +
    }
         911  +
    /// <p>The new logging location in Amazon S3 to specify.</p><note>
         912  +
    /// <p><code>LoggingInfo</code> has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the <code>OutputS3BucketName</code> and <code>OutputS3KeyPrefix</code> options in the <code>TaskInvocationParameters</code> structure. For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
         913  +
    /// </note>
         914  +
    pub fn get_logging_info(&self) -> &::std::option::Option<crate::types::LoggingInfo> {
         915  +
        &self.logging_info
         916  +
    }
         917  +
    /// <p>The new task name to specify.</p>
         918  +
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         919  +
        self.name = ::std::option::Option::Some(input.into());
         920  +
        self
         921  +
    }
         922  +
    /// <p>The new task name to specify.</p>
         923  +
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         924  +
        self.name = input;
         925  +
        self
         926  +
    }
         927  +
    /// <p>The new task name to specify.</p>
         928  +
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
         929  +
        &self.name
         930  +
    }
         931  +
    /// <p>The new task description to specify.</p>
         932  +
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         933  +
        self.description = ::std::option::Option::Some(input.into());
         934  +
        self
         935  +
    }
         936  +
    /// <p>The new task description to specify.</p>
         937  +
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         938  +
        self.description = input;
         939  +
        self
         940  +
    }
         941  +
    /// <p>The new task description to specify.</p>
         942  +
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
         943  +
        &self.description
         944  +
    }
         945  +
    /// <p>If True, then all fields that are required by the <code>RegisterTaskWithMaintenanceWindow</code> operation are also required for this API request. Optional fields that aren't specified are set to null.</p>
         946  +
    pub fn replace(mut self, input: bool) -> Self {
         947  +
        self.replace = ::std::option::Option::Some(input);
         948  +
        self
         949  +
    }
         950  +
    /// <p>If True, then all fields that are required by the <code>RegisterTaskWithMaintenanceWindow</code> operation are also required for this API request. Optional fields that aren't specified are set to null.</p>
         951  +
    pub fn set_replace(mut self, input: ::std::option::Option<bool>) -> Self {
         952  +
        self.replace = input;
         953  +
        self
         954  +
    }
         955  +
    /// <p>If True, then all fields that are required by the <code>RegisterTaskWithMaintenanceWindow</code> operation are also required for this API request. Optional fields that aren't specified are set to null.</p>
         956  +
    pub fn get_replace(&self) -> &::std::option::Option<bool> {
         957  +
        &self.replace
         958  +
    }
         959  +
    /// <p>Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.</p>
         960  +
    /// <ul>
         961  +
    /// <li>
         962  +
    /// <p><code>CONTINUE_TASK</code>: When the cutoff time is reached, any tasks that are running continue. The default value.</p></li>
         963  +
    /// <li>
         964  +
    /// <p><code>CANCEL_TASK</code>:</p>
         965  +
    /// <ul>
         966  +
    /// <li>
         967  +
    /// <p>For Automation, Lambda, Step Functions tasks: When the cutoff time is reached, any task invocations that are already running continue, but no new task invocations are started.</p></li>
         968  +
    /// <li>
         969  +
    /// <p>For Run Command tasks: When the cutoff time is reached, the system sends a <code>CancelCommand</code> operation that attempts to cancel the command associated with the task. However, there is no guarantee that the command will be terminated and the underlying process stopped.</p></li>
         970  +
    /// </ul>
         971  +
    /// <p>The status for tasks that are not completed is <code>TIMED_OUT</code>.</p></li>
         972  +
    /// </ul>
         973  +
    pub fn cutoff_behavior(mut self, input: crate::types::MaintenanceWindowTaskCutoffBehavior) -> Self {
         974  +
        self.cutoff_behavior = ::std::option::Option::Some(input);
         975  +
        self
         976  +
    }
         977  +
    /// <p>Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.</p>
         978  +
    /// <ul>
         979  +
    /// <li>
         980  +
    /// <p><code>CONTINUE_TASK</code>: When the cutoff time is reached, any tasks that are running continue. The default value.</p></li>
         981  +
    /// <li>
         982  +
    /// <p><code>CANCEL_TASK</code>:</p>
         983  +
    /// <ul>
         984  +
    /// <li>
         985  +
    /// <p>For Automation, Lambda, Step Functions tasks: When the cutoff time is reached, any task invocations that are already running continue, but no new task invocations are started.</p></li>
         986  +
    /// <li>
         987  +
    /// <p>For Run Command tasks: When the cutoff time is reached, the system sends a <code>CancelCommand</code> operation that attempts to cancel the command associated with the task. However, there is no guarantee that the command will be terminated and the underlying process stopped.</p></li>
         988  +
    /// </ul>
         989  +
    /// <p>The status for tasks that are not completed is <code>TIMED_OUT</code>.</p></li>
         990  +
    /// </ul>
         991  +
    pub fn set_cutoff_behavior(mut self, input: ::std::option::Option<crate::types::MaintenanceWindowTaskCutoffBehavior>) -> Self {
         992  +
        self.cutoff_behavior = input;
         993  +
        self
         994  +
    }
         995  +
    /// <p>Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.</p>
         996  +
    /// <ul>
         997  +
    /// <li>
         998  +
    /// <p><code>CONTINUE_TASK</code>: When the cutoff time is reached, any tasks that are running continue. The default value.</p></li>
         999  +
    /// <li>
        1000  +
    /// <p><code>CANCEL_TASK</code>:</p>
        1001  +
    /// <ul>
        1002  +
    /// <li>
        1003  +
    /// <p>For Automation, Lambda, Step Functions tasks: When the cutoff time is reached, any task invocations that are already running continue, but no new task invocations are started.</p></li>
        1004  +
    /// <li>
        1005  +
    /// <p>For Run Command tasks: When the cutoff time is reached, the system sends a <code>CancelCommand</code> operation that attempts to cancel the command associated with the task. However, there is no guarantee that the command will be terminated and the underlying process stopped.</p></li>
        1006  +
    /// </ul>
        1007  +
    /// <p>The status for tasks that are not completed is <code>TIMED_OUT</code>.</p></li>
        1008  +
    /// </ul>
        1009  +
    pub fn get_cutoff_behavior(&self) -> &::std::option::Option<crate::types::MaintenanceWindowTaskCutoffBehavior> {
        1010  +
        &self.cutoff_behavior
        1011  +
    }
        1012  +
    /// <p>The CloudWatch alarm you want to apply to your maintenance window task.</p>
        1013  +
    pub fn alarm_configuration(mut self, input: crate::types::AlarmConfiguration) -> Self {
        1014  +
        self.alarm_configuration = ::std::option::Option::Some(input);
        1015  +
        self
        1016  +
    }
        1017  +
    /// <p>The CloudWatch alarm you want to apply to your maintenance window task.</p>
        1018  +
    pub fn set_alarm_configuration(mut self, input: ::std::option::Option<crate::types::AlarmConfiguration>) -> Self {
        1019  +
        self.alarm_configuration = input;
        1020  +
        self
        1021  +
    }
        1022  +
    /// <p>The CloudWatch alarm you want to apply to your maintenance window task.</p>
        1023  +
    pub fn get_alarm_configuration(&self) -> &::std::option::Option<crate::types::AlarmConfiguration> {
        1024  +
        &self.alarm_configuration
        1025  +
    }
        1026  +
    /// Consumes the builder and constructs a [`UpdateMaintenanceWindowTaskInput`](crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskInput).
        1027  +
    pub fn build(
        1028  +
        self,
        1029  +
    ) -> ::std::result::Result<
        1030  +
        crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskInput,
        1031  +
        ::aws_smithy_types::error::operation::BuildError,
        1032  +
    > {
        1033  +
        ::std::result::Result::Ok(crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskInput {
        1034  +
            window_id: self.window_id,
        1035  +
            window_task_id: self.window_task_id,
        1036  +
            targets: self.targets,
        1037  +
            task_arn: self.task_arn,
        1038  +
            service_role_arn: self.service_role_arn,
        1039  +
            task_parameters: self.task_parameters,
        1040  +
            task_invocation_parameters: self.task_invocation_parameters,
        1041  +
            priority: self.priority,
        1042  +
            max_concurrency: self.max_concurrency,
        1043  +
            max_errors: self.max_errors,
        1044  +
            logging_info: self.logging_info,
        1045  +
            name: self.name,
        1046  +
            description: self.description,
        1047  +
            replace: self.replace,
        1048  +
            cutoff_behavior: self.cutoff_behavior,
        1049  +
            alarm_configuration: self.alarm_configuration,
        1050  +
        })
        1051  +
    }
        1052  +
}
        1053  +
impl ::std::fmt::Debug for UpdateMaintenanceWindowTaskInputBuilder {
        1054  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        1055  +
        let mut formatter = f.debug_struct("UpdateMaintenanceWindowTaskInputBuilder");
        1056  +
        formatter.field("window_id", &self.window_id);
        1057  +
        formatter.field("window_task_id", &self.window_task_id);
        1058  +
        formatter.field("targets", &self.targets);
        1059  +
        formatter.field("task_arn", &self.task_arn);
        1060  +
        formatter.field("service_role_arn", &self.service_role_arn);
        1061  +
        formatter.field("task_parameters", &"*** Sensitive Data Redacted ***");
        1062  +
        formatter.field("task_invocation_parameters", &self.task_invocation_parameters);
        1063  +
        formatter.field("priority", &self.priority);
        1064  +
        formatter.field("max_concurrency", &self.max_concurrency);
        1065  +
        formatter.field("max_errors", &self.max_errors);
        1066  +
        formatter.field("logging_info", &self.logging_info);
        1067  +
        formatter.field("name", &self.name);
        1068  +
        formatter.field("description", &"*** Sensitive Data Redacted ***");
        1069  +
        formatter.field("replace", &self.replace);
        1070  +
        formatter.field("cutoff_behavior", &self.cutoff_behavior);
        1071  +
        formatter.field("alarm_configuration", &self.alarm_configuration);
        1072  +
        formatter.finish()
        1073  +
    }
        1074  +
}