AWS SDK

AWS SDK

rev. 97ba95e6039d206ffea5b866ddc214d34f7f88c3

Files changed:

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

@@ -0,1 +0,865 @@
           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 GetMaintenanceWindowOutput {
           6  +
    /// <p>The ID of the created maintenance window.</p>
           7  +
    pub window_id: ::std::option::Option<::std::string::String>,
           8  +
    /// <p>The name of the maintenance window.</p>
           9  +
    pub name: ::std::option::Option<::std::string::String>,
          10  +
    /// <p>The description of the maintenance window.</p>
          11  +
    pub description: ::std::option::Option<::std::string::String>,
          12  +
    /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active. The maintenance window won't run before this specified time.</p>
          13  +
    pub start_date: ::std::option::Option<::std::string::String>,
          14  +
    /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive. The maintenance window won't run after this specified time.</p>
          15  +
    pub end_date: ::std::option::Option<::std::string::String>,
          16  +
    /// <p>The schedule of the maintenance window in the form of a cron or rate expression.</p>
          17  +
    pub schedule: ::std::option::Option<::std::string::String>,
          18  +
    /// <p>The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the <a href="https://www.iana.org/time-zones">Time Zone Database</a> on the IANA website.</p>
          19  +
    pub schedule_timezone: ::std::option::Option<::std::string::String>,
          20  +
    /// <p>The number of days to wait to run a maintenance window after the scheduled cron expression date and time.</p>
          21  +
    pub schedule_offset: ::std::option::Option<i32>,
          22  +
    /// <p>The next time the maintenance window will actually run, taking into account any specified times for the maintenance window to become active or inactive.</p>
          23  +
    pub next_execution_time: ::std::option::Option<::std::string::String>,
          24  +
    /// <p>The duration of the maintenance window in hours.</p>
          25  +
    pub duration: ::std::option::Option<i32>,
          26  +
    /// <p>The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.</p>
          27  +
    pub cutoff: i32,
          28  +
    /// <p>Whether targets must be registered with the maintenance window before tasks can be defined for those targets.</p>
          29  +
    pub allow_unassociated_targets: bool,
          30  +
    /// <p>Indicates whether the maintenance window is enabled.</p>
          31  +
    pub enabled: bool,
          32  +
    /// <p>The date the maintenance window was created.</p>
          33  +
    pub created_date: ::std::option::Option<::aws_smithy_types::DateTime>,
          34  +
    /// <p>The date the maintenance window was last modified.</p>
          35  +
    pub modified_date: ::std::option::Option<::aws_smithy_types::DateTime>,
          36  +
    _request_id: Option<String>,
          37  +
}
          38  +
impl GetMaintenanceWindowOutput {
          39  +
    /// <p>The ID of the created maintenance window.</p>
          40  +
    pub fn window_id(&self) -> ::std::option::Option<&str> {
          41  +
        self.window_id.as_deref()
          42  +
    }
          43  +
    /// <p>The name of the maintenance window.</p>
          44  +
    pub fn name(&self) -> ::std::option::Option<&str> {
          45  +
        self.name.as_deref()
          46  +
    }
          47  +
    /// <p>The description of the maintenance window.</p>
          48  +
    pub fn description(&self) -> ::std::option::Option<&str> {
          49  +
        self.description.as_deref()
          50  +
    }
          51  +
    /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active. The maintenance window won't run before this specified time.</p>
          52  +
    pub fn start_date(&self) -> ::std::option::Option<&str> {
          53  +
        self.start_date.as_deref()
          54  +
    }
          55  +
    /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive. The maintenance window won't run after this specified time.</p>
          56  +
    pub fn end_date(&self) -> ::std::option::Option<&str> {
          57  +
        self.end_date.as_deref()
          58  +
    }
          59  +
    /// <p>The schedule of the maintenance window in the form of a cron or rate expression.</p>
          60  +
    pub fn schedule(&self) -> ::std::option::Option<&str> {
          61  +
        self.schedule.as_deref()
          62  +
    }
          63  +
    /// <p>The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the <a href="https://www.iana.org/time-zones">Time Zone Database</a> on the IANA website.</p>
          64  +
    pub fn schedule_timezone(&self) -> ::std::option::Option<&str> {
          65  +
        self.schedule_timezone.as_deref()
          66  +
    }
          67  +
    /// <p>The number of days to wait to run a maintenance window after the scheduled cron expression date and time.</p>
          68  +
    pub fn schedule_offset(&self) -> ::std::option::Option<i32> {
          69  +
        self.schedule_offset
          70  +
    }
          71  +
    /// <p>The next time the maintenance window will actually run, taking into account any specified times for the maintenance window to become active or inactive.</p>
          72  +
    pub fn next_execution_time(&self) -> ::std::option::Option<&str> {
          73  +
        self.next_execution_time.as_deref()
          74  +
    }
          75  +
    /// <p>The duration of the maintenance window in hours.</p>
          76  +
    pub fn duration(&self) -> ::std::option::Option<i32> {
          77  +
        self.duration
          78  +
    }
          79  +
    /// <p>The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.</p>
          80  +
    pub fn cutoff(&self) -> i32 {
          81  +
        self.cutoff
          82  +
    }
          83  +
    /// <p>Whether targets must be registered with the maintenance window before tasks can be defined for those targets.</p>
          84  +
    pub fn allow_unassociated_targets(&self) -> bool {
          85  +
        self.allow_unassociated_targets
          86  +
    }
          87  +
    /// <p>Indicates whether the maintenance window is enabled.</p>
          88  +
    pub fn enabled(&self) -> bool {
          89  +
        self.enabled
          90  +
    }
          91  +
    /// <p>The date the maintenance window was created.</p>
          92  +
    pub fn created_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
          93  +
        self.created_date.as_ref()
          94  +
    }
          95  +
    /// <p>The date the maintenance window was last modified.</p>
          96  +
    pub fn modified_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
          97  +
        self.modified_date.as_ref()
          98  +
    }
          99  +
}
         100  +
impl ::std::fmt::Debug for GetMaintenanceWindowOutput {
         101  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         102  +
        let mut formatter = f.debug_struct("GetMaintenanceWindowOutput");
         103  +
        formatter.field("window_id", &self.window_id);
         104  +
        formatter.field("name", &self.name);
         105  +
        formatter.field("description", &"*** Sensitive Data Redacted ***");
         106  +
        formatter.field("start_date", &self.start_date);
         107  +
        formatter.field("end_date", &self.end_date);
         108  +
        formatter.field("schedule", &self.schedule);
         109  +
        formatter.field("schedule_timezone", &self.schedule_timezone);
         110  +
        formatter.field("schedule_offset", &self.schedule_offset);
         111  +
        formatter.field("next_execution_time", &self.next_execution_time);
         112  +
        formatter.field("duration", &self.duration);
         113  +
        formatter.field("cutoff", &self.cutoff);
         114  +
        formatter.field("allow_unassociated_targets", &self.allow_unassociated_targets);
         115  +
        formatter.field("enabled", &self.enabled);
         116  +
        formatter.field("created_date", &self.created_date);
         117  +
        formatter.field("modified_date", &self.modified_date);
         118  +
        formatter.field("_request_id", &self._request_id);
         119  +
        formatter.finish()
         120  +
    }
         121  +
}
         122  +
static GETMAINTENANCEWINDOWOUTPUT_MEMBER_WINDOW_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         123  +
    ::aws_smithy_schema::ShapeId::from_parts(
         124  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$WindowId",
         125  +
        "com.amazonaws.ssm.synthetic",
         126  +
        "GetMaintenanceWindowOutput",
         127  +
    ),
         128  +
    ::aws_smithy_schema::ShapeType::String,
         129  +
    "WindowId",
         130  +
    0,
         131  +
);
         132  +
static GETMAINTENANCEWINDOWOUTPUT_MEMBER_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         133  +
    ::aws_smithy_schema::ShapeId::from_parts(
         134  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$Name",
         135  +
        "com.amazonaws.ssm.synthetic",
         136  +
        "GetMaintenanceWindowOutput",
         137  +
    ),
         138  +
    ::aws_smithy_schema::ShapeType::String,
         139  +
    "Name",
         140  +
    1,
         141  +
);
         142  +
static GETMAINTENANCEWINDOWOUTPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         143  +
    ::aws_smithy_schema::ShapeId::from_parts(
         144  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$Description",
         145  +
        "com.amazonaws.ssm.synthetic",
         146  +
        "GetMaintenanceWindowOutput",
         147  +
    ),
         148  +
    ::aws_smithy_schema::ShapeType::String,
         149  +
    "Description",
         150  +
    2,
         151  +
);
         152  +
static GETMAINTENANCEWINDOWOUTPUT_MEMBER_START_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         153  +
    ::aws_smithy_schema::ShapeId::from_parts(
         154  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$StartDate",
         155  +
        "com.amazonaws.ssm.synthetic",
         156  +
        "GetMaintenanceWindowOutput",
         157  +
    ),
         158  +
    ::aws_smithy_schema::ShapeType::String,
         159  +
    "StartDate",
         160  +
    3,
         161  +
);
         162  +
static GETMAINTENANCEWINDOWOUTPUT_MEMBER_END_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         163  +
    ::aws_smithy_schema::ShapeId::from_parts(
         164  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$EndDate",
         165  +
        "com.amazonaws.ssm.synthetic",
         166  +
        "GetMaintenanceWindowOutput",
         167  +
    ),
         168  +
    ::aws_smithy_schema::ShapeType::String,
         169  +
    "EndDate",
         170  +
    4,
         171  +
);
         172  +
static GETMAINTENANCEWINDOWOUTPUT_MEMBER_SCHEDULE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         173  +
    ::aws_smithy_schema::ShapeId::from_parts(
         174  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$Schedule",
         175  +
        "com.amazonaws.ssm.synthetic",
         176  +
        "GetMaintenanceWindowOutput",
         177  +
    ),
         178  +
    ::aws_smithy_schema::ShapeType::String,
         179  +
    "Schedule",
         180  +
    5,
         181  +
);
         182  +
static GETMAINTENANCEWINDOWOUTPUT_MEMBER_SCHEDULE_TIMEZONE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         183  +
    ::aws_smithy_schema::ShapeId::from_parts(
         184  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$ScheduleTimezone",
         185  +
        "com.amazonaws.ssm.synthetic",
         186  +
        "GetMaintenanceWindowOutput",
         187  +
    ),
         188  +
    ::aws_smithy_schema::ShapeType::String,
         189  +
    "ScheduleTimezone",
         190  +
    6,
         191  +
);
         192  +
static GETMAINTENANCEWINDOWOUTPUT_MEMBER_SCHEDULE_OFFSET: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         193  +
    ::aws_smithy_schema::ShapeId::from_parts(
         194  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$ScheduleOffset",
         195  +
        "com.amazonaws.ssm.synthetic",
         196  +
        "GetMaintenanceWindowOutput",
         197  +
    ),
         198  +
    ::aws_smithy_schema::ShapeType::Integer,
         199  +
    "ScheduleOffset",
         200  +
    7,
         201  +
);
         202  +
static GETMAINTENANCEWINDOWOUTPUT_MEMBER_NEXT_EXECUTION_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         203  +
    ::aws_smithy_schema::ShapeId::from_parts(
         204  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$NextExecutionTime",
         205  +
        "com.amazonaws.ssm.synthetic",
         206  +
        "GetMaintenanceWindowOutput",
         207  +
    ),
         208  +
    ::aws_smithy_schema::ShapeType::String,
         209  +
    "NextExecutionTime",
         210  +
    8,
         211  +
);
         212  +
static GETMAINTENANCEWINDOWOUTPUT_MEMBER_DURATION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         213  +
    ::aws_smithy_schema::ShapeId::from_parts(
         214  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$Duration",
         215  +
        "com.amazonaws.ssm.synthetic",
         216  +
        "GetMaintenanceWindowOutput",
         217  +
    ),
         218  +
    ::aws_smithy_schema::ShapeType::Integer,
         219  +
    "Duration",
         220  +
    9,
         221  +
);
         222  +
static GETMAINTENANCEWINDOWOUTPUT_MEMBER_CUTOFF: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         223  +
    ::aws_smithy_schema::ShapeId::from_parts(
         224  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$Cutoff",
         225  +
        "com.amazonaws.ssm.synthetic",
         226  +
        "GetMaintenanceWindowOutput",
         227  +
    ),
         228  +
    ::aws_smithy_schema::ShapeType::Integer,
         229  +
    "Cutoff",
         230  +
    10,
         231  +
);
         232  +
static GETMAINTENANCEWINDOWOUTPUT_MEMBER_ALLOW_UNASSOCIATED_TARGETS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         233  +
    ::aws_smithy_schema::ShapeId::from_parts(
         234  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$AllowUnassociatedTargets",
         235  +
        "com.amazonaws.ssm.synthetic",
         236  +
        "GetMaintenanceWindowOutput",
         237  +
    ),
         238  +
    ::aws_smithy_schema::ShapeType::Boolean,
         239  +
    "AllowUnassociatedTargets",
         240  +
    11,
         241  +
);
         242  +
static GETMAINTENANCEWINDOWOUTPUT_MEMBER_ENABLED: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         243  +
    ::aws_smithy_schema::ShapeId::from_parts(
         244  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$Enabled",
         245  +
        "com.amazonaws.ssm.synthetic",
         246  +
        "GetMaintenanceWindowOutput",
         247  +
    ),
         248  +
    ::aws_smithy_schema::ShapeType::Boolean,
         249  +
    "Enabled",
         250  +
    12,
         251  +
);
         252  +
static GETMAINTENANCEWINDOWOUTPUT_MEMBER_CREATED_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         253  +
    ::aws_smithy_schema::ShapeId::from_parts(
         254  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$CreatedDate",
         255  +
        "com.amazonaws.ssm.synthetic",
         256  +
        "GetMaintenanceWindowOutput",
         257  +
    ),
         258  +
    ::aws_smithy_schema::ShapeType::Timestamp,
         259  +
    "CreatedDate",
         260  +
    13,
         261  +
);
         262  +
static GETMAINTENANCEWINDOWOUTPUT_MEMBER_MODIFIED_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         263  +
    ::aws_smithy_schema::ShapeId::from_parts(
         264  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$ModifiedDate",
         265  +
        "com.amazonaws.ssm.synthetic",
         266  +
        "GetMaintenanceWindowOutput",
         267  +
    ),
         268  +
    ::aws_smithy_schema::ShapeType::Timestamp,
         269  +
    "ModifiedDate",
         270  +
    14,
         271  +
);
         272  +
static GETMAINTENANCEWINDOWOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         273  +
    ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
         274  +
    ::aws_smithy_schema::ShapeType::String,
         275  +
    "request_id",
         276  +
    15,
         277  +
)
         278  +
.with_http_header("x-amzn-requestid");
         279  +
static GETMAINTENANCEWINDOWOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
         280  +
    ::aws_smithy_schema::ShapeId::from_parts(
         281  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput",
         282  +
        "com.amazonaws.ssm.synthetic",
         283  +
        "GetMaintenanceWindowOutput",
         284  +
    ),
         285  +
    ::aws_smithy_schema::ShapeType::Structure,
         286  +
    &[
         287  +
        &GETMAINTENANCEWINDOWOUTPUT_MEMBER_WINDOW_ID,
         288  +
        &GETMAINTENANCEWINDOWOUTPUT_MEMBER_NAME,
         289  +
        &GETMAINTENANCEWINDOWOUTPUT_MEMBER_DESCRIPTION,
         290  +
        &GETMAINTENANCEWINDOWOUTPUT_MEMBER_START_DATE,
         291  +
        &GETMAINTENANCEWINDOWOUTPUT_MEMBER_END_DATE,
         292  +
        &GETMAINTENANCEWINDOWOUTPUT_MEMBER_SCHEDULE,
         293  +
        &GETMAINTENANCEWINDOWOUTPUT_MEMBER_SCHEDULE_TIMEZONE,
         294  +
        &GETMAINTENANCEWINDOWOUTPUT_MEMBER_SCHEDULE_OFFSET,
         295  +
        &GETMAINTENANCEWINDOWOUTPUT_MEMBER_NEXT_EXECUTION_TIME,
         296  +
        &GETMAINTENANCEWINDOWOUTPUT_MEMBER_DURATION,
         297  +
        &GETMAINTENANCEWINDOWOUTPUT_MEMBER_CUTOFF,
         298  +
        &GETMAINTENANCEWINDOWOUTPUT_MEMBER_ALLOW_UNASSOCIATED_TARGETS,
         299  +
        &GETMAINTENANCEWINDOWOUTPUT_MEMBER_ENABLED,
         300  +
        &GETMAINTENANCEWINDOWOUTPUT_MEMBER_CREATED_DATE,
         301  +
        &GETMAINTENANCEWINDOWOUTPUT_MEMBER_MODIFIED_DATE,
         302  +
        &GETMAINTENANCEWINDOWOUTPUT_MEMBER__REQUEST_ID,
         303  +
    ],
         304  +
)
         305  +
