AWS SDK

AWS SDK

rev. bbca34fa2eddb4be623fbbc6b6df1a2401de0029 (ignoring whitespace)

Files changed:

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

@@ -0,1 +0,139 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::get_maintenance_window_execution_task::_get_maintenance_window_execution_task_input::GetMaintenanceWindowExecutionTaskInputBuilder;
           3  +
           4  +
pub use crate::operation::get_maintenance_window_execution_task::_get_maintenance_window_execution_task_output::GetMaintenanceWindowExecutionTaskOutputBuilder;
           5  +
           6  +
impl crate::operation::get_maintenance_window_execution_task::builders::GetMaintenanceWindowExecutionTaskInputBuilder {
           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_execution_task::GetMaintenanceWindowExecutionTaskOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::get_maintenance_window_execution_task::GetMaintenanceWindowExecutionTaskError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.get_maintenance_window_execution_task();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `GetMaintenanceWindowExecutionTask`.
          24  +
///
          25  +
/// <p>Retrieves the details about a specific task run as part of a maintenance window execution.</p>
          26  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          27  +
pub struct GetMaintenanceWindowExecutionTaskFluentBuilder {
          28  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          29  +
    inner: crate::operation::get_maintenance_window_execution_task::builders::GetMaintenanceWindowExecutionTaskInputBuilder,
          30  +
    config_override: ::std::option::Option<crate::config::Builder>,
          31  +
}
          32  +
impl
          33  +
    crate::client::customize::internal::CustomizableSend<
          34  +
        crate::operation::get_maintenance_window_execution_task::GetMaintenanceWindowExecutionTaskOutput,
          35  +
        crate::operation::get_maintenance_window_execution_task::GetMaintenanceWindowExecutionTaskError,
          36  +
    > for GetMaintenanceWindowExecutionTaskFluentBuilder
          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_execution_task::GetMaintenanceWindowExecutionTaskOutput,
          44  +
            crate::operation::get_maintenance_window_execution_task::GetMaintenanceWindowExecutionTaskError,
          45  +
        >,
          46  +
    > {
          47  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          48  +
    }
          49  +
}
          50  +
impl GetMaintenanceWindowExecutionTaskFluentBuilder {
          51  +
    /// Creates a new `GetMaintenanceWindowExecutionTaskFluentBuilder`.
          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 GetMaintenanceWindowExecutionTask as a reference.
          60  +
    pub fn as_input(&self) -> &crate::operation::get_maintenance_window_execution_task::builders::GetMaintenanceWindowExecutionTaskInputBuilder {
          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_execution_task::GetMaintenanceWindowExecutionTaskOutput,
          75  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          76  +
            crate::operation::get_maintenance_window_execution_task::GetMaintenanceWindowExecutionTaskError,
          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_execution_task::GetMaintenanceWindowExecutionTask::operation_runtime_plugins(
          85  +
            self.handle.runtime_plugins.clone(),
          86  +
            &self.handle.conf,
          87  +
            self.config_override,
          88  +
        );
          89  +
        crate::operation::get_maintenance_window_execution_task::GetMaintenanceWindowExecutionTask::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_execution_task::GetMaintenanceWindowExecutionTaskOutput,
          97  +
        crate::operation::get_maintenance_window_execution_task::GetMaintenanceWindowExecutionTaskError,
          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 execution that includes the task.</p>
         112  +
    pub fn window_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         113  +
        self.inner = self.inner.window_execution_id(input.into());
         114  +
        self
         115  +
    }
         116  +
    /// <p>The ID of the maintenance window execution that includes the task.</p>
         117  +
    pub fn set_window_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         118  +
        self.inner = self.inner.set_window_execution_id(input);
         119  +
        self
         120  +
    }
         121  +
    /// <p>The ID of the maintenance window execution that includes the task.</p>
         122  +
    pub fn get_window_execution_id(&self) -> &::std::option::Option<::std::string::String> {
         123  +
        self.inner.get_window_execution_id()
         124  +
    }
         125  +
    /// <p>The ID of the specific task execution in the maintenance window task that should be retrieved.</p>
         126  +
    pub fn task_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         127  +
        self.inner = self.inner.task_id(input.into());
         128  +
        self
         129  +
    }
         130  +
    /// <p>The ID of the specific task execution in the maintenance window task that should be retrieved.</p>
         131  +
    pub fn set_task_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         132  +
        self.inner = self.inner.set_task_id(input);
         133  +
        self
         134  +
    }
         135  +
    /// <p>The ID of the specific task execution in the maintenance window task that should be retrieved.</p>
         136  +
    pub fn get_task_id(&self) -> &::std::option::Option<::std::string::String> {
         137  +
        self.inner.get_task_id()
         138  +
    }
         139  +
}

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

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

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

@@ -0,1 +0,233 @@
           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, ::std::fmt::Debug)]
           5  +
pub struct GetMaintenanceWindowExecutionTaskInvocationInput {
           6  +
    /// <p>The ID of the maintenance window execution for which the task is a part.</p>
           7  +
    pub window_execution_id: ::std::option::Option<::std::string::String>,
           8  +
    /// <p>The ID of the specific task in the maintenance window task that should be retrieved.</p>
           9  +
    pub task_id: ::std::option::Option<::std::string::String>,
          10  +
    /// <p>The invocation ID to retrieve.</p>
          11  +
    pub invocation_id: ::std::option::Option<::std::string::String>,
          12  +
}
          13  +
impl GetMaintenanceWindowExecutionTaskInvocationInput {
          14  +
    /// <p>The ID of the maintenance window execution for which the task is a part.</p>
          15  +
    pub fn window_execution_id(&self) -> ::std::option::Option<&str> {
          16  +
        self.window_execution_id.as_deref()
          17  +
    }
          18  +
    /// <p>The ID of the specific task in the maintenance window task that should be retrieved.</p>
          19  +
    pub fn task_id(&self) -> ::std::option::Option<&str> {
          20  +
        self.task_id.as_deref()
          21  +
    }
          22  +
    /// <p>The invocation ID to retrieve.</p>
          23  +
    pub fn invocation_id(&self) -> ::std::option::Option<&str> {
          24  +
        self.invocation_id.as_deref()
          25  +
    }
          26  +
}
          27  +
