AWS SDK

AWS SDK

rev. aa190e630077955f0bc8f58dee6a16530c1e0578 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/_maintenance_window_execution_status.rs

@@ -0,1 +0,153 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// When writing a match expression against `MaintenanceWindowExecutionStatus`, it is important to ensure
           4  +
/// your code is forward-compatible. That is, if a match arm handles a case for a
           5  +
/// feature that is supported by the service but has not been represented as an enum
           6  +
/// variant in a current version of SDK, your code should continue to work when you
           7  +
/// upgrade SDK to a future version in which the enum does include a variant for that
           8  +
/// feature.
           9  +
///
          10  +
/// Here is an example of how you can make a match expression forward-compatible:
          11  +
///
          12  +
/// ```text
          13  +
/// # let maintenancewindowexecutionstatus = unimplemented!();
          14  +
/// match maintenancewindowexecutionstatus {
          15  +
///     MaintenanceWindowExecutionStatus::Cancelled => { /* ... */ },
          16  +
///     MaintenanceWindowExecutionStatus::Cancelling => { /* ... */ },
          17  +
///     MaintenanceWindowExecutionStatus::Failed => { /* ... */ },
          18  +
///     MaintenanceWindowExecutionStatus::InProgress => { /* ... */ },
          19  +
///     MaintenanceWindowExecutionStatus::Pending => { /* ... */ },
          20  +
///     MaintenanceWindowExecutionStatus::SkippedOverlapping => { /* ... */ },
          21  +
///     MaintenanceWindowExecutionStatus::Success => { /* ... */ },
          22  +
///     MaintenanceWindowExecutionStatus::TimedOut => { /* ... */ },
          23  +
///     other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ },
          24  +
///     _ => { /* ... */ },
          25  +
/// }
          26  +
/// ```
          27  +
/// The above code demonstrates that when `maintenancewindowexecutionstatus` represents
          28  +
/// `NewFeature`, the execution path will lead to the second last match arm,
          29  +
/// even though the enum does not contain a variant `MaintenanceWindowExecutionStatus::NewFeature`
          30  +
/// in the current version of SDK. The reason is that the variable `other`,
          31  +
/// created by the `@` operator, is bound to
          32  +
/// `MaintenanceWindowExecutionStatus::Unknown(UnknownVariantValue("NewFeature".to_owned()))`
          33  +
/// and calling `as_str` on it yields `"NewFeature"`.
          34  +
/// This match expression is forward-compatible when executed with a newer
          35  +
/// version of SDK where the variant `MaintenanceWindowExecutionStatus::NewFeature` is defined.
          36  +
/// Specifically, when `maintenancewindowexecutionstatus` represents `NewFeature`,
          37  +
/// the execution path will hit the second last match arm as before by virtue of
          38  +
/// calling `as_str` on `MaintenanceWindowExecutionStatus::NewFeature` also yielding `"NewFeature"`.
          39  +
///
          40  +
/// Explicitly matching on the `Unknown` variant should
          41  +
/// be avoided for two reasons:
          42  +
/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted.
          43  +
/// - It might inadvertently shadow other intended match arms.
          44  +
///
          45  +
#[allow(missing_docs)] // documentation missing in model
          46  +
#[non_exhaustive]
          47  +
#[derive(
          48  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash,
          49  +
)]
          50  +
pub enum MaintenanceWindowExecutionStatus {
          51  +
    #[allow(missing_docs)] // documentation missing in model
          52  +
    Cancelled,
          53  +
    #[allow(missing_docs)] // documentation missing in model
          54  +
    Cancelling,
          55  +
    #[allow(missing_docs)] // documentation missing in model
          56  +
    Failed,
          57  +
    #[allow(missing_docs)] // documentation missing in model
          58  +
    InProgress,
          59  +
    #[allow(missing_docs)] // documentation missing in model
          60  +
    Pending,
          61  +
    #[allow(missing_docs)] // documentation missing in model
          62  +
    SkippedOverlapping,
          63  +
    #[allow(missing_docs)] // documentation missing in model
          64  +
    Success,
          65  +
    #[allow(missing_docs)] // documentation missing in model
          66  +
    TimedOut,
          67  +
    /// `Unknown` contains new variants that have been added since this code was generated.
          68  +
    #[deprecated(note = "Don't directly match on `Unknown`. See the docs on this enum for the correct way to handle unknown variants.")]
          69  +
    Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue),
          70  +
}
          71  +
impl ::std::convert::From<&str> for MaintenanceWindowExecutionStatus {
          72  +
    fn from(s: &str) -> Self {
          73  +
        match s {
          74  +
            "CANCELLED" => MaintenanceWindowExecutionStatus::Cancelled,
          75  +
            "CANCELLING" => MaintenanceWindowExecutionStatus::Cancelling,
          76  +
            "FAILED" => MaintenanceWindowExecutionStatus::Failed,
          77  +
            "IN_PROGRESS" => MaintenanceWindowExecutionStatus::InProgress,
          78  +
            "PENDING" => MaintenanceWindowExecutionStatus::Pending,
          79  +
            "SKIPPED_OVERLAPPING" => MaintenanceWindowExecutionStatus::SkippedOverlapping,
          80  +
            "SUCCESS" => MaintenanceWindowExecutionStatus::Success,
          81  +
            "TIMED_OUT" => MaintenanceWindowExecutionStatus::TimedOut,
          82  +
            other => MaintenanceWindowExecutionStatus::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())),
          83  +
        }
          84  +
    }
          85  +
}
          86  +
impl ::std::str::FromStr for MaintenanceWindowExecutionStatus {
          87  +
    type Err = ::std::convert::Infallible;
          88  +
          89  +
    fn from_str(s: &str) -> ::std::result::Result<Self, <Self as ::std::str::FromStr>::Err> {
          90  +
        ::std::result::Result::Ok(MaintenanceWindowExecutionStatus::from(s))
          91  +
    }
          92  +
}
          93  +
impl MaintenanceWindowExecutionStatus {
          94  +
    /// Returns the `&str` value of the enum member.
          95  +
    pub fn as_str(&self) -> &str {
          96  +
        match self {
          97  +
            MaintenanceWindowExecutionStatus::Cancelled => "CANCELLED",
          98  +
            MaintenanceWindowExecutionStatus::Cancelling => "CANCELLING",
          99  +
            MaintenanceWindowExecutionStatus::Failed => "FAILED",
         100  +
            MaintenanceWindowExecutionStatus::InProgress => "IN_PROGRESS",
         101  +
            MaintenanceWindowExecutionStatus::Pending => "PENDING",
         102  +
            MaintenanceWindowExecutionStatus::SkippedOverlapping => "SKIPPED_OVERLAPPING",
         103  +
            MaintenanceWindowExecutionStatus::Success => "SUCCESS",
         104  +
            MaintenanceWindowExecutionStatus::TimedOut => "TIMED_OUT",
         105  +
            MaintenanceWindowExecutionStatus::Unknown(value) => value.as_str(),
         106  +
        }
         107  +
    }
         108  +
    /// Returns all the `&str` representations of the enum members.
         109  +
    pub const fn values() -> &'static [&'static str] {
         110  +
        &[
         111  +
            "CANCELLED",
         112  +
            "CANCELLING",
         113  +
            "FAILED",
         114  +
            "IN_PROGRESS",
         115  +
            "PENDING",
         116  +
            "SKIPPED_OVERLAPPING",
         117  +
            "SUCCESS",
         118  +
            "TIMED_OUT",
         119  +
        ]
         120  +
    }
         121  +
}
         122  +
impl ::std::convert::AsRef<str> for MaintenanceWindowExecutionStatus {
         123  +
    fn as_ref(&self) -> &str {
         124  +
        self.as_str()
         125  +
    }
         126  +
}
         127  +
impl MaintenanceWindowExecutionStatus {
         128  +
    /// Parses the enum value while disallowing unknown variants.
         129  +
    ///
         130  +
    /// Unknown variants will result in an error.
         131  +
    pub fn try_parse(value: &str) -> ::std::result::Result<Self, crate::error::UnknownVariantError> {
         132  +
        match Self::from(value) {
         133  +
            #[allow(deprecated)]
         134  +
            Self::Unknown(_) => ::std::result::Result::Err(crate::error::UnknownVariantError::new(value)),
         135  +
            known => Ok(known),
         136  +
        }
         137  +
    }
         138  +
}
         139  +