.with_original_name("GetMaintenanceWindowResult");
         306  +
impl GetMaintenanceWindowOutput {
         307  +
    /// The schema for this shape.
         308  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &GETMAINTENANCEWINDOWOUTPUT_SCHEMA;
         309  +
}
         310  +
impl ::aws_smithy_schema::serde::SerializableStruct for GetMaintenanceWindowOutput {
         311  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
         312  +
    fn serialize_members(
         313  +
        &self,
         314  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
         315  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
         316  +
        if let Some(ref val) = self.window_id {
         317  +
            ser.write_string(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_WINDOW_ID, val)?;
         318  +
        }
         319  +
        if let Some(ref val) = self.name {
         320  +
            ser.write_string(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_NAME, val)?;
         321  +
        }
         322  +
        if let Some(ref val) = self.description {
         323  +
            ser.write_string(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_DESCRIPTION, val)?;
         324  +
        }
         325  +
        if let Some(ref val) = self.start_date {
         326  +
            ser.write_string(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_START_DATE, val)?;
         327  +
        }
         328  +
        if let Some(ref val) = self.end_date {
         329  +
            ser.write_string(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_END_DATE, val)?;
         330  +
        }
         331  +
        if let Some(ref val) = self.schedule {
         332  +
            ser.write_string(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_SCHEDULE, val)?;
         333  +
        }
         334  +
        if let Some(ref val) = self.schedule_timezone {
         335  +
            ser.write_string(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_SCHEDULE_TIMEZONE, val)?;
         336  +
        }
         337  +
        if let Some(ref val) = self.schedule_offset {
         338  +
            ser.write_integer(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_SCHEDULE_OFFSET, *val)?;
         339  +
        }
         340  +
        if let Some(ref val) = self.next_execution_time {
         341  +
            ser.write_string(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_NEXT_EXECUTION_TIME, val)?;
         342  +
        }
         343  +
        if let Some(ref val) = self.duration {
         344  +
            ser.write_integer(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_DURATION, *val)?;
         345  +
        }
         346  +
        {
         347  +
            let val = &self.cutoff;
         348  +
            ser.write_integer(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_CUTOFF, *val)?;
         349  +
        }
         350  +
        {
         351  +
            let val = &self.allow_unassociated_targets;
         352  +
            ser.write_boolean(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_ALLOW_UNASSOCIATED_TARGETS, *val)?;
         353  +
        }
         354  +
        {
         355  +
            let val = &self.enabled;
         356  +
            ser.write_boolean(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_ENABLED, *val)?;
         357  +
        }
         358  +
        if let Some(ref val) = self.created_date {
         359  +
            ser.write_timestamp(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_CREATED_DATE, val)?;
         360  +
        }
         361  +
        if let Some(ref val) = self.modified_date {
         362  +
            ser.write_timestamp(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_MODIFIED_DATE, val)?;
         363  +
        }
         364  +
        Ok(())
         365  +
    }
         366  +
}
         367  +
impl GetMaintenanceWindowOutput {
         368  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         369  +
    pub fn deserialize(
         370  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         371  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         372  +
        #[allow(unused_variables, unused_mut)]
         373  +
        let mut builder = Self::builder();
         374  +
        #[allow(
         375  +
            unused_variables,
         376  +
            unreachable_code,
         377  +
            clippy::single_match,
         378  +
            clippy::match_single_binding,
         379  +
            clippy::diverging_sub_expression
         380  +
        )]
         381  +
        deserializer.read_struct(&GETMAINTENANCEWINDOWOUTPUT_SCHEMA, &mut |member, deser| {
         382  +
            match member.member_index() {
         383  +
                Some(0) => {
         384  +
                    if deser.is_null() {
         385  +
                        deser.read_null()?;
         386  +
                    } else {
         387  +
                        builder.window_id = Some(deser.read_string(member)?);
         388  +
                    }
         389  +
                }
         390  +
                Some(1) => {
         391  +
                    if deser.is_null() {
         392  +
                        deser.read_null()?;
         393  +
                    } else {
         394  +
                        builder.name = Some(deser.read_string(member)?);
         395  +
                    }
         396  +
                }
         397  +
                Some(2) => {
         398  +
                    if deser.is_null() {
         399  +
                        deser.read_null()?;
         400  +
                    } else {
         401  +
                        builder.description = Some(deser.read_string(member)?);
         402  +
                    }
         403  +
                }
         404  +
                Some(3) => {
         405  +
                    if deser.is_null() {
         406  +
                        deser.read_null()?;
         407  +
                    } else {
         408  +
                        builder.start_date = Some(deser.read_string(member)?);
         409  +
                    }
         410  +
                }
         411  +
                Some(4) => {
         412  +
                    if deser.is_null() {
         413  +
                        deser.read_null()?;
         414  +
                    } else {
         415  +
                        builder.end_date = Some(deser.read_string(member)?);
         416  +
                    }
         417  +
                }
         418  +
                Some(5) => {
         419  +
                    if deser.is_null() {
         420  +
                        deser.read_null()?;
         421  +
                    } else {
         422  +
                        builder.schedule = Some(deser.read_string(member)?);
         423  +
                    }
         424  +
                }
         425  +
                Some(6) => {
         426  +
                    if deser.is_null() {
         427  +
                        deser.read_null()?;
         428  +
                    } else {
         429  +
                        builder.schedule_timezone = Some(deser.read_string(member)?);
         430  +
                    }
         431  +
                }
         432  +
                Some(7) => {
         433  +
                    if deser.is_null() {
         434  +
                        deser.read_null()?;
         435  +
                    } else {
         436  +
                        builder.schedule_offset = Some(deser.read_integer(member)?);
         437  +
                    }
         438  +
                }
         439  +
                Some(8) => {
         440  +
                    if deser.is_null() {
         441  +
                        deser.read_null()?;
         442  +
                    } else {
         443  +
                        builder.next_execution_time = Some(deser.read_string(member)?);
         444  +
                    }
         445  +
                }
         446  +
                Some(9) => {
         447  +
                    if deser.is_null() {
         448  +
                        deser.read_null()?;
         449  +
                    } else {
         450  +
                        builder.duration = Some(deser.read_integer(member)?);
         451  +
                    }
         452  +
                }
         453  +
                Some(10) => {
         454  +
                    builder.cutoff = Some(deser.read_integer(member)?);
         455  +
                }
         456  +
                Some(11) => {
         457  +
                    builder.allow_unassociated_targets = Some(deser.read_boolean(member)?);
         458  +
                }
         459  +
                Some(12) => {
         460  +
                    builder.enabled = Some(deser.read_boolean(member)?);
         461  +
                }
         462  +
                Some(13) => {
         463  +
                    if deser.is_null() {
         464  +
                        deser.read_null()?;
         465  +
                    } else {
         466  +
                        builder.created_date = Some(deser.read_timestamp(member)?);
         467  +
                    }
         468  +
                }
         469  +
                Some(14) => {
         470  +
                    if deser.is_null() {
         471  +
                        deser.read_null()?;
         472  +
                    } else {
         473  +
                        builder.modified_date = Some(deser.read_timestamp(member)?);
         474  +
                    }
         475  +
                }
         476  +
                Some(15) => {
         477  +
                    builder._request_id = Some(deser.read_string(member)?);
         478  +
                }
         479  +
                _ => {}
         480  +
            }
         481  +
            Ok(())
         482  +
        })?;
         483  +
        Ok(builder.build())
         484  +
    }
         485  +
}
         486  +