static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONINPUT_MEMBER_WINDOW_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> =
          28  +
    ::aws_smithy_schema::Schema::new_member(
          29  +
        ::aws_smithy_schema::ShapeId::from_parts(
          30  +
            "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationInput$WindowExecutionId",
          31  +
            "com.amazonaws.ssm.synthetic",
          32  +
            "GetMaintenanceWindowExecutionTaskInvocationInput",
          33  +
        ),
          34  +
        ::aws_smithy_schema::ShapeType::String,
          35  +
        "WindowExecutionId",
          36  +
        0,
          37  +
    );
          38  +
static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONINPUT_MEMBER_TASK_ID: ::aws_smithy_schema::Schema<'static> =
          39  +
    ::aws_smithy_schema::Schema::new_member(
          40  +
        ::aws_smithy_schema::ShapeId::from_parts(
          41  +
            "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationInput$TaskId",
          42  +
            "com.amazonaws.ssm.synthetic",
          43  +
            "GetMaintenanceWindowExecutionTaskInvocationInput",
          44  +
        ),
          45  +
        ::aws_smithy_schema::ShapeType::String,
          46  +
        "TaskId",
          47  +
        1,
          48  +
    );
          49  +
static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONINPUT_MEMBER_INVOCATION_ID: ::aws_smithy_schema::Schema<'static> =
          50  +
    ::aws_smithy_schema::Schema::new_member(
          51  +
        ::aws_smithy_schema::ShapeId::from_parts(
          52  +
            "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationInput$InvocationId",
          53  +
            "com.amazonaws.ssm.synthetic",
          54  +
            "GetMaintenanceWindowExecutionTaskInvocationInput",
          55  +
        ),
          56  +
        ::aws_smithy_schema::ShapeType::String,
          57  +
        "InvocationId",
          58  +
        2,
          59  +
    );
          60  +
static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          61  +
    ::aws_smithy_schema::ShapeId::from_parts(
          62  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationInput",
          63  +
        "com.amazonaws.ssm.synthetic",
          64  +
        "GetMaintenanceWindowExecutionTaskInvocationInput",
          65  +
    ),
          66  +
    ::aws_smithy_schema::ShapeType::Structure,
          67  +
    &[
          68  +
        &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONINPUT_MEMBER_WINDOW_EXECUTION_ID,
          69  +
        &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONINPUT_MEMBER_TASK_ID,
          70  +
        &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONINPUT_MEMBER_INVOCATION_ID,
          71  +
    ],
          72  +
)
          73  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
          74  +
.with_original_name("GetMaintenanceWindowExecutionTaskInvocationRequest");
          75  +
impl GetMaintenanceWindowExecutionTaskInvocationInput {
          76  +
    /// The schema for this shape.
          77  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONINPUT_SCHEMA;
          78  +
}
          79  +
impl ::aws_smithy_schema::serde::SerializableStruct for GetMaintenanceWindowExecutionTaskInvocationInput {
          80  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          81  +
    fn serialize_members(
          82  +
        &self,
          83  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          84  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          85  +
        if let Some(ref val) = self.window_execution_id {
          86  +
            ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONINPUT_MEMBER_WINDOW_EXECUTION_ID, val)?;
          87  +
        }
          88  +
        if let Some(ref val) = self.task_id {
          89  +
            ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONINPUT_MEMBER_TASK_ID, val)?;
          90  +
        }
          91  +
        if let Some(ref val) = self.invocation_id {
          92  +
            ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONINPUT_MEMBER_INVOCATION_ID, val)?;
          93  +
        }
          94  +
        Ok(())
          95  +
    }
          96  +
}
          97  +
impl GetMaintenanceWindowExecutionTaskInvocationInput {
          98  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          99  +
    pub fn deserialize(
         100  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         101  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         102  +
        #[allow(unused_variables, unused_mut)]
         103  +
        let mut builder = Self::builder();
         104  +
        #[allow(
         105  +
            unused_variables,
         106  +
            unreachable_code,
         107  +
            clippy::single_match,
         108  +
            clippy::match_single_binding,
         109  +
            clippy::diverging_sub_expression
         110  +
        )]
         111  +
        deserializer.read_struct(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONINPUT_SCHEMA, &mut |member, deser| {
         112  +
            match member.member_index() {
         113  +
                Some(0) => {
         114  +
                    if deser.is_null() {
         115  +
                        deser.read_null()?;
         116  +
                    } else {
         117  +
                        builder.window_execution_id = Some(deser.read_string(member)?);
         118  +
                    }
         119  +
                }
         120  +
                Some(1) => {
         121  +
                    if deser.is_null() {
         122  +
                        deser.read_null()?;
         123  +
                    } else {
         124  +
                        builder.task_id = Some(deser.read_string(member)?);
         125  +
                    }
         126  +
                }
         127  +
                Some(2) => {
         128  +
                    if deser.is_null() {
         129  +
                        deser.read_null()?;
         130  +
                    } else {
         131  +
                        builder.invocation_id = Some(deser.read_string(member)?);
         132  +
                    }
         133  +
                }
         134  +
                _ => {}
         135  +
            }
         136  +
            Ok(())
         137  +
        })?;
         138  +
        builder.window_execution_id = builder.window_execution_id.or(Some(String::new()));
         139  +
        builder.task_id = builder.task_id.or(Some(String::new()));
         140  +
        builder.invocation_id = builder.invocation_id.or(Some(String::new()));
         141  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
         142  +
    }
         143  +
}
         144  +
impl GetMaintenanceWindowExecutionTaskInvocationInput {
         145  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         146  +
    pub fn deserialize_with_response(
         147  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         148  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         149  +
        _status: u16,
         150  +
        _body: &[u8],
         151  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         152  +
        Self::deserialize(deserializer)
         153  +
    }
         154  +
}
         155  +
impl GetMaintenanceWindowExecutionTaskInvocationInput {
         156  +
    /// Creates a new builder-style object to manufacture [`GetMaintenanceWindowExecutionTaskInvocationInput`](crate::operation::get_maintenance_window_execution_task_invocation::GetMaintenanceWindowExecutionTaskInvocationInput).
         157  +
    pub fn builder(
         158  +
    ) -> crate::operation::get_maintenance_window_execution_task_invocation::builders::GetMaintenanceWindowExecutionTaskInvocationInputBuilder {
         159  +
        crate::operation::get_maintenance_window_execution_task_invocation::builders::GetMaintenanceWindowExecutionTaskInvocationInputBuilder::default(
         160  +
        )
         161  +
    }
         162  +
}
         163  +
         164  +
/// A builder for [`GetMaintenanceWindowExecutionTaskInvocationInput`](crate::operation::get_maintenance_window_execution_task_invocation::GetMaintenanceWindowExecutionTaskInvocationInput).
         165  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         166  +