impl ::std::fmt::Display for MaintenanceWindowExecutionStatus {
         140  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
         141  +
        match self {
         142  +
            MaintenanceWindowExecutionStatus::Cancelled => write!(f, "CANCELLED"),
         143  +
            MaintenanceWindowExecutionStatus::Cancelling => write!(f, "CANCELLING"),
         144  +
            MaintenanceWindowExecutionStatus::Failed => write!(f, "FAILED"),
         145  +
            MaintenanceWindowExecutionStatus::InProgress => write!(f, "IN_PROGRESS"),
         146  +
            MaintenanceWindowExecutionStatus::Pending => write!(f, "PENDING"),
         147  +
            MaintenanceWindowExecutionStatus::SkippedOverlapping => write!(f, "SKIPPED_OVERLAPPING"),
         148  +
            MaintenanceWindowExecutionStatus::Success => write!(f, "SUCCESS"),
         149  +
            MaintenanceWindowExecutionStatus::TimedOut => write!(f, "TIMED_OUT"),
         150  +
            MaintenanceWindowExecutionStatus::Unknown(value) => write!(f, "{value}"),
         151  +
        }
         152  +
    }
         153  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/_maintenance_window_execution_task_identity.rs

@@ -0,1 +0,554 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Information about a task execution performed as part of a maintenance window execution.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct MaintenanceWindowExecutionTaskIdentity {
           7  +
    /// <p>The ID of the maintenance window execution that ran the task.</p>
           8  +
    pub window_execution_id: ::std::option::Option<::std::string::String>,
           9  +
    /// <p>The ID of the specific task execution in the maintenance window execution.</p>
          10  +
    pub task_execution_id: ::std::option::Option<::std::string::String>,
          11  +
    /// <p>The status of the task execution.</p>
          12  +
    pub status: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>,
          13  +
    /// <p>The details explaining the status of the task execution. Not available for all status values.</p>
          14  +
    pub status_details: ::std::option::Option<::std::string::String>,
          15  +
    /// <p>The time the task execution started.</p>
          16  +
    pub start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
          17  +
    /// <p>The time the task execution finished.</p>
          18  +
    pub end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
          19  +
    /// <p>The Amazon Resource Name (ARN) of the task that ran.</p>
          20  +
    pub task_arn: ::std::option::Option<::std::string::String>,
          21  +
    /// <p>The type of task that ran.</p>
          22  +
    pub task_type: ::std::option::Option<crate::types::MaintenanceWindowTaskType>,
          23  +
    /// <p>The details for the CloudWatch alarm applied to your maintenance window task.</p>
          24  +
    pub alarm_configuration: ::std::option::Option<crate::types::AlarmConfiguration>,
          25  +
    /// <p>The CloudWatch alarm that was invoked by the maintenance window task.</p>
          26  +
    pub triggered_alarms: ::std::option::Option<::std::vec::Vec<crate::types::AlarmStateInformation>>,
          27  +
}
          28  +
