AWS SDK

AWS SDK

rev. 97ba95e6039d206ffea5b866ddc214d34f7f88c3

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/update_maintenance_window_target/_update_maintenance_window_target_output.rs

@@ -0,1 +0,479 @@
           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 UpdateMaintenanceWindowTargetOutput {
           6  +
    /// <p>The maintenance window ID specified in the update request.</p>
           7  +
    pub window_id: ::std::option::Option<::std::string::String>,
           8  +
    /// <p>The target ID specified in the update request.</p>
           9  +
    pub window_target_id: ::std::option::Option<::std::string::String>,
          10  +
    /// <p>The updated targets.</p>
          11  +
    pub targets: ::std::option::Option<::std::vec::Vec<crate::types::Target>>,
          12  +
    /// <p>The updated owner.</p>
          13  +
    pub owner_information: ::std::option::Option<::std::string::String>,
          14  +
    /// <p>The updated name.</p>
          15  +
    pub name: ::std::option::Option<::std::string::String>,
          16  +
    /// <p>The updated description.</p>
          17  +
    pub description: ::std::option::Option<::std::string::String>,
          18  +
    _request_id: Option<String>,
          19  +
}
          20  +
impl UpdateMaintenanceWindowTargetOutput {
          21  +
    /// <p>The maintenance window ID specified in the update request.</p>
          22  +
    pub fn window_id(&self) -> ::std::option::Option<&str> {
          23  +
        self.window_id.as_deref()
          24  +
    }
          25  +
    /// <p>The target ID specified in the update request.</p>
          26  +
    pub fn window_target_id(&self) -> ::std::option::Option<&str> {
          27  +
        self.window_target_id.as_deref()
          28  +
    }
          29  +
    /// <p>The updated targets.</p>
          30  +
    ///
          31  +
    /// 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()`.
          32  +
    pub fn targets(&self) -> &[crate::types::Target] {
          33  +
        self.targets.as_deref().unwrap_or_default()
          34  +
    }
          35  +
    /// <p>The updated owner.</p>
          36  +
    pub fn owner_information(&self) -> ::std::option::Option<&str> {
          37  +
        self.owner_information.as_deref()
          38  +
    }
          39  +
    /// <p>The updated name.</p>
          40  +
    pub fn name(&self) -> ::std::option::Option<&str> {
          41  +
        self.name.as_deref()
          42  +
    }
          43  +
    /// <p>The updated description.</p>
          44  +
    pub fn description(&self) -> ::std::option::Option<&str> {
          45  +
        self.description.as_deref()
          46  +
    }
          47  +
}
          48  +
impl ::std::fmt::Debug for UpdateMaintenanceWindowTargetOutput {
          49  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
          50  +
        let mut formatter = f.debug_struct("UpdateMaintenanceWindowTargetOutput");
          51  +
        formatter.field("window_id", &self.window_id);
          52  +
        formatter.field("window_target_id", &self.window_target_id);
          53  +
        formatter.field("targets", &self.targets);
          54  +
        formatter.field("owner_information", &"*** Sensitive Data Redacted ***");
          55  +
        formatter.field("name", &self.name);
          56  +
        formatter.field("description", &"*** Sensitive Data Redacted ***");
          57  +
        formatter.field("_request_id", &self._request_id);
          58  +
        formatter.finish()
          59  +
    }
          60  +
}
          61  +
static UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_WINDOW_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          62  +
    ::aws_smithy_schema::ShapeId::from_parts(
          63  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTargetOutput$WindowId",
          64  +
        "com.amazonaws.ssm.synthetic",
          65  +
        "UpdateMaintenanceWindowTargetOutput",
          66  +
    ),
          67  +
    ::aws_smithy_schema::ShapeType::String,
          68  +
    "WindowId",
          69  +
    0,
          70  +
);
          71  +
static UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_WINDOW_TARGET_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          72  +
    ::aws_smithy_schema::ShapeId::from_parts(
          73  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTargetOutput$WindowTargetId",
          74  +
        "com.amazonaws.ssm.synthetic",
          75  +
        "UpdateMaintenanceWindowTargetOutput",
          76  +
    ),
          77  +
    ::aws_smithy_schema::ShapeType::String,
          78  +
    "WindowTargetId",
          79  +
    1,
          80  +
);
          81  +
static UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_TARGETS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          82  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Targets$member", "com.amazonaws.ssm", "Targets"),
          83  +
    ::aws_smithy_schema::ShapeType::Structure,
          84  +
    "member",
          85  +
    0,
          86  +
);
          87  +
static UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_TARGETS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          88  +
    ::aws_smithy_schema::ShapeId::from_parts(
          89  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTargetOutput$Targets",
          90  +
        "com.amazonaws.ssm.synthetic",
          91  +
        "UpdateMaintenanceWindowTargetOutput",
          92  +
    ),
          93  +
    ::aws_smithy_schema::ShapeType::List,
          94  +
    "Targets",
          95  +
    2,
          96  +
)
          97  +
.with_list_member(&UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_TARGETS_MEMBER);
          98  +
static UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_OWNER_INFORMATION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          99  +
    ::aws_smithy_schema::ShapeId::from_parts(
         100  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTargetOutput$OwnerInformation",
         101  +
        "com.amazonaws.ssm.synthetic",
         102  +
        "UpdateMaintenanceWindowTargetOutput",
         103  +
    ),
         104  +
    ::aws_smithy_schema::ShapeType::String,
         105  +
    "OwnerInformation",
         106  +
    3,
         107  +
);
         108  +
static UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         109  +
    ::aws_smithy_schema::ShapeId::from_parts(
         110  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTargetOutput$Name",
         111  +
        "com.amazonaws.ssm.synthetic",
         112  +
        "UpdateMaintenanceWindowTargetOutput",
         113  +
    ),
         114  +
    ::aws_smithy_schema::ShapeType::String,
         115  +
    "Name",
         116  +
    4,
         117  +
);
         118  +
static UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         119  +
    ::aws_smithy_schema::ShapeId::from_parts(
         120  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTargetOutput$Description",
         121  +
        "com.amazonaws.ssm.synthetic",
         122  +
        "UpdateMaintenanceWindowTargetOutput",
         123  +
    ),
         124  +
    ::aws_smithy_schema::ShapeType::String,
         125  +
    "Description",
         126  +
    5,
         127  +
);
         128  +
static UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         129  +
    ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
         130  +
    ::aws_smithy_schema::ShapeType::String,
         131  +
    "request_id",
         132  +
    6,
         133  +
)
         134  +
.with_http_header("x-amzn-requestid");
         135  +
