AWS SDK

AWS SDK

rev. 2915cec5ef64cb1ed4992565a748d76a11505b3b (ignoring whitespace)

Files changed:

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

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

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

@@ -0,1 +0,299 @@
           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 ListNodesInput {
           6  +
    /// <p>The name of the Amazon Web Services managed resource data sync to retrieve information about.</p>
           7  +
    /// <p>For cross-account/cross-Region configurations, this parameter is required, and the name of the supported resource data sync is <code>AWS-QuickSetup-ManagedNode</code>.</p>
           8  +
    /// <p>For single account/single-Region configurations, the parameter is not required.</p>
           9  +
    pub sync_name: ::std::option::Option<::std::string::String>,
          10  +
    /// <p>One or more filters. Use a filter to return a more specific list of managed nodes.</p>
          11  +
    pub filters: ::std::option::Option<::std::vec::Vec<crate::types::NodeFilter>>,
          12  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
          13  +
    pub next_token: ::std::option::Option<::std::string::String>,
          14  +
    /// <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>
          15  +
    pub max_results: ::std::option::Option<i32>,
          16  +
}
          17  +
impl ListNodesInput {
          18  +
    /// <p>The name of the Amazon Web Services managed resource data sync to retrieve information about.</p>
          19  +
    /// <p>For cross-account/cross-Region configurations, this parameter is required, and the name of the supported resource data sync is <code>AWS-QuickSetup-ManagedNode</code>.</p>
          20  +
    /// <p>For single account/single-Region configurations, the parameter is not required.</p>
          21  +
    pub fn sync_name(&self) -> ::std::option::Option<&str> {
          22  +
        self.sync_name.as_deref()
          23  +
    }
          24  +
    /// <p>One or more filters. Use a filter to return a more specific list of managed nodes.</p>
          25  +
    ///
          26  +
    /// 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()`.
          27  +
    pub fn filters(&self) -> &[crate::types::NodeFilter] {
          28  +
        self.filters.as_deref().unwrap_or_default()
          29  +
    }
          30  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
          31  +
    pub fn next_token(&self) -> ::std::option::Option<&str> {
          32  +
        self.next_token.as_deref()
          33  +
    }
          34  +
    /// <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>
          35  +
    pub fn max_results(&self) -> ::std::option::Option<i32> {
          36  +
        self.max_results
          37  +
    }
          38  +
}
          39  +
static LISTNODESINPUT_MEMBER_SYNC_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          40  +
    ::aws_smithy_schema::ShapeId::from_parts(
          41  +
        "com.amazonaws.ssm.synthetic#ListNodesInput$SyncName",
          42  +
        "com.amazonaws.ssm.synthetic",
          43  +
        "ListNodesInput",
          44  +
    ),
          45  +
    ::aws_smithy_schema::ShapeType::String,
          46  +
    "SyncName",
          47  +
    0,
          48  +
);
          49  +
static LISTNODESINPUT_MEMBER_FILTERS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          50  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#NodeFilterList$member", "com.amazonaws.ssm", "NodeFilterList"),
          51  +
    ::aws_smithy_schema::ShapeType::Structure,
          52  +
    "member",
          53  +
    0,
          54  +
)
          55  +
.with_xml_name("NodeFilter");
          56  +
static LISTNODESINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          57  +
    ::aws_smithy_schema::ShapeId::from_parts(
          58  +
        "com.amazonaws.ssm.synthetic#ListNodesInput$Filters",
          59  +
        "com.amazonaws.ssm.synthetic",
          60  +
        "ListNodesInput",
          61  +
    ),
          62  +
    ::aws_smithy_schema::ShapeType::List,
          63  +
    "Filters",
          64  +
    1,
          65  +
)
          66  +
.with_list_member(&LISTNODESINPUT_MEMBER_FILTERS_MEMBER);
          67  +
static LISTNODESINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          68  +
    ::aws_smithy_schema::ShapeId::from_parts(
          69  +
        "com.amazonaws.ssm.synthetic#ListNodesInput$NextToken",
          70  +
        "com.amazonaws.ssm.synthetic",
          71  +
        "ListNodesInput",
          72  +
    ),
          73  +
    ::aws_smithy_schema::ShapeType::String,
          74  +
    "NextToken",
          75  +
    2,
          76  +
);
          77  +
static LISTNODESINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          78  +
    ::aws_smithy_schema::ShapeId::from_parts(
          79  +
        "com.amazonaws.ssm.synthetic#ListNodesInput$MaxResults",
          80  +
        "com.amazonaws.ssm.synthetic",
          81  +
        "ListNodesInput",
          82  +
    ),
          83  +
    ::aws_smithy_schema::ShapeType::Integer,
          84  +
    "MaxResults",
          85  +
    3,
          86  +
);
          87  +
static LISTNODESINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          88  +
    ::aws_smithy_schema::ShapeId::from_parts(
          89  +
        "com.amazonaws.ssm.synthetic#ListNodesInput",
          90  +
        "com.amazonaws.ssm.synthetic",
          91  +
        "ListNodesInput",
          92  +
    ),
          93  +
    ::aws_smithy_schema::ShapeType::Structure,
          94  +
    &[
          95  +
        &LISTNODESINPUT_MEMBER_SYNC_NAME,
          96  +
        &LISTNODESINPUT_MEMBER_FILTERS,
          97  +
        &LISTNODESINPUT_MEMBER_NEXT_TOKEN,
          98  +
        &LISTNODESINPUT_MEMBER_MAX_RESULTS,
          99  +
    ],
         100  +
)
         101  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
         102  +
.with_original_name("ListNodesRequest");
         103  +
impl ListNodesInput {
         104  +
    /// The schema for this shape.
         105  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &LISTNODESINPUT_SCHEMA;
         106  +
}
         107  +
impl ::aws_smithy_schema::serde::SerializableStruct for ListNodesInput {
         108  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
         109  +
    fn serialize_members(
         110  +
        &self,
         111  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
         112  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
         113  +
        if let Some(ref val) = self.sync_name {
         114  +
            ser.write_string(&LISTNODESINPUT_MEMBER_SYNC_NAME, val)?;
         115  +
        }
         116  +
        if let Some(ref val) = self.filters {
         117  +
            ser.write_list(
         118  +
                &LISTNODESINPUT_MEMBER_FILTERS,
         119  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         120  +
                    for item in val {
         121  +
                        ser.write_struct(crate::types::NodeFilter::SCHEMA, item)?;
         122  +
                    }
         123  +
                    Ok(())
         124  +
                },
         125  +
            )?;
         126  +
        }
         127  +
        if let Some(ref val) = self.next_token {
         128  +
            ser.write_string(&LISTNODESINPUT_MEMBER_NEXT_TOKEN, val)?;
         129  +
        }
         130  +
        if let Some(ref val) = self.max_results {
         131  +
            ser.write_integer(&LISTNODESINPUT_MEMBER_MAX_RESULTS, *val)?;
         132  +
        }
         133  +
        Ok(())
         134  +
    }
         135  +
}
         136  +
impl ListNodesInput {
         137  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         138  +
    pub fn deserialize(
         139  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         140  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         141  +
        #[allow(unused_variables, unused_mut)]
         142  +
        let mut builder = Self::builder();
         143  +
        #[allow(
         144  +
            unused_variables,
         145  +
            unreachable_code,
         146  +
            clippy::single_match,
         147  +
            clippy::match_single_binding,
         148  +
            clippy::diverging_sub_expression
         149  +
        )]
         150  +
        deserializer.read_struct(&LISTNODESINPUT_SCHEMA, &mut |member, deser| {
         151  +
            match member.member_index() {
         152  +
                Some(0) => {
         153  +
                    if deser.is_null() {
         154  +
                        deser.read_null()?;
         155  +
                    } else {
         156  +
                        builder.sync_name = Some(deser.read_string(member)?);
         157  +
                    }
         158  +
                }
         159  +
                Some(1) => {
         160  +
                    if deser.is_null() {
         161  +
                        deser.read_null()?;
         162  +
                    } else {
         163  +
                        builder.filters = Some({
         164  +
                            let mut container = Vec::new();
         165  +
                            deser.read_list(member, &mut |deser| {
         166  +
                                container.push(crate::types::NodeFilter::deserialize(deser)?);
         167  +
                                Ok(())
         168  +
                            })?;
         169  +
                            container
         170  +
                        });
         171  +
                    }
         172  +
                }
         173  +
                Some(2) => {
         174  +
                    if deser.is_null() {
         175  +
                        deser.read_null()?;
         176  +
                    } else {
         177  +
                        builder.next_token = Some(deser.read_string(member)?);
         178  +
                    }
         179  +
                }
         180  +
                Some(3) => {
         181  +
                    if deser.is_null() {
         182  +
                        deser.read_null()?;
         183  +
                    } else {
         184  +
                        builder.max_results = Some(deser.read_integer(member)?);
         185  +
                    }
         186  +
                }
         187  +
                _ => {}
         188  +
            }
         189  +
            Ok(())
         190  +
        })?;
         191  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
         192  +
    }
         193  +
}
         194  +
