AWS SDK

AWS SDK

rev. 2915cec5ef64cb1ed4992565a748d76a11505b3b

Files changed:

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

@@ -0,1 +0,140 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::deregister_task_from_maintenance_window::_deregister_task_from_maintenance_window_input::DeregisterTaskFromMaintenanceWindowInputBuilder;
           3  +
           4  +
pub use crate::operation::deregister_task_from_maintenance_window::_deregister_task_from_maintenance_window_output::DeregisterTaskFromMaintenanceWindowOutputBuilder;
           5  +
           6  +
impl crate::operation::deregister_task_from_maintenance_window::builders::DeregisterTaskFromMaintenanceWindowInputBuilder {
           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::deregister_task_from_maintenance_window::DeregisterTaskFromMaintenanceWindowOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::deregister_task_from_maintenance_window::DeregisterTaskFromMaintenanceWindowError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.deregister_task_from_maintenance_window();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `DeregisterTaskFromMaintenanceWindow`.
          24  +
///
          25  +
/// <p>Removes a task from a maintenance window.</p>
          26  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          27  +
pub struct DeregisterTaskFromMaintenanceWindowFluentBuilder {
          28  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          29  +
    inner: crate::operation::deregister_task_from_maintenance_window::builders::DeregisterTaskFromMaintenanceWindowInputBuilder,
          30  +
    config_override: ::std::option::Option<crate::config::Builder>,
          31  +
}
          32  +
impl
          33  +
    crate::client::customize::internal::CustomizableSend<
          34  +
        crate::operation::deregister_task_from_maintenance_window::DeregisterTaskFromMaintenanceWindowOutput,
          35  +
        crate::operation::deregister_task_from_maintenance_window::DeregisterTaskFromMaintenanceWindowError,
          36  +
    > for DeregisterTaskFromMaintenanceWindowFluentBuilder
          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::deregister_task_from_maintenance_window::DeregisterTaskFromMaintenanceWindowOutput,
          44  +
            crate::operation::deregister_task_from_maintenance_window::DeregisterTaskFromMaintenanceWindowError,
          45  +
        >,
          46  +
    > {
          47  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          48  +
    }
          49  +
}
          50  +
impl DeregisterTaskFromMaintenanceWindowFluentBuilder {
          51  +
    /// Creates a new `DeregisterTaskFromMaintenanceWindowFluentBuilder`.
          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 DeregisterTaskFromMaintenanceWindow as a reference.
          60  +
    pub fn as_input(&self) -> &crate::operation::deregister_task_from_maintenance_window::builders::DeregisterTaskFromMaintenanceWindowInputBuilder {
          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::deregister_task_from_maintenance_window::DeregisterTaskFromMaintenanceWindowOutput,
          75  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          76  +
            crate::operation::deregister_task_from_maintenance_window::DeregisterTaskFromMaintenanceWindowError,
          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 =
          85  +
            crate::operation::deregister_task_from_maintenance_window::DeregisterTaskFromMaintenanceWindow::operation_runtime_plugins(
          86  +
                self.handle.runtime_plugins.clone(),
          87  +
                &self.handle.conf,
          88  +
                self.config_override,
          89  +
            );
          90  +
        crate::operation::deregister_task_from_maintenance_window::DeregisterTaskFromMaintenanceWindow::orchestrate(&runtime_plugins, input).await
          91  +
    }
          92  +
          93  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
          94  +
    pub fn customize(
          95  +
        self,
          96  +
    ) -> crate::client::customize::CustomizableOperation<
          97  +
        crate::operation::deregister_task_from_maintenance_window::DeregisterTaskFromMaintenanceWindowOutput,
          98  +
        crate::operation::deregister_task_from_maintenance_window::DeregisterTaskFromMaintenanceWindowError,
          99  +
        Self,
         100  +
    > {
         101  +
        crate::client::customize::CustomizableOperation::new(self)
         102  +
    }
         103  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         104  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         105  +
        self
         106  +
    }
         107  +
         108  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         109  +
        self.config_override = config_override;
         110  +
        self
         111  +
    }
         112  +
    /// <p>The ID of the maintenance window the task should be removed from.</p>
         113  +
    pub fn window_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         114  +
        self.inner = self.inner.window_id(input.into());
         115  +
        self
         116  +
    }
         117  +
    /// <p>The ID of the maintenance window the task should be removed from.</p>
         118  +
    pub fn set_window_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         119  +
        self.inner = self.inner.set_window_id(input);
         120  +
        self
         121  +
    }
         122  +
    /// <p>The ID of the maintenance window the task should be removed from.</p>
         123  +
    pub fn get_window_id(&self) -> &::std::option::Option<::std::string::String> {
         124  +
        self.inner.get_window_id()
         125  +
    }
         126  +
    /// <p>The ID of the task to remove from the maintenance window.</p>
         127  +
    pub fn window_task_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         128  +
        self.inner = self.inner.window_task_id(input.into());
         129  +
        self
         130  +
    }
         131  +
    /// <p>The ID of the task to remove from the maintenance window.</p>
         132  +
    pub fn set_window_task_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         133  +
        self.inner = self.inner.set_window_task_id(input);
         134  +
        self
         135  +
    }
         136  +
    /// <p>The ID of the task to remove from the maintenance window.</p>
         137  +
    pub fn get_window_task_id(&self) -> &::std::option::Option<::std::string::String> {
         138  +
        self.inner.get_window_task_id()
         139  +
    }
         140  +
}

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

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

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