static UPDATEMAINTENANCEWINDOWTARGETOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
         136  +
    ::aws_smithy_schema::ShapeId::from_parts(
         137  +
        "com.amazonaws.ssm.synthetic#UpdateMaintenanceWindowTargetOutput",
         138  +
        "com.amazonaws.ssm.synthetic",
         139  +
        "UpdateMaintenanceWindowTargetOutput",
         140  +
    ),
         141  +
    ::aws_smithy_schema::ShapeType::Structure,
         142  +
    &[
         143  +
        &UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_WINDOW_ID,
         144  +
        &UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_WINDOW_TARGET_ID,
         145  +
        &UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_TARGETS,
         146  +
        &UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_OWNER_INFORMATION,
         147  +
        &UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_NAME,
         148  +
        &UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_DESCRIPTION,
         149  +
        &UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER__REQUEST_ID,
         150  +
    ],
         151  +
)
         152  +
.with_original_name("UpdateMaintenanceWindowTargetResult");
         153  +
impl UpdateMaintenanceWindowTargetOutput {
         154  +
    /// The schema for this shape.
         155  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &UPDATEMAINTENANCEWINDOWTARGETOUTPUT_SCHEMA;
         156  +
}
         157  +
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateMaintenanceWindowTargetOutput {
         158  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
         159  +
    fn serialize_members(
         160  +
        &self,
         161  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
         162  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
         163  +
        if let Some(ref val) = self.window_id {
         164  +
            ser.write_string(&UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_WINDOW_ID, val)?;
         165  +
        }
         166  +
        if let Some(ref val) = self.window_target_id {
         167  +
            ser.write_string(&UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_WINDOW_TARGET_ID, val)?;
         168  +
        }
         169  +
        if let Some(ref val) = self.targets {
         170  +
            ser.write_list(
         171  +
                &UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_TARGETS,
         172  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         173  +
                    for item in val {
         174  +
                        ser.write_struct(crate::types::Target::SCHEMA, item)?;
         175  +
                    }
         176  +
                    Ok(())
         177  +
                },
         178  +
            )?;
         179  +
        }
         180  +
        if let Some(ref val) = self.owner_information {
         181  +
            ser.write_string(&UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_OWNER_INFORMATION, val)?;
         182  +
        }
         183  +
        if let Some(ref val) = self.name {
         184  +
            ser.write_string(&UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_NAME, val)?;
         185  +
        }
         186  +
        if let Some(ref val) = self.description {
         187  +
            ser.write_string(&UPDATEMAINTENANCEWINDOWTARGETOUTPUT_MEMBER_DESCRIPTION, val)?;
         188  +
        }
         189  +
        Ok(())
         190  +
    }
         191  +
}
         192  +
impl UpdateMaintenanceWindowTargetOutput {
         193  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         194  +
    pub fn deserialize(
         195  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         196  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         197  +
        #[allow(unused_variables, unused_mut)]
         198  +
        let mut builder = Self::builder();
         199  +
        #[allow(
         200  +
            unused_variables,
         201  +
            unreachable_code,
         202  +
            clippy::single_match,
         203  +
            clippy::match_single_binding,
         204  +
            clippy::diverging_sub_expression
         205  +
        )]
         206  +
        deserializer.read_struct(&UPDATEMAINTENANCEWINDOWTARGETOUTPUT_SCHEMA, &mut |member, deser| {
         207  +
            match member.member_index() {
         208  +
                Some(0) => {
         209  +
                    if deser.is_null() {
         210  +
                        deser.read_null()?;
         211  +
                    } else {
         212  +
                        builder.window_id = Some(deser.read_string(member)?);
         213  +
                    }
         214  +
                }
         215  +
                Some(1) => {
         216  +
                    if deser.is_null() {
         217  +
                        deser.read_null()?;
         218  +
                    } else {
         219  +
                        builder.window_target_id = Some(deser.read_string(member)?);
         220  +
                    }
         221  +
                }
         222  +
                Some(2) => {
         223  +
                    if deser.is_null() {
         224  +
                        deser.read_null()?;
         225  +
                    } else {
         226  +
                        builder.targets = Some({
         227  +
                            let mut container = Vec::new();
         228  +
                            deser.read_list(member, &mut |deser| {
         229  +
                                container.push(crate::types::Target::deserialize(deser)?);
         230  +
                                Ok(())
         231  +
                            })?;
         232  +
                            container
         233  +
                        });
         234  +
                    }
         235  +
                }
         236  +
                Some(3) => {
         237  +
                    if deser.is_null() {
         238  +
                        deser.read_null()?;
         239  +
                    } else {
         240  +
                        builder.owner_information = Some(deser.read_string(member)?);
         241  +
                    }
         242  +
                }
         243  +
                Some(4) => {
         244  +
                    if deser.is_null() {
         245  +
                        deser.read_null()?;
         246  +
                    } else {
         247  +
                        builder.name = Some(deser.read_string(member)?);
         248  +
                    }
         249  +
                }
         250  +
                Some(5) => {
         251  +
                    if deser.is_null() {
         252  +
                        deser.read_null()?;
         253  +
                    } else {
         254  +
                        builder.description = Some(deser.read_string(member)?);
         255  +
                    }
         256  +
                }
         257  +
                Some(6) => {
         258  +
                    builder._request_id = Some(deser.read_string(member)?);
         259  +
                }
         260  +
                _ => {}
         261  +
            }
         262  +
            Ok(())
         263  +
        })?;
         264  +
        Ok(builder.build())
         265  +
    }
         266  +
}
         267  +
impl UpdateMaintenanceWindowTargetOutput {
         268  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         269  +
    /// Header-bound members are read directly from headers, avoiding runtime
         270  +
    /// member iteration overhead. Body members are read via the deserializer.
         271  +
    pub fn deserialize_with_response(
         272  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         273  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         274  +
        _status: u16,
         275  +
        _body: &[u8],
         276  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         277  +
        #[allow(unused_variables, unused_mut)]
         278  +
        let mut builder = Self::builder();
         279  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         280  +
            builder._request_id = Some(val.to_string());
         281  +
        }
         282  +
         283  +
        #[allow(
         284  +
            unused_variables,
         285  +
            unreachable_code,
         286  +
            clippy::single_match,
         287  +
            clippy::match_single_binding,
         288  +
            clippy::diverging_sub_expression
         289  +
        )]
         290  +
        deserializer.read_struct(&UPDATEMAINTENANCEWINDOWTARGETOUTPUT_SCHEMA, &mut |member, deser| {
         291  +
            match member.member_index() {
         292  +
                Some(0) => {
         293  +
                    builder.window_id = Some(deser.read_string(member)?);
         294  +
                }
         295  +
                Some(1) => {
         296  +
                    builder.window_target_id = Some(deser.read_string(member)?);
         297  +
                }
         298  +
                Some(2) => {
         299  +
                    builder.targets = Some({
         300  +
                        let mut container = Vec::new();
         301  +
                        deser.read_list(member, &mut |deser| {
         302  +
                            container.push(crate::types::Target::deserialize(deser)?);
         303  +
                            Ok(())
         304  +
                        })?;
         305  +
                        container
         306  +
                    });
         307  +
                }
         308  +
                Some(3) => {
         309  +
                    builder.owner_information = Some(deser.read_string(member)?);
         310  +
                }
         311  +
                Some(4) => {
         312  +
                    builder.name = Some(deser.read_string(member)?);
         313  +
                }
         314  +
                Some(5) => {
         315  +
                    builder.description = Some(deser.read_string(member)?);
         316  +
                }
         317  +
                _ => {}
         318  +
            }
         319  +
            Ok(())
         320  +
        })?;
         321  +
        Ok(builder.build())
         322  +
    }
         323  +
}
         324  +