#[non_exhaustive]
         167  +
pub struct GetMaintenanceWindowExecutionTaskInvocationInputBuilder {
         168  +
    pub(crate) window_execution_id: ::std::option::Option<::std::string::String>,
         169  +
    pub(crate) task_id: ::std::option::Option<::std::string::String>,
         170  +
    pub(crate) invocation_id: ::std::option::Option<::std::string::String>,
         171  +
}
         172  +
impl GetMaintenanceWindowExecutionTaskInvocationInputBuilder {
         173  +
    /// <p>The ID of the maintenance window execution for which the task is a part.</p>
         174  +
    /// This field is required.
         175  +
    pub fn window_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         176  +
        self.window_execution_id = ::std::option::Option::Some(input.into());
         177  +
        self
         178  +
    }
         179  +
    /// <p>The ID of the maintenance window execution for which the task is a part.</p>
         180  +
    pub fn set_window_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         181  +
        self.window_execution_id = input;
         182  +
        self
         183  +
    }
         184  +
    /// <p>The ID of the maintenance window execution for which the task is a part.</p>
         185  +
    pub fn get_window_execution_id(&self) -> &::std::option::Option<::std::string::String> {
         186  +
        &self.window_execution_id
         187  +
    }
         188  +
    /// <p>The ID of the specific task in the maintenance window task that should be retrieved.</p>
         189  +
    /// This field is required.
         190  +
    pub fn task_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         191  +
        self.task_id = ::std::option::Option::Some(input.into());
         192  +
        self
         193  +
    }
         194  +
    /// <p>The ID of the specific task in the maintenance window task that should be retrieved.</p>
         195  +
    pub fn set_task_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         196  +
        self.task_id = input;
         197  +
        self
         198  +
    }
         199  +
    /// <p>The ID of the specific task in the maintenance window task that should be retrieved.</p>
         200  +
    pub fn get_task_id(&self) -> &::std::option::Option<::std::string::String> {
         201  +
        &self.task_id
         202  +
    }
         203  +
    /// <p>The invocation ID to retrieve.</p>
         204  +
    /// This field is required.
         205  +
    pub fn invocation_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         206  +
        self.invocation_id = ::std::option::Option::Some(input.into());
         207  +
        self
         208  +
    }
         209  +
    /// <p>The invocation ID to retrieve.</p>
         210  +
    pub fn set_invocation_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         211  +
        self.invocation_id = input;
         212  +
        self
         213  +
    }
         214  +
    /// <p>The invocation ID to retrieve.</p>
         215  +
    pub fn get_invocation_id(&self) -> &::std::option::Option<::std::string::String> {
         216  +
        &self.invocation_id
         217  +
    }
         218  +
    /// Consumes the builder and constructs a [`GetMaintenanceWindowExecutionTaskInvocationInput`](crate::operation::get_maintenance_window_execution_task_invocation::GetMaintenanceWindowExecutionTaskInvocationInput).
         219  +
    pub fn build(
         220  +
        self,
         221  +
    ) -> ::std::result::Result<
         222  +
        crate::operation::get_maintenance_window_execution_task_invocation::GetMaintenanceWindowExecutionTaskInvocationInput,
         223  +
        ::aws_smithy_types::error::operation::BuildError,
         224  +
    > {
         225  +
        ::std::result::Result::Ok(
         226  +
            crate::operation::get_maintenance_window_execution_task_invocation::GetMaintenanceWindowExecutionTaskInvocationInput {
         227  +
                window_execution_id: self.window_execution_id,
         228  +
                task_id: self.task_id,
         229  +
                invocation_id: self.invocation_id,
         230  +
            },
         231  +
        )
         232  +
    }
         233  +
}

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

@@ -0,1 +0,744 @@
           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 GetMaintenanceWindowExecutionTaskInvocationOutput {
           6  +
    /// <p>The maintenance window execution ID.</p>
           7  +
    pub window_execution_id: ::std::option::Option<::std::string::String>,
           8  +
    /// <p>The task execution ID.</p>
           9  +
    pub task_execution_id: ::std::option::Option<::std::string::String>,
          10  +
    /// <p>The invocation ID.</p>
          11  +
    pub invocation_id: ::std::option::Option<::std::string::String>,
          12  +
    /// <p>The execution ID.</p>
          13  +
    pub execution_id: ::std::option::Option<::std::string::String>,
          14  +
    /// <p>Retrieves the task type for a maintenance window.</p>
          15  +
    pub task_type: ::std::option::Option<crate::types::MaintenanceWindowTaskType>,
          16  +
    /// <p>The parameters used at the time that the task ran.</p>
          17  +
    pub parameters: ::std::option::Option<::std::string::String>,
          18  +
    /// <p>The task status for an invocation.</p>
          19  +
    pub status: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>,
          20  +
    /// <p>The details explaining the status. Details are only available for certain status values.</p>
          21  +
    pub status_details: ::std::option::Option<::std::string::String>,
          22  +
    /// <p>The time that the task started running on the target.</p>
          23  +
    pub start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
          24  +
    /// <p>The time that the task finished running on the target.</p>
          25  +
    pub end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
          26  +
    /// <p>User-provided value to be included in any Amazon CloudWatch Events or Amazon EventBridge events raised while running tasks for these targets in this maintenance window.</p>
          27  +
    pub owner_information: ::std::option::Option<::std::string::String>,
          28  +
    /// <p>The maintenance window target ID.</p>
          29  +
    pub window_target_id: ::std::option::Option<::std::string::String>,
          30  +
    _request_id: Option<String>,
          31  +
}
          32  +