@@ -0,1 +0,252 @@
           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 DescribeActivationsInput {
           6  +
    /// <p>A filter to view information about your activations.</p>
           7  +
    pub filters: ::std::option::Option<::std::vec::Vec<crate::types::DescribeActivationsFilter>>,
           8  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
           9  +
    pub max_results: ::std::option::Option<i32>,
          10  +
    /// <p>A token to start the list. Use this token to get the next set of results.</p>
          11  +
    pub next_token: ::std::option::Option<::std::string::String>,
          12  +
}
          13  +
impl DescribeActivationsInput {
          14  +
    /// <p>A filter to view information about your activations.</p>
          15  +
    ///
          16  +
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.filters.is_none()`.
          17  +
    pub fn filters(&self) -> &[crate::types::DescribeActivationsFilter] {
          18  +
        self.filters.as_deref().unwrap_or_default()
          19  +
    }
          20  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
          21  +
    pub fn max_results(&self) -> ::std::option::Option<i32> {
          22  +
        self.max_results
          23  +
    }
          24  +
    /// <p>A token to start the list. Use this token to get the next set of results.</p>
          25  +
    pub fn next_token(&self) -> ::std::option::Option<&str> {
          26  +
        self.next_token.as_deref()
          27  +
    }
          28  +
}
          29  +
static DESCRIBEACTIVATIONSINPUT_MEMBER_FILTERS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          30  +
    ::aws_smithy_schema::ShapeId::from_parts(
          31  +
        "com.amazonaws.ssm#DescribeActivationsFilterList$member",
          32  +
        "com.amazonaws.ssm",
          33  +
        "DescribeActivationsFilterList",
          34  +
    ),
          35  +
    ::aws_smithy_schema::ShapeType::Structure,
          36  +
    "member",
          37  +
    0,
          38  +
);
          39  +
static DESCRIBEACTIVATIONSINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          40  +
    ::aws_smithy_schema::ShapeId::from_parts(
          41  +
        "com.amazonaws.ssm.synthetic#DescribeActivationsInput$Filters",
          42  +
        "com.amazonaws.ssm.synthetic",
          43  +
        "DescribeActivationsInput",
          44  +
    ),
          45  +
    ::aws_smithy_schema::ShapeType::List,
          46  +
    "Filters",
          47  +
    0,
          48  +
)
          49  +
.with_list_member(&DESCRIBEACTIVATIONSINPUT_MEMBER_FILTERS_MEMBER);
          50  +
static DESCRIBEACTIVATIONSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          51  +
    ::aws_smithy_schema::ShapeId::from_parts(
          52  +
        "com.amazonaws.ssm.synthetic#DescribeActivationsInput$MaxResults",
          53  +
        "com.amazonaws.ssm.synthetic",
          54  +
        "DescribeActivationsInput",
          55  +
    ),
          56  +
    ::aws_smithy_schema::ShapeType::Integer,
          57  +
    "MaxResults",
          58  +
    1,
          59  +
);
          60  +
static DESCRIBEACTIVATIONSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          61  +
    ::aws_smithy_schema::ShapeId::from_parts(
          62  +
        "com.amazonaws.ssm.synthetic#DescribeActivationsInput$NextToken",
          63  +
        "com.amazonaws.ssm.synthetic",
          64  +
        "DescribeActivationsInput",
          65  +
    ),
          66  +
    ::aws_smithy_schema::ShapeType::String,
          67  +
    "NextToken",
          68  +
    2,
          69  +
);
          70  +
static DESCRIBEACTIVATIONSINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          71  +
    ::aws_smithy_schema::ShapeId::from_parts(
          72  +
        "com.amazonaws.ssm.synthetic#DescribeActivationsInput",
          73  +
        "com.amazonaws.ssm.synthetic",
          74  +
        "DescribeActivationsInput",
          75  +
    ),
          76  +
    ::aws_smithy_schema::ShapeType::Structure,
          77  +
    &[
          78  +
        &DESCRIBEACTIVATIONSINPUT_MEMBER_FILTERS,
          79  +
        &DESCRIBEACTIVATIONSINPUT_MEMBER_MAX_RESULTS,
          80  +
        &DESCRIBEACTIVATIONSINPUT_MEMBER_NEXT_TOKEN,
          81  +
    ],
          82  +
)
          83  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
          84  +
.with_original_name("DescribeActivationsRequest");
          85  +
impl DescribeActivationsInput {
          86  +
    /// The schema for this shape.
          87  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &DESCRIBEACTIVATIONSINPUT_SCHEMA;
          88  +
}
          89  +
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeActivationsInput {
          90  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          91  +
    fn serialize_members(
          92  +
        &self,
          93  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          94  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          95  +
        if let Some(ref val) = self.filters {
          96  +
            ser.write_list(
          97  +
                &DESCRIBEACTIVATIONSINPUT_MEMBER_FILTERS,
          98  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
          99  +
                    for item in val {
         100  +
                        ser.write_struct(crate::types::DescribeActivationsFilter::SCHEMA, item)?;
         101  +
                    }
         102  +
                    Ok(())
         103  +
                },
         104  +
            )?;
         105  +
        }
         106  +
        if let Some(ref val) = self.max_results {
         107  +
            ser.write_integer(&DESCRIBEACTIVATIONSINPUT_MEMBER_MAX_RESULTS, *val)?;
         108  +
        }
         109  +
        if let Some(ref val) = self.next_token {
         110  +
            ser.write_string(&DESCRIBEACTIVATIONSINPUT_MEMBER_NEXT_TOKEN, val)?;
         111  +
        }
         112  +
        Ok(())
         113  +
    }
         114  +
}
         115  +
impl DescribeActivationsInput {
         116  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         117  +
    pub fn deserialize(
         118  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         119  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         120  +
        #[allow(unused_variables, unused_mut)]
         121  +
        let mut builder = Self::builder();
         122  +
        #[allow(
         123  +
            unused_variables,
         124  +
            unreachable_code,
         125  +
            clippy::single_match,
         126  +
            clippy::match_single_binding,
         127  +
            clippy::diverging_sub_expression
         128  +
        )]
         129  +
        deserializer.read_struct(&DESCRIBEACTIVATIONSINPUT_SCHEMA, &mut |member, deser| {
         130  +
            match member.member_index() {
         131  +
                Some(0) => {
         132  +
                    if deser.is_null() {
         133  +
                        deser.read_null()?;
         134  +
                    } else {
         135  +
                        builder.filters = Some({
         136  +
                            let mut container = Vec::new();
         137  +
                            deser.read_list(member, &mut |deser| {
         138  +
                                container.push(crate::types::DescribeActivationsFilter::deserialize(deser)?);
         139  +
                                Ok(())
         140  +
                            })?;
         141  +
                            container
         142  +
                        });
         143  +
                    }
         144  +
                }
         145  +
                Some(1) => {
         146  +
                    if deser.is_null() {
         147  +
                        deser.read_null()?;
         148  +
                    } else {
         149  +
                        builder.max_results = Some(deser.read_integer(member)?);
         150  +
                    }
         151  +
                }
         152  +
                Some(2) => {
         153  +
                    if deser.is_null() {
         154  +
                        deser.read_null()?;
         155  +
                    } else {
         156  +
                        builder.next_token = Some(deser.read_string(member)?);
         157  +
                    }
         158  +
                }
         159  +
                _ => {}
         160  +
            }
         161  +
            Ok(())
         162  +
        })?;
         163  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
         164  +
    }
         165  +
}
         166  +
impl DescribeActivationsInput {
         167  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         168  +
    pub fn deserialize_with_response(
         169  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         170  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         171  +
        _status: u16,
         172  +
        _body: &[u8],
         173  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         174  +
        Self::deserialize(deserializer)
         175  +
    }
         176  +
}
         177  +
impl DescribeActivationsInput {
         178  +
    /// Creates a new builder-style object to manufacture [`DescribeActivationsInput`](crate::operation::describe_activations::DescribeActivationsInput).
         179  +
    pub fn builder() -> crate::operation::describe_activations::builders::DescribeActivationsInputBuilder {
         180  +
        crate::operation::describe_activations::builders::DescribeActivationsInputBuilder::default()
         181  +
    }
         182  +
}
         183  +
         184  +
/// A builder for [`DescribeActivationsInput`](crate::operation::describe_activations::DescribeActivationsInput).
         185  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         186  +
#[non_exhaustive]
         187  +
pub struct DescribeActivationsInputBuilder {
         188  +
    pub(crate) filters: ::std::option::Option<::std::vec::Vec<crate::types::DescribeActivationsFilter>>,
         189  +
    pub(crate) max_results: ::std::option::Option<i32>,
         190  +
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
         191  +
}
         192  +
impl DescribeActivationsInputBuilder {
         193  +
    /// Appends an item to `filters`.
         194  +
    ///
         195  +
    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
         196  +
    ///
         197  +
    /// <p>A filter to view information about your activations.</p>
         198  +
    pub fn filters(mut self, input: crate::types::DescribeActivationsFilter) -> Self {
         199  +
        let mut v = self.filters.unwrap_or_default();
         200  +
        v.push(input);
         201  +
        self.filters = ::std::option::Option::Some(v);
         202  +
        self
         203  +
    }
         204  +
    /// <p>A filter to view information about your activations.</p>
         205  +
    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::DescribeActivationsFilter>>) -> Self {
         206  +
        self.filters = input;
         207  +
        self
         208  +
    }
         209  +
    /// <p>A filter to view information about your activations.</p>
         210  +
    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::DescribeActivationsFilter>> {
         211  +
        &self.filters
         212  +
    }
         213  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
         214  +
    pub fn max_results(mut self, input: i32) -> Self {
         215  +
        self.max_results = ::std::option::Option::Some(input);
         216  +
        self
         217  +
    }
         218  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
         219  +
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
         220  +
        self.max_results = input;
         221  +
        self
         222  +
    }
         223  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
         224  +
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
         225  +
        &self.max_results
         226  +
    }
         227  +
    /// <p>A token to start the list. Use this token to get the next set of results.</p>
         228  +
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         229  +
        self.next_token = ::std::option::Option::Some(input.into());
         230  +
        self
         231  +
    }
         232  +
    /// <p>A token to start the list. Use this token to get the next set of results.</p>
         233  +
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         234  +
        self.next_token = input;
         235  +
        self
         236  +
    }
         237  +
    /// <p>A token to start the list. Use this token to get the next set of results.</p>
         238  +
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         239  +
        &self.next_token
         240  +
    }
         241  +
    /// Consumes the builder and constructs a [`DescribeActivationsInput`](crate::operation::describe_activations::DescribeActivationsInput).
         242  +
    pub fn build(
         243  +
        self,
         244  +
    ) -> ::std::result::Result<crate::operation::describe_activations::DescribeActivationsInput, ::aws_smithy_types::error::operation::BuildError>
         245  +
    {
         246  +
        ::std::result::Result::Ok(crate::operation::describe_activations::DescribeActivationsInput {
         247  +
            filters: self.filters,
         248  +
            max_results: self.max_results,
         249  +
            next_token: self.next_token,
         250  +
        })
         251  +
    }
         252  +
}

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

@@ -0,1 +0,269 @@
           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 DescribeActivationsOutput {
           6  +
    /// <p>A list of activations for your Amazon Web Services account.</p>
           7  +
    pub activation_list: ::std::option::Option<::std::vec::Vec<crate::types::Activation>>,
           8  +
    /// <p>The token for the next set of items to return. Use this token to get the next set of results.</p>
           9  +
    pub next_token: ::std::option::Option<::std::string::String>,
          10  +
    _request_id: Option<String>,
          11  +
}
          12  +
impl DescribeActivationsOutput {
          13  +
    /// <p>A list of activations for your Amazon Web Services account.</p>
          14  +
    ///
          15  +
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.activation_list.is_none()`.
          16  +
    pub fn activation_list(&self) -> &[crate::types::Activation] {
          17  +
        self.activation_list.as_deref().unwrap_or_default()
          18  +
    }
          19  +
    /// <p>The token for the next set of items to return. Use this token to get the next set of results.</p>
          20  +
    pub fn next_token(&self) -> ::std::option::Option<&str> {
          21  +
        self.next_token.as_deref()
          22  +
    }
          23  +
}
          24  +