impl ::aws_types::request_id::RequestId for UpdateMaintenanceWindowTargetOutput {
         325  +
    fn request_id(&self) -> Option<&str> {
         326  +
        self._request_id.as_deref()
         327  +
    }
         328  +
}
         329  +
impl UpdateMaintenanceWindowTargetOutput {
         330  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         331  +
        self._request_id = request_id;
         332  +
        self
         333  +
    }
         334  +
}
         335  +
impl UpdateMaintenanceWindowTargetOutput {
         336  +
    /// Creates a new builder-style object to manufacture [`UpdateMaintenanceWindowTargetOutput`](crate::operation::update_maintenance_window_target::UpdateMaintenanceWindowTargetOutput).
         337  +
    pub fn builder() -> crate::operation::update_maintenance_window_target::builders::UpdateMaintenanceWindowTargetOutputBuilder {
         338  +
        crate::operation::update_maintenance_window_target::builders::UpdateMaintenanceWindowTargetOutputBuilder::default()
         339  +
    }
         340  +
}
         341  +
         342  +
/// A builder for [`UpdateMaintenanceWindowTargetOutput`](crate::operation::update_maintenance_window_target::UpdateMaintenanceWindowTargetOutput).
         343  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
         344  +
#[non_exhaustive]
         345  +
pub struct UpdateMaintenanceWindowTargetOutputBuilder {
         346  +
    pub(crate) window_id: ::std::option::Option<::std::string::String>,
         347  +
    pub(crate) window_target_id: ::std::option::Option<::std::string::String>,
         348  +
    pub(crate) targets: ::std::option::Option<::std::vec::Vec<crate::types::Target>>,
         349  +
    pub(crate) owner_information: ::std::option::Option<::std::string::String>,
         350  +
    pub(crate) name: ::std::option::Option<::std::string::String>,
         351  +
    pub(crate) description: ::std::option::Option<::std::string::String>,
         352  +
    _request_id: Option<String>,
         353  +
}
         354  +
impl UpdateMaintenanceWindowTargetOutputBuilder {
         355  +
    /// <p>The maintenance window ID specified in the update request.</p>
         356  +
    pub fn window_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         357  +
        self.window_id = ::std::option::Option::Some(input.into());
         358  +
        self
         359  +
    }
         360  +
    /// <p>The maintenance window ID specified in the update request.</p>
         361  +
    pub fn set_window_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         362  +
        self.window_id = input;
         363  +
        self
         364  +
    }
         365  +
    /// <p>The maintenance window ID specified in the update request.</p>
         366  +
    pub fn get_window_id(&self) -> &::std::option::Option<::std::string::String> {
         367  +
        &self.window_id
         368  +
    }
         369  +
    /// <p>The target ID specified in the update request.</p>
         370  +
    pub fn window_target_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         371  +
        self.window_target_id = ::std::option::Option::Some(input.into());
         372  +
        self
         373  +
    }
         374  +
    /// <p>The target ID specified in the update request.</p>
         375  +
    pub fn set_window_target_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         376  +
        self.window_target_id = input;
         377  +
        self
         378  +
    }
         379  +
    /// <p>The target ID specified in the update request.</p>
         380  +
    pub fn get_window_target_id(&self) -> &::std::option::Option<::std::string::String> {
         381  +
        &self.window_target_id
         382  +
    }
         383  +
    /// Appends an item to `targets`.
         384  +
    ///
         385  +
    /// To override the contents of this collection use [`set_targets`](Self::set_targets).
         386  +
    ///
         387  +
    /// <p>The updated targets.</p>
         388  +
    pub fn targets(mut self, input: crate::types::Target) -> Self {
         389  +
        let mut v = self.targets.unwrap_or_default();
         390  +
        v.push(input);
         391  +
        self.targets = ::std::option::Option::Some(v);
         392  +
        self
         393  +
    }
         394  +
    /// <p>The updated targets.</p>
         395  +
    pub fn set_targets(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Target>>) -> Self {
         396  +
        self.targets = input;
         397  +
        self
         398  +
    }
         399  +
    /// <p>The updated targets.</p>
         400  +
    pub fn get_targets(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Target>> {
         401  +
        &self.targets
         402  +
    }
         403  +
    /// <p>The updated owner.</p>
         404  +
    pub fn owner_information(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         405  +
        self.owner_information = ::std::option::Option::Some(input.into());
         406  +
        self
         407  +
    }
         408  +
    /// <p>The updated owner.</p>
         409  +
    pub fn set_owner_information(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         410  +
        self.owner_information = input;
         411  +
        self
         412  +
    }
         413  +
    /// <p>The updated owner.</p>
         414  +
    pub fn get_owner_information(&self) -> &::std::option::Option<::std::string::String> {
         415  +
        &self.owner_information
         416  +
    }
         417  +
    /// <p>The updated name.</p>
         418  +
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         419  +
        self.name = ::std::option::Option::Some(input.into());
         420  +
        self
         421  +
    }
         422  +
    /// <p>The updated name.</p>
         423  +
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         424  +
        self.name = input;
         425  +
        self
         426  +
    }
         427  +
    /// <p>The updated name.</p>
         428  +
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
         429  +
        &self.name
         430  +
    }
         431  +
    /// <p>The updated description.</p>
         432  +
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         433  +
        self.description = ::std::option::Option::Some(input.into());
         434  +
        self
         435  +
    }
         436  +
    /// <p>The updated description.</p>
         437  +
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         438  +
        self.description = input;
         439  +
        self
         440  +
    }
         441  +
    /// <p>The updated description.</p>
         442  +
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
         443  +
        &self.description
         444  +
    }
         445  +
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
         446  +
        self._request_id = Some(request_id.into());
         447  +
        self
         448  +
    }
         449  +
         450  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         451  +
        self._request_id = request_id;
         452  +
        self
         453  +
    }
         454  +
    /// Consumes the builder and constructs a [`UpdateMaintenanceWindowTargetOutput`](crate::operation::update_maintenance_window_target::UpdateMaintenanceWindowTargetOutput).
         455  +
    pub fn build(self) -> crate::operation::update_maintenance_window_target::UpdateMaintenanceWindowTargetOutput {
         456  +
        crate::operation::update_maintenance_window_target::UpdateMaintenanceWindowTargetOutput {
         457  +
            window_id: self.window_id,
         458  +
            window_target_id: self.window_target_id,
         459  +
            targets: self.targets,
         460  +
            owner_information: self.owner_information,
         461  +
            name: self.name,
         462  +
            description: self.description,
         463  +
            _request_id: self._request_id,
         464  +
        }
         465  +
    }
         466  +
}
         467  +