impl GetMaintenanceWindowOutput {
         487  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         488  +
    /// Header-bound members are read directly from headers, avoiding runtime
         489  +
    /// member iteration overhead. Body members are read via the deserializer.
         490  +
    pub fn deserialize_with_response(
         491  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         492  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         493  +
        _status: u16,
         494  +
        _body: &[u8],
         495  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         496  +
        #[allow(unused_variables, unused_mut)]
         497  +
        let mut builder = Self::builder();
         498  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         499  +
            builder._request_id = Some(val.to_string());
         500  +
        }
         501  +
         502  +
        #[allow(
         503  +
            unused_variables,
         504  +
            unreachable_code,
         505  +
            clippy::single_match,
         506  +
            clippy::match_single_binding,
         507  +
            clippy::diverging_sub_expression
         508  +
        )]
         509  +
        deserializer.read_struct(&GETMAINTENANCEWINDOWOUTPUT_SCHEMA, &mut |member, deser| {
         510  +
            match member.member_index() {
         511  +
                Some(0) => {
         512  +
                    builder.window_id = Some(deser.read_string(member)?);
         513  +
                }
         514  +
                Some(1) => {
         515  +
                    builder.name = Some(deser.read_string(member)?);
         516  +
                }
         517  +
                Some(2) => {
         518  +
                    builder.description = Some(deser.read_string(member)?);
         519  +
                }
         520  +
                Some(3) => {
         521  +
                    builder.start_date = Some(deser.read_string(member)?);
         522  +
                }
         523  +
                Some(4) => {
         524  +
                    builder.end_date = Some(deser.read_string(member)?);
         525  +
                }
         526  +
                Some(5) => {
         527  +
                    builder.schedule = Some(deser.read_string(member)?);
         528  +
                }
         529  +
                Some(6) => {
         530  +
                    builder.schedule_timezone = Some(deser.read_string(member)?);
         531  +
                }
         532  +
                Some(7) => {
         533  +
                    builder.schedule_offset = Some(deser.read_integer(member)?);
         534  +
                }
         535  +
                Some(8) => {
         536  +
                    builder.next_execution_time = Some(deser.read_string(member)?);
         537  +
                }
         538  +
                Some(9) => {
         539  +
                    builder.duration = Some(deser.read_integer(member)?);
         540  +
                }
         541  +
                Some(10) => {
         542  +
                    builder.cutoff = Some(deser.read_integer(member)?);
         543  +
                }
         544  +
                Some(11) => {
         545  +
                    builder.allow_unassociated_targets = Some(deser.read_boolean(member)?);
         546  +
                }
         547  +
                Some(12) => {
         548  +
                    builder.enabled = Some(deser.read_boolean(member)?);
         549  +
                }
         550  +
                Some(13) => {
         551  +
                    builder.created_date = Some(deser.read_timestamp(member)?);
         552  +
                }
         553  +
                Some(14) => {
         554  +
                    builder.modified_date = Some(deser.read_timestamp(member)?);
         555  +
                }
         556  +
                _ => {}
         557  +
            }
         558  +
            Ok(())
         559  +
        })?;
         560  +
        Ok(builder.build())
         561  +
    }
         562  +
}
         563  +
impl ::aws_types::request_id::RequestId for GetMaintenanceWindowOutput {
         564  +
    fn request_id(&self) -> Option<&str> {
         565  +
        self._request_id.as_deref()
         566  +
    }
         567  +
}
         568  +
impl GetMaintenanceWindowOutput {
         569  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         570  +
        self._request_id = request_id;
         571  +
        self
         572  +
    }
         573  +
}
         574  +
impl GetMaintenanceWindowOutput {
         575  +
    /// Creates a new builder-style object to manufacture [`GetMaintenanceWindowOutput`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput).
         576  +
    pub fn builder() -> crate::operation::get_maintenance_window::builders::GetMaintenanceWindowOutputBuilder {
         577  +
        crate::operation::get_maintenance_window::builders::GetMaintenanceWindowOutputBuilder::default()
         578  +
    }
         579  +
}
         580  +
         581  +
/// A builder for [`GetMaintenanceWindowOutput`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput).
         582  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
         583  +
#[non_exhaustive]
         584  +
pub struct GetMaintenanceWindowOutputBuilder {
         585  +
    pub(crate) window_id: ::std::option::Option<::std::string::String>,
         586  +
    pub(crate) name: ::std::option::Option<::std::string::String>,
         587  +
    pub(crate) description: ::std::option::Option<::std::string::String>,
         588  +
    pub(crate) start_date: ::std::option::Option<::std::string::String>,
         589  +
    pub(crate) end_date: ::std::option::Option<::std::string::String>,
         590  +
    pub(crate) schedule: ::std::option::Option<::std::string::String>,
         591  +
    pub(crate) schedule_timezone: ::std::option::Option<::std::string::String>,
         592  +
    pub(crate) schedule_offset: ::std::option::Option<i32>,
         593  +
    pub(crate) next_execution_time: ::std::option::Option<::std::string::String>,
         594  +
    pub(crate) duration: ::std::option::Option<i32>,
         595  +
    pub(crate) cutoff: ::std::option::Option<i32>,
         596  +
    pub(crate) allow_unassociated_targets: ::std::option::Option<bool>,
         597  +
    pub(crate) enabled: ::std::option::Option<bool>,
         598  +
    pub(crate) created_date: ::std::option::Option<::aws_smithy_types::DateTime>,
         599  +
    pub(crate) modified_date: ::std::option::Option<::aws_smithy_types::DateTime>,
         600  +
    _request_id: Option<String>,
         601  +
}
         602  +