impl ListNodesInput {
         195  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         196  +
    pub fn deserialize_with_response(
         197  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         198  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         199  +
        _status: u16,
         200  +
        _body: &[u8],
         201  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         202  +
        Self::deserialize(deserializer)
         203  +
    }
         204  +
}
         205  +
impl ListNodesInput {
         206  +
    /// Creates a new builder-style object to manufacture [`ListNodesInput`](crate::operation::list_nodes::ListNodesInput).
         207  +
    pub fn builder() -> crate::operation::list_nodes::builders::ListNodesInputBuilder {
         208  +
        crate::operation::list_nodes::builders::ListNodesInputBuilder::default()
         209  +
    }
         210  +
}
         211  +
         212  +
/// A builder for [`ListNodesInput`](crate::operation::list_nodes::ListNodesInput).
         213  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         214  +
#[non_exhaustive]
         215  +
pub struct ListNodesInputBuilder {
         216  +
    pub(crate) sync_name: ::std::option::Option<::std::string::String>,
         217  +
    pub(crate) filters: ::std::option::Option<::std::vec::Vec<crate::types::NodeFilter>>,
         218  +
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
         219  +
    pub(crate) max_results: ::std::option::Option<i32>,
         220  +
}
         221  +
impl ListNodesInputBuilder {
         222  +
    /// <p>The name of the Amazon Web Services managed resource data sync to retrieve information about.</p>
         223  +
    /// <p>For cross-account/cross-Region configurations, this parameter is required, and the name of the supported resource data sync is <code>AWS-QuickSetup-ManagedNode</code>.</p>
         224  +
    /// <p>For single account/single-Region configurations, the parameter is not required.</p>
         225  +
    pub fn sync_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         226  +
        self.sync_name = ::std::option::Option::Some(input.into());
         227  +
        self
         228  +
    }
         229  +
    /// <p>The name of the Amazon Web Services managed resource data sync to retrieve information about.</p>
         230  +
    /// <p>For cross-account/cross-Region configurations, this parameter is required, and the name of the supported resource data sync is <code>AWS-QuickSetup-ManagedNode</code>.</p>
         231  +
    /// <p>For single account/single-Region configurations, the parameter is not required.</p>
         232  +
    pub fn set_sync_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         233  +
        self.sync_name = input;
         234  +
        self
         235  +
    }
         236  +
    /// <p>The name of the Amazon Web Services managed resource data sync to retrieve information about.</p>
         237  +
    /// <p>For cross-account/cross-Region configurations, this parameter is required, and the name of the supported resource data sync is <code>AWS-QuickSetup-ManagedNode</code>.</p>
         238  +
    /// <p>For single account/single-Region configurations, the parameter is not required.</p>
         239  +
    pub fn get_sync_name(&self) -> &::std::option::Option<::std::string::String> {
         240  +
        &self.sync_name
         241  +
    }
         242  +
    /// Appends an item to `filters`.
         243  +
    ///
         244  +
    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
         245  +
    ///
         246  +
    /// <p>One or more filters. Use a filter to return a more specific list of managed nodes.</p>
         247  +
    pub fn filters(mut self, input: crate::types::NodeFilter) -> Self {
         248  +
        let mut v = self.filters.unwrap_or_default();
         249  +
        v.push(input);
         250  +
        self.filters = ::std::option::Option::Some(v);
         251  +
        self
         252  +
    }
         253  +
    /// <p>One or more filters. Use a filter to return a more specific list of managed nodes.</p>
         254  +
    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::NodeFilter>>) -> Self {
         255  +
        self.filters = input;
         256  +
        self
         257  +
    }
         258  +
    /// <p>One or more filters. Use a filter to return a more specific list of managed nodes.</p>
         259  +
    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::NodeFilter>> {
         260  +
        &self.filters
         261  +
    }
         262  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         263  +
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         264  +
        self.next_token = ::std::option::Option::Some(input.into());
         265  +
        self
         266  +
    }
         267  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         268  +
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         269  +
        self.next_token = input;
         270  +
        self
         271  +
    }
         272  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         273  +
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         274  +
        &self.next_token
         275  +
    }
         276  +
    /// <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>
         277  +
    pub fn max_results(mut self, input: i32) -> Self {
         278  +
        self.max_results = ::std::option::Option::Some(input);
         279  +
        self
         280  +
    }
         281  +
    /// <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>
         282  +
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
         283  +
        self.max_results = input;
         284  +
        self
         285  +
    }
         286  +
    /// <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>
         287  +
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
         288  +
        &self.max_results
         289  +
    }
         290  +
    /// Consumes the builder and constructs a [`ListNodesInput`](crate::operation::list_nodes::ListNodesInput).
         291  +
    pub fn build(self) -> ::std::result::Result<crate::operation::list_nodes::ListNodesInput, ::aws_smithy_types::error::operation::BuildError> {
         292  +
        ::std::result::Result::Ok(crate::operation::list_nodes::ListNodesInput {
         293  +
            sync_name: self.sync_name,
         294  +
            filters: self.filters,
         295  +
            next_token: self.next_token,
         296  +
            max_results: self.max_results,
         297  +
        })
         298  +
    }
         299  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/list_nodes/_list_nodes_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 ListNodesOutput {
           6  +
    /// <p>A list of managed nodes that match the specified filter criteria.</p>
           7  +
    pub nodes: ::std::option::Option<::std::vec::Vec<crate::types::Node>>,
           8  +
    /// <p>The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.</p>
           9  +
    pub next_token: ::std::option::Option<::std::string::String>,
          10  +
    _request_id: Option<String>,
          11  +
}
          12  +