impl ::std::fmt::Debug for UpdateMaintenanceWindowTargetOutputBuilder {
         468  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         469  +
        let mut formatter = f.debug_struct("UpdateMaintenanceWindowTargetOutputBuilder");
         470  +
        formatter.field("window_id", &self.window_id);
         471  +
        formatter.field("window_target_id", &self.window_target_id);
         472  +
        formatter.field("targets", &self.targets);
         473  +
        formatter.field("owner_information", &"*** Sensitive Data Redacted ***");
         474  +
        formatter.field("name", &self.name);
         475  +
        formatter.field("description", &"*** Sensitive Data Redacted ***");
         476  +
        formatter.field("_request_id", &self._request_id);
         477  +
        formatter.finish()
         478  +
    }
         479  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/update_maintenance_window_target/builders.rs

@@ -0,1 +0,230 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::update_maintenance_window_target::_update_maintenance_window_target_input::UpdateMaintenanceWindowTargetInputBuilder;
           3  +
           4  +
pub use crate::operation::update_maintenance_window_target::_update_maintenance_window_target_output::UpdateMaintenanceWindowTargetOutputBuilder;
           5  +
           6  +
impl crate::operation::update_maintenance_window_target::builders::UpdateMaintenanceWindowTargetInputBuilder {
           7  +
    /// Sends a request with this input using the given client.
           8  +
    pub async fn send_with(
           9  +
        self,
          10  +
        client: &crate::Client,
          11  +
    ) -> ::std::result::Result<
          12  +
        crate::operation::update_maintenance_window_target::UpdateMaintenanceWindowTargetOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::update_maintenance_window_target::UpdateMaintenanceWindowTargetError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.update_maintenance_window_target();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `UpdateMaintenanceWindowTarget`.
          24  +
///
          25  +
/// <p>Modifies the target of an existing maintenance window. You can change the following:</p>
          26  +
/// <ul>
          27  +
/// <li>
          28  +
/// <p>Name</p></li>
          29  +
/// <li>
          30  +
/// <p>Description</p></li>
          31  +
/// <li>
          32  +
/// <p>Owner</p></li>
          33  +
/// <li>
          34  +
/// <p>IDs for an ID target</p></li>
          35  +
/// <li>
          36  +
/// <p>Tags for a Tag target</p></li>
          37  +
/// <li>
          38  +
/// <p>From any supported tag type to another. The three supported tag types are ID target, Tag target, and resource group. For more information, see <code>Target</code>.</p></li>
          39  +
/// </ul><note>
          40  +
/// <p>If a parameter is null, then the corresponding field isn't modified.</p>
          41  +
/// </note>
          42  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          43  +
pub struct UpdateMaintenanceWindowTargetFluentBuilder {
          44  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          45  +
    inner: crate::operation::update_maintenance_window_target::builders::UpdateMaintenanceWindowTargetInputBuilder,
          46  +
    config_override: ::std::option::Option<crate::config::Builder>,
          47  +
}
          48  +
impl
          49  +
    crate::client::customize::internal::CustomizableSend<
          50  +
        crate::operation::update_maintenance_window_target::UpdateMaintenanceWindowTargetOutput,
          51  +
        crate::operation::update_maintenance_window_target::UpdateMaintenanceWindowTargetError,
          52  +
    > for UpdateMaintenanceWindowTargetFluentBuilder
          53  +
{
          54  +
    fn send(
          55  +
        self,
          56  +
        config_override: crate::config::Builder,
          57  +
    ) -> crate::client::customize::internal::BoxFuture<
          58  +
        crate::client::customize::internal::SendResult<
          59  +
            crate::operation::update_maintenance_window_target::UpdateMaintenanceWindowTargetOutput,
          60  +
            crate::operation::update_maintenance_window_target::UpdateMaintenanceWindowTargetError,
          61  +
        >,
          62  +
    > {
          63  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          64  +
    }
          65  +
}
          66  +
impl UpdateMaintenanceWindowTargetFluentBuilder {
          67  +
    /// Creates a new `UpdateMaintenanceWindowTargetFluentBuilder`.
          68  +
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
          69  +
        Self {
          70  +
            handle,
          71  +
            inner: ::std::default::Default::default(),
          72  +
            config_override: ::std::option::Option::None,
          73  +
        }
          74  +
    }
          75  +
    /// Access the UpdateMaintenanceWindowTarget as a reference.
          76  +
    pub fn as_input(&self) -> &crate::operation::update_maintenance_window_target::builders::UpdateMaintenanceWindowTargetInputBuilder {
          77  +
        &self.inner
          78  +
    }
          79  +
    /// Sends the request and returns the response.
          80  +
    ///
          81  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          82  +
    /// can be matched against.
          83  +
    ///
          84  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          85  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          86  +
    /// set when configuring the client.
          87  +
    pub async fn send(
          88  +
        self,
          89  +
    ) -> ::std::result::Result<
          90  +
        crate::operation::update_maintenance_window_target::UpdateMaintenanceWindowTargetOutput,
          91  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          92  +
            crate::operation::update_maintenance_window_target::UpdateMaintenanceWindowTargetError,
          93  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          94  +
        >,
          95  +
    > {
          96  +
        let input = self
          97  +
            .inner
          98  +
            .build()
          99  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
         100  +
        let runtime_plugins = crate::operation::update_maintenance_window_target::UpdateMaintenanceWindowTarget::operation_runtime_plugins(
         101  +
            self.handle.runtime_plugins.clone(),
         102  +
            &self.handle.conf,
         103  +
            self.config_override,
         104  +
        );
         105  +
        crate::operation::update_maintenance_window_target::UpdateMaintenanceWindowTarget::orchestrate(&runtime_plugins, input).await
         106  +
    }
         107  +
         108  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
         109  +
    pub fn customize(
         110  +
        self,
         111  +
    ) -> crate::client::customize::CustomizableOperation<
         112  +
        crate::operation::update_maintenance_window_target::UpdateMaintenanceWindowTargetOutput,
         113  +
        crate::operation::update_maintenance_window_target::UpdateMaintenanceWindowTargetError,
         114  +
        Self,
         115  +
    > {
         116  +
        crate::client::customize::CustomizableOperation::new(self)
         117  +
    }
         118  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         119  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         120  +
        self
         121  +
    }
         122  +
         123  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         124  +
        self.config_override = config_override;
         125  +
        self
         126  +
    }
         127  +
    /// <p>The maintenance window ID with which to modify the target.</p>
         128  +
    pub fn window_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         129  +
        self.inner = self.inner.window_id(input.into());
         130  +
        self
         131  +
    }
         132  +
    /// <p>The maintenance window ID with which to modify the target.</p>
         133  +
    pub fn set_window_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         134  +
        self.inner = self.inner.set_window_id(input);
         135  +
        self
         136  +
    }
         137  +
    /// <p>The maintenance window ID with which to modify the target.</p>
         138  +
    pub fn get_window_id(&self) -> &::std::option::Option<::std::string::String> {
         139  +
        self.inner.get_window_id()
         140  +
    }
         141  +
    /// <p>The target ID to modify.</p>
         142  +
    pub fn window_target_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         143  +
        self.inner = self.inner.window_target_id(input.into());
         144  +
        self
         145  +
    }
         146  +
    /// <p>The target ID to modify.</p>
         147  +
    pub fn set_window_target_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         148  +
        self.inner = self.inner.set_window_target_id(input);
         149  +
        self
         150  +
    }
         151  +
    /// <p>The target ID to modify.</p>
         152  +
    pub fn get_window_target_id(&self) -> &::std::option::Option<::std::string::String> {
         153  +
        self.inner.get_window_target_id()
         154  +
    }
         155  +
    ///
         156  +
    /// Appends an item to `Targets`.
         157  +
    ///
         158  +
    /// To override the contents of this collection use [`set_targets`](Self::set_targets).
         159  +
    ///
         160  +
    /// <p>The targets to add or replace.</p>
         161  +
    pub fn targets(mut self, input: crate::types::Target) -> Self {
         162  +
        self.inner = self.inner.targets(input);
         163  +
        self
         164  +
    }
         165  +
    /// <p>The targets to add or replace.</p>
         166  +
    pub fn set_targets(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Target>>) -> Self {
         167  +
        self.inner = self.inner.set_targets(input);
         168  +
        self
         169  +
    }
         170  +
    /// <p>The targets to add or replace.</p>
         171  +
    pub fn get_targets(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Target>> {
         172  +
        self.inner.get_targets()
         173  +
    }
         174  +
    /// <p>User-provided value that will be included in any Amazon CloudWatch Events events raised while running tasks for these targets in this maintenance window.</p>
         175  +
    pub fn owner_information(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         176  +
        self.inner = self.inner.owner_information(input.into());
         177  +
        self
         178  +
    }
         179  +
    /// <p>User-provided value that will be included in any Amazon CloudWatch Events events raised while running tasks for these targets in this maintenance window.</p>
         180  +
    pub fn set_owner_information(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         181  +
        self.inner = self.inner.set_owner_information(input);
         182  +
        self
         183  +
    }
         184  +
    /// <p>User-provided value that will be included in any Amazon CloudWatch Events events raised while running tasks for these targets in this maintenance window.</p>
         185  +
    pub fn get_owner_information(&self) -> &::std::option::Option<::std::string::String> {
         186  +
        self.inner.get_owner_information()
         187  +
    }
         188  +
    /// <p>A name for the update.</p>
         189  +
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         190  +
        self.inner = self.inner.name(input.into());
         191  +
        self
         192  +
    }
         193  +
    /// <p>A name for the update.</p>
         194  +
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         195  +
        self.inner = self.inner.set_name(input);
         196  +
        self
         197  +
    }
         198  +
    /// <p>A name for the update.</p>
         199  +
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
         200  +
        self.inner.get_name()
         201  +
    }
         202  +
    /// <p>An optional description for the update.</p>
         203  +
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         204  +
        self.inner = self.inner.description(input.into());
         205  +
        self
         206  +
    }
         207  +
    /// <p>An optional description for the update.</p>
         208  +
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         209  +
        self.inner = self.inner.set_description(input);
         210  +
        self
         211  +
    }
         212  +
    /// <p>An optional description for the update.</p>
         213  +
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
         214  +
        self.inner.get_description()
         215  +
    }
         216  +
    /// <p>If <code>True</code>, then all fields that are required by the <code>RegisterTargetWithMaintenanceWindow</code> operation are also required for this API request. Optional fields that aren't specified are set to null.</p>
         217  +
    pub fn replace(mut self, input: bool) -> Self {
         218  +
        self.inner = self.inner.replace(input);
         219  +
        self
         220  +
    }
         221  +
    /// <p>If <code>True</code>, then all fields that are required by the <code>RegisterTargetWithMaintenanceWindow</code> operation are also required for this API request. Optional fields that aren't specified are set to null.</p>
         222  +
    pub fn set_replace(mut self, input: ::std::option::Option<bool>) -> Self {
         223  +
        self.inner = self.inner.set_replace(input);
         224  +
        self
         225  +
    }
         226  +
    /// <p>If <code>True</code>, then all fields that are required by the <code>RegisterTargetWithMaintenanceWindow</code> operation are also required for this API request. Optional fields that aren't specified are set to null.</p>
         227  +
    pub fn get_replace(&self) -> &::std::option::Option<bool> {
         228  +
        self.inner.get_replace()
         229  +
    }
         230  +
}

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