static DESCRIBEACTIVATIONSOUTPUT_MEMBER_ACTIVATION_LIST_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          25  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#ActivationList$member", "com.amazonaws.ssm", "ActivationList"),
          26  +
    ::aws_smithy_schema::ShapeType::Structure,
          27  +
    "member",
          28  +
    0,
          29  +
);
          30  +
static DESCRIBEACTIVATIONSOUTPUT_MEMBER_ACTIVATION_LIST: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          31  +
    ::aws_smithy_schema::ShapeId::from_parts(
          32  +
        "com.amazonaws.ssm.synthetic#DescribeActivationsOutput$ActivationList",
          33  +
        "com.amazonaws.ssm.synthetic",
          34  +
        "DescribeActivationsOutput",
          35  +
    ),
          36  +
    ::aws_smithy_schema::ShapeType::List,
          37  +
    "ActivationList",
          38  +
    0,
          39  +
)
          40  +
.with_list_member(&DESCRIBEACTIVATIONSOUTPUT_MEMBER_ACTIVATION_LIST_MEMBER);
          41  +
static DESCRIBEACTIVATIONSOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          42  +
    ::aws_smithy_schema::ShapeId::from_parts(
          43  +
        "com.amazonaws.ssm.synthetic#DescribeActivationsOutput$NextToken",
          44  +
        "com.amazonaws.ssm.synthetic",
          45  +
        "DescribeActivationsOutput",
          46  +
    ),
          47  +
    ::aws_smithy_schema::ShapeType::String,
          48  +
    "NextToken",
          49  +
    1,
          50  +
);
          51  +
static DESCRIBEACTIVATIONSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          52  +
    ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
          53  +
    ::aws_smithy_schema::ShapeType::String,
          54  +
    "request_id",
          55  +
    2,
          56  +
)
          57  +
.with_http_header("x-amzn-requestid");
          58  +
static DESCRIBEACTIVATIONSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          59  +
    ::aws_smithy_schema::ShapeId::from_parts(
          60  +
        "com.amazonaws.ssm.synthetic#DescribeActivationsOutput",
          61  +
        "com.amazonaws.ssm.synthetic",
          62  +
        "DescribeActivationsOutput",
          63  +
    ),
          64  +
    ::aws_smithy_schema::ShapeType::Structure,
          65  +
    &[
          66  +
        &DESCRIBEACTIVATIONSOUTPUT_MEMBER_ACTIVATION_LIST,
          67  +
        &DESCRIBEACTIVATIONSOUTPUT_MEMBER_NEXT_TOKEN,
          68  +
        &DESCRIBEACTIVATIONSOUTPUT_MEMBER__REQUEST_ID,
          69  +
    ],
          70  +
)
          71  +
.with_original_name("DescribeActivationsResult");
          72  +
impl DescribeActivationsOutput {
          73  +
    /// The schema for this shape.
          74  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &DESCRIBEACTIVATIONSOUTPUT_SCHEMA;
          75  +
}
          76  +
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeActivationsOutput {
          77  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          78  +
    fn serialize_members(
          79  +
        &self,
          80  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          81  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          82  +
        if let Some(ref val) = self.activation_list {
          83  +
            ser.write_list(
          84  +
                &DESCRIBEACTIVATIONSOUTPUT_MEMBER_ACTIVATION_LIST,
          85  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
          86  +
                    for item in val {
          87  +
                        ser.write_struct(crate::types::Activation::SCHEMA, item)?;
          88  +
                    }
          89  +
                    Ok(())
          90  +
                },
          91  +
            )?;
          92  +
        }
          93  +
        if let Some(ref val) = self.next_token {
          94  +
            ser.write_string(&DESCRIBEACTIVATIONSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
          95  +
        }
          96  +
        Ok(())
          97  +
    }
          98  +
}
          99  +