impl GetMaintenanceWindowOutputBuilder {
         603  +
    /// <p>The ID of the created maintenance window.</p>
         604  +
    pub fn window_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         605  +
        self.window_id = ::std::option::Option::Some(input.into());
         606  +
        self
         607  +
    }
         608  +
    /// <p>The ID of the created maintenance window.</p>
         609  +
    pub fn set_window_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         610  +
        self.window_id = input;
         611  +
        self
         612  +
    }
         613  +
    /// <p>The ID of the created maintenance window.</p>
         614  +
    pub fn get_window_id(&self) -> &::std::option::Option<::std::string::String> {
         615  +
        &self.window_id
         616  +
    }
         617  +
    /// <p>The name of the maintenance window.</p>
         618  +
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         619  +
        self.name = ::std::option::Option::Some(input.into());
         620  +
        self
         621  +
    }
         622  +
    /// <p>The name of the maintenance window.</p>
         623  +
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         624  +
        self.name = input;
         625  +
        self
         626  +
    }
         627  +
    /// <p>The name of the maintenance window.</p>
         628  +
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
         629  +
        &self.name
         630  +
    }
         631  +
    /// <p>The description of the maintenance window.</p>
         632  +
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         633  +
        self.description = ::std::option::Option::Some(input.into());
         634  +
        self
         635  +
    }
         636  +
    /// <p>The description of the maintenance window.</p>
         637  +
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         638  +
        self.description = input;
         639  +
        self
         640  +
    }
         641  +
    /// <p>The description of the maintenance window.</p>
         642  +
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
         643  +
        &self.description
         644  +
    }
         645  +
    /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active. The maintenance window won't run before this specified time.</p>
         646  +
    pub fn start_date(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         647  +
        self.start_date = ::std::option::Option::Some(input.into());
         648  +
        self
         649  +
    }
         650  +
    /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active. The maintenance window won't run before this specified time.</p>
         651  +
    pub fn set_start_date(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         652  +
        self.start_date = input;
         653  +
        self
         654  +
    }
         655  +
    /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active. The maintenance window won't run before this specified time.</p>
         656  +
    pub fn get_start_date(&self) -> &::std::option::Option<::std::string::String> {
         657  +
        &self.start_date
         658  +
    }
         659  +
    /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive. The maintenance window won't run after this specified time.</p>
         660  +
    pub fn end_date(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         661  +
        self.end_date = ::std::option::Option::Some(input.into());
         662  +
        self
         663  +
    }
         664  +
    /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive. The maintenance window won't run after this specified time.</p>
         665  +
    pub fn set_end_date(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         666  +
        self.end_date = input;
         667  +
        self
         668  +
    }
         669  +
    /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive. The maintenance window won't run after this specified time.</p>
         670  +
    pub fn get_end_date(&self) -> &::std::option::Option<::std::string::String> {
         671  +
        &self.end_date
         672  +
    }
         673  +
    /// <p>The schedule of the maintenance window in the form of a cron or rate expression.</p>
         674  +
    pub fn schedule(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         675  +
        self.schedule = ::std::option::Option::Some(input.into());
         676  +
        self
         677  +
    }
         678  +
    /// <p>The schedule of the maintenance window in the form of a cron or rate expression.</p>
         679  +
    pub fn set_schedule(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         680  +
        self.schedule = input;
         681  +
        self
         682  +
    }
         683  +
    /// <p>The schedule of the maintenance window in the form of a cron or rate expression.</p>
         684  +
    pub fn get_schedule(&self) -> &::std::option::Option<::std::string::String> {
         685  +
        &self.schedule
         686  +
    }
         687  +
    /// <p>The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the <a href="https://www.iana.org/time-zones">Time Zone Database</a> on the IANA website.</p>
         688  +
    pub fn schedule_timezone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         689  +
        self.schedule_timezone = ::std::option::Option::Some(input.into());
         690  +
        self
         691  +
    }
         692  +
    /// <p>The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the <a href="https://www.iana.org/time-zones">Time Zone Database</a> on the IANA website.</p>
         693  +
    pub fn set_schedule_timezone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         694  +
        self.schedule_timezone = input;
         695  +
        self
         696  +
    }
         697  +
    /// <p>The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the <a href="https://www.iana.org/time-zones">Time Zone Database</a> on the IANA website.</p>
         698  +
    pub fn get_schedule_timezone(&self) -> &::std::option::Option<::std::string::String> {
         699  +
        &self.schedule_timezone
         700  +
    }
         701  +
    /// <p>The number of days to wait to run a maintenance window after the scheduled cron expression date and time.</p>
         702  +
    pub fn schedule_offset(mut self, input: i32) -> Self {
         703  +
        self.schedule_offset = ::std::option::Option::Some(input);
         704  +
        self
         705  +
    }
         706  +
    /// <p>The number of days to wait to run a maintenance window after the scheduled cron expression date and time.</p>
         707  +
    pub fn set_schedule_offset(mut self, input: ::std::option::Option<i32>) -> Self {
         708  +
        self.schedule_offset = input;
         709  +
        self
         710  +
    }
         711  +
    /// <p>The number of days to wait to run a maintenance window after the scheduled cron expression date and time.</p>
         712  +
    pub fn get_schedule_offset(&self) -> &::std::option::Option<i32> {
         713  +
        &self.schedule_offset
         714  +
    }
         715  +
    /// <p>The next time the maintenance window will actually run, taking into account any specified times for the maintenance window to become active or inactive.</p>
         716  +
    pub fn next_execution_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         717  +
        self.next_execution_time = ::std::option::Option::Some(input.into());
         718  +
        self
         719  +
    }
         720  +
    /// <p>The next time the maintenance window will actually run, taking into account any specified times for the maintenance window to become active or inactive.</p>
         721  +
    pub fn set_next_execution_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         722  +
        self.next_execution_time = input;
         723  +
        self
         724  +
    }
         725  +
    /// <p>The next time the maintenance window will actually run, taking into account any specified times for the maintenance window to become active or inactive.</p>
         726  +
    pub fn get_next_execution_time(&self) -> &::std::option::Option<::std::string::String> {
         727  +
        &self.next_execution_time
         728  +
    }
         729  +
    /// <p>The duration of the maintenance window in hours.</p>
         730  +
    pub fn duration(mut self, input: i32) -> Self {
         731  +
        self.duration = ::std::option::Option::Some(input);
         732  +
        self
         733  +
    }
         734  +
    /// <p>The duration of the maintenance window in hours.</p>
         735  +
    pub fn set_duration(mut self, input: ::std::option::Option<i32>) -> Self {
         736  +
        self.duration = input;
         737  +
        self
         738  +
    }
         739  +
    /// <p>The duration of the maintenance window in hours.</p>
         740  +
    pub fn get_duration(&self) -> &::std::option::Option<i32> {
         741  +
        &self.duration
         742  +
    }
         743  +
    /// <p>The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.</p>
         744  +
    pub fn cutoff(mut self, input: i32) -> Self {
         745  +
        self.cutoff = ::std::option::Option::Some(input);
         746  +
        self
         747  +
    }
         748  +
    /// <p>The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.</p>
         749  +
    pub fn set_cutoff(mut self, input: ::std::option::Option<i32>) -> Self {
         750  +
        self.cutoff = input;
         751  +
        self
         752  +
    }
         753  +
    /// <p>The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.</p>
         754  +
    pub fn get_cutoff(&self) -> &::std::option::Option<i32> {
         755  +
        &self.cutoff
         756  +
    }
         757  +
    /// <p>Whether targets must be registered with the maintenance window before tasks can be defined for those targets.</p>
         758  +
    pub fn allow_unassociated_targets(mut self, input: bool) -> Self {
         759  +
        self.allow_unassociated_targets = ::std::option::Option::Some(input);
         760  +
        self
         761  +
    }
         762  +
    /// <p>Whether targets must be registered with the maintenance window before tasks can be defined for those targets.</p>
         763  +
    pub fn set_allow_unassociated_targets(mut self, input: ::std::option::Option<bool>) -> Self {
         764  +
        self.allow_unassociated_targets = input;
         765  +
        self
         766  +
    }
         767  +
    /// <p>Whether targets must be registered with the maintenance window before tasks can be defined for those targets.</p>
         768  +
    pub fn get_allow_unassociated_targets(&self) -> &::std::option::Option<bool> {
         769  +
        &self.allow_unassociated_targets
         770  +
    }
         771  +
    /// <p>Indicates whether the maintenance window is enabled.</p>
         772  +
    pub fn enabled(mut self, input: bool) -> Self {
         773  +
        self.enabled = ::std::option::Option::Some(input);
         774  +
        self
         775  +
    }
         776  +
    /// <p>Indicates whether the maintenance window is enabled.</p>
         777  +
    pub fn set_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
         778  +
        self.enabled = input;
         779  +
        self
         780  +
    }
         781  +
    /// <p>Indicates whether the maintenance window is enabled.</p>
         782  +
    pub fn get_enabled(&self) -> &::std::option::Option<bool> {
         783  +
        &self.enabled
         784  +
    }
         785  +
    /// <p>The date the maintenance window was created.</p>
         786  +
    pub fn created_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         787  +
        self.created_date = ::std::option::Option::Some(input);
         788  +
        self
         789  +
    }
         790  +
    /// <p>The date the maintenance window was created.</p>
         791  +
    pub fn set_created_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         792  +
        self.created_date = input;
         793  +
        self
         794  +
    }
         795  +
    /// <p>The date the maintenance window was created.</p>
         796  +
    pub fn get_created_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         797  +
        &self.created_date
         798  +
    }
         799  +
    /// <p>The date the maintenance window was last modified.</p>
         800  +
    pub fn modified_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         801  +
        self.modified_date = ::std::option::Option::Some(input);
         802  +
        self
         803  +
    }
         804  +
    /// <p>The date the maintenance window was last modified.</p>
         805  +
    pub fn set_modified_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         806  +
        self.modified_date = input;
         807  +
        self
         808  +
    }
         809  +
    /// <p>The date the maintenance window was last modified.</p>
         810  +
    pub fn get_modified_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         811  +
        &self.modified_date
         812  +
    }
         813  +
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
         814  +
        self._request_id = Some(request_id.into());
         815  +
        self
         816  +
    }
         817  +
         818  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         819  +
        self._request_id = request_id;
         820  +
        self
         821  +
    }
         822  +
    /// Consumes the builder and constructs a [`GetMaintenanceWindowOutput`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput).
         823  +
    pub fn build(self) -> crate::operation::get_maintenance_window::GetMaintenanceWindowOutput {
         824  +
        crate::operation::get_maintenance_window::GetMaintenanceWindowOutput {
         825  +
            window_id: self.window_id,
         826  +
            name: self.name,
         827  +
            description: self.description,
         828  +
            start_date: self.start_date,
         829  +
            end_date: self.end_date,
         830  +
            schedule: self.schedule,
         831  +
            schedule_timezone: self.schedule_timezone,
         832  +
            schedule_offset: self.schedule_offset,
         833  +
            next_execution_time: self.next_execution_time,
         834  +
            duration: self.duration,
         835  +
            cutoff: self.cutoff.unwrap_or_default(),
         836  +
            allow_unassociated_targets: self.allow_unassociated_targets.unwrap_or_default(),
         837  +
            enabled: self.enabled.unwrap_or_default(),
         838  +
            created_date: self.created_date,
         839  +
            modified_date: self.modified_date,
         840  +
            _request_id: self._request_id,
         841  +
        }
         842  +
    }
         843  +
}
         844  +