@@ -0,1 +0,596 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/// Orchestration and serialization glue logic for `UpdateMaintenanceWindowTask`.
           3  +
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
           4  +
#[non_exhaustive]
           5  +
pub struct UpdateMaintenanceWindowTask;
           6  +
impl UpdateMaintenanceWindowTask {
           7  +
    /// Creates a new `UpdateMaintenanceWindowTask`
           8  +
    pub fn new() -> Self {
           9  +
        Self
          10  +
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> =
          13  +
        crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> =
          16  +
        crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskOutput::SCHEMA;
          17  +
    pub(crate) async fn orchestrate(
          18  +
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
          19  +
        input: crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskInput,
          20  +
    ) -> ::std::result::Result<
          21  +
        crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskOutput,
          22  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          23  +
            crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskError,
          24  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          25  +
        >,
          26  +
    > {
          27  +
        let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError<
          28  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
          29  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          30  +
        >| {
          31  +
            err.map_service_error(|err| {
          32  +
                err.downcast::<crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskError>()
          33  +
                    .expect("correct error type")
          34  +
            })
          35  +
        };
          36  +
        let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
          37  +
            .await
          38  +
            .map_err(map_err)?;
          39  +
        let output = context.finalize().map_err(map_err)?;
          40  +
        ::std::result::Result::Ok(
          41  +
            output
          42  +
                .downcast::<crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskOutput>()
          43  +
                .expect("correct output type"),
          44  +
        )
          45  +
    }
          46  +
          47  +
    pub(crate) async fn orchestrate_with_stop_point(
          48  +
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
          49  +
        input: crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskInput,
          50  +
        stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
          51  +
    ) -> ::std::result::Result<
          52  +
        ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
          53  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          54  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
          55  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          56  +
        >,
          57  +
    > {
          58  +
        let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
          59  +
        use ::tracing::Instrument;
          60  +
        ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("SSM", "UpdateMaintenanceWindowTask", input, runtime_plugins, stop_point)
          61  +
            // Create a parent span for the entire operation. Includes a random, internal-only,
          62  +
            // seven-digit ID for the operation orchestration so that it can be correlated in the logs.
          63  +
            .instrument(::tracing::debug_span!(
          64  +
                "SSM.UpdateMaintenanceWindowTask",
          65  +
                "rpc.service" = "SSM",
          66  +
                "rpc.method" = "UpdateMaintenanceWindowTask",
          67  +
                "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
          68  +
                "rpc.system" = "aws-api",
          69  +
            ))
          70  +
            .await
          71  +
    }
          72  +
          73  +
    pub(crate) fn operation_runtime_plugins(
          74  +
        client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
          75  +
        client_config: &crate::config::Config,
          76  +
        config_override: ::std::option::Option<crate::config::Builder>,
          77  +
    ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
          78  +
        let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
          79  +
          80  +
        if let ::std::option::Option::Some(config_override) = config_override {
          81  +
            for plugin in config_override.runtime_plugins.iter().cloned() {
          82  +
                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
          83  +
            }
          84  +
            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
          85  +
                config_override,
          86  +
                client_config.config.clone(),
          87  +
                &client_config.runtime_components,
          88  +
            ));
          89  +
        }
          90  +
        runtime_plugins
          91  +
    }
          92  +
}
          93  +