impl ListNodesOutput {
          13  +
    /// <p>A list of managed nodes that match the specified filter criteria.</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 `.nodes.is_none()`.
          16  +
    pub fn nodes(&self) -> &[crate::types::Node] {
          17  +
        self.nodes.as_deref().unwrap_or_default()
          18  +
    }
          19  +
    /// <p>The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.</p>
          20  +
    pub fn next_token(&self) -> ::std::option::Option<&str> {
          21  +
        self.next_token.as_deref()
          22  +
    }
          23  +
}
          24  +
static LISTNODESOUTPUT_MEMBER_NODES_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          25  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#NodeList$member", "com.amazonaws.ssm", "NodeList"),
          26  +
    ::aws_smithy_schema::ShapeType::Structure,
          27  +
    "member",
          28  +
    0,
          29  +
);
          30  +
static LISTNODESOUTPUT_MEMBER_NODES: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          31  +
    ::aws_smithy_schema::ShapeId::from_parts(
          32  +
        "com.amazonaws.ssm.synthetic#ListNodesOutput$Nodes",
          33  +
        "com.amazonaws.ssm.synthetic",
          34  +
        "ListNodesOutput",
          35  +
    ),
          36  +
    ::aws_smithy_schema::ShapeType::List,
          37  +
    "Nodes",
          38  +
    0,
          39  +
)
          40  +
.with_list_member(&LISTNODESOUTPUT_MEMBER_NODES_MEMBER);
          41  +
static LISTNODESOUTPUT_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#ListNodesOutput$NextToken",
          44  +
        "com.amazonaws.ssm.synthetic",
          45  +
        "ListNodesOutput",
          46  +
    ),
          47  +
    ::aws_smithy_schema::ShapeType::String,
          48  +
    "NextToken",
          49  +
    1,
          50  +
);
          51  +
static LISTNODESOUTPUT_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 LISTNODESOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          59  +
    ::aws_smithy_schema::ShapeId::from_parts(
          60  +
        "com.amazonaws.ssm.synthetic#ListNodesOutput",
          61  +
        "com.amazonaws.ssm.synthetic",
          62  +
        "ListNodesOutput",
          63  +
    ),
          64  +
    ::aws_smithy_schema::ShapeType::Structure,
          65  +
    &[
          66  +
        &LISTNODESOUTPUT_MEMBER_NODES,
          67  +
        &LISTNODESOUTPUT_MEMBER_NEXT_TOKEN,
          68  +
        &LISTNODESOUTPUT_MEMBER__REQUEST_ID,
          69  +
    ],
          70  +
)
          71  +