impl GetMaintenanceWindowExecutionTaskInvocationOutput {
          33  +
    /// <p>The maintenance window execution ID.</p>
          34  +
    pub fn window_execution_id(&self) -> ::std::option::Option<&str> {
          35  +
        self.window_execution_id.as_deref()
          36  +
    }
          37  +
    /// <p>The task execution ID.</p>
          38  +
    pub fn task_execution_id(&self) -> ::std::option::Option<&str> {
          39  +
        self.task_execution_id.as_deref()
          40  +
    }
          41  +
    /// <p>The invocation ID.</p>
          42  +
    pub fn invocation_id(&self) -> ::std::option::Option<&str> {
          43  +
        self.invocation_id.as_deref()
          44  +
    }
          45  +
    /// <p>The execution ID.</p>
          46  +
    pub fn execution_id(&self) -> ::std::option::Option<&str> {
          47  +
        self.execution_id.as_deref()
          48  +
    }
          49  +
    /// <p>Retrieves the task type for a maintenance window.</p>
          50  +
    pub fn task_type(&self) -> ::std::option::Option<&crate::types::MaintenanceWindowTaskType> {
          51  +
        self.task_type.as_ref()
          52  +
    }
          53  +
    /// <p>The parameters used at the time that the task ran.</p>
          54  +
    pub fn parameters(&self) -> ::std::option::Option<&str> {
          55  +
        self.parameters.as_deref()
          56  +
    }
          57  +
    /// <p>The task status for an 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. Details are only available for certain status values.</p>
          62  +
    pub fn status_details(&self) -> ::std::option::Option<&str> {
          63  +
        self.status_details.as_deref()
          64  +
    }
          65  +
    /// <p>The time that the task started running on the target.</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 that the task finished running on the target.</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 to be included in any Amazon CloudWatch Events or Amazon EventBridge events raised while running tasks for these targets in this maintenance window.</p>
          74  +
    pub fn owner_information(&self) -> ::std::option::Option<&str> {
          75  +
        self.owner_information.as_deref()
          76  +
    }
          77  +
    /// <p>The maintenance window target ID.</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 GetMaintenanceWindowExecutionTaskInvocationOutput {
          83  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
          84  +
        let mut formatter = f.debug_struct("GetMaintenanceWindowExecutionTaskInvocationOutput");
          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.field("_request_id", &self._request_id);
          98  +
        formatter.finish()
          99  +
    }
         100  +
}
         101  +
static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_WINDOW_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> =
         102  +
    ::aws_smithy_schema::Schema::new_member(
         103  +
        ::aws_smithy_schema::ShapeId::from_parts(
         104  +
            "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$WindowExecutionId",
         105  +
            "com.amazonaws.ssm.synthetic",
         106  +
            "GetMaintenanceWindowExecutionTaskInvocationOutput",
         107  +
        ),
         108  +
        ::aws_smithy_schema::ShapeType::String,
         109  +
        "WindowExecutionId",
         110  +
        0,
         111  +
    );
         112  +
static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_TASK_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> =
         113  +
    ::aws_smithy_schema::Schema::new_member(
         114  +
        ::aws_smithy_schema::ShapeId::from_parts(
         115  +
            "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$TaskExecutionId",
         116  +
            "com.amazonaws.ssm.synthetic",
         117  +
            "GetMaintenanceWindowExecutionTaskInvocationOutput",
         118  +
        ),
         119  +
        ::aws_smithy_schema::ShapeType::String,
         120  +
        "TaskExecutionId",
         121  +
        1,
         122  +
    );
         123  +
static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_INVOCATION_ID: ::aws_smithy_schema::Schema<'static> =
         124  +
    ::aws_smithy_schema::Schema::new_member(
         125  +
        ::aws_smithy_schema::ShapeId::from_parts(
         126  +
            "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$InvocationId",
         127  +
            "com.amazonaws.ssm.synthetic",
         128  +
            "GetMaintenanceWindowExecutionTaskInvocationOutput",
         129  +
        ),
         130  +
        ::aws_smithy_schema::ShapeType::String,
         131  +
        "InvocationId",
         132  +
        2,
         133  +
    );
         134  +
static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> =
         135  +
    ::aws_smithy_schema::Schema::new_member(
         136  +
        ::aws_smithy_schema::ShapeId::from_parts(
         137  +
            "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$ExecutionId",
         138  +
            "com.amazonaws.ssm.synthetic",
         139  +
            "GetMaintenanceWindowExecutionTaskInvocationOutput",
         140  +
        ),
         141  +
        ::aws_smithy_schema::ShapeType::String,
         142  +
        "ExecutionId",
         143  +
        3,
         144  +
    );
         145  +
static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_TASK_TYPE: ::aws_smithy_schema::Schema<'static> =
         146  +
    ::aws_smithy_schema::Schema::new_member(
         147  +
        ::aws_smithy_schema::ShapeId::from_parts(
         148  +
            "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$TaskType",
         149  +
            "com.amazonaws.ssm.synthetic",
         150  +
            "GetMaintenanceWindowExecutionTaskInvocationOutput",
         151  +
        ),
         152  +
        ::aws_smithy_schema::ShapeType::String,
         153  +
        "TaskType",
         154  +
        4,
         155  +
    );
         156  +
static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_PARAMETERS: ::aws_smithy_schema::Schema<'static> =
         157  +
    ::aws_smithy_schema::Schema::new_member(
         158  +
        ::aws_smithy_schema::ShapeId::from_parts(
         159  +
            "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$Parameters",
         160  +
            "com.amazonaws.ssm.synthetic",
         161  +
            "GetMaintenanceWindowExecutionTaskInvocationOutput",
         162  +
        ),
         163  +
        ::aws_smithy_schema::ShapeType::String,
         164  +
        "Parameters",
         165  +
        5,
         166  +
    );
         167  +
static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_STATUS: ::aws_smithy_schema::Schema<'static> =
         168  +
    ::aws_smithy_schema::Schema::new_member(
         169  +
        ::aws_smithy_schema::ShapeId::from_parts(
         170  +
            "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$Status",
         171  +
            "com.amazonaws.ssm.synthetic",
         172  +
            "GetMaintenanceWindowExecutionTaskInvocationOutput",
         173  +
        ),
         174  +
        ::aws_smithy_schema::ShapeType::String,
         175  +
        "Status",
         176  +
        6,
         177  +
    );
         178  +
static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_STATUS_DETAILS: ::aws_smithy_schema::Schema<'static> =
         179  +
    ::aws_smithy_schema::Schema::new_member(
         180  +
        ::aws_smithy_schema::ShapeId::from_parts(
         181  +
            "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$StatusDetails",
         182  +
            "com.amazonaws.ssm.synthetic",
         183  +
            "GetMaintenanceWindowExecutionTaskInvocationOutput",
         184  +
        ),
         185  +
        ::aws_smithy_schema::ShapeType::String,
         186  +
        "StatusDetails",
         187  +
        7,
         188  +
    );
         189  +
static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_START_TIME: ::aws_smithy_schema::Schema<'static> =
         190  +
    ::aws_smithy_schema::Schema::new_member(
         191  +
        ::aws_smithy_schema::ShapeId::from_parts(
         192  +
            "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$StartTime",
         193  +
            "com.amazonaws.ssm.synthetic",
         194  +
            "GetMaintenanceWindowExecutionTaskInvocationOutput",
         195  +
        ),
         196  +
        ::aws_smithy_schema::ShapeType::Timestamp,
         197  +
        "StartTime",
         198  +
        8,
         199  +
    );
         200  +