impl DescribeActivationsOutput {
         100  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         101  +
    pub fn deserialize(
         102  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         103  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         104  +
        #[allow(unused_variables, unused_mut)]
         105  +
        let mut builder = Self::builder();
         106  +
        #[allow(
         107  +
            unused_variables,
         108  +
            unreachable_code,
         109  +
            clippy::single_match,
         110  +
            clippy::match_single_binding,
         111  +
            clippy::diverging_sub_expression
         112  +
        )]
         113  +
        deserializer.read_struct(&DESCRIBEACTIVATIONSOUTPUT_SCHEMA, &mut |member, deser| {
         114  +
            match member.member_index() {
         115  +
                Some(0) => {
         116  +
                    if deser.is_null() {
         117  +
                        deser.read_null()?;
         118  +
                    } else {
         119  +
                        builder.activation_list = Some({
         120  +
                            let mut container = Vec::new();
         121  +
                            deser.read_list(member, &mut |deser| {
         122  +
                                container.push(crate::types::Activation::deserialize(deser)?);
         123  +
                                Ok(())
         124  +
                            })?;
         125  +
                            container
         126  +
                        });
         127  +
                    }
         128  +
                }
         129  +
                Some(1) => {
         130  +
                    if deser.is_null() {
         131  +
                        deser.read_null()?;
         132  +
                    } else {
         133  +
                        builder.next_token = Some(deser.read_string(member)?);
         134  +
                    }
         135  +
                }
         136  +
                Some(2) => {
         137  +
                    builder._request_id = Some(deser.read_string(member)?);
         138  +
                }
         139  +
                _ => {}
         140  +
            }
         141  +
            Ok(())
         142  +
        })?;
         143  +
        Ok(builder.build())
         144  +
    }
         145  +
}
         146  +