impl MaintenanceWindowExecutionTaskIdentity {
          29  +
    /// <p>The ID of the maintenance window execution that ran the task.</p>
          30  +
    pub fn window_execution_id(&self) -> ::std::option::Option<&str> {
          31  +
        self.window_execution_id.as_deref()
          32  +
    }
          33  +
    /// <p>The ID of the specific task execution in the maintenance window execution.</p>
          34  +
    pub fn task_execution_id(&self) -> ::std::option::Option<&str> {
          35  +
        self.task_execution_id.as_deref()
          36  +
    }
          37  +
    /// <p>The status of the task execution.</p>
          38  +
    pub fn status(&self) -> ::std::option::Option<&crate::types::MaintenanceWindowExecutionStatus> {
          39  +
        self.status.as_ref()
          40  +
    }
          41  +
    /// <p>The details explaining the status of the task execution. Not available for all status values.</p>
          42  +
    pub fn status_details(&self) -> ::std::option::Option<&str> {
          43  +
        self.status_details.as_deref()
          44  +
    }
          45  +
    /// <p>The time the task execution started.</p>
          46  +
    pub fn start_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
          47  +
        self.start_time.as_ref()
          48  +
    }
          49  +
    /// <p>The time the task execution finished.</p>
          50  +
    pub fn end_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
          51  +
        self.end_time.as_ref()
          52  +
    }
          53  +
    /// <p>The Amazon Resource Name (ARN) of the task that ran.</p>
          54  +
    pub fn task_arn(&self) -> ::std::option::Option<&str> {
          55  +
        self.task_arn.as_deref()
          56  +
    }
          57  +
    /// <p>The type of task that ran.</p>
          58  +
    pub fn task_type(&self) -> ::std::option::Option<&crate::types::MaintenanceWindowTaskType> {
          59  +
        self.task_type.as_ref()
          60  +
    }
          61  +
    /// <p>The details for the CloudWatch alarm applied to your maintenance window task.</p>
          62  +
    pub fn alarm_configuration(&self) -> ::std::option::Option<&crate::types::AlarmConfiguration> {
          63  +
        self.alarm_configuration.as_ref()
          64  +
    }
          65  +
    /// <p>The CloudWatch alarm that was invoked by the maintenance window task.</p>
          66  +
    ///
          67  +
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.triggered_alarms.is_none()`.
          68  +
    pub fn triggered_alarms(&self) -> &[crate::types::AlarmStateInformation] {
          69  +
        self.triggered_alarms.as_deref().unwrap_or_default()
          70  +
    }
          71  +
}
          72  +
static MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_WINDOW_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> =
          73  +
    ::aws_smithy_schema::Schema::new_member(
          74  +
        ::aws_smithy_schema::ShapeId::from_parts(
          75  +
            "com.amazonaws.ssm#MaintenanceWindowExecutionTaskIdentity$WindowExecutionId",
          76  +
            "com.amazonaws.ssm",
          77  +
            "MaintenanceWindowExecutionTaskIdentity",
          78  +
        ),
          79  +
        ::aws_smithy_schema::ShapeType::String,
          80  +
        "WindowExecutionId",
          81  +
        0,
          82  +
    );
          83  +
static MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_TASK_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> =
          84  +
    ::aws_smithy_schema::Schema::new_member(
          85  +
        ::aws_smithy_schema::ShapeId::from_parts(
          86  +
            "com.amazonaws.ssm#MaintenanceWindowExecutionTaskIdentity$TaskExecutionId",
          87  +
            "com.amazonaws.ssm",
          88  +
            "MaintenanceWindowExecutionTaskIdentity",
          89  +
        ),
          90  +
        ::aws_smithy_schema::ShapeType::String,
          91  +
        "TaskExecutionId",
          92  +
        1,
          93  +
    );
          94  +
static MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_STATUS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          95  +
    ::aws_smithy_schema::ShapeId::from_parts(
          96  +
        "com.amazonaws.ssm#MaintenanceWindowExecutionTaskIdentity$Status",
          97  +
        "com.amazonaws.ssm",
          98  +
        "MaintenanceWindowExecutionTaskIdentity",
          99  +
    ),
         100  +
    ::aws_smithy_schema::ShapeType::String,
         101  +
    "Status",
         102  +
    2,
         103  +
);
         104  +
static MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_STATUS_DETAILS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         105  +
    ::aws_smithy_schema::ShapeId::from_parts(
         106  +
        "com.amazonaws.ssm#MaintenanceWindowExecutionTaskIdentity$StatusDetails",
         107  +
        "com.amazonaws.ssm",
         108  +
        "MaintenanceWindowExecutionTaskIdentity",
         109  +
    ),
         110  +
    ::aws_smithy_schema::ShapeType::String,
         111  +
    "StatusDetails",
         112  +
    3,
         113  +
);
         114  +
static MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_START_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         115  +
    ::aws_smithy_schema::ShapeId::from_parts(
         116  +
        "com.amazonaws.ssm#MaintenanceWindowExecutionTaskIdentity$StartTime",
         117  +
        "com.amazonaws.ssm",
         118  +
        "MaintenanceWindowExecutionTaskIdentity",
         119  +
    ),
         120  +
    ::aws_smithy_schema::ShapeType::Timestamp,
         121  +
    "StartTime",
         122  +
    4,
         123  +
);
         124  +
static MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_END_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         125  +
    ::aws_smithy_schema::ShapeId::from_parts(
         126  +
        "com.amazonaws.ssm#MaintenanceWindowExecutionTaskIdentity$EndTime",
         127  +
        "com.amazonaws.ssm",
         128  +
        "MaintenanceWindowExecutionTaskIdentity",
         129  +
    ),
         130  +
    ::aws_smithy_schema::ShapeType::Timestamp,
         131  +
    "EndTime",
         132  +
    5,
         133  +
);
         134  +
static MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_TASK_ARN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         135  +
    ::aws_smithy_schema::ShapeId::from_parts(
         136  +
        "com.amazonaws.ssm#MaintenanceWindowExecutionTaskIdentity$TaskArn",
         137  +
        "com.amazonaws.ssm",
         138  +
        "MaintenanceWindowExecutionTaskIdentity",
         139  +
    ),
         140  +
    ::aws_smithy_schema::ShapeType::String,
         141  +
    "TaskArn",
         142  +
    6,
         143  +
);
         144  +
static MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_TASK_TYPE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         145  +
    ::aws_smithy_schema::ShapeId::from_parts(
         146  +
        "com.amazonaws.ssm#MaintenanceWindowExecutionTaskIdentity$TaskType",
         147  +
        "com.amazonaws.ssm",
         148  +
        "MaintenanceWindowExecutionTaskIdentity",
         149  +
    ),
         150  +
    ::aws_smithy_schema::ShapeType::String,
         151  +
    "TaskType",
         152  +
    7,
         153  +
);
         154  +
static MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_ALARM_CONFIGURATION: ::aws_smithy_schema::Schema<'static> =
         155  +
    ::aws_smithy_schema::Schema::new_member(
         156  +
        ::aws_smithy_schema::ShapeId::from_parts(
         157  +
            "com.amazonaws.ssm#MaintenanceWindowExecutionTaskIdentity$AlarmConfiguration",
         158  +
            "com.amazonaws.ssm",
         159  +
            "MaintenanceWindowExecutionTaskIdentity",
         160  +
        ),
         161  +
        ::aws_smithy_schema::ShapeType::Structure,
         162  +
        "AlarmConfiguration",
         163  +
        8,
         164  +
    );
         165  +
static MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_TRIGGERED_ALARMS_MEMBER: ::aws_smithy_schema::Schema<'static> =
         166  +
    ::aws_smithy_schema::Schema::new_member(
         167  +
        ::aws_smithy_schema::ShapeId::from_parts(
         168  +
            "com.amazonaws.ssm#AlarmStateInformationList$member",
         169  +
            "com.amazonaws.ssm",
         170  +
            "AlarmStateInformationList",
         171  +
        ),
         172  +
        ::aws_smithy_schema::ShapeType::Structure,
         173  +
        "member",
         174  +
        0,
         175  +
    );
         176  +
static MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_TRIGGERED_ALARMS: ::aws_smithy_schema::Schema<'static> =
         177  +
    ::aws_smithy_schema::Schema::new_member(
         178  +
        ::aws_smithy_schema::ShapeId::from_parts(
         179  +
            "com.amazonaws.ssm#MaintenanceWindowExecutionTaskIdentity$TriggeredAlarms",
         180  +
            "com.amazonaws.ssm",
         181  +
            "MaintenanceWindowExecutionTaskIdentity",
         182  +
        ),
         183  +
        ::aws_smithy_schema::ShapeType::List,
         184  +
        "TriggeredAlarms",
         185  +
        9,
         186  +
    )
         187  +
    .with_list_member(&MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_TRIGGERED_ALARMS_MEMBER);
         188  +
static MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
         189  +
    ::aws_smithy_schema::ShapeId::from_parts(
         190  +
        "com.amazonaws.ssm#MaintenanceWindowExecutionTaskIdentity",
         191  +
        "com.amazonaws.ssm",
         192  +
        "MaintenanceWindowExecutionTaskIdentity",
         193  +
    ),
         194  +
    ::aws_smithy_schema::ShapeType::Structure,
         195  +
    &[
         196  +
        &MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_WINDOW_EXECUTION_ID,
         197  +
        &MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_TASK_EXECUTION_ID,
         198  +
        &MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_STATUS,
         199  +
        &MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_STATUS_DETAILS,
         200  +
        &MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_START_TIME,
         201  +
        &MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_END_TIME,
         202  +
        &MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_TASK_ARN,
         203  +
        &MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_TASK_TYPE,
         204  +
        &MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_ALARM_CONFIGURATION,
         205  +
        &MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_TRIGGERED_ALARMS,
         206  +
    ],
         207  +
);
         208  +
impl MaintenanceWindowExecutionTaskIdentity {
         209  +
    /// The schema for this shape.
         210  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_SCHEMA;
         211  +
}
         212  +
impl ::aws_smithy_schema::serde::SerializableStruct for MaintenanceWindowExecutionTaskIdentity {
         213  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
         214  +
    fn serialize_members(
         215  +
        &self,
         216  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
         217  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
         218  +
        if let Some(ref val) = self.window_execution_id {
         219  +
            ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_WINDOW_EXECUTION_ID, val)?;
         220  +
        }
         221  +
        if let Some(ref val) = self.task_execution_id {
         222  +
            ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_TASK_EXECUTION_ID, val)?;
         223  +
        }
         224  +
        if let Some(ref val) = self.status {
         225  +
            ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_STATUS, val.as_str())?;
         226  +
        }
         227  +
        if let Some(ref val) = self.status_details {
         228  +
            ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_STATUS_DETAILS, val)?;
         229  +
        }
         230  +
        if let Some(ref val) = self.start_time {
         231  +
            ser.write_timestamp(&MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_START_TIME, val)?;
         232  +
        }
         233  +
        if let Some(ref val) = self.end_time {
         234  +
            ser.write_timestamp(&MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_END_TIME, val)?;
         235  +
        }
         236  +
        if let Some(ref val) = self.task_arn {
         237  +
            ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_TASK_ARN, val)?;
         238  +
        }
         239  +
        if let Some(ref val) = self.task_type {
         240  +
            ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_TASK_TYPE, val.as_str())?;
         241  +
        }
         242  +
        if let Some(ref val) = self.alarm_configuration {
         243  +
            ser.write_struct(&MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_ALARM_CONFIGURATION, val)?;
         244  +
        }
         245  +
        if let Some(ref val) = self.triggered_alarms {
         246  +
            ser.write_list(
         247  +
                &MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_MEMBER_TRIGGERED_ALARMS,
         248  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         249  +
                    for item in val {
         250  +
                        ser.write_struct(crate::types::AlarmStateInformation::SCHEMA, item)?;
         251  +
                    }
         252  +
                    Ok(())
         253  +
                },
         254  +
            )?;
         255  +
        }
         256  +
        Ok(())
         257  +
    }
         258  +
}
         259  +
impl MaintenanceWindowExecutionTaskIdentity {
         260  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         261  +
    pub fn deserialize(
         262  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         263  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         264  +
        #[allow(unused_variables, unused_mut)]
         265  +
        let mut builder = Self::builder();
         266  +
        #[allow(
         267  +
            unused_variables,
         268  +
            unreachable_code,
         269  +
            clippy::single_match,
         270  +
            clippy::match_single_binding,
         271  +
            clippy::diverging_sub_expression
         272  +
        )]
         273  +
        deserializer.read_struct(&MAINTENANCEWINDOWEXECUTIONTASKIDENTITY_SCHEMA, &mut |member, deser| {
         274  +
            match member.member_index() {
         275  +
                Some(0) => {
         276  +
                    if deser.is_null() {
         277  +
                        deser.read_null()?;
         278  +
                    } else {
         279  +
                        builder.window_execution_id = Some(deser.read_string(member)?);
         280  +
                    }
         281  +
                }
         282  +
                Some(1) => {
         283  +
                    if deser.is_null() {
         284  +
                        deser.read_null()?;
         285  +
                    } else {
         286  +
                        builder.task_execution_id = Some(deser.read_string(member)?);
         287  +
                    }
         288  +
                }
         289  +
                Some(2) => {
         290  +
                    if deser.is_null() {
         291  +
                        deser.read_null()?;
         292  +
                    } else {
         293  +
                        builder.status = Some(crate::types::MaintenanceWindowExecutionStatus::from(deser.read_string(member)?.as_str()));
         294  +
                    }
         295  +
                }
         296  +
                Some(3) => {
         297  +
                    if deser.is_null() {
         298  +
                        deser.read_null()?;
         299  +
                    } else {
         300  +
                        builder.status_details = Some(deser.read_string(member)?);
         301  +
                    }
         302  +
                }
         303  +
                Some(4) => {
         304  +
                    if deser.is_null() {
         305  +
                        deser.read_null()?;
         306  +
                    } else {
         307  +
                        builder.start_time = Some(deser.read_timestamp(member)?);
         308  +
                    }
         309  +
                }
         310  +
                Some(5) => {
         311  +
                    if deser.is_null() {
         312  +
                        deser.read_null()?;
         313  +
                    } else {
         314  +
                        builder.end_time = Some(deser.read_timestamp(member)?);
         315  +
                    }
         316  +
                }
         317  +
                Some(6) => {
         318  +
                    if deser.is_null() {
         319  +
                        deser.read_null()?;
         320  +
                    } else {
         321  +
                        builder.task_arn = Some(deser.read_string(member)?);
         322  +
                    }
         323  +
                }
         324  +
                Some(7) => {
         325  +
                    if deser.is_null() {
         326  +
                        deser.read_null()?;
         327  +
                    } else {
         328  +
                        builder.task_type = Some(crate::types::MaintenanceWindowTaskType::from(deser.read_string(member)?.as_str()));
         329  +
                    }
         330  +
                }
         331  +
                Some(8) => {
         332  +
                    if deser.is_null() {
         333  +
                        deser.read_null()?;
         334  +
                    } else {
         335  +
                        builder.alarm_configuration = Some(crate::types::AlarmConfiguration::deserialize(deser)?);
         336  +
                    }
         337  +
                }
         338  +
                Some(9) => {
         339  +
                    if deser.is_null() {
         340  +
                        deser.read_null()?;
         341  +
                    } else {
         342  +
                        builder.triggered_alarms = Some({
         343  +
                            let mut container = Vec::new();
         344  +
                            deser.read_list(member, &mut |deser| {
         345  +
                                container.push(crate::types::AlarmStateInformation::deserialize(deser)?);
         346  +
                                Ok(())
         347  +
                            })?;
         348  +
                            container
         349  +
                        });
         350  +
                    }
         351  +
                }
         352  +
                _ => {}
         353  +
            }
         354  +
            Ok(())
         355  +
        })?;
         356  +
        Ok(builder.build())
         357  +
    }
         358  +
}
         359  +
impl MaintenanceWindowExecutionTaskIdentity {
         360  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         361  +
    pub fn deserialize_with_response(
         362  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         363  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         364  +
        _status: u16,
         365  +
        _body: &[u8],
         366  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         367  +
        Self::deserialize(deserializer)
         368  +
    }
         369  +
}
         370  +
impl MaintenanceWindowExecutionTaskIdentity {
         371  +
    /// Creates a new builder-style object to manufacture [`MaintenanceWindowExecutionTaskIdentity`](crate::types::MaintenanceWindowExecutionTaskIdentity).
         372  +
    pub fn builder() -> crate::types::builders::MaintenanceWindowExecutionTaskIdentityBuilder {
         373  +
        crate::types::builders::MaintenanceWindowExecutionTaskIdentityBuilder::default()
         374  +
    }
         375  +
}
         376  +
         377  +
/// A builder for [`MaintenanceWindowExecutionTaskIdentity`](crate::types::MaintenanceWindowExecutionTaskIdentity).
         378  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         379  +
#[non_exhaustive]
         380  +
pub struct MaintenanceWindowExecutionTaskIdentityBuilder {
         381  +
    pub(crate) window_execution_id: ::std::option::Option<::std::string::String>,
         382  +
    pub(crate) task_execution_id: ::std::option::Option<::std::string::String>,
         383  +
    pub(crate) status: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>,
         384  +
    pub(crate) status_details: ::std::option::Option<::std::string::String>,
         385  +
    pub(crate) start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
         386  +
    pub(crate) end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
         387  +
    pub(crate) task_arn: ::std::option::Option<::std::string::String>,
         388  +
    pub(crate) task_type: ::std::option::Option<crate::types::MaintenanceWindowTaskType>,
         389  +
    pub(crate) alarm_configuration: ::std::option::Option<crate::types::AlarmConfiguration>,
         390  +
    pub(crate) triggered_alarms: ::std::option::Option<::std::vec::Vec<crate::types::AlarmStateInformation>>,
         391  +
}
         392  +
impl MaintenanceWindowExecutionTaskIdentityBuilder {
         393  +
    /// <p>The ID of the maintenance window execution that ran the task.</p>
         394  +
    pub fn window_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         395  +
        self.window_execution_id = ::std::option::Option::Some(input.into());
         396  +
        self
         397  +
    }
         398  +
    /// <p>The ID of the maintenance window execution that ran the task.</p>
         399  +
    pub fn set_window_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         400  +
        self.window_execution_id = input;
         401  +
        self
         402  +
    }
         403  +
    /// <p>The ID of the maintenance window execution that ran the task.</p>
         404  +
    pub fn get_window_execution_id(&self) -> &::std::option::Option<::std::string::String> {
         405  +
        &self.window_execution_id
         406  +
    }
         407  +
    /// <p>The ID of the specific task execution in the maintenance window execution.</p>
         408  +
    pub fn task_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         409  +
        self.task_execution_id = ::std::option::Option::Some(input.into());
         410  +
        self
         411  +
    }
         412  +
    /// <p>The ID of the specific task execution in the maintenance window execution.</p>
         413  +
    pub fn set_task_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         414  +
        self.task_execution_id = input;
         415  +
        self
         416  +
    }
         417  +
    /// <p>The ID of the specific task execution in the maintenance window execution.</p>
         418  +
    pub fn get_task_execution_id(&self) -> &::std::option::Option<::std::string::String> {
         419  +
        &self.task_execution_id
         420  +
    }
         421  +
    /// <p>The status of the task execution.</p>
         422  +
    pub fn status(mut self, input: crate::types::MaintenanceWindowExecutionStatus) -> Self {
         423  +
        self.status = ::std::option::Option::Some(input);
         424  +
        self
         425  +
    }
         426  +
    /// <p>The status of the task execution.</p>
         427  +
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>) -> Self {
         428  +
        self.status = input;
         429  +
        self
         430  +
    }
         431  +
    /// <p>The status of the task execution.</p>
         432  +
    pub fn get_status(&self) -> &::std::option::Option<crate::types::MaintenanceWindowExecutionStatus> {
         433  +
        &self.status
         434  +
    }
         435  +
    /// <p>The details explaining the status of the task execution. Not available for all status values.</p>
         436  +
    pub fn status_details(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         437  +
        self.status_details = ::std::option::Option::Some(input.into());
         438  +
        self
         439  +
    }
         440  +
    /// <p>The details explaining the status of the task execution. Not available for all status values.</p>
         441  +
    pub fn set_status_details(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         442  +
        self.status_details = input;
         443  +
        self
         444  +
    }
         445  +
    /// <p>The details explaining the status of the task execution. Not available for all status values.</p>
         446  +
    pub fn get_status_details(&self) -> &::std::option::Option<::std::string::String> {
         447  +
        &self.status_details
         448  +
    }
         449  +
    /// <p>The time the task execution started.</p>
         450  +
    pub fn start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         451  +
        self.start_time = ::std::option::Option::Some(input);
         452  +
        self
         453  +
    }
         454  +
    /// <p>The time the task execution started.</p>
         455  +
    pub fn set_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         456  +
        self.start_time = input;
         457  +
        self
         458  +
    }
         459  +
    /// <p>The time the task execution started.</p>
         460  +
    pub fn get_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         461  +
        &self.start_time
         462  +
    }
         463  +
    /// <p>The time the task execution finished.</p>
         464  +
    pub fn end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         465  +
        self.end_time = ::std::option::Option::Some(input);
         466  +
        self
         467  +
    }
         468  +
    /// <p>The time the task execution finished.</p>
         469  +
    pub fn set_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         470  +
        self.end_time = input;
         471  +
        self
         472  +
    }
         473  +
    /// <p>The time the task execution finished.</p>
         474  +
    pub fn get_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         475  +
        &self.end_time
         476  +
    }
         477  +
    /// <p>The Amazon Resource Name (ARN) of the task that ran.</p>
         478  +
    pub fn task_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         479  +
        self.task_arn = ::std::option::Option::Some(input.into());
         480  +
        self
         481  +
    }
         482  +
    /// <p>The Amazon Resource Name (ARN) of the task that ran.</p>
         483  +
    pub fn set_task_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         484  +
        self.task_arn = input;
         485  +
        self
         486  +
    }
         487  +
    /// <p>The Amazon Resource Name (ARN) of the task that ran.</p>
         488  +
    pub fn get_task_arn(&self) -> &::std::option::Option<::std::string::String> {
         489  +
        &self.task_arn
         490  +
    }
         491  +
    /// <p>The type of task that ran.</p>
         492  +
    pub fn task_type(mut self, input: crate::types::MaintenanceWindowTaskType) -> Self {
         493  +
        self.task_type = ::std::option::Option::Some(input);
         494  +
        self
         495  +
    }
         496  +
    /// <p>The type of task that ran.</p>
         497  +
    pub fn set_task_type(mut self, input: ::std::option::Option<crate::types::MaintenanceWindowTaskType>) -> Self {
         498  +
        self.task_type = input;
         499  +
        self
         500  +
    }
         501  +
    /// <p>The type of task that ran.</p>
         502  +
    pub fn get_task_type(&self) -> &::std::option::Option<crate::types::MaintenanceWindowTaskType> {
         503  +
        &self.task_type
         504  +
    }
         505  +
    /// <p>The details for the CloudWatch alarm applied to your maintenance window task.</p>
         506  +
    pub fn alarm_configuration(mut self, input: crate::types::AlarmConfiguration) -> Self {
         507  +
        self.alarm_configuration = ::std::option::Option::Some(input);
         508  +
        self
         509  +
    }
         510  +
    /// <p>The details for the CloudWatch alarm applied to your maintenance window task.</p>
         511  +
    pub fn set_alarm_configuration(mut self, input: ::std::option::Option<crate::types::AlarmConfiguration>) -> Self {
         512  +
        self.alarm_configuration = input;
         513  +
        self
         514  +
    }
         515  +
    /// <p>The details for the CloudWatch alarm applied to your maintenance window task.</p>
         516  +
    pub fn get_alarm_configuration(&self) -> &::std::option::Option<crate::types::AlarmConfiguration> {
         517  +
        &self.alarm_configuration
         518  +
    }
         519  +
    /// Appends an item to `triggered_alarms`.
         520  +
    ///
         521  +
    /// To override the contents of this collection use [`set_triggered_alarms`](Self::set_triggered_alarms).
         522  +
    ///
         523  +
    /// <p>The CloudWatch alarm that was invoked by the maintenance window task.</p>
         524  +
    pub fn triggered_alarms(mut self, input: crate::types::AlarmStateInformation) -> Self {
         525  +
        let mut v = self.triggered_alarms.unwrap_or_default();
         526  +
        v.push(input);
         527  +
        self.triggered_alarms = ::std::option::Option::Some(v);
         528  +
        self
         529  +
    }
         530  +
    /// <p>The CloudWatch alarm that was invoked by the maintenance window task.</p>
         531  +
    pub fn set_triggered_alarms(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AlarmStateInformation>>) -> Self {
         532  +
        self.triggered_alarms = input;
         533  +
        self
         534  +
    }
         535  +
    /// <p>The CloudWatch alarm that was invoked by the maintenance window task.</p>
         536  +
    pub fn get_triggered_alarms(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AlarmStateInformation>> {
         537  +
        &self.triggered_alarms
         538  +
    }
         539  +
    /// Consumes the builder and constructs a [`MaintenanceWindowExecutionTaskIdentity`](crate::types::MaintenanceWindowExecutionTaskIdentity).
         540  +
    pub fn build(self) -> crate::types::MaintenanceWindowExecutionTaskIdentity {
         541  +
        crate::types::MaintenanceWindowExecutionTaskIdentity {
         542  +
            window_execution_id: self.window_execution_id,
         543  +
            task_execution_id: self.task_execution_id,
         544  +
            status: self.status,
         545  +
            status_details: self.status_details,
         546  +
            start_time: self.start_time,
         547  +
            end_time: self.end_time,
         548  +
            task_arn: self.task_arn,
         549  +
            task_type: self.task_type,
         550  +
            alarm_configuration: self.alarm_configuration,
         551  +
            triggered_alarms: self.triggered_alarms,
         552  +
        }
         553  +
    }
         554  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/_maintenance_window_execution_task_invocation_identity.rs

@@ -0,1 +0,648 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Describes the information about a task invocation for a particular target as part of a task execution performed as part of a maintenance window execution.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
           6  +
pub struct MaintenanceWindowExecutionTaskInvocationIdentity {
           7  +
    /// <p>The ID of the maintenance window execution that ran the task.</p>
           8  +
    pub window_execution_id: ::std::option::Option<::std::string::String>,
           9  +
    /// <p>The ID of the specific task execution in the maintenance window execution.</p>
          10  +
    pub task_execution_id: ::std::option::Option<::std::string::String>,
          11  +
    /// <p>The ID of the task invocation.</p>
          12  +
    pub invocation_id: ::std::option::Option<::std::string::String>,
          13  +
    /// <p>The ID of the action performed in the service that actually handled the task invocation. If the task type is <code>RUN_COMMAND</code>, this value is the command ID.</p>
          14  +
    pub execution_id: ::std::option::Option<::std::string::String>,
          15  +
    /// <p>The task type.</p>
          16  +
    pub task_type: ::std::option::Option<crate::types::MaintenanceWindowTaskType>,
          17  +
    /// <p>The parameters that were provided for the invocation when it was run.</p>
          18  +
    pub parameters: ::std::option::Option<::std::string::String>,
          19  +
    /// <p>The status of the task invocation.</p>
          20  +
    pub status: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>,
          21  +
    /// <p>The details explaining the status of the task invocation. Not available for all status values.</p>
          22  +
    pub status_details: ::std::option::Option<::std::string::String>,
          23  +
    /// <p>The time the invocation started.</p>
          24  +
    pub start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
          25  +
    /// <p>The time the invocation finished.</p>
          26  +
    pub end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
          27  +
    /// <p>User-provided value that was specified when the target was registered with the maintenance window. This was also included in any Amazon CloudWatch Events events raised during the task invocation.</p>
          28  +
    pub owner_information: ::std::option::Option<::std::string::String>,
          29  +
    /// <p>The ID of the target definition in this maintenance window the invocation was performed for.</p>
          30  +
    pub window_target_id: ::std::option::Option<::std::string::String>,
          31  +
}
          32  +
impl MaintenanceWindowExecutionTaskInvocationIdentity {
          33  +
    /// <p>The ID of the maintenance window execution that ran the task.</p>
          34  +
    pub fn window_execution_id(&self) -> ::std::option::Option<&str> {
          35  +
        self.window_execution_id.as_deref()
          36  +
    }
          37  +
    /// <p>The ID of the specific task execution in the maintenance window execution.</p>
          38  +
    pub fn task_execution_id(&self) -> ::std::option::Option<&str> {
          39  +
        self.task_execution_id.as_deref()
          40  +
    }
          41  +
    /// <p>The ID of the task invocation.</p>
          42  +
    pub fn invocation_id(&self) -> ::std::option::Option<&str> {
          43  +
        self.invocation_id.as_deref()
          44  +
    }
          45  +
    /// <p>The ID of the action performed in the service that actually handled the task invocation. If the task type is <code>RUN_COMMAND</code>, this value is the command ID.</p>
          46  +
    pub fn execution_id(&self) -> ::std::option::Option<&str> {
          47  +
        self.execution_id.as_deref()
          48  +
    }
          49  +
    /// <p>The task type.</p>
          50  +
    pub fn task_type(&self) -> ::std::option::Option<&crate::types::MaintenanceWindowTaskType> {
          51  +
        self.task_type.as_ref()
          52  +
    }
          53  +
    /// <p>The parameters that were provided for the invocation when it was run.</p>
          54  +
    pub fn parameters(&self) -> ::std::option::Option<&str> {
          55  +
        self.parameters.as_deref()
          56  +
    }
          57  +
    /// <p>The status of the task invocation.</p>
          58  +
    pub fn status(&self) -> ::std::option::Option<&crate::types::MaintenanceWindowExecutionStatus> {
          59  +
        self.status.as_ref()
          60  +
    }
          61  +
    /// <p>The details explaining the status of the task invocation. Not available for all status values.</p>
          62  +
    pub fn status_details(&self) -> ::std::option::Option<&str> {
          63  +
        self.status_details.as_deref()
          64  +
    }
          65  +
    /// <p>The time the invocation started.</p>
          66  +
    pub fn start_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
          67  +
        self.start_time.as_ref()
          68  +
    }
          69  +
    /// <p>The time the invocation finished.</p>
          70  +
    pub fn end_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
          71  +
        self.end_time.as_ref()
          72  +
    }
          73  +
    /// <p>User-provided value that was specified when the target was registered with the maintenance window. This was also included in any Amazon CloudWatch Events events raised during the task invocation.</p>
          74  +
    pub fn owner_information(&self) -> ::std::option::Option<&str> {
          75  +
        self.owner_information.as_deref()
          76  +
    }
          77  +
    /// <p>The ID of the target definition in this maintenance window the invocation was performed for.</p>
          78  +
    pub fn window_target_id(&self) -> ::std::option::Option<&str> {
          79  +
        self.window_target_id.as_deref()
          80  +
    }
          81  +
}
          82  +
impl ::std::fmt::Debug for MaintenanceWindowExecutionTaskInvocationIdentity {
          83  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
          84  +
        let mut formatter = f.debug_struct("MaintenanceWindowExecutionTaskInvocationIdentity");
          85  +
        formatter.field("window_execution_id", &self.window_execution_id);
          86  +
        formatter.field("task_execution_id", &self.task_execution_id);
          87  +
        formatter.field("invocation_id", &self.invocation_id);
          88  +
        formatter.field("execution_id", &self.execution_id);
          89  +
        formatter.field("task_type", &self.task_type);
          90  +
        formatter.field("parameters", &"*** Sensitive Data Redacted ***");
          91  +
        formatter.field("status", &self.status);
          92  +
        formatter.field("status_details", &self.status_details);
          93  +
        formatter.field("start_time", &self.start_time);
          94  +
        formatter.field("end_time", &self.end_time);
          95  +
        formatter.field("owner_information", &"*** Sensitive Data Redacted ***");
          96  +
        formatter.field("window_target_id", &self.window_target_id);
          97  +
        formatter.finish()
          98  +
    }
          99  +
}
         100  +
static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_WINDOW_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> =
         101  +
    ::aws_smithy_schema::Schema::new_member(
         102  +
        ::aws_smithy_schema::ShapeId::from_parts(
         103  +
            "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$WindowExecutionId",
         104  +
            "com.amazonaws.ssm",
         105  +
            "MaintenanceWindowExecutionTaskInvocationIdentity",
         106  +
        ),
         107  +
        ::aws_smithy_schema::ShapeType::String,
         108  +
        "WindowExecutionId",
         109  +
        0,
         110  +
    );
         111  +
static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_TASK_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> =
         112  +
    ::aws_smithy_schema::Schema::new_member(
         113  +
        ::aws_smithy_schema::ShapeId::from_parts(
         114  +
            "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$TaskExecutionId",
         115  +
            "com.amazonaws.ssm",
         116  +
            "MaintenanceWindowExecutionTaskInvocationIdentity",
         117  +
        ),
         118  +
        ::aws_smithy_schema::ShapeType::String,
         119  +
        "TaskExecutionId",
         120  +
        1,
         121  +
    );
         122  +
static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_INVOCATION_ID: ::aws_smithy_schema::Schema<'static> =
         123  +
    ::aws_smithy_schema::Schema::new_member(
         124  +
        ::aws_smithy_schema::ShapeId::from_parts(
         125  +
            "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$InvocationId",
         126  +
            "com.amazonaws.ssm",
         127  +
            "MaintenanceWindowExecutionTaskInvocationIdentity",
         128  +
        ),
         129  +
        ::aws_smithy_schema::ShapeType::String,
         130  +
        "InvocationId",
         131  +
        2,
         132  +
    );
         133  +
static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> =
         134  +
    ::aws_smithy_schema::Schema::new_member(
         135  +
        ::aws_smithy_schema::ShapeId::from_parts(
         136  +
            "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$ExecutionId",
         137  +
            "com.amazonaws.ssm",
         138  +
            "MaintenanceWindowExecutionTaskInvocationIdentity",
         139  +
        ),
         140  +
        ::aws_smithy_schema::ShapeType::String,
         141  +
        "ExecutionId",
         142  +
        3,
         143  +
    );
         144  +
static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_TASK_TYPE: ::aws_smithy_schema::Schema<'static> =
         145  +
    ::aws_smithy_schema::Schema::new_member(
         146  +
        ::aws_smithy_schema::ShapeId::from_parts(
         147  +
            "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$TaskType",
         148  +
            "com.amazonaws.ssm",
         149  +
            "MaintenanceWindowExecutionTaskInvocationIdentity",
         150  +
        ),
         151  +
        ::aws_smithy_schema::ShapeType::String,
         152  +
        "TaskType",
         153  +
        4,
         154  +
    );
         155  +
static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_PARAMETERS: ::aws_smithy_schema::Schema<'static> =
         156  +
    ::aws_smithy_schema::Schema::new_member(
         157  +
        ::aws_smithy_schema::ShapeId::from_parts(
         158  +
            "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$Parameters",
         159  +
            "com.amazonaws.ssm",
         160  +
            "MaintenanceWindowExecutionTaskInvocationIdentity",
         161  +
        ),
         162  +
        ::aws_smithy_schema::ShapeType::String,
         163  +
        "Parameters",
         164  +
        5,
         165  +
    );
         166  +
static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_STATUS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         167  +
    ::aws_smithy_schema::ShapeId::from_parts(
         168  +
        "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$Status",
         169  +
        "com.amazonaws.ssm",
         170  +
        "MaintenanceWindowExecutionTaskInvocationIdentity",
         171  +
    ),
         172  +
    ::aws_smithy_schema::ShapeType::String,
         173  +
    "Status",
         174  +
    6,
         175  +
);
         176  +
static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_STATUS_DETAILS: ::aws_smithy_schema::Schema<'static> =
         177  +
    ::aws_smithy_schema::Schema::new_member(
         178  +
        ::aws_smithy_schema::ShapeId::from_parts(
         179  +
            "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$StatusDetails",
         180  +
            "com.amazonaws.ssm",
         181  +
            "MaintenanceWindowExecutionTaskInvocationIdentity",
         182  +
        ),
         183  +
        ::aws_smithy_schema::ShapeType::String,
         184  +
        "StatusDetails",
         185  +
        7,
         186  +
    );
         187  +
static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_START_TIME: ::aws_smithy_schema::Schema<'static> =
         188  +
    ::aws_smithy_schema::Schema::new_member(
         189  +
        ::aws_smithy_schema::ShapeId::from_parts(
         190  +
            "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$StartTime",
         191  +
            "com.amazonaws.ssm",
         192  +
            "MaintenanceWindowExecutionTaskInvocationIdentity",
         193  +
        ),
         194  +
        ::aws_smithy_schema::ShapeType::Timestamp,
         195  +
        "StartTime",
         196  +
        8,
         197  +
    );
         198  +
static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_END_TIME: ::aws_smithy_schema::Schema<'static> =
         199  +
    ::aws_smithy_schema::Schema::new_member(
         200  +
        ::aws_smithy_schema::ShapeId::from_parts(
         201  +
            "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$EndTime",
         202  +
            "com.amazonaws.ssm",
         203  +
            "MaintenanceWindowExecutionTaskInvocationIdentity",
         204  +
        ),
         205  +
        ::aws_smithy_schema::ShapeType::Timestamp,
         206  +
        "EndTime",
         207  +
        9,
         208  +
    );
         209  +
static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_OWNER_INFORMATION: ::aws_smithy_schema::Schema<'static> =
         210  +
    ::aws_smithy_schema::Schema::new_member(
         211  +
        ::aws_smithy_schema::ShapeId::from_parts(
         212  +
            "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$OwnerInformation",
         213  +
            "com.amazonaws.ssm",
         214  +
            "MaintenanceWindowExecutionTaskInvocationIdentity",
         215  +
        ),
         216  +
        ::aws_smithy_schema::ShapeType::String,
         217  +
        "OwnerInformation",
         218  +
        10,
         219  +
    );
         220  +
static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_WINDOW_TARGET_ID: ::aws_smithy_schema::Schema<'static> =
         221  +
    ::aws_smithy_schema::Schema::new_member(
         222  +
        ::aws_smithy_schema::ShapeId::from_parts(
         223  +
            "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$WindowTargetId",
         224  +
            "com.amazonaws.ssm",
         225  +
            "MaintenanceWindowExecutionTaskInvocationIdentity",
         226  +
        ),
         227  +
        ::aws_smithy_schema::ShapeType::String,
         228  +
        "WindowTargetId",
         229  +
        11,
         230  +
    );
         231  +
static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
         232  +
    ::aws_smithy_schema::ShapeId::from_parts(
         233  +
        "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity",
         234  +
        "com.amazonaws.ssm",
         235  +
        "MaintenanceWindowExecutionTaskInvocationIdentity",
         236  +
    ),
         237  +
    ::aws_smithy_schema::ShapeType::Structure,
         238  +
    &[
         239  +
        &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_WINDOW_EXECUTION_ID,
         240  +
        &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_TASK_EXECUTION_ID,
         241  +
        &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_INVOCATION_ID,
         242  +
        &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_EXECUTION_ID,
         243  +
        &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_TASK_TYPE,
         244  +
        &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_PARAMETERS,
         245  +
        &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_STATUS,
         246  +
        &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_STATUS_DETAILS,
         247  +
        &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_START_TIME,
         248  +
        &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_END_TIME,
         249  +
        &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_OWNER_INFORMATION,
         250  +
        &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_WINDOW_TARGET_ID,
         251  +
    ],
         252  +
);
         253  +
impl MaintenanceWindowExecutionTaskInvocationIdentity {
         254  +
    /// The schema for this shape.
         255  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_SCHEMA;
         256  +
}
         257  +
impl ::aws_smithy_schema::serde::SerializableStruct for MaintenanceWindowExecutionTaskInvocationIdentity {
         258  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
         259  +
    fn serialize_members(
         260  +
        &self,
         261  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
         262  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
         263  +
        if let Some(ref val) = self.window_execution_id {
         264  +
            ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_WINDOW_EXECUTION_ID, val)?;
         265  +
        }
         266  +
        if let Some(ref val) = self.task_execution_id {
         267  +
            ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_TASK_EXECUTION_ID, val)?;
         268  +
        }
         269  +
        if let Some(ref val) = self.invocation_id {
         270  +
            ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_INVOCATION_ID, val)?;
         271  +
        }
         272  +
        if let Some(ref val) = self.execution_id {
         273  +
            ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_EXECUTION_ID, val)?;
         274  +
        }
         275  +
        if let Some(ref val) = self.task_type {
         276  +
            ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_TASK_TYPE, val.as_str())?;
         277  +
        }
         278  +
        if let Some(ref val) = self.parameters {
         279  +
            ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_PARAMETERS, val)?;
         280  +
        }
         281  +
        if let Some(ref val) = self.status {
         282  +
            ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_STATUS, val.as_str())?;
         283  +
        }
         284  +
        if let Some(ref val) = self.status_details {
         285  +
            ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_STATUS_DETAILS, val)?;
         286  +
        }
         287  +
        if let Some(ref val) = self.start_time {
         288  +
            ser.write_timestamp(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_START_TIME, val)?;
         289  +
        }
         290  +
        if let Some(ref val) = self.end_time {
         291  +
            ser.write_timestamp(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_END_TIME, val)?;
         292  +
        }
         293  +
        if let Some(ref val) = self.owner_information {
         294  +
            ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_OWNER_INFORMATION, val)?;
         295  +
        }
         296  +
        if let Some(ref val) = self.window_target_id {
         297  +
            ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_WINDOW_TARGET_ID, val)?;
         298  +
        }
         299  +
        Ok(())
         300  +
    }
         301  +
}
         302  +
impl MaintenanceWindowExecutionTaskInvocationIdentity {
         303  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         304  +
    pub fn deserialize(
         305  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         306  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         307  +
        #[allow(unused_variables, unused_mut)]
         308  +
        let mut builder = Self::builder();
         309  +
        #[allow(
         310  +
            unused_variables,
         311  +
            unreachable_code,
         312  +
            clippy::single_match,
         313  +
            clippy::match_single_binding,
         314  +
            clippy::diverging_sub_expression
         315  +
        )]
         316  +
        deserializer.read_struct(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_SCHEMA, &mut |member, deser| {
         317  +
            match member.member_index() {
         318  +
                Some(0) => {
         319  +
                    if deser.is_null() {
         320  +
                        deser.read_null()?;
         321  +
                    } else {
         322  +
                        builder.window_execution_id = Some(deser.read_string(member)?);
         323  +
                    }
         324  +
                }
         325  +
                Some(1) => {
         326  +
                    if deser.is_null() {
         327  +
                        deser.read_null()?;
         328  +
                    } else {
         329  +
                        builder.task_execution_id = Some(deser.read_string(member)?);
         330  +
                    }
         331  +
                }
         332  +
                Some(2) => {
         333  +
                    if deser.is_null() {
         334  +
                        deser.read_null()?;
         335  +
                    } else {
         336  +
                        builder.invocation_id = Some(deser.read_string(member)?);
         337  +
                    }
         338  +
                }
         339  +
                Some(3) => {
         340  +
                    if deser.is_null() {
         341  +
                        deser.read_null()?;
         342  +
                    } else {
         343  +
                        builder.execution_id = Some(deser.read_string(member)?);
         344  +
                    }
         345  +
                }
         346  +
                Some(4) => {
         347  +
                    if deser.is_null() {
         348  +
                        deser.read_null()?;
         349  +
                    } else {
         350  +
                        builder.task_type = Some(crate::types::MaintenanceWindowTaskType::from(deser.read_string(member)?.as_str()));
         351  +
                    }
         352  +
                }
         353  +
                Some(5) => {
         354  +
                    if deser.is_null() {
         355  +
                        deser.read_null()?;
         356  +
                    } else {
         357  +
                        builder.parameters = Some(deser.read_string(member)?);
         358  +
                    }
         359  +
                }
         360  +
                Some(6) => {
         361  +
                    if deser.is_null() {
         362  +
                        deser.read_null()?;
         363  +
                    } else {
         364  +
                        builder.status = Some(crate::types::MaintenanceWindowExecutionStatus::from(deser.read_string(member)?.as_str()));
         365  +
                    }
         366  +
                }
         367  +
                Some(7) => {
         368  +
                    if deser.is_null() {
         369  +
                        deser.read_null()?;
         370  +
                    } else {
         371  +
                        builder.status_details = Some(deser.read_string(member)?);
         372  +
                    }
         373  +
                }
         374  +
                Some(8) => {
         375  +
                    if deser.is_null() {
         376  +
                        deser.read_null()?;
         377  +
                    } else {
         378  +
                        builder.start_time = Some(deser.read_timestamp(member)?);
         379  +
                    }
         380  +
                }
         381  +
                Some(9) => {
         382  +
                    if deser.is_null() {
         383  +
                        deser.read_null()?;
         384  +
                    } else {
         385  +
                        builder.end_time = Some(deser.read_timestamp(member)?);
         386  +
                    }
         387  +
                }
         388  +
                Some(10) => {
         389  +
                    if deser.is_null() {
         390  +
                        deser.read_null()?;
         391  +
                    } else {
         392  +
                        builder.owner_information = Some(deser.read_string(member)?);
         393  +
                    }
         394  +
                }
         395  +
                Some(11) => {
         396  +
                    if deser.is_null() {
         397  +
                        deser.read_null()?;
         398  +
                    } else {
         399  +
                        builder.window_target_id = Some(deser.read_string(member)?);
         400  +
                    }
         401  +
                }
         402  +
                _ => {}
         403  +
            }
         404  +
            Ok(())
         405  +
        })?;
         406  +
        Ok(builder.build())
         407  +
    }
         408  +
}
         409  +
impl MaintenanceWindowExecutionTaskInvocationIdentity {
         410  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         411  +
    pub fn deserialize_with_response(
         412  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         413  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         414  +
        _status: u16,
         415  +
        _body: &[u8],
         416  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         417  +
        Self::deserialize(deserializer)
         418  +
    }
         419  +
}
         420  +
impl MaintenanceWindowExecutionTaskInvocationIdentity {
         421  +
    /// Creates a new builder-style object to manufacture [`MaintenanceWindowExecutionTaskInvocationIdentity`](crate::types::MaintenanceWindowExecutionTaskInvocationIdentity).
         422  +
    pub fn builder() -> crate::types::builders::MaintenanceWindowExecutionTaskInvocationIdentityBuilder {
         423  +
        crate::types::builders::MaintenanceWindowExecutionTaskInvocationIdentityBuilder::default()
         424  +
    }
         425  +
}
         426  +
         427  +
/// A builder for [`MaintenanceWindowExecutionTaskInvocationIdentity`](crate::types::MaintenanceWindowExecutionTaskInvocationIdentity).
         428  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
         429  +
#[non_exhaustive]
         430  +
pub struct MaintenanceWindowExecutionTaskInvocationIdentityBuilder {
         431  +
    pub(crate) window_execution_id: ::std::option::Option<::std::string::String>,
         432  +
    pub(crate) task_execution_id: ::std::option::Option<::std::string::String>,
         433  +
    pub(crate) invocation_id: ::std::option::Option<::std::string::String>,
         434  +
    pub(crate) execution_id: ::std::option::Option<::std::string::String>,
         435  +
    pub(crate) task_type: ::std::option::Option<crate::types::MaintenanceWindowTaskType>,
         436  +
    pub(crate) parameters: ::std::option::Option<::std::string::String>,
         437  +
    pub(crate) status: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>,
         438  +
    pub(crate) status_details: ::std::option::Option<::std::string::String>,
         439  +
    pub(crate) start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
         440  +
    pub(crate) end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
         441  +
    pub(crate) owner_information: ::std::option::Option<::std::string::String>,
         442  +
    pub(crate) window_target_id: ::std::option::Option<::std::string::String>,
         443  +
}
         444  +
impl MaintenanceWindowExecutionTaskInvocationIdentityBuilder {
         445  +
    /// <p>The ID of the maintenance window execution that ran the task.</p>
         446  +
    pub fn window_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         447  +
        self.window_execution_id = ::std::option::Option::Some(input.into());
         448  +
        self
         449  +
    }
         450  +
    /// <p>The ID of the maintenance window execution that ran the task.</p>
         451  +
    pub fn set_window_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         452  +
        self.window_execution_id = input;
         453  +
        self
         454  +
    }
         455  +
    /// <p>The ID of the maintenance window execution that ran the task.</p>
         456  +
    pub fn get_window_execution_id(&self) -> &::std::option::Option<::std::string::String> {
         457  +
        &self.window_execution_id
         458  +
    }
         459  +
    /// <p>The ID of the specific task execution in the maintenance window execution.</p>
         460  +
    pub fn task_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         461  +
        self.task_execution_id = ::std::option::Option::Some(input.into());
         462  +
        self
         463  +
    }
         464  +
    /// <p>The ID of the specific task execution in the maintenance window execution.</p>
         465  +
    pub fn set_task_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         466  +
        self.task_execution_id = input;
         467  +
        self
         468  +
    }
         469  +
    /// <p>The ID of the specific task execution in the maintenance window execution.</p>
         470  +
    pub fn get_task_execution_id(&self) -> &::std::option::Option<::std::string::String> {
         471  +
        &self.task_execution_id
         472  +
    }
         473  +
    /// <p>The ID of the task invocation.</p>
         474  +
    pub fn invocation_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         475  +
        self.invocation_id = ::std::option::Option::Some(input.into());
         476  +
        self
         477  +
    }
         478  +
    /// <p>The ID of the task invocation.</p>
         479  +
    pub fn set_invocation_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         480  +
        self.invocation_id = input;
         481  +
        self
         482  +
    }
         483  +
    /// <p>The ID of the task invocation.</p>
         484  +
    pub fn get_invocation_id(&self) -> &::std::option::Option<::std::string::String> {
         485  +
        &self.invocation_id
         486  +
    }
         487  +
    /// <p>The ID of the action performed in the service that actually handled the task invocation. If the task type is <code>RUN_COMMAND</code>, this value is the command ID.</p>
         488  +
    pub fn execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         489  +
        self.execution_id = ::std::option::Option::Some(input.into());
         490  +
        self
         491  +
    }
         492  +
    /// <p>The ID of the action performed in the service that actually handled the task invocation. If the task type is <code>RUN_COMMAND</code>, this value is the command ID.</p>
         493  +
    pub fn set_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         494  +
        self.execution_id = input;
         495  +
        self
         496  +
    }
         497  +
    /// <p>The ID of the action performed in the service that actually handled the task invocation. If the task type is <code>RUN_COMMAND</code>, this value is the command ID.</p>
         498  +
    pub fn get_execution_id(&self) -> &::std::option::Option<::std::string::String> {
         499  +
        &self.execution_id
         500  +
    }
         501  +
    /// <p>The task type.</p>
         502  +
    pub fn task_type(mut self, input: crate::types::MaintenanceWindowTaskType) -> Self {
         503  +
        self.task_type = ::std::option::Option::Some(input);
         504  +
        self
         505  +
    }
         506  +
    /// <p>The task type.</p>
         507  +
    pub fn set_task_type(mut self, input: ::std::option::Option<crate::types::MaintenanceWindowTaskType>) -> Self {
         508  +
        self.task_type = input;
         509  +
        self
         510  +
    }
         511  +
    /// <p>The task type.</p>
         512  +
    pub fn get_task_type(&self) -> &::std::option::Option<crate::types::MaintenanceWindowTaskType> {
         513  +
        &self.task_type
         514  +
    }
         515  +
    /// <p>The parameters that were provided for the invocation when it was run.</p>
         516  +
    pub fn parameters(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         517  +
        self.parameters = ::std::option::Option::Some(input.into());
         518  +
        self
         519  +
    }
         520  +
    /// <p>The parameters that were provided for the invocation when it was run.</p>
         521  +
    pub fn set_parameters(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         522  +
        self.parameters = input;
         523  +
        self
         524  +
    }
         525  +
    /// <p>The parameters that were provided for the invocation when it was run.</p>
         526  +
    pub fn get_parameters(&self) -> &::std::option::Option<::std::string::String> {
         527  +
        &self.parameters
         528  +
    }
         529  +
    /// <p>The status of the task invocation.</p>
         530  +
    pub fn status(mut self, input: crate::types::MaintenanceWindowExecutionStatus) -> Self {
         531  +
        self.status = ::std::option::Option::Some(input);
         532  +
        self
         533  +
    }
         534  +
    /// <p>The status of the task invocation.</p>
         535  +
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>) -> Self {
         536  +
        self.status = input;
         537  +
        self
         538  +
    }
         539  +
    /// <p>The status of the task invocation.</p>
         540  +
    pub fn get_status(&self) -> &::std::option::Option<crate::types::MaintenanceWindowExecutionStatus> {
         541  +
        &self.status
         542  +
    }
         543  +
    /// <p>The details explaining the status of the task invocation. Not available for all status values.</p>
         544  +
    pub fn status_details(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         545  +
        self.status_details = ::std::option::Option::Some(input.into());
         546  +
        self
         547  +
    }
         548  +
    /// <p>The details explaining the status of the task invocation. Not available for all status values.</p>
         549  +
    pub fn set_status_details(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         550  +
        self.status_details = input;
         551  +
        self
         552  +
    }
         553  +
    /// <p>The details explaining the status of the task invocation. Not available for all status values.</p>
         554  +
    pub fn get_status_details(&self) -> &::std::option::Option<::std::string::String> {
         555  +
        &self.status_details
         556  +
    }
         557  +
    /// <p>The time the invocation started.</p>
         558  +
    pub fn start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         559  +
        self.start_time = ::std::option::Option::Some(input);
         560  +
        self
         561  +
    }
         562  +
    /// <p>The time the invocation started.</p>
         563  +
    pub fn set_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         564  +
        self.start_time = input;
         565  +
        self
         566  +
    }
         567  +
    /// <p>The time the invocation started.</p>
         568  +
    pub fn get_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         569  +
        &self.start_time
         570  +
    }
         571  +
    /// <p>The time the invocation finished.</p>
         572  +
    pub fn end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         573  +
        self.end_time = ::std::option::Option::Some(input);
         574  +
        self
         575  +
    }
         576  +
    /// <p>The time the invocation finished.</p>
         577  +
    pub fn set_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         578  +
        self.end_time = input;
         579  +
        self
         580  +
    }
         581  +
    /// <p>The time the invocation finished.</p>
         582  +
    pub fn get_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         583  +
        &self.end_time
         584  +
    }
         585  +
    /// <p>User-provided value that was specified when the target was registered with the maintenance window. This was also included in any Amazon CloudWatch Events events raised during the task invocation.</p>
         586  +
    pub fn owner_information(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         587  +
        self.owner_information = ::std::option::Option::Some(input.into());
         588  +
        self
         589  +
    }
         590  +
    /// <p>User-provided value that was specified when the target was registered with the maintenance window. This was also included in any Amazon CloudWatch Events events raised during the task invocation.</p>
         591  +
    pub fn set_owner_information(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         592  +
        self.owner_information = input;
         593  +
        self
         594  +
    }
         595  +
    /// <p>User-provided value that was specified when the target was registered with the maintenance window. This was also included in any Amazon CloudWatch Events events raised during the task invocation.</p>
         596  +
    pub fn get_owner_information(&self) -> &::std::option::Option<::std::string::String> {
         597  +
        &self.owner_information
         598  +
    }
         599  +
    /// <p>The ID of the target definition in this maintenance window the invocation was performed for.</p>
         600  +
    pub fn window_target_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         601  +
        self.window_target_id = ::std::option::Option::Some(input.into());
         602  +
        self
         603  +
    }
         604  +
    /// <p>The ID of the target definition in this maintenance window the invocation was performed for.</p>
         605  +
    pub fn set_window_target_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         606  +
        self.window_target_id = input;
         607  +
        self
         608  +
    }
         609  +
    /// <p>The ID of the target definition in this maintenance window the invocation was performed for.</p>
         610  +
    pub fn get_window_target_id(&self) -> &::std::option::Option<::std::string::String> {
         611  +
        &self.window_target_id
         612  +
    }
         613  +
    /// Consumes the builder and constructs a [`MaintenanceWindowExecutionTaskInvocationIdentity`](crate::types::MaintenanceWindowExecutionTaskInvocationIdentity).
         614  +
    pub fn build(self) -> crate::types::MaintenanceWindowExecutionTaskInvocationIdentity {
         615  +
        crate::types::MaintenanceWindowExecutionTaskInvocationIdentity {
         616  +
            window_execution_id: self.window_execution_id,
         617  +
            task_execution_id: self.task_execution_id,
         618  +
            invocation_id: self.invocation_id,
         619  +
            execution_id: self.execution_id,
         620  +
            task_type: self.task_type,
         621  +
            parameters: self.parameters,
         622  +
            status: self.status,
         623  +
            status_details: self.status_details,
         624  +
            start_time: self.start_time,
         625  +
            end_time: self.end_time,
         626  +
            owner_information: self.owner_information,
         627  +
            window_target_id: self.window_target_id,
         628  +
        }
         629  +
    }
         630  +
}
         631  +
impl ::std::fmt::Debug for MaintenanceWindowExecutionTaskInvocationIdentityBuilder {
         632  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         633  +
        let mut formatter = f.debug_struct("MaintenanceWindowExecutionTaskInvocationIdentityBuilder");
         634  +
        formatter.field("window_execution_id", &self.window_execution_id);
         635  +
        formatter.field("task_execution_id", &self.task_execution_id);
         636  +
        formatter.field("invocation_id", &self.invocation_id);
         637  +
        formatter.field("execution_id", &self.execution_id);
         638  +
        formatter.field("task_type", &self.task_type);
         639  +
        formatter.field("parameters", &"*** Sensitive Data Redacted ***");
         640  +
        formatter.field("status", &self.status);
         641  +
        formatter.field("status_details", &self.status_details);
         642  +
        formatter.field("start_time", &self.start_time);
         643  +
        formatter.field("end_time", &self.end_time);
         644  +
        formatter.field("owner_information", &"*** Sensitive Data Redacted ***");
         645  +
        formatter.field("window_target_id", &self.window_target_id);
         646  +
        formatter.finish()
         647  +
    }
         648  +
}