static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_END_TIME: ::aws_smithy_schema::Schema<'static> =
         201  +
    ::aws_smithy_schema::Schema::new_member(
         202  +
        ::aws_smithy_schema::ShapeId::from_parts(
         203  +
            "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$EndTime",
         204  +
            "com.amazonaws.ssm.synthetic",
         205  +
            "GetMaintenanceWindowExecutionTaskInvocationOutput",
         206  +
        ),
         207  +
        ::aws_smithy_schema::ShapeType::Timestamp,
         208  +
        "EndTime",
         209  +
        9,
         210  +
    );
         211  +
static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_OWNER_INFORMATION: ::aws_smithy_schema::Schema<'static> =
         212  +
    ::aws_smithy_schema::Schema::new_member(
         213  +
        ::aws_smithy_schema::ShapeId::from_parts(
         214  +
            "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$OwnerInformation",
         215  +
            "com.amazonaws.ssm.synthetic",
         216  +
            "GetMaintenanceWindowExecutionTaskInvocationOutput",
         217  +
        ),
         218  +
        ::aws_smithy_schema::ShapeType::String,
         219  +
        "OwnerInformation",
         220  +
        10,
         221  +
    );
         222  +
static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_WINDOW_TARGET_ID: ::aws_smithy_schema::Schema<'static> =
         223  +
    ::aws_smithy_schema::Schema::new_member(
         224  +
        ::aws_smithy_schema::ShapeId::from_parts(
         225  +
            "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$WindowTargetId",
         226  +
            "com.amazonaws.ssm.synthetic",
         227  +
            "GetMaintenanceWindowExecutionTaskInvocationOutput",
         228  +
        ),
         229  +
        ::aws_smithy_schema::ShapeType::String,
         230  +
        "WindowTargetId",
         231  +
        11,
         232  +
    );
         233  +
static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> =
         234  +
    ::aws_smithy_schema::Schema::new_member(
         235  +
        ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
         236  +
        ::aws_smithy_schema::ShapeType::String,
         237  +
        "request_id",
         238  +
        12,
         239  +
    )
         240  +
    .with_http_header("x-amzn-requestid");
         241  +
static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
         242  +
    ::aws_smithy_schema::ShapeId::from_parts(
         243  +
        "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput",
         244  +
        "com.amazonaws.ssm.synthetic",
         245  +
        "GetMaintenanceWindowExecutionTaskInvocationOutput",
         246  +
    ),
         247  +
    ::aws_smithy_schema::ShapeType::Structure,
         248  +
    &[
         249  +
        &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_WINDOW_EXECUTION_ID,
         250  +
        &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_TASK_EXECUTION_ID,
         251  +
        &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_INVOCATION_ID,
         252  +
        &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_EXECUTION_ID,
         253  +
        &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_TASK_TYPE,
         254  +
        &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_PARAMETERS,
         255  +
        &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_STATUS,
         256  +
        &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_STATUS_DETAILS,
         257  +
        &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_START_TIME,
         258  +
        &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_END_TIME,
         259  +
        &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_OWNER_INFORMATION,
         260  +
        &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_WINDOW_TARGET_ID,
         261  +
        &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER__REQUEST_ID,
         262  +
    ],
         263  +
)
         264  +
.with_original_name("GetMaintenanceWindowExecutionTaskInvocationResult");
         265  +
impl GetMaintenanceWindowExecutionTaskInvocationOutput {
         266  +
    /// The schema for this shape.
         267  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_SCHEMA;
         268  +
}
         269  +
impl ::aws_smithy_schema::serde::SerializableStruct for GetMaintenanceWindowExecutionTaskInvocationOutput {
         270  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
         271  +
    fn serialize_members(
         272  +
        &self,
         273  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
         274  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
         275  +
        if let Some(ref val) = self.window_execution_id {
         276  +
            ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_WINDOW_EXECUTION_ID, val)?;
         277  +
        }
         278  +
        if let Some(ref val) = self.task_execution_id {
         279  +
            ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_TASK_EXECUTION_ID, val)?;
         280  +
        }
         281  +
        if let Some(ref val) = self.invocation_id {
         282  +
            ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_INVOCATION_ID, val)?;
         283  +
        }
         284  +
        if let Some(ref val) = self.execution_id {
         285  +
            ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_EXECUTION_ID, val)?;
         286  +
        }
         287  +
        if let Some(ref val) = self.task_type {
         288  +
            ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_TASK_TYPE, val.as_str())?;
         289  +
        }
         290  +
        if let Some(ref val) = self.parameters {
         291  +
            ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_PARAMETERS, val)?;
         292  +
        }
         293  +
        if let Some(ref val) = self.status {
         294  +
            ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_STATUS, val.as_str())?;
         295  +
        }
         296  +
        if let Some(ref val) = self.status_details {
         297  +
            ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_STATUS_DETAILS, val)?;
         298  +
        }
         299  +
        if let Some(ref val) = self.start_time {
         300  +
            ser.write_timestamp(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_START_TIME, val)?;
         301  +
        }
         302  +
        if let Some(ref val) = self.end_time {
         303  +
            ser.write_timestamp(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_END_TIME, val)?;
         304  +
        }
         305  +
        if let Some(ref val) = self.owner_information {
         306  +
            ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_OWNER_INFORMATION, val)?;
         307  +
        }
         308  +
        if let Some(ref val) = self.window_target_id {
         309  +
            ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_WINDOW_TARGET_ID, val)?;
         310  +
        }
         311  +
        Ok(())
         312  +
    }
         313  +
}
         314  +