impl DescribeActivationsOutput {
         147  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         148  +
    /// Header-bound members are read directly from headers, avoiding runtime
         149  +
    /// member iteration overhead. Body members are read via the deserializer.
         150  +
    pub fn deserialize_with_response(
         151  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         152  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         153  +
        _status: u16,
         154  +
        _body: &[u8],
         155  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         156  +
        #[allow(unused_variables, unused_mut)]
         157  +
        let mut builder = Self::builder();
         158  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         159  +
            builder._request_id = Some(val.to_string());
         160  +
        }
         161  +
         162  +
        #[allow(
         163  +
            unused_variables,
         164  +
            unreachable_code,
         165  +
            clippy::single_match,
         166  +
            clippy::match_single_binding,
         167  +
            clippy::diverging_sub_expression
         168  +
        )]
         169  +
        deserializer.read_struct(&DESCRIBEACTIVATIONSOUTPUT_SCHEMA, &mut |member, deser| {
         170  +
            match member.member_index() {
         171  +
                Some(0) => {
         172  +
                    builder.activation_list = Some({
         173  +
                        let mut container = Vec::new();
         174  +
                        deser.read_list(member, &mut |deser| {
         175  +
                            container.push(crate::types::Activation::deserialize(deser)?);
         176  +
                            Ok(())
         177  +
                        })?;
         178  +
                        container
         179  +
                    });
         180  +
                }
         181  +
                Some(1) => {
         182  +
                    builder.next_token = Some(deser.read_string(member)?);
         183  +
                }
         184  +
                _ => {}
         185  +
            }
         186  +
            Ok(())
         187  +
        })?;
         188  +
        Ok(builder.build())
         189  +
    }
         190  +
}
         191  +