impl ::std::fmt::Debug for GetMaintenanceWindowOutputBuilder {
         845  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         846  +
        let mut formatter = f.debug_struct("GetMaintenanceWindowOutputBuilder");
         847  +
        formatter.field("window_id", &self.window_id);
         848  +
        formatter.field("name", &self.name);
         849  +
        formatter.field("description", &"*** Sensitive Data Redacted ***");
         850  +
        formatter.field("start_date", &self.start_date);
         851  +
        formatter.field("end_date", &self.end_date);
         852  +
        formatter.field("schedule", &self.schedule);
         853  +
        formatter.field("schedule_timezone", &self.schedule_timezone);
         854  +
        formatter.field("schedule_offset", &self.schedule_offset);
         855  +
        formatter.field("next_execution_time", &self.next_execution_time);
         856  +
        formatter.field("duration", &self.duration);
         857  +
        formatter.field("cutoff", &self.cutoff);
         858  +
        formatter.field("allow_unassociated_targets", &self.allow_unassociated_targets);
         859  +
        formatter.field("enabled", &self.enabled);
         860  +
        formatter.field("created_date", &self.created_date);
         861  +
        formatter.field("modified_date", &self.modified_date);
         862  +
        formatter.field("_request_id", &self._request_id);
         863  +
        formatter.finish()
         864  +
    }
         865  +
}

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

@@ -0,1 +0,125 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::get_maintenance_window::_get_maintenance_window_input::GetMaintenanceWindowInputBuilder;
           3  +
           4  +
pub use crate::operation::get_maintenance_window::_get_maintenance_window_output::GetMaintenanceWindowOutputBuilder;
           5  +
           6  +
impl crate::operation::get_maintenance_window::builders::GetMaintenanceWindowInputBuilder {
           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::get_maintenance_window::GetMaintenanceWindowOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::get_maintenance_window::GetMaintenanceWindowError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.get_maintenance_window();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `GetMaintenanceWindow`.
          24  +
///
          25  +
/// <p>Retrieves a maintenance window.</p>
          26  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          27  +
pub struct GetMaintenanceWindowFluentBuilder {
          28  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          29  +
    inner: crate::operation::get_maintenance_window::builders::GetMaintenanceWindowInputBuilder,
          30  +
    config_override: ::std::option::Option<crate::config::Builder>,
          31  +
}
          32  +
impl
          33  +
    crate::client::customize::internal::CustomizableSend<
          34  +
        crate::operation::get_maintenance_window::GetMaintenanceWindowOutput,
          35  +
        crate::operation::get_maintenance_window::GetMaintenanceWindowError,
          36  +
    > for GetMaintenanceWindowFluentBuilder
          37  +
{
          38  +
    fn send(
          39  +
        self,
          40  +
        config_override: crate::config::Builder,
          41  +
    ) -> crate::client::customize::internal::BoxFuture<
          42  +
        crate::client::customize::internal::SendResult<
          43  +
            crate::operation::get_maintenance_window::GetMaintenanceWindowOutput,
          44  +
            crate::operation::get_maintenance_window::GetMaintenanceWindowError,
          45  +
        >,
          46  +
    > {
          47  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          48  +
    }
          49  +
}
          50  +
impl GetMaintenanceWindowFluentBuilder {
          51  +
    /// Creates a new `GetMaintenanceWindowFluentBuilder`.
          52  +
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
          53  +
        Self {
          54  +
            handle,
          55  +
            inner: ::std::default::Default::default(),
          56  +
            config_override: ::std::option::Option::None,
          57  +
        }
          58  +
    }
          59  +
    /// Access the GetMaintenanceWindow as a reference.
          60  +
    pub fn as_input(&self) -> &crate::operation::get_maintenance_window::builders::GetMaintenanceWindowInputBuilder {
          61  +
        &self.inner
          62  +
    }
          63  +
    /// Sends the request and returns the response.
          64  +
    ///
          65  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          66  +
    /// can be matched against.
          67  +
    ///
          68  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          69  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          70  +
    /// set when configuring the client.
          71  +
    pub async fn send(
          72  +
        self,
          73  +
    ) -> ::std::result::Result<
          74  +
        crate::operation::get_maintenance_window::GetMaintenanceWindowOutput,
          75  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          76  +
            crate::operation::get_maintenance_window::GetMaintenanceWindowError,
          77  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          78  +
        >,
          79  +
    > {
          80  +
        let input = self
          81  +
            .inner
          82  +
            .build()
          83  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
          84  +
        let runtime_plugins = crate::operation::get_maintenance_window::GetMaintenanceWindow::operation_runtime_plugins(
          85  +
            self.handle.runtime_plugins.clone(),
          86  +
            &self.handle.conf,
          87  +
            self.config_override,
          88  +
        );
          89  +
        crate::operation::get_maintenance_window::GetMaintenanceWindow::orchestrate(&runtime_plugins, input).await
          90  +
    }
          91  +
          92  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
          93  +
    pub fn customize(
          94  +
        self,
          95  +
    ) -> crate::client::customize::CustomizableOperation<
          96  +
        crate::operation::get_maintenance_window::GetMaintenanceWindowOutput,
          97  +
        crate::operation::get_maintenance_window::GetMaintenanceWindowError,
          98  +
        Self,
          99  +
    > {
         100  +
        crate::client::customize::CustomizableOperation::new(self)
         101  +
    }
         102  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         103  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         104  +
        self
         105  +
    }
         106  +
         107  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         108  +
        self.config_override = config_override;
         109  +
        self
         110  +
    }
         111  +
    /// <p>The ID of the maintenance window for which you want to retrieve information.</p>
         112  +
    pub fn window_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         113  +
        self.inner = self.inner.window_id(input.into());
         114  +
        self
         115  +
    }
         116  +
    /// <p>The ID of the maintenance window for which you want to retrieve information.</p>
         117  +
    pub fn set_window_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         118  +
        self.inner = self.inner.set_window_id(input);
         119  +
        self
         120  +
    }
         121  +
    /// <p>The ID of the maintenance window for which you want to retrieve information.</p>
         122  +
    pub fn get_window_id(&self) -> &::std::option::Option<::std::string::String> {
         123  +
        self.inner.get_window_id()
         124  +
    }
         125  +
}

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

@@ -0,1 +0,567 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/// Orchestration and serialization glue logic for `GetMaintenanceWindowExecution`.
           3  +
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
           4  +
#[non_exhaustive]
           5  +
pub struct GetMaintenanceWindowExecution;
           6  +