impl GetMaintenanceWindowExecutionTaskInvocationOutput {
         315  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         316  +
    pub fn deserialize(
         317  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         318  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         319  +
        #[allow(unused_variables, unused_mut)]
         320  +
        let mut builder = Self::builder();
         321  +
        #[allow(
         322  +
            unused_variables,
         323  +
            unreachable_code,
         324  +
            clippy::single_match,
         325  +
            clippy::match_single_binding,
         326  +
            clippy::diverging_sub_expression
         327  +
        )]
         328  +
        deserializer.read_struct(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_SCHEMA, &mut |member, deser| {
         329  +
            match member.member_index() {
         330  +
                Some(0) => {
         331  +
                    if deser.is_null() {
         332  +
                        deser.read_null()?;
         333  +
                    } else {
         334  +
                        builder.window_execution_id = Some(deser.read_string(member)?);
         335  +
                    }
         336  +
                }
         337  +
                Some(1) => {
         338  +
                    if deser.is_null() {
         339  +
                        deser.read_null()?;
         340  +
                    } else {
         341  +
                        builder.task_execution_id = Some(deser.read_string(member)?);
         342  +
                    }
         343  +
                }
         344  +
                Some(2) => {
         345  +
                    if deser.is_null() {
         346  +
                        deser.read_null()?;
         347  +
                    } else {
         348  +
                        builder.invocation_id = Some(deser.read_string(member)?);
         349  +
                    }
         350  +
                }
         351  +
                Some(3) => {
         352  +
                    if deser.is_null() {
         353  +
                        deser.read_null()?;
         354  +
                    } else {
         355  +
                        builder.execution_id = Some(deser.read_string(member)?);
         356  +
                    }
         357  +
                }
         358  +
                Some(4) => {
         359  +
                    if deser.is_null() {
         360  +
                        deser.read_null()?;
         361  +
                    } else {
         362  +
                        builder.task_type = Some(crate::types::MaintenanceWindowTaskType::from(deser.read_string(member)?.as_str()));
         363  +
                    }
         364  +
                }
         365  +
                Some(5) => {
         366  +
                    if deser.is_null() {
         367  +
                        deser.read_null()?;
         368  +
                    } else {
         369  +
                        builder.parameters = Some(deser.read_string(member)?);
         370  +
                    }
         371  +
                }
         372  +
                Some(6) => {
         373  +
                    if deser.is_null() {
         374  +
                        deser.read_null()?;
         375  +
                    } else {
         376  +
                        builder.status = Some(crate::types::MaintenanceWindowExecutionStatus::from(deser.read_string(member)?.as_str()));
         377  +
                    }
         378  +
                }
         379  +
                Some(7) => {
         380  +
                    if deser.is_null() {
         381  +
                        deser.read_null()?;
         382  +
                    } else {
         383  +
                        builder.status_details = Some(deser.read_string(member)?);
         384  +
                    }
         385  +
                }
         386  +
                Some(8) => {
         387  +
                    if deser.is_null() {
         388  +
                        deser.read_null()?;
         389  +
                    } else {
         390  +
                        builder.start_time = Some(deser.read_timestamp(member)?);
         391  +
                    }
         392  +
                }
         393  +
                Some(9) => {
         394  +
                    if deser.is_null() {
         395  +
                        deser.read_null()?;
         396  +
                    } else {
         397  +
                        builder.end_time = Some(deser.read_timestamp(member)?);
         398  +
                    }
         399  +
                }
         400  +
                Some(10) => {
         401  +
                    if deser.is_null() {
         402  +
                        deser.read_null()?;
         403  +
                    } else {
         404  +
                        builder.owner_information = Some(deser.read_string(member)?);
         405  +
                    }
         406  +
                }
         407  +
                Some(11) => {
         408  +
                    if deser.is_null() {
         409  +
                        deser.read_null()?;
         410  +
                    } else {
         411  +
                        builder.window_target_id = Some(deser.read_string(member)?);
         412  +
                    }
         413  +
                }
         414  +
                Some(12) => {
         415  +
                    builder._request_id = Some(deser.read_string(member)?);
         416  +
                }
         417  +
                _ => {}
         418  +
            }
         419  +
            Ok(())
         420  +
        })?;
         421  +
        Ok(builder.build())
         422  +
    }
         423  +
}
         424  +
impl GetMaintenanceWindowExecutionTaskInvocationOutput {
         425  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         426  +
    /// Header-bound members are read directly from headers, avoiding runtime
         427  +
    /// member iteration overhead. Body members are read via the deserializer.
         428  +
    pub fn deserialize_with_response(
         429  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         430  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         431  +
        _status: u16,
         432  +
        _body: &[u8],
         433  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         434  +
        #[allow(unused_variables, unused_mut)]
         435  +
        let mut builder = Self::builder();
         436  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         437  +
            builder._request_id = Some(val.to_string());
         438  +
        }
         439  +
         440  +
        #[allow(
         441  +
            unused_variables,
         442  +
            unreachable_code,
         443  +
            clippy::single_match,
         444  +
            clippy::match_single_binding,
         445  +
            clippy::diverging_sub_expression
         446  +
        )]
         447  +
        deserializer.read_struct(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_SCHEMA, &mut |member, deser| {
         448  +
            match member.member_index() {
         449  +
                Some(0) => {
         450  +
                    builder.window_execution_id = Some(deser.read_string(member)?);
         451  +
                }
         452  +
                Some(1) => {
         453  +
                    builder.task_execution_id = Some(deser.read_string(member)?);
         454  +
                }
         455  +
                Some(2) => {
         456  +
                    builder.invocation_id = Some(deser.read_string(member)?);
         457  +
                }
         458  +
                Some(3) => {
         459  +
                    builder.execution_id = Some(deser.read_string(member)?);
         460  +
                }
         461  +
                Some(4) => {
         462  +
                    builder.task_type = Some(crate::types::MaintenanceWindowTaskType::from(deser.read_string(member)?.as_str()));
         463  +
                }
         464  +
                Some(5) => {
         465  +
                    builder.parameters = Some(deser.read_string(member)?);
         466  +
                }
         467  +
                Some(6) => {
         468  +
                    builder.status = Some(crate::types::MaintenanceWindowExecutionStatus::from(deser.read_string(member)?.as_str()));
         469  +
                }
         470  +
                Some(7) => {
         471  +
                    builder.status_details = Some(deser.read_string(member)?);
         472  +
                }
         473  +
                Some(8) => {
         474  +
                    builder.start_time = Some(deser.read_timestamp(member)?);
         475  +
                }
         476  +
                Some(9) => {
         477  +
                    builder.end_time = Some(deser.read_timestamp(member)?);
         478  +
                }
         479  +
                Some(10) => {
         480  +
                    builder.owner_information = Some(deser.read_string(member)?);
         481  +
                }
         482  +
                Some(11) => {
         483  +
                    builder.window_target_id = Some(deser.read_string(member)?);
         484  +
                }
         485  +
                _ => {}
         486  +
            }
         487  +
            Ok(())
         488  +
        })?;
         489  +
        Ok(builder.build())
         490  +
    }
         491  +
}
         492  +
impl ::aws_types::request_id::RequestId for GetMaintenanceWindowExecutionTaskInvocationOutput {
         493  +
    fn request_id(&self) -> Option<&str> {
         494  +
        self._request_id.as_deref()
         495  +
    }
         496  +
}
         497  +