/// Per-operation error registry. Contains an entry for every modeled
          94  +
/// error this operation can throw.
          95  +
///
          96  +
/// Used by the schema-serde error path as the operation-scoped lookup
          97  +
/// for registry-backed error reification: an error code that does not
          98  +
/// match one of the operation's modeled errors directly is resolved
          99  +
/// against this registry first, then widened to the service-wide error
         100  +
/// registry.
         101  +
pub(crate) mod error_registry {
         102  +
    pub(crate) static REGISTRY: ::std::sync::LazyLock<::aws_smithy_schema::registry::TypeRegistry> = ::std::sync::LazyLock::new(|| {
         103  +
        ::aws_smithy_schema::registry::TypeRegistry::builder()
         104  +
                            .insert_error_shape(
         105  +
                        crate::types::error::DoesNotExistException::SCHEMA,
         106  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         107  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::DoesNotExistException::deserialize(d)?))
         108  +
                        },
         109  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
         110  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::DoesNotExistException::deserialize(d)?))
         111  +
                        },
         112  +
                    )
         113  +
.insert_error_shape(
         114  +
                        crate::types::error::InternalServerError::SCHEMA,
         115  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         116  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::InternalServerError::deserialize(d)?))
         117  +
                        },
         118  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
         119  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::InternalServerError::deserialize(d)?))
         120  +
                        },
         121  +
                    )
         122  +
                            .build()
         123  +
    });
         124  +
}
         125  +
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for UpdateMaintenanceWindowTask {
         126  +
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
         127  +
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("UpdateMaintenanceWindowTask");
         128  +
         129  +
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
         130  +
            UpdateMaintenanceWindowTaskRequestSerializer,
         131  +
        ));
         132  +
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
         133  +
            UpdateMaintenanceWindowTaskResponseDeserializer,
         134  +
        ));
         135  +
         136  +
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
         137  +
            crate::config::auth::Params::builder()
         138  +
                .operation_name("UpdateMaintenanceWindowTask")
         139  +
                .build()
         140  +
                .expect("required fields set"),
         141  +
        ));
         142  +
         143  +
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::SensitiveOutput);
         144  +
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
         145  +
            "UpdateMaintenanceWindowTask",
         146  +
            "SSM",
         147  +
        ));
         148  +
        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
         149  +
        signing_options.double_uri_encode = true;
         150  +
        signing_options.content_sha256_header = false;
         151  +
        signing_options.normalize_uri_path = true;
         152  +
        signing_options.payload_override = None;
         153  +
         154  +
        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
         155  +
            signing_options,
         156  +
            ..::std::default::Default::default()
         157  +
        });
         158  +
         159  +
        ::std::option::Option::Some(cfg.freeze())
         160  +
    }
         161  +
         162  +
    fn runtime_components(
         163  +
        &self,
         164  +
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
         165  +
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
         166  +
        #[allow(unused_mut)]
         167  +
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("UpdateMaintenanceWindowTask")
         168  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         169  +
                UpdateMaintenanceWindowTaskTelemetryInputCaptureInterceptor,
         170  +
            ))
         171  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         172  +
                ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
         173  +
            ))
         174  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         175  +
                UpdateMaintenanceWindowTaskEndpointParamsInterceptor,
         176  +
            ))
         177  +
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
         178  +
                crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskError,
         179  +
            >::new())
         180  +
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
         181  +
                crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskError,
         182  +
            >::new())
         183  +
            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
         184  +
                crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskError,
         185  +
            >::new())
         186  +
            .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
         187  +
                crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskError,
         188  +
            >::new());
         189  +
         190  +
        ::std::borrow::Cow::Owned(rcb)
         191  +
    }
         192  +
}
         193  +
         194  +
#[derive(Debug)]
         195  +
struct UpdateMaintenanceWindowTaskTelemetryInputCaptureInterceptor;
         196  +
         197  +
#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
         198  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateMaintenanceWindowTaskTelemetryInputCaptureInterceptor {
         199  +
    fn name(&self) -> &'static str {
         200  +
        "UpdateMaintenanceWindowTaskTelemetryInputCaptureInterceptor"
         201  +
    }
         202  +
         203  +
    fn read_before_execution(
         204  +
        &self,
         205  +
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
         206  +
            '_,
         207  +
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
         208  +
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
         209  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
         210  +
        >,
         211  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         212  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
         213  +
        // Nothing to do unless the customer opted in by naming members to record.
         214  +
        let ::std::option::Option::Some(requested) = cfg
         215  +
            .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
         216  +
            .filter(|r| !r.is_empty())
         217  +
        else {
         218  +
            return ::std::result::Result::Ok(());
         219  +
        };
         220  +
         221  +
        let ::std::option::Option::Some(input) = context.input().downcast_ref::<UpdateMaintenanceWindowTaskInput>() else {
         222  +
            // A mismatched input is not this interceptor's concern; skip quietly.
         223  +
            return ::std::result::Result::Ok(());
         224  +
        };
         225  +
         226  +
        let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
         227  +
        if requested.should_capture("WindowId") {
         228  +
            if let ::std::option::Option::Some(value) = input.window_id.as_deref() {
         229  +
                captured.insert("WindowId", value);
         230  +
            }
         231  +
        }
         232  +
        if requested.should_capture("WindowTaskId") {
         233  +
            if let ::std::option::Option::Some(value) = input.window_task_id.as_deref() {
         234  +
                captured.insert("WindowTaskId", value);
         235  +
            }
         236  +
        }
         237  +
        if requested.should_capture("TaskArn") {
         238  +
            if let ::std::option::Option::Some(value) = input.task_arn.as_deref() {
         239  +
                captured.insert("TaskArn", value);
         240  +
            }
         241  +
        }
         242  +
        if requested.should_capture("ServiceRoleArn") {
         243  +
            if let ::std::option::Option::Some(value) = input.service_role_arn.as_deref() {
         244  +
                captured.insert("ServiceRoleArn", value);
         245  +
            }
         246  +
        }
         247  +
        if requested.should_capture("MaxConcurrency") {
         248  +
            if let ::std::option::Option::Some(value) = input.max_concurrency.as_deref() {
         249  +
                captured.insert("MaxConcurrency", value);
         250  +
            }
         251  +
        }
         252  +
        if requested.should_capture("MaxErrors") {
         253  +
            if let ::std::option::Option::Some(value) = input.max_errors.as_deref() {
         254  +
                captured.insert("MaxErrors", value);
         255  +
            }
         256  +
        }
         257  +
        if requested.should_capture("Name") {
         258  +
            if let ::std::option::Option::Some(value) = input.name.as_deref() {
         259  +
                captured.insert("Name", value);
         260  +
            }
         261  +
        }
         262  +
         263  +
        cfg.interceptor_state().store_put(captured);
         264  +
        ::std::result::Result::Ok(())
         265  +
    }
         266  +
}
         267  +