impl GetMaintenanceWindowExecution {
           7  +
    /// Creates a new `GetMaintenanceWindowExecution`
           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::get_maintenance_window_execution::GetMaintenanceWindowExecutionInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> =
          16  +
        crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionOutput::SCHEMA;
          17  +
    pub(crate) async fn orchestrate(
          18  +
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
          19  +
        input: crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionInput,
          20  +
    ) -> ::std::result::Result<
          21  +
        crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionOutput,
          22  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          23  +
            crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionError,
          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::get_maintenance_window_execution::GetMaintenanceWindowExecutionError>()
          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::get_maintenance_window_execution::GetMaintenanceWindowExecutionOutput>()
          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::get_maintenance_window_execution::GetMaintenanceWindowExecutionInput,
          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", "GetMaintenanceWindowExecution", 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.GetMaintenanceWindowExecution",
          65  +
                "rpc.service" = "SSM",
          66  +
                "rpc.method" = "GetMaintenanceWindowExecution",
          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 GetMaintenanceWindowExecution {
         126  +
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
         127  +
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("GetMaintenanceWindowExecution");
         128  +
         129  +
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
         130  +
            GetMaintenanceWindowExecutionRequestSerializer,
         131  +
        ));
         132  +
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
         133  +
            GetMaintenanceWindowExecutionResponseDeserializer,
         134  +
        ));
         135  +
         136  +
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
         137  +
            crate::config::auth::Params::builder()
         138  +
                .operation_name("GetMaintenanceWindowExecution")
         139  +
                .build()
         140  +
                .expect("required fields set"),
         141  +
        ));
         142  +
         143  +
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
         144  +
            "GetMaintenanceWindowExecution",
         145  +
            "SSM",
         146  +
        ));
         147  +
        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
         148  +
        signing_options.double_uri_encode = true;
         149  +
        signing_options.content_sha256_header = false;
         150  +
        signing_options.normalize_uri_path = true;
         151  +
        signing_options.payload_override = None;
         152  +
         153  +
        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
         154  +
            signing_options,
         155  +
            ..::std::default::Default::default()
         156  +
        });
         157  +
         158  +
        ::std::option::Option::Some(cfg.freeze())
         159  +
    }
         160  +
         161  +
    fn runtime_components(
         162  +
        &self,
         163  +
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
         164  +
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
         165  +
        #[allow(unused_mut)]
         166  +
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("GetMaintenanceWindowExecution")
         167  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         168  +
                GetMaintenanceWindowExecutionTelemetryInputCaptureInterceptor,
         169  +
            ))
         170  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         171  +
                ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
         172  +
            ))
         173  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         174  +
                GetMaintenanceWindowExecutionEndpointParamsInterceptor,
         175  +
            ))
         176  +
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
         177  +
                crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionError,
         178  +
            >::new())
         179  +
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
         180  +
                crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionError,
         181  +
            >::new())
         182  +
            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
         183  +
                crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionError,
         184  +
            >::new())
         185  +
            .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
         186  +
                crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionError,
         187  +
            >::new());
         188  +
         189  +
        ::std::borrow::Cow::Owned(rcb)
         190  +
    }
         191  +
}
         192  +
         193  +
#[derive(Debug)]
         194  +
struct GetMaintenanceWindowExecutionTelemetryInputCaptureInterceptor;
         195  +
         196  +
#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
         197  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetMaintenanceWindowExecutionTelemetryInputCaptureInterceptor {
         198  +
    fn name(&self) -> &'static str {
         199  +
        "GetMaintenanceWindowExecutionTelemetryInputCaptureInterceptor"
         200  +
    }
         201  +
         202  +
    fn read_before_execution(
         203  +
        &self,
         204  +
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
         205  +
            '_,
         206  +
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
         207  +
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
         208  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
         209  +
        >,
         210  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         211  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
         212  +
        // Nothing to do unless the customer opted in by naming members to record.
         213  +
        let ::std::option::Option::Some(requested) = cfg
         214  +
            .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
         215  +
            .filter(|r| !r.is_empty())
         216  +
        else {
         217  +
            return ::std::result::Result::Ok(());
         218  +
        };
         219  +
         220  +
        let ::std::option::Option::Some(input) = context.input().downcast_ref::<GetMaintenanceWindowExecutionInput>() else {
         221  +
            // A mismatched input is not this interceptor's concern; skip quietly.
         222  +
            return ::std::result::Result::Ok(());
         223  +
        };
         224  +
         225  +
        let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
         226  +
        if requested.should_capture("WindowExecutionId") {
         227  +
            if let ::std::option::Option::Some(value) = input.window_execution_id.as_deref() {
         228  +
                captured.insert("WindowExecutionId", value);
         229  +
            }
         230  +
        }
         231  +
         232  +
        cfg.interceptor_state().store_put(captured);
         233  +
        ::std::result::Result::Ok(())
         234  +
    }
         235  +
}
         236  +
#[derive(Debug)]
         237  +
struct GetMaintenanceWindowExecutionResponseDeserializer;
         238  +
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetMaintenanceWindowExecutionResponseDeserializer {
         239  +
    fn deserialize_nonstreaming_with_config(
         240  +
        &self,
         241  +
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         242  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
         243  +
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
         244  +
        let (success, status) = (response.status().is_success(), response.status().as_u16());
         245  +
        // Load body and headers BEFORE BeforeParseResponse so customizations
         246  +
        // (e.g., S3's `body_is_error` check that detects errors returned with
         247  +
        // HTTP 200) can inspect them. The legacy non-streaming path also
         248  +
        // loads `body` before firing this hook.
         249  +
        let body = response.body().bytes().expect("body loaded");
         250  +
        let headers = response.headers();
         251  +
        #[allow(unused_mut)]
         252  +
        let mut force_error = false;
         253  +
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
         254  +
        if !success && status != 200 || force_error {
         255  +
            let protocol = _cfg
         256  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         257  +
                .expect("a SharedClientProtocol is required");
         258  +
            #[allow(unused_mut)]
         259  +
            let mut generic_builder = protocol.parse_error_metadata(response, _cfg).map_err(|e| {
         260  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         261  +
            })?;
         262  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         263  +
            let generic = generic_builder.build();
         264  +
            let error_code = match generic.code() {
         265  +
                ::std::option::Option::Some(code) => code,
         266  +
                ::std::option::Option::None => {
         267  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         268  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         269  +
                            crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionError::unhandled(generic),
         270  +
                        ),
         271  +
                    ))
         272  +
                }
         273  +
            };
         274  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         275  +
            let err = match error_code {
         276  +
                "DoesNotExistException" => {
         277  +
                    crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionError::DoesNotExistException({
         278  +
                        let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         279  +
                            crate::types::error::DoesNotExistException::deserialize_with_response(
         280  +
                                &mut *deser,
         281  +
                                response.headers(),
         282  +
                                response.status().into(),
         283  +
                                body,
         284  +
                            )
         285  +
                        }) {
         286  +
                            ::std::result::Result::Ok(val) => val,
         287  +
                            ::std::result::Result::Err(e) => {
         288  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         289  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         290  +
                                ))
         291  +
                            }
         292  +
                        };
         293  +
                        tmp.meta = generic;
         294  +
                        if tmp.message.is_none() {
         295  +
                            tmp.message = _error_message;
         296  +
                        }
         297  +
                        tmp
         298  +
                    })
         299  +
                }
         300  +
                "InternalServerError" => {
         301  +
                    crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionError::InternalServerError({
         302  +
                        let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         303  +
                            crate::types::error::InternalServerError::deserialize_with_response(
         304  +
                                &mut *deser,
         305  +
                                response.headers(),
         306  +
                                response.status().into(),
         307  +
                                body,
         308  +
                            )
         309  +
                        }) {
         310  +
                            ::std::result::Result::Ok(val) => val,
         311  +
                            ::std::result::Result::Err(e) => {
         312  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         313  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         314  +
                                ))
         315  +
                            }
         316  +
                        };
         317  +
                        tmp.meta = generic;
         318  +
                        if tmp.message.is_none() {
         319  +
                            tmp.message = _error_message;
         320  +
                        }
         321  +
                        tmp
         322  +
                    })
         323  +
                }
         324  +
                _ => {
         325  +
                    // Registry-backed, operation-scoped reification of an error whose
         326  +
                    // code this operation does not model directly: the operation's own
         327  +
                    // error registry is consulted first, then the lookup widens to the
         328  +
                    // service-wide error registry. On a hit, the reified error is attached
         329  +
                    // as the source of the returned unhandled error while its metadata
         330  +
                    // (code, message, request id) is preserved; on a miss the generic
         331  +
                    // error is returned unchanged.
         332  +
                    match protocol
         333  +
                        .deserialize_error_response(response, _cfg)
         334  +
                        .ok()
         335  +
                        .and_then(|mut deser| {
         336  +
                            ::aws_smithy_schema::registry::reify_error(
         337  +
                                crate::operation::get_maintenance_window_execution::error_registry::REGISTRY
         338  +
                                    .or(&crate::error_type_registry::REGISTRY),
         339  +
                                error_code,
         340  +
                                &mut *deser,
         341  +
                            )
         342  +
                        }) {
         343  +
                        ::std::option::Option::Some(source) => <crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionError as ::aws_smithy_runtime_api::client::result::CreateUnhandledError>::create_unhandled_error(source, ::std::option::Option::Some(generic)),
         344  +
                        ::std::option::Option::None => crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionError::generic(generic),
         345  +
                    }
         346  +
                }
         347  +
            };
         348  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         349  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         350  +
            ))
         351  +
        } else {
         352  +
            let protocol = _cfg
         353  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         354  +
                .expect("a SharedClientProtocol is required");
         355  +
            let mut deser = protocol
         356  +
                .deserialize_response(response, GetMaintenanceWindowExecution::OUTPUT_SCHEMA, _cfg)
         357  +
                .map_err(|e| {
         358  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         359  +
                })?;
         360  +
            // body and headers are already in scope from the top of the function;
         361  +
            // alias `headers` as `_response_headers` so MutateOutput
         362  +
            // customizations have a stable name to read from.
         363  +
            let _response_headers = headers;
         364  +
            #[allow(unused_mut)]
         365  +
            let mut output = crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionOutput::deserialize_with_response(
         366  +
                &mut *deser,
         367  +
                _response_headers,
         368  +
                response.status().into(),
         369  +
                body,
         370  +
            )
         371  +
            .map_err(|e| {
         372  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         373  +
            })?;
         374  +
            output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
         375  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         376  +
        }
         377  +
    }
         378  +
}
         379  +