impl ::aws_types::request_id::RequestId for DescribeActivationsOutput {
         192  +
    fn request_id(&self) -> Option<&str> {
         193  +
        self._request_id.as_deref()
         194  +
    }
         195  +
}
         196  +
impl DescribeActivationsOutput {
         197  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         198  +
        self._request_id = request_id;
         199  +
        self
         200  +
    }
         201  +
}
         202  +
impl DescribeActivationsOutput {
         203  +
    /// Creates a new builder-style object to manufacture [`DescribeActivationsOutput`](crate::operation::describe_activations::DescribeActivationsOutput).
         204  +
    pub fn builder() -> crate::operation::describe_activations::builders::DescribeActivationsOutputBuilder {
         205  +
        crate::operation::describe_activations::builders::DescribeActivationsOutputBuilder::default()
         206  +
    }
         207  +
}
         208  +
         209  +
/// A builder for [`DescribeActivationsOutput`](crate::operation::describe_activations::DescribeActivationsOutput).
         210  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         211  +
#[non_exhaustive]
         212  +
pub struct DescribeActivationsOutputBuilder {
         213  +
    pub(crate) activation_list: ::std::option::Option<::std::vec::Vec<crate::types::Activation>>,
         214  +
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
         215  +
    _request_id: Option<String>,
         216  +
}
         217  +
impl DescribeActivationsOutputBuilder {
         218  +
    /// Appends an item to `activation_list`.
         219  +
    ///
         220  +
    /// To override the contents of this collection use [`set_activation_list`](Self::set_activation_list).
         221  +
    ///
         222  +
    /// <p>A list of activations for your Amazon Web Services account.</p>
         223  +
    pub fn activation_list(mut self, input: crate::types::Activation) -> Self {
         224  +
        let mut v = self.activation_list.unwrap_or_default();
         225  +
        v.push(input);
         226  +
        self.activation_list = ::std::option::Option::Some(v);
         227  +
        self
         228  +
    }
         229  +
    /// <p>A list of activations for your Amazon Web Services account.</p>
         230  +
    pub fn set_activation_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Activation>>) -> Self {
         231  +
        self.activation_list = input;
         232  +
        self
         233  +
    }
         234  +
    /// <p>A list of activations for your Amazon Web Services account.</p>
         235  +
    pub fn get_activation_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Activation>> {
         236  +
        &self.activation_list
         237  +
    }
         238  +
    /// <p>The token for the next set of items to return. Use this token to get the next set of results.</p>
         239  +
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         240  +
        self.next_token = ::std::option::Option::Some(input.into());
         241  +
        self
         242  +
    }
         243  +
    /// <p>The token for the next set of items to return. Use this token to get the next set of results.</p>
         244  +
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         245  +
        self.next_token = input;
         246  +
        self
         247  +
    }
         248  +
    /// <p>The token for the next set of items to return. Use this token to get the next set of results.</p>
         249  +
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         250  +
        &self.next_token
         251  +
    }
         252  +
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
         253  +
        self._request_id = Some(request_id.into());
         254  +
        self
         255  +
    }
         256  +
         257  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         258  +
        self._request_id = request_id;
         259  +
        self
         260  +
    }
         261  +
    /// Consumes the builder and constructs a [`DescribeActivationsOutput`](crate::operation::describe_activations::DescribeActivationsOutput).
         262  +
    pub fn build(self) -> crate::operation::describe_activations::DescribeActivationsOutput {
         263  +
        crate::operation::describe_activations::DescribeActivationsOutput {
         264  +
            activation_list: self.activation_list,
         265  +
            next_token: self.next_token,
         266  +
            _request_id: self._request_id,
         267  +
        }
         268  +
    }
         269  +
}