#[derive(Debug)]
         268  +
struct UpdateMaintenanceWindowTaskResponseDeserializer;
         269  +
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdateMaintenanceWindowTaskResponseDeserializer {
         270  +
    fn deserialize_nonstreaming_with_config(
         271  +
        &self,
         272  +
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         273  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
         274  +
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
         275  +
        let (success, status) = (response.status().is_success(), response.status().as_u16());
         276  +
        // Load body and headers BEFORE BeforeParseResponse so customizations
         277  +
        // (e.g., S3's `body_is_error` check that detects errors returned with
         278  +
        // HTTP 200) can inspect them. The legacy non-streaming path also
         279  +
        // loads `body` before firing this hook.
         280  +
        let body = response.body().bytes().expect("body loaded");
         281  +
        let headers = response.headers();
         282  +
        #[allow(unused_mut)]
         283  +
        let mut force_error = false;
         284  +
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
         285  +
        if !success && status != 200 || force_error {
         286  +
            let protocol = _cfg
         287  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         288  +
                .expect("a SharedClientProtocol is required");
         289  +
            #[allow(unused_mut)]
         290  +
            let mut generic_builder = protocol.parse_error_metadata(response, _cfg).map_err(|e| {
         291  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         292  +
            })?;
         293  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         294  +
            let generic = generic_builder.build();
         295  +
            let error_code = match generic.code() {
         296  +
                ::std::option::Option::Some(code) => code,
         297  +
                ::std::option::Option::None => {
         298  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         299  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         300  +
                            crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskError::unhandled(generic),
         301  +
                        ),
         302  +
                    ))
         303  +
                }
         304  +
            };
         305  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         306  +
            let err = match error_code {
         307  +
                "DoesNotExistException" => {
         308  +
                    crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskError::DoesNotExistException({
         309  +
                        let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         310  +
                            crate::types::error::DoesNotExistException::deserialize_with_response(
         311  +
                                &mut *deser,
         312  +
                                response.headers(),
         313  +
                                response.status().into(),
         314  +
                                body,
         315  +
                            )
         316  +
                        }) {
         317  +
                            ::std::result::Result::Ok(val) => val,
         318  +
                            ::std::result::Result::Err(e) => {
         319  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         320  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         321  +
                                ))
         322  +
                            }
         323  +
                        };
         324  +
                        tmp.meta = generic;
         325  +
                        if tmp.message.is_none() {
         326  +
                            tmp.message = _error_message;
         327  +
                        }
         328  +
                        tmp
         329  +
                    })
         330  +
                }
         331  +
                "InternalServerError" => crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskError::InternalServerError({
         332  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         333  +
                        crate::types::error::InternalServerError::deserialize_with_response(
         334  +
                            &mut *deser,
         335  +
                            response.headers(),
         336  +
                            response.status().into(),
         337  +
                            body,
         338  +
                        )
         339  +
                    }) {
         340  +
                        ::std::result::Result::Ok(val) => val,
         341  +
                        ::std::result::Result::Err(e) => {
         342  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         343  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         344  +
                            ))
         345  +
                        }
         346  +
                    };
         347  +
                    tmp.meta = generic;
         348  +
                    if tmp.message.is_none() {
         349  +
                        tmp.message = _error_message;
         350  +
                    }
         351  +
                    tmp
         352  +
                }),
         353  +
                _ => {
         354  +
                    // Registry-backed, operation-scoped reification of an error whose
         355  +
                    // code this operation does not model directly: the operation's own
         356  +
                    // error registry is consulted first, then the lookup widens to the
         357  +
                    // service-wide error registry. On a hit, the reified error is attached
         358  +
                    // as the source of the returned unhandled error while its metadata
         359  +
                    // (code, message, request id) is preserved; on a miss the generic
         360  +
                    // error is returned unchanged.
         361  +
                    match protocol
         362  +
                        .deserialize_error_response(response, _cfg)
         363  +
                        .ok()
         364  +
                        .and_then(|mut deser| {
         365  +
                            ::aws_smithy_schema::registry::reify_error(
         366  +
                                crate::operation::update_maintenance_window_task::error_registry::REGISTRY
         367  +
                                    .or(&crate::error_type_registry::REGISTRY),
         368  +
                                error_code,
         369  +
                                &mut *deser,
         370  +
                            )
         371  +
                        }) {
         372  +
                        ::std::option::Option::Some(source) => <crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskError as ::aws_smithy_runtime_api::client::result::CreateUnhandledError>::create_unhandled_error(source, ::std::option::Option::Some(generic)),
         373  +
                        ::std::option::Option::None => crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskError::generic(generic),
         374  +
                    }
         375  +
                }
         376  +
            };
         377  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         378  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         379  +
            ))
         380  +
        } else {
         381  +
            let protocol = _cfg
         382  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         383  +
                .expect("a SharedClientProtocol is required");
         384  +
            let mut deser = protocol
         385  +
                .deserialize_response(response, UpdateMaintenanceWindowTask::OUTPUT_SCHEMA, _cfg)
         386  +
                .map_err(|e| {
         387  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         388  +
                })?;
         389  +
            // body and headers are already in scope from the top of the function;
         390  +
            // alias `headers` as `_response_headers` so MutateOutput
         391  +
            // customizations have a stable name to read from.
         392  +
            let _response_headers = headers;
         393  +
            #[allow(unused_mut)]
         394  +
            let mut output = crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskOutput::deserialize_with_response(
         395  +
                &mut *deser,
         396  +
                _response_headers,
         397  +
                response.status().into(),
         398  +
                body,
         399  +
            )
         400  +
            .map_err(|e| {
         401  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         402  +
            })?;
         403  +
            output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
         404  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         405  +
        }
         406  +
    }
         407  +
}
         408  +
#[derive(Debug)]
         409  +
struct UpdateMaintenanceWindowTaskRequestSerializer;
         410  +
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UpdateMaintenanceWindowTaskRequestSerializer {
         411  +
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
         412  +
    fn serialize_input(
         413  +
        &self,
         414  +
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
         415  +
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         416  +
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
         417  +
        let input = input
         418  +
            .downcast::<crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskInput>()
         419  +
            .expect("correct type");
         420  +
         421  +
        let protocol = _cfg
         422  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         423  +
            .expect("a SharedClientProtocol is required");
         424  +
        let mut request = protocol
         425  +
            .serialize_request(&input, UpdateMaintenanceWindowTask::INPUT_SCHEMA, "/", _cfg)
         426  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         427  +
         428  +
        return ::std::result::Result::Ok(request);
         429  +
    }
         430  +
}
         431  +