impl GetMaintenanceWindowExecutionTaskInvocationOutput {
         498  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         499  +
        self._request_id = request_id;
         500  +
        self
         501  +
    }
         502  +
}
         503  +
impl GetMaintenanceWindowExecutionTaskInvocationOutput {
         504  +
    /// Creates a new builder-style object to manufacture [`GetMaintenanceWindowExecutionTaskInvocationOutput`](crate::operation::get_maintenance_window_execution_task_invocation::GetMaintenanceWindowExecutionTaskInvocationOutput).
         505  +
    pub fn builder(
         506  +
    ) -> crate::operation::get_maintenance_window_execution_task_invocation::builders::GetMaintenanceWindowExecutionTaskInvocationOutputBuilder {
         507  +
        crate::operation::get_maintenance_window_execution_task_invocation::builders::GetMaintenanceWindowExecutionTaskInvocationOutputBuilder::default()
         508  +
    }
         509  +
}
         510  +
         511  +
/// A builder for [`GetMaintenanceWindowExecutionTaskInvocationOutput`](crate::operation::get_maintenance_window_execution_task_invocation::GetMaintenanceWindowExecutionTaskInvocationOutput).
         512  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
         513  +
#[non_exhaustive]
         514  +
pub struct GetMaintenanceWindowExecutionTaskInvocationOutputBuilder {
         515  +
    pub(crate) window_execution_id: ::std::option::Option<::std::string::String>,
         516  +
    pub(crate) task_execution_id: ::std::option::Option<::std::string::String>,
         517  +
    pub(crate) invocation_id: ::std::option::Option<::std::string::String>,
         518  +
    pub(crate) execution_id: ::std::option::Option<::std::string::String>,
         519  +
    pub(crate) task_type: ::std::option::Option<crate::types::MaintenanceWindowTaskType>,
         520  +
    pub(crate) parameters: ::std::option::Option<::std::string::String>,
         521  +
    pub(crate) status: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>,
         522  +
    pub(crate) status_details: ::std::option::Option<::std::string::String>,
         523  +
    pub(crate) start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
         524  +
    pub(crate) end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
         525  +
    pub(crate) owner_information: ::std::option::Option<::std::string::String>,
         526  +
    pub(crate) window_target_id: ::std::option::Option<::std::string::String>,
         527  +
    _request_id: Option<String>,
         528  +
}
         529  +