.with_original_name("ListNodesResult");
          72  +
impl ListNodesOutput {
          73  +
    /// The schema for this shape.
          74  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &LISTNODESOUTPUT_SCHEMA;
          75  +
}
          76  +
impl ::aws_smithy_schema::serde::SerializableStruct for ListNodesOutput {
          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.nodes {
          83  +
            ser.write_list(
          84  +
                &LISTNODESOUTPUT_MEMBER_NODES,
          85  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
          86  +
                    for item in val {
          87  +
                        ser.write_struct(crate::types::Node::SCHEMA, item)?;
          88  +
                    }
          89  +
                    Ok(())
          90  +
                },
          91  +
            )?;
          92  +
        }
          93  +
        if let Some(ref val) = self.next_token {
          94  +
            ser.write_string(&LISTNODESOUTPUT_MEMBER_NEXT_TOKEN, val)?;
          95  +
        }
          96  +
        Ok(())
          97  +
    }
          98  +
}
          99  +
impl ListNodesOutput {
         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(&LISTNODESOUTPUT_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.nodes = Some({
         120  +
                            let mut container = Vec::new();
         121  +
                            deser.read_list(member, &mut |deser| {
         122  +
                                container.push(crate::types::Node::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 ListNodesOutput {
         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(&LISTNODESOUTPUT_SCHEMA, &mut |member, deser| {
         170  +
            match member.member_index() {
         171  +
                Some(0) => {
         172  +
                    builder.nodes = Some({
         173  +
                        let mut container = Vec::new();
         174  +
                        deser.read_list(member, &mut |deser| {
         175  +
                            container.push(crate::types::Node::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 ListNodesOutput {
         192  +
    fn request_id(&self) -> Option<&str> {
         193  +
        self._request_id.as_deref()
         194  +
    }
         195  +
}
         196  +
impl ListNodesOutput {
         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 ListNodesOutput {
         203  +
    /// Creates a new builder-style object to manufacture [`ListNodesOutput`](crate::operation::list_nodes::ListNodesOutput).
         204  +
    pub fn builder() -> crate::operation::list_nodes::builders::ListNodesOutputBuilder {
         205  +
        crate::operation::list_nodes::builders::ListNodesOutputBuilder::default()
         206  +
    }
         207  +
}
         208  +
         209  +
/// A builder for [`ListNodesOutput`](crate::operation::list_nodes::ListNodesOutput).
         210  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         211  +
#[non_exhaustive]
         212  +
pub struct ListNodesOutputBuilder {
         213  +
    pub(crate) nodes: ::std::option::Option<::std::vec::Vec<crate::types::Node>>,
         214  +
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
         215  +
    _request_id: Option<String>,
         216  +
}
         217  +
impl ListNodesOutputBuilder {
         218  +
    /// Appends an item to `nodes`.
         219  +
    ///
         220  +
    /// To override the contents of this collection use [`set_nodes`](Self::set_nodes).
         221  +
    ///
         222  +
    /// <p>A list of managed nodes that match the specified filter criteria.</p>
         223  +
    pub fn nodes(mut self, input: crate::types::Node) -> Self {
         224  +
        let mut v = self.nodes.unwrap_or_default();
         225  +
        v.push(input);
         226  +
        self.nodes = ::std::option::Option::Some(v);
         227  +
        self
         228  +
    }
         229  +
    /// <p>A list of managed nodes that match the specified filter criteria.</p>
         230  +
    pub fn set_nodes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Node>>) -> Self {
         231  +
        self.nodes = input;
         232  +
        self
         233  +
    }
         234  +
    /// <p>A list of managed nodes that match the specified filter criteria.</p>
         235  +
    pub fn get_nodes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Node>> {
         236  +
        &self.nodes
         237  +
    }
         238  +
    /// <p>The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.</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 to use when requesting the next set of items. If there are no additional items to return, the string is empty.</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 to use when requesting the next set of items. If there are no additional items to return, the string is empty.</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 [`ListNodesOutput`](crate::operation::list_nodes::ListNodesOutput).
         262  +
    pub fn build(self) -> crate::operation::list_nodes::ListNodesOutput {
         263  +
        crate::operation::list_nodes::ListNodesOutput {
         264  +
            nodes: self.nodes,
         265  +
            next_token: self.next_token,
         266  +
            _request_id: self._request_id,
         267  +
        }
         268  +
    }
         269  +
}