#[derive(Debug)]
         432  +
struct UpdateMaintenanceWindowTaskEndpointParamsInterceptor;
         433  +
         434  +
#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
         435  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateMaintenanceWindowTaskEndpointParamsInterceptor {
         436  +
    fn name(&self) -> &'static str {
         437  +
        "UpdateMaintenanceWindowTaskEndpointParamsInterceptor"
         438  +
    }
         439  +
         440  +
    fn read_before_execution(
         441  +
        &self,
         442  +
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
         443  +
            '_,
         444  +
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
         445  +
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
         446  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
         447  +
        >,
         448  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         449  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
         450  +
        let _input = context
         451  +
            .input()
         452  +
            .downcast_ref::<UpdateMaintenanceWindowTaskInput>()
         453  +
            .ok_or("failed to downcast to UpdateMaintenanceWindowTaskInput")?;
         454  +
         455  +
        let params = crate::config::endpoint::Params::builder()
         456  +
            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
         457  +
            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
         458  +
            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
         459  +
            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
         460  +
            .build()
         461  +
            .map_err(|err| {
         462  +
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
         463  +
            })?;
         464  +
        cfg.interceptor_state()
         465  +
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         466  +
        ::std::result::Result::Ok(())
         467  +
    }
         468  +
}
         469  +
         470  +
// The get_* functions below are generated from JMESPath expressions in the
         471  +
// operationContextParams trait. They target the operation's input shape.
         472  +
         473  +
/// Error type for the `UpdateMaintenanceWindowTaskError` operation.
         474  +
#[non_exhaustive]
         475  +
#[derive(::std::fmt::Debug)]
         476  +
pub enum UpdateMaintenanceWindowTaskError {
         477  +
    /// <p>Error returned when the ID specified for a resource, such as a maintenance window or patch baseline, doesn't exist.</p>
         478  +
    /// <p>For information about resource quotas in Amazon Web Services Systems Manager, see <a href="https://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm">Systems Manager service quotas</a> in the <i>Amazon Web Services General Reference</i>.</p>
         479  +
    DoesNotExistException(crate::types::error::DoesNotExistException),
         480  +
    /// <p>An error occurred on the server side.</p>
         481  +
    InternalServerError(crate::types::error::InternalServerError),
         482  +
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
         483  +
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
         484  +
    variable wildcard pattern and check `.code()`:
         485  +
     \
         486  +
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
         487  +
     \
         488  +
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-UpdateMaintenanceWindowTaskError) for what information is available for the error.")]
         489  +
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         490  +
}
         491  +
impl UpdateMaintenanceWindowTaskError {
         492  +
    /// Creates the `UpdateMaintenanceWindowTaskError::Unhandled` variant from any error type.
         493  +
    pub fn unhandled(
         494  +
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
         495  +
    ) -> Self {
         496  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         497  +
            source: err.into(),
         498  +
            meta: ::std::default::Default::default(),
         499  +
        })
         500  +
    }
         501  +
         502  +
    /// Creates the `UpdateMaintenanceWindowTaskError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
         503  +
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         504  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         505  +
            source: err.clone().into(),
         506  +
            meta: err,
         507  +
        })
         508  +
    }
         509  +
    ///
         510  +
    /// Returns error metadata, which includes the error code, message,
         511  +
    /// request ID, and potentially additional information.
         512  +
    ///
         513  +
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         514  +
        match self {
         515  +
            Self::DoesNotExistException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         516  +
            Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         517  +
            Self::Unhandled(e) => &e.meta,
         518  +
        }
         519  +
    }
         520  +
    /// Returns `true` if the error kind is `UpdateMaintenanceWindowTaskError::DoesNotExistException`.
         521  +
    pub fn is_does_not_exist_exception(&self) -> bool {
         522  +
        matches!(self, Self::DoesNotExistException(_))
         523  +
    }
         524  +
    /// Returns `true` if the error kind is `UpdateMaintenanceWindowTaskError::InternalServerError`.
         525  +
    pub fn is_internal_server_error(&self) -> bool {
         526  +
        matches!(self, Self::InternalServerError(_))
         527  +
    }
         528  +
}
         529  +
impl ::std::error::Error for UpdateMaintenanceWindowTaskError {
         530  +
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         531  +
        match self {
         532  +
            Self::DoesNotExistException(_inner) => ::std::option::Option::Some(_inner),
         533  +
            Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
         534  +
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         535  +
        }
         536  +
    }
         537  +
}
         538  +
impl ::std::fmt::Display for UpdateMaintenanceWindowTaskError {
         539  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         540  +
        match self {
         541  +
            Self::DoesNotExistException(_inner) => _inner.fmt(f),
         542  +
            Self::InternalServerError(_inner) => _inner.fmt(f),
         543  +
            Self::Unhandled(_inner) => {
         544  +
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
         545  +
                    write!(f, "unhandled error ({code})")
         546  +
                } else {
         547  +
                    f.write_str("unhandled error")
         548  +
                }
         549  +
            }
         550  +
        }
         551  +
    }
         552  +
}
         553  +
impl ::aws_smithy_types::retry::ProvideErrorKind for UpdateMaintenanceWindowTaskError {
         554  +
    fn code(&self) -> ::std::option::Option<&str> {
         555  +
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         556  +
    }
         557  +
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         558  +
        ::std::option::Option::None
         559  +
    }
         560  +
}
         561  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateMaintenanceWindowTaskError {
         562  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         563  +
        match self {
         564  +
            Self::DoesNotExistException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         565  +
            Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         566  +
            Self::Unhandled(_inner) => &_inner.meta,
         567  +
        }
         568  +
    }
         569  +
}
         570  +
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for UpdateMaintenanceWindowTaskError {
         571  +
    fn create_unhandled_error(
         572  +
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
         573  +
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         574  +
    ) -> Self {
         575  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         576  +
            source,
         577  +
            meta: meta.unwrap_or_default(),
         578  +
        })
         579  +
    }
         580  +
}
         581  +
impl ::aws_types::request_id::RequestId for crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskError {
         582  +
    fn request_id(&self) -> Option<&str> {
         583  +
        self.meta().request_id()
         584  +
    }
         585  +
}
         586  +
         587  +
pub use crate::operation::update_maintenance_window_task::_update_maintenance_window_task_input::UpdateMaintenanceWindowTaskInput;
         588  +
         589  +
pub use crate::operation::update_maintenance_window_task::_update_maintenance_window_task_output::UpdateMaintenanceWindowTaskOutput;
         590  +
         591  +
mod _update_maintenance_window_task_input;
         592  +
         593  +
mod _update_maintenance_window_task_output;
         594  +
         595  +
/// Builders
         596  +
pub mod builders;