impl GetMaintenanceWindowExecutionTaskInvocationOutputBuilder {
         530  +
    /// <p>The maintenance window execution ID.</p>
         531  +
    pub fn window_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         532  +
        self.window_execution_id = ::std::option::Option::Some(input.into());
         533  +
        self
         534  +
    }
         535  +
    /// <p>The maintenance window execution ID.</p>
         536  +
    pub fn set_window_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         537  +
        self.window_execution_id = input;
         538  +
        self
         539  +
    }
         540  +
    /// <p>The maintenance window execution ID.</p>
         541  +
    pub fn get_window_execution_id(&self) -> &::std::option::Option<::std::string::String> {
         542  +
        &self.window_execution_id
         543  +
    }
         544  +
    /// <p>The task execution ID.</p>
         545  +
    pub fn task_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         546  +
        self.task_execution_id = ::std::option::Option::Some(input.into());
         547  +
        self
         548  +
    }
         549  +
    /// <p>The task execution ID.</p>
         550  +
    pub fn set_task_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         551  +
        self.task_execution_id = input;
         552  +
        self
         553  +
    }
         554  +
    /// <p>The task execution ID.</p>
         555  +
    pub fn get_task_execution_id(&self) -> &::std::option::Option<::std::string::String> {
         556  +
        &self.task_execution_id
         557  +
    }
         558  +
    /// <p>The invocation ID.</p>
         559  +
    pub fn invocation_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         560  +
        self.invocation_id = ::std::option::Option::Some(input.into());
         561  +
        self
         562  +
    }
         563  +
    /// <p>The invocation ID.</p>
         564  +
    pub fn set_invocation_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         565  +
        self.invocation_id = input;
         566  +
        self
         567  +
    }
         568  +
    /// <p>The invocation ID.</p>
         569  +
    pub fn get_invocation_id(&self) -> &::std::option::Option<::std::string::String> {
         570  +
        &self.invocation_id
         571  +
    }
         572  +
    /// <p>The execution ID.</p>
         573  +
    pub fn execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         574  +
        self.execution_id = ::std::option::Option::Some(input.into());
         575  +
        self
         576  +
    }
         577  +
    /// <p>The execution ID.</p>
         578  +
    pub fn set_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         579  +
        self.execution_id = input;
         580  +
        self
         581  +
    }
         582  +
    /// <p>The execution ID.</p>
         583  +
    pub fn get_execution_id(&self) -> &::std::option::Option<::std::string::String> {
         584  +
        &self.execution_id
         585  +
    }
         586  +
    /// <p>Retrieves the task type for a maintenance window.</p>
         587  +
    pub fn task_type(mut self, input: crate::types::MaintenanceWindowTaskType) -> Self {
         588  +
        self.task_type = ::std::option::Option::Some(input);
         589  +
        self
         590  +
    }
         591  +
    /// <p>Retrieves the task type for a maintenance window.</p>
         592  +
    pub fn set_task_type(mut self, input: ::std::option::Option<crate::types::MaintenanceWindowTaskType>) -> Self {
         593  +
        self.task_type = input;
         594  +
        self
         595  +
    }
         596  +
    /// <p>Retrieves the task type for a maintenance window.</p>
         597  +
    pub fn get_task_type(&self) -> &::std::option::Option<crate::types::MaintenanceWindowTaskType> {
         598  +
        &self.task_type
         599  +
    }
         600  +
    /// <p>The parameters used at the time that the task ran.</p>
         601  +
    pub fn parameters(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         602  +
        self.parameters = ::std::option::Option::Some(input.into());
         603  +
        self
         604  +
    }
         605  +
    /// <p>The parameters used at the time that the task ran.</p>
         606  +
    pub fn set_parameters(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         607  +
        self.parameters = input;
         608  +
        self
         609  +
    }
         610  +
    /// <p>The parameters used at the time that the task ran.</p>
         611  +
    pub fn get_parameters(&self) -> &::std::option::Option<::std::string::String> {
         612  +
        &self.parameters
         613  +
    }
         614  +
    /// <p>The task status for an invocation.</p>
         615  +
    pub fn status(mut self, input: crate::types::MaintenanceWindowExecutionStatus) -> Self {
         616  +
        self.status = ::std::option::Option::Some(input);
         617  +
        self
         618  +
    }
         619  +
    /// <p>The task status for an invocation.</p>
         620  +
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>) -> Self {
         621  +
        self.status = input;
         622  +
        self
         623  +
    }
         624  +
    /// <p>The task status for an invocation.</p>
         625  +
    pub fn get_status(&self) -> &::std::option::Option<crate::types::MaintenanceWindowExecutionStatus> {
         626  +
        &self.status
         627  +
    }
         628  +
    /// <p>The details explaining the status. Details are only available for certain status values.</p>
         629  +
    pub fn status_details(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         630  +
        self.status_details = ::std::option::Option::Some(input.into());
         631  +
        self
         632  +
    }
         633  +
    /// <p>The details explaining the status. Details are only available for certain status values.</p>
         634  +
    pub fn set_status_details(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         635  +
        self.status_details = input;
         636  +
        self
         637  +
    }
         638  +
    /// <p>The details explaining the status. Details are only available for certain status values.</p>
         639  +
    pub fn get_status_details(&self) -> &::std::option::Option<::std::string::String> {
         640  +
        &self.status_details
         641  +
    }
         642  +
    /// <p>The time that the task started running on the target.</p>
         643  +
    pub fn start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         644  +
        self.start_time = ::std::option::Option::Some(input);
         645  +
        self
         646  +
    }
         647  +
    /// <p>The time that the task started running on the target.</p>
         648  +
    pub fn set_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         649  +
        self.start_time = input;
         650  +
        self
         651  +
    }
         652  +
    /// <p>The time that the task started running on the target.</p>
         653  +
    pub fn get_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         654  +
        &self.start_time
         655  +
    }
         656  +
    /// <p>The time that the task finished running on the target.</p>
         657  +
    pub fn end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         658  +
        self.end_time = ::std::option::Option::Some(input);
         659  +
        self
         660  +
    }
         661  +
    /// <p>The time that the task finished running on the target.</p>
         662  +
    pub fn set_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         663  +
        self.end_time = input;
         664  +
        self
         665  +
    }
         666  +
    /// <p>The time that the task finished running on the target.</p>
         667  +
    pub fn get_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         668  +
        &self.end_time
         669  +
    }
         670  +
    /// <p>User-provided value to be included in any Amazon CloudWatch Events or Amazon EventBridge events raised while running tasks for these targets in this maintenance window.</p>
         671  +
    pub fn owner_information(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         672  +
        self.owner_information = ::std::option::Option::Some(input.into());
         673  +
        self
         674  +
    }
         675  +
    /// <p>User-provided value to be included in any Amazon CloudWatch Events or Amazon EventBridge events raised while running tasks for these targets in this maintenance window.</p>
         676  +
    pub fn set_owner_information(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         677  +
        self.owner_information = input;
         678  +
        self
         679  +
    }
         680  +
    /// <p>User-provided value to be included in any Amazon CloudWatch Events or Amazon EventBridge events raised while running tasks for these targets in this maintenance window.</p>
         681  +
    pub fn get_owner_information(&self) -> &::std::option::Option<::std::string::String> {
         682  +
        &self.owner_information
         683  +
    }
         684  +
    /// <p>The maintenance window target ID.</p>
         685  +
    pub fn window_target_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         686  +
        self.window_target_id = ::std::option::Option::Some(input.into());
         687  +
        self
         688  +
    }
         689  +
    /// <p>The maintenance window target ID.</p>
         690  +
    pub fn set_window_target_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         691  +
        self.window_target_id = input;
         692  +
        self
         693  +
    }
         694  +
    /// <p>The maintenance window target ID.</p>
         695  +
    pub fn get_window_target_id(&self) -> &::std::option::Option<::std::string::String> {
         696  +
        &self.window_target_id
         697  +
    }
         698  +
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
         699  +
        self._request_id = Some(request_id.into());
         700  +
        self
         701  +
    }
         702  +
         703  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         704  +
        self._request_id = request_id;
         705  +
        self
         706  +
    }
         707  +
    /// Consumes the builder and constructs a [`GetMaintenanceWindowExecutionTaskInvocationOutput`](crate::operation::get_maintenance_window_execution_task_invocation::GetMaintenanceWindowExecutionTaskInvocationOutput).
         708  +
    pub fn build(self) -> crate::operation::get_maintenance_window_execution_task_invocation::GetMaintenanceWindowExecutionTaskInvocationOutput {
         709  +
        crate::operation::get_maintenance_window_execution_task_invocation::GetMaintenanceWindowExecutionTaskInvocationOutput {
         710  +
            window_execution_id: self.window_execution_id,
         711  +
            task_execution_id: self.task_execution_id,
         712  +
            invocation_id: self.invocation_id,
         713  +
            execution_id: self.execution_id,
         714  +
            task_type: self.task_type,
         715  +
            parameters: self.parameters,
         716  +
            status: self.status,
         717  +
            status_details: self.status_details,
         718  +
            start_time: self.start_time,
         719  +
            end_time: self.end_time,
         720  +
            owner_information: self.owner_information,
         721  +
            window_target_id: self.window_target_id,
         722  +
            _request_id: self._request_id,
         723  +
        }
         724  +
    }
         725  +
}
         726  +
impl ::std::fmt::Debug for GetMaintenanceWindowExecutionTaskInvocationOutputBuilder {
         727  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         728  +
        let mut formatter = f.debug_struct("GetMaintenanceWindowExecutionTaskInvocationOutputBuilder");
         729  +
        formatter.field("window_execution_id", &self.window_execution_id);
         730  +
        formatter.field("task_execution_id", &self.task_execution_id);
         731  +
        formatter.field("invocation_id", &self.invocation_id);
         732  +
        formatter.field("execution_id", &self.execution_id);
         733  +
        formatter.field("task_type", &self.task_type);
         734  +
        formatter.field("parameters", &"*** Sensitive Data Redacted ***");
         735  +
        formatter.field("status", &self.status);
         736  +
        formatter.field("status_details", &self.status_details);
         737  +
        formatter.field("start_time", &self.start_time);
         738  +
        formatter.field("end_time", &self.end_time);
         739  +
        formatter.field("owner_information", &"*** Sensitive Data Redacted ***");
         740  +
        formatter.field("window_target_id", &self.window_target_id);
         741  +
        formatter.field("_request_id", &self._request_id);
         742  +
        formatter.finish()
         743  +
    }
         744  +
}