#[derive(Debug)]
         380  +
struct GetMaintenanceWindowExecutionRequestSerializer;
         381  +
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for GetMaintenanceWindowExecutionRequestSerializer {
         382  +
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
         383  +
    fn serialize_input(
         384  +
        &self,
         385  +
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
         386  +
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         387  +
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
         388  +
        let input = input
         389  +
            .downcast::<crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionInput>()
         390  +
            .expect("correct type");
         391  +
         392  +
        let protocol = _cfg
         393  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         394  +
            .expect("a SharedClientProtocol is required");
         395  +
        let mut request = protocol
         396  +
            .serialize_request(&input, GetMaintenanceWindowExecution::INPUT_SCHEMA, "/", _cfg)
         397  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         398  +
         399  +
        return ::std::result::Result::Ok(request);
         400  +
    }
         401  +
}
         402  +
#[derive(Debug)]
         403  +
struct GetMaintenanceWindowExecutionEndpointParamsInterceptor;
         404  +
         405  +
#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
         406  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetMaintenanceWindowExecutionEndpointParamsInterceptor {
         407  +
    fn name(&self) -> &'static str {
         408  +
        "GetMaintenanceWindowExecutionEndpointParamsInterceptor"
         409  +
    }
         410  +
         411  +
    fn read_before_execution(
         412  +
        &self,
         413  +
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
         414  +
            '_,
         415  +
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
         416  +
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
         417  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
         418  +
        >,
         419  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         420  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
         421  +
        let _input = context
         422  +
            .input()
         423  +
            .downcast_ref::<GetMaintenanceWindowExecutionInput>()
         424  +
            .ok_or("failed to downcast to GetMaintenanceWindowExecutionInput")?;
         425  +
         426  +
        let params = crate::config::endpoint::Params::builder()
         427  +
            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
         428  +
            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
         429  +
            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
         430  +
            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
         431  +
            .build()
         432  +
            .map_err(|err| {
         433  +
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
         434  +
            })?;
         435  +
        cfg.interceptor_state()
         436  +
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         437  +
        ::std::result::Result::Ok(())
         438  +
    }
         439  +
}
         440  +
         441  +
// The get_* functions below are generated from JMESPath expressions in the
         442  +
// operationContextParams trait. They target the operation's input shape.
         443  +
         444  +
/// Error type for the `GetMaintenanceWindowExecutionError` operation.
         445  +
#[non_exhaustive]
         446  +
#[derive(::std::fmt::Debug)]
         447  +
pub enum GetMaintenanceWindowExecutionError {
         448  +
    /// <p>Error returned when the ID specified for a resource, such as a maintenance window or patch baseline, doesn't exist.</p>
         449  +
    /// <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>
         450  +
    DoesNotExistException(crate::types::error::DoesNotExistException),
         451  +
    /// <p>An error occurred on the server side.</p>
         452  +
    InternalServerError(crate::types::error::InternalServerError),
         453  +
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
         454  +
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
         455  +
    variable wildcard pattern and check `.code()`:
         456  +
     \
         457  +
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
         458  +
     \
         459  +
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-GetMaintenanceWindowExecutionError) for what information is available for the error.")]
         460  +
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         461  +
}
         462  +
impl GetMaintenanceWindowExecutionError {
         463  +
    /// Creates the `GetMaintenanceWindowExecutionError::Unhandled` variant from any error type.
         464  +
    pub fn unhandled(
         465  +
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
         466  +
    ) -> Self {
         467  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         468  +
            source: err.into(),
         469  +
            meta: ::std::default::Default::default(),
         470  +
        })
         471  +
    }
         472  +
         473  +
    /// Creates the `GetMaintenanceWindowExecutionError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
         474  +
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         475  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         476  +
            source: err.clone().into(),
         477  +
            meta: err,
         478  +
        })
         479  +
    }
         480  +
    ///
         481  +
    /// Returns error metadata, which includes the error code, message,
         482  +
    /// request ID, and potentially additional information.
         483  +
    ///
         484  +
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         485  +
        match self {
         486  +
            Self::DoesNotExistException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         487  +
            Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         488  +
            Self::Unhandled(e) => &e.meta,
         489  +
        }
         490  +
    }
         491  +
    /// Returns `true` if the error kind is `GetMaintenanceWindowExecutionError::DoesNotExistException`.
         492  +
    pub fn is_does_not_exist_exception(&self) -> bool {
         493  +
        matches!(self, Self::DoesNotExistException(_))
         494  +
    }
         495  +
    /// Returns `true` if the error kind is `GetMaintenanceWindowExecutionError::InternalServerError`.
         496  +
    pub fn is_internal_server_error(&self) -> bool {
         497  +
        matches!(self, Self::InternalServerError(_))
         498  +
    }
         499  +
}
         500  +
impl ::std::error::Error for GetMaintenanceWindowExecutionError {
         501  +
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         502  +
        match self {
         503  +
            Self::DoesNotExistException(_inner) => ::std::option::Option::Some(_inner),
         504  +
            Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
         505  +
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         506  +
        }
         507  +
    }
         508  +
}
         509  +
impl ::std::fmt::Display for GetMaintenanceWindowExecutionError {
         510  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         511  +
        match self {
         512  +
            Self::DoesNotExistException(_inner) => _inner.fmt(f),
         513  +
            Self::InternalServerError(_inner) => _inner.fmt(f),
         514  +
            Self::Unhandled(_inner) => {
         515  +
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
         516  +
                    write!(f, "unhandled error ({code})")
         517  +
                } else {
         518  +
                    f.write_str("unhandled error")
         519  +
                }
         520  +
            }
         521  +
        }
         522  +
    }
         523  +
}
         524  +
impl ::aws_smithy_types::retry::ProvideErrorKind for GetMaintenanceWindowExecutionError {
         525  +
    fn code(&self) -> ::std::option::Option<&str> {
         526  +
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         527  +
    }
         528  +
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         529  +
        ::std::option::Option::None
         530  +
    }
         531  +
}
         532  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for GetMaintenanceWindowExecutionError {
         533  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         534  +
        match self {
         535  +
            Self::DoesNotExistException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         536  +
            Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         537  +
            Self::Unhandled(_inner) => &_inner.meta,
         538  +
        }
         539  +
    }
         540  +
}
         541  +
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for GetMaintenanceWindowExecutionError {
         542  +
    fn create_unhandled_error(
         543  +
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
         544  +
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         545  +
    ) -> Self {
         546  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         547  +
            source,
         548  +
            meta: meta.unwrap_or_default(),
         549  +
        })
         550  +
    }
         551  +
}
         552  +
impl ::aws_types::request_id::RequestId for crate::operation::get_maintenance_window_execution::GetMaintenanceWindowExecutionError {
         553  +
    fn request_id(&self) -> Option<&str> {
         554  +
        self.meta().request_id()
         555  +
    }
         556  +
}
         557  +
         558  +
pub use crate::operation::get_maintenance_window_execution::_get_maintenance_window_execution_input::GetMaintenanceWindowExecutionInput;
         559  +
         560  +
pub use crate::operation::get_maintenance_window_execution::_get_maintenance_window_execution_output::GetMaintenanceWindowExecutionOutput;
         561  +
         562  +
mod _get_maintenance_window_execution_input;
         563  +
         564  +
mod _get_maintenance_window_execution_output;
         565  +
         566  +
/// Builders
         567  +
pub mod builders;