AWS SDK

AWS SDK

rev. aa190e630077955f0bc8f58dee6a16530c1e0578 (ignoring whitespace)

Files changed:

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

@@ -0,1 +0,153 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::get_ops_metadata::_get_ops_metadata_input::GetOpsMetadataInputBuilder;
           3  +
           4  +
pub use crate::operation::get_ops_metadata::_get_ops_metadata_output::GetOpsMetadataOutputBuilder;
           5  +
           6  +
impl crate::operation::get_ops_metadata::builders::GetOpsMetadataInputBuilder {
           7  +
    /// Sends a request with this input using the given client.
           8  +
    pub async fn send_with(
           9  +
        self,
          10  +
        client: &crate::Client,
          11  +
    ) -> ::std::result::Result<
          12  +
        crate::operation::get_ops_metadata::GetOpsMetadataOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::get_ops_metadata::GetOpsMetadataError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.get_ops_metadata();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `GetOpsMetadata`.
          24  +
///
          25  +
/// <p>View operational metadata related to an application in Application Manager.</p>
          26  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          27  +
pub struct GetOpsMetadataFluentBuilder {
          28  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          29  +
    inner: crate::operation::get_ops_metadata::builders::GetOpsMetadataInputBuilder,
          30  +
    config_override: ::std::option::Option<crate::config::Builder>,
          31  +
}
          32  +
impl
          33  +
    crate::client::customize::internal::CustomizableSend<
          34  +
        crate::operation::get_ops_metadata::GetOpsMetadataOutput,
          35  +
        crate::operation::get_ops_metadata::GetOpsMetadataError,
          36  +
    > for GetOpsMetadataFluentBuilder
          37  +
{
          38  +
    fn send(
          39  +
        self,
          40  +
        config_override: crate::config::Builder,
          41  +
    ) -> crate::client::customize::internal::BoxFuture<
          42  +
        crate::client::customize::internal::SendResult<
          43  +
            crate::operation::get_ops_metadata::GetOpsMetadataOutput,
          44  +
            crate::operation::get_ops_metadata::GetOpsMetadataError,
          45  +
        >,
          46  +
    > {
          47  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          48  +
    }
          49  +
}
          50  +
impl GetOpsMetadataFluentBuilder {
          51  +
    /// Creates a new `GetOpsMetadataFluentBuilder`.
          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 GetOpsMetadata as a reference.
          60  +
    pub fn as_input(&self) -> &crate::operation::get_ops_metadata::builders::GetOpsMetadataInputBuilder {
          61  +
        &self.inner
          62  +
    }
          63  +
    /// Sends the request and returns the response.
          64  +
    ///
          65  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          66  +
    /// can be matched against.
          67  +
    ///
          68  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          69  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          70  +
    /// set when configuring the client.
          71  +
    pub async fn send(
          72  +
        self,
          73  +
    ) -> ::std::result::Result<
          74  +
        crate::operation::get_ops_metadata::GetOpsMetadataOutput,
          75  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          76  +
            crate::operation::get_ops_metadata::GetOpsMetadataError,
          77  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          78  +
        >,
          79  +
    > {
          80  +
        let input = self
          81  +
            .inner
          82  +
            .build()
          83  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
          84  +
        let runtime_plugins = crate::operation::get_ops_metadata::GetOpsMetadata::operation_runtime_plugins(
          85  +
            self.handle.runtime_plugins.clone(),
          86  +
            &self.handle.conf,
          87  +
            self.config_override,
          88  +
        );
          89  +
        crate::operation::get_ops_metadata::GetOpsMetadata::orchestrate(&runtime_plugins, input).await
          90  +
    }
          91  +
          92  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
          93  +
    pub fn customize(
          94  +
        self,
          95  +
    ) -> crate::client::customize::CustomizableOperation<
          96  +
        crate::operation::get_ops_metadata::GetOpsMetadataOutput,
          97  +
        crate::operation::get_ops_metadata::GetOpsMetadataError,
          98  +
        Self,
          99  +
    > {
         100  +
        crate::client::customize::CustomizableOperation::new(self)
         101  +
    }
         102  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         103  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         104  +
        self
         105  +
    }
         106  +
         107  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         108  +
        self.config_override = config_override;
         109  +
        self
         110  +
    }
         111  +
    /// <p>The Amazon Resource Name (ARN) of an OpsMetadata Object to view.</p>
         112  +
    pub fn ops_metadata_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         113  +
        self.inner = self.inner.ops_metadata_arn(input.into());
         114  +
        self
         115  +
    }
         116  +
    /// <p>The Amazon Resource Name (ARN) of an OpsMetadata Object to view.</p>
         117  +
    pub fn set_ops_metadata_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         118  +
        self.inner = self.inner.set_ops_metadata_arn(input);
         119  +
        self
         120  +
    }
         121  +
    /// <p>The Amazon Resource Name (ARN) of an OpsMetadata Object to view.</p>
         122  +
    pub fn get_ops_metadata_arn(&self) -> &::std::option::Option<::std::string::String> {
         123  +
        self.inner.get_ops_metadata_arn()
         124  +
    }
         125  +
    /// <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>
         126  +
    pub fn max_results(mut self, input: i32) -> Self {
         127  +
        self.inner = self.inner.max_results(input);
         128  +
        self
         129  +
    }
         130  +
    /// <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>
         131  +
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
         132  +
        self.inner = self.inner.set_max_results(input);
         133  +
        self
         134  +
    }
         135  +
    /// <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>
         136  +
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
         137  +
        self.inner.get_max_results()
         138  +
    }
         139  +
    /// <p>A token to start the list. Use this token to get the next set of results.</p>
         140  +
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         141  +
        self.inner = self.inner.next_token(input.into());
         142  +
        self
         143  +
    }
         144  +
    /// <p>A token to start the list. Use this token to get the next set of results.</p>
         145  +
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         146  +
        self.inner = self.inner.set_next_token(input);
         147  +
        self
         148  +
    }
         149  +
    /// <p>A token to start the list. Use this token to get the next set of results.</p>
         150  +
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         151  +
        self.inner.get_next_token()
         152  +
    }
         153  +
}

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

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

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

@@ -0,1 +0,443 @@
           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 GetOpsSummaryInput {
           6  +
    /// <p>Specify the name of a resource data sync to get.</p>
           7  +
    pub sync_name: ::std::option::Option<::std::string::String>,
           8  +
    /// <p>Optional filters used to scope down the returned OpsData.</p>
           9  +
    pub filters: ::std::option::Option<::std::vec::Vec<crate::types::OpsFilter>>,
          10  +
    /// <p>Optional aggregators that return counts of OpsData based on one or more expressions.</p>
          11  +
    pub aggregators: ::std::option::Option<::std::vec::Vec<crate::types::OpsAggregator>>,
          12  +
    /// <p>The OpsData data type to return.</p>
          13  +
    pub result_attributes: ::std::option::Option<::std::vec::Vec<crate::types::OpsResultAttribute>>,
          14  +
    /// <p>A token to start the list. Use this token to get the next set of results.</p>
          15  +
    pub next_token: ::std::option::Option<::std::string::String>,
          16  +
    /// <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>
          17  +
    pub max_results: ::std::option::Option<i32>,
          18  +
}
          19  +
impl GetOpsSummaryInput {
          20  +
    /// <p>Specify the name of a resource data sync to get.</p>
          21  +
    pub fn sync_name(&self) -> ::std::option::Option<&str> {
          22  +
        self.sync_name.as_deref()
          23  +
    }
          24  +
    /// <p>Optional filters used to scope down the returned OpsData.</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::OpsFilter] {
          28  +
        self.filters.as_deref().unwrap_or_default()
          29  +
    }
          30  +
    /// <p>Optional aggregators that return counts of OpsData based on one or more expressions.</p>
          31  +
    ///
          32  +
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.aggregators.is_none()`.
          33  +
    pub fn aggregators(&self) -> &[crate::types::OpsAggregator] {
          34  +
        self.aggregators.as_deref().unwrap_or_default()
          35  +
    }
          36  +
    /// <p>The OpsData data type to return.</p>
          37  +
    ///
          38  +
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.result_attributes.is_none()`.
          39  +
    pub fn result_attributes(&self) -> &[crate::types::OpsResultAttribute] {
          40  +
        self.result_attributes.as_deref().unwrap_or_default()
          41  +
    }
          42  +
    /// <p>A token to start the list. Use this token to get the next set of results.</p>
          43  +
    pub fn next_token(&self) -> ::std::option::Option<&str> {
          44  +
        self.next_token.as_deref()
          45  +
    }
          46  +
    /// <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>
          47  +
    pub fn max_results(&self) -> ::std::option::Option<i32> {
          48  +
        self.max_results
          49  +
    }
          50  +
}
          51  +
static GETOPSSUMMARYINPUT_MEMBER_SYNC_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          52  +
    ::aws_smithy_schema::ShapeId::from_parts(
          53  +
        "com.amazonaws.ssm.synthetic#GetOpsSummaryInput$SyncName",
          54  +
        "com.amazonaws.ssm.synthetic",
          55  +
        "GetOpsSummaryInput",
          56  +
    ),
          57  +
    ::aws_smithy_schema::ShapeType::String,
          58  +
    "SyncName",
          59  +
    0,
          60  +
);
          61  +
static GETOPSSUMMARYINPUT_MEMBER_FILTERS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          62  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#OpsFilterList$member", "com.amazonaws.ssm", "OpsFilterList"),
          63  +
    ::aws_smithy_schema::ShapeType::Structure,
          64  +
    "member",
          65  +
    0,
          66  +
)
          67  +
.with_xml_name("OpsFilter");
          68  +
static GETOPSSUMMARYINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          69  +
    ::aws_smithy_schema::ShapeId::from_parts(
          70  +
        "com.amazonaws.ssm.synthetic#GetOpsSummaryInput$Filters",
          71  +
        "com.amazonaws.ssm.synthetic",
          72  +
        "GetOpsSummaryInput",
          73  +
    ),
          74  +
    ::aws_smithy_schema::ShapeType::List,
          75  +
    "Filters",
          76  +
    1,
          77  +
)
          78  +
.with_list_member(&GETOPSSUMMARYINPUT_MEMBER_FILTERS_MEMBER);
          79  +
static GETOPSSUMMARYINPUT_MEMBER_AGGREGATORS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          80  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#OpsAggregatorList$member", "com.amazonaws.ssm", "OpsAggregatorList"),
          81  +
    ::aws_smithy_schema::ShapeType::Structure,
          82  +
    "member",
          83  +
    0,
          84  +
)
          85  +
.with_xml_name("Aggregator");
          86  +
static GETOPSSUMMARYINPUT_MEMBER_AGGREGATORS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          87  +
    ::aws_smithy_schema::ShapeId::from_parts(
          88  +
        "com.amazonaws.ssm.synthetic#GetOpsSummaryInput$Aggregators",
          89  +
        "com.amazonaws.ssm.synthetic",
          90  +
        "GetOpsSummaryInput",
          91  +
    ),
          92  +
    ::aws_smithy_schema::ShapeType::List,
          93  +
    "Aggregators",
          94  +
    2,
          95  +
)
          96  +
.with_list_member(&GETOPSSUMMARYINPUT_MEMBER_AGGREGATORS_MEMBER);
          97  +
static GETOPSSUMMARYINPUT_MEMBER_RESULT_ATTRIBUTES_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          98  +
    ::aws_smithy_schema::ShapeId::from_parts(
          99  +
        "com.amazonaws.ssm#OpsResultAttributeList$member",
         100  +
        "com.amazonaws.ssm",
         101  +
        "OpsResultAttributeList",
         102  +
    ),
         103  +
    ::aws_smithy_schema::ShapeType::Structure,
         104  +
    "member",
         105  +
    0,
         106  +
)
         107  +
.with_xml_name("OpsResultAttribute");
         108  +
static GETOPSSUMMARYINPUT_MEMBER_RESULT_ATTRIBUTES: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         109  +
    ::aws_smithy_schema::ShapeId::from_parts(
         110  +
        "com.amazonaws.ssm.synthetic#GetOpsSummaryInput$ResultAttributes",
         111  +
        "com.amazonaws.ssm.synthetic",
         112  +
        "GetOpsSummaryInput",
         113  +
    ),
         114  +
    ::aws_smithy_schema::ShapeType::List,
         115  +
    "ResultAttributes",
         116  +
    3,
         117  +
)
         118  +
.with_list_member(&GETOPSSUMMARYINPUT_MEMBER_RESULT_ATTRIBUTES_MEMBER);
         119  +
static GETOPSSUMMARYINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         120  +
    ::aws_smithy_schema::ShapeId::from_parts(
         121  +
        "com.amazonaws.ssm.synthetic#GetOpsSummaryInput$NextToken",
         122  +
        "com.amazonaws.ssm.synthetic",
         123  +
        "GetOpsSummaryInput",
         124  +
    ),
         125  +
    ::aws_smithy_schema::ShapeType::String,
         126  +
    "NextToken",
         127  +
    4,
         128  +
);
         129  +
static GETOPSSUMMARYINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         130  +
    ::aws_smithy_schema::ShapeId::from_parts(
         131  +
        "com.amazonaws.ssm.synthetic#GetOpsSummaryInput$MaxResults",
         132  +
        "com.amazonaws.ssm.synthetic",
         133  +
        "GetOpsSummaryInput",
         134  +
    ),
         135  +
    ::aws_smithy_schema::ShapeType::Integer,
         136  +
    "MaxResults",
         137  +
    5,
         138  +
);
         139  +
static GETOPSSUMMARYINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
         140  +
    ::aws_smithy_schema::ShapeId::from_parts(
         141  +
        "com.amazonaws.ssm.synthetic#GetOpsSummaryInput",
         142  +
        "com.amazonaws.ssm.synthetic",
         143  +
        "GetOpsSummaryInput",
         144  +
    ),
         145  +
    ::aws_smithy_schema::ShapeType::Structure,
         146  +
    &[
         147  +
        &GETOPSSUMMARYINPUT_MEMBER_SYNC_NAME,
         148  +
        &GETOPSSUMMARYINPUT_MEMBER_FILTERS,
         149  +
        &GETOPSSUMMARYINPUT_MEMBER_AGGREGATORS,
         150  +
        &GETOPSSUMMARYINPUT_MEMBER_RESULT_ATTRIBUTES,
         151  +
        &GETOPSSUMMARYINPUT_MEMBER_NEXT_TOKEN,
         152  +
        &GETOPSSUMMARYINPUT_MEMBER_MAX_RESULTS,
         153  +
    ],
         154  +
)
         155  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
         156  +
.with_original_name("GetOpsSummaryRequest");
         157  +
impl GetOpsSummaryInput {
         158  +
    /// The schema for this shape.
         159  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &GETOPSSUMMARYINPUT_SCHEMA;
         160  +
}
         161  +
impl ::aws_smithy_schema::serde::SerializableStruct for GetOpsSummaryInput {
         162  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
         163  +
    fn serialize_members(
         164  +
        &self,
         165  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
         166  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
         167  +
        if let Some(ref val) = self.sync_name {
         168  +
            ser.write_string(&GETOPSSUMMARYINPUT_MEMBER_SYNC_NAME, val)?;
         169  +
        }
         170  +
        if let Some(ref val) = self.filters {
         171  +
            ser.write_list(
         172  +
                &GETOPSSUMMARYINPUT_MEMBER_FILTERS,
         173  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         174  +
                    for item in val {
         175  +
                        ser.write_struct(crate::types::OpsFilter::SCHEMA, item)?;
         176  +
                    }
         177  +
                    Ok(())
         178  +
                },
         179  +
            )?;
         180  +
        }
         181  +
        if let Some(ref val) = self.aggregators {
         182  +
            ser.write_list(
         183  +
                &GETOPSSUMMARYINPUT_MEMBER_AGGREGATORS,
         184  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         185  +
                    for item in val {
         186  +
                        ser.write_struct(crate::types::OpsAggregator::SCHEMA, item)?;
         187  +
                    }
         188  +
                    Ok(())
         189  +
                },
         190  +
            )?;
         191  +
        }
         192  +
        if let Some(ref val) = self.result_attributes {
         193  +
            ser.write_list(
         194  +
                &GETOPSSUMMARYINPUT_MEMBER_RESULT_ATTRIBUTES,
         195  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         196  +
                    for item in val {
         197  +
                        ser.write_struct(crate::types::OpsResultAttribute::SCHEMA, item)?;
         198  +
                    }
         199  +
                    Ok(())
         200  +
                },
         201  +
            )?;
         202  +
        }
         203  +
        if let Some(ref val) = self.next_token {
         204  +
            ser.write_string(&GETOPSSUMMARYINPUT_MEMBER_NEXT_TOKEN, val)?;
         205  +
        }
         206  +
        if let Some(ref val) = self.max_results {
         207  +
            ser.write_integer(&GETOPSSUMMARYINPUT_MEMBER_MAX_RESULTS, *val)?;
         208  +
        }
         209  +
        Ok(())
         210  +
    }
         211  +
}
         212  +
impl GetOpsSummaryInput {
         213  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         214  +
    pub fn deserialize(
         215  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         216  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         217  +
        #[allow(unused_variables, unused_mut)]
         218  +
        let mut builder = Self::builder();
         219  +
        #[allow(
         220  +
            unused_variables,
         221  +
            unreachable_code,
         222  +
            clippy::single_match,
         223  +
            clippy::match_single_binding,
         224  +
            clippy::diverging_sub_expression
         225  +
        )]
         226  +
        deserializer.read_struct(&GETOPSSUMMARYINPUT_SCHEMA, &mut |member, deser| {
         227  +
            match member.member_index() {
         228  +
                Some(0) => {
         229  +
                    if deser.is_null() {
         230  +
                        deser.read_null()?;
         231  +
                    } else {
         232  +
                        builder.sync_name = Some(deser.read_string(member)?);
         233  +
                    }
         234  +
                }
         235  +
                Some(1) => {
         236  +
                    if deser.is_null() {
         237  +
                        deser.read_null()?;
         238  +
                    } else {
         239  +
                        builder.filters = Some({
         240  +
                            let mut container = Vec::new();
         241  +
                            deser.read_list(member, &mut |deser| {
         242  +
                                container.push(crate::types::OpsFilter::deserialize(deser)?);
         243  +
                                Ok(())
         244  +
                            })?;
         245  +
                            container
         246  +
                        });
         247  +
                    }
         248  +
                }
         249  +
                Some(2) => {
         250  +
                    if deser.is_null() {
         251  +
                        deser.read_null()?;
         252  +
                    } else {
         253  +
                        builder.aggregators = Some({
         254  +
                            let mut container = Vec::new();
         255  +
                            deser.read_list(member, &mut |deser| {
         256  +
                                container.push(crate::types::OpsAggregator::deserialize(deser)?);
         257  +
                                Ok(())
         258  +
                            })?;
         259  +
                            container
         260  +
                        });
         261  +
                    }
         262  +
                }
         263  +
                Some(3) => {
         264  +
                    if deser.is_null() {
         265  +
                        deser.read_null()?;
         266  +
                    } else {
         267  +
                        builder.result_attributes = Some({
         268  +
                            let mut container = Vec::new();
         269  +
                            deser.read_list(member, &mut |deser| {
         270  +
                                container.push(crate::types::OpsResultAttribute::deserialize(deser)?);
         271  +
                                Ok(())
         272  +
                            })?;
         273  +
                            container
         274  +
                        });
         275  +
                    }
         276  +
                }
         277  +
                Some(4) => {
         278  +
                    if deser.is_null() {
         279  +
                        deser.read_null()?;
         280  +
                    } else {
         281  +
                        builder.next_token = Some(deser.read_string(member)?);
         282  +
                    }
         283  +
                }
         284  +
                Some(5) => {
         285  +
                    if deser.is_null() {
         286  +
                        deser.read_null()?;
         287  +
                    } else {
         288  +
                        builder.max_results = Some(deser.read_integer(member)?);
         289  +
                    }
         290  +
                }
         291  +
                _ => {}
         292  +
            }
         293  +
            Ok(())
         294  +
        })?;
         295  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
         296  +
    }
         297  +
}
         298  +
impl GetOpsSummaryInput {
         299  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         300  +
    pub fn deserialize_with_response(
         301  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         302  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         303  +
        _status: u16,
         304  +
        _body: &[u8],
         305  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         306  +
        Self::deserialize(deserializer)
         307  +
    }
         308  +
}
         309  +
impl GetOpsSummaryInput {
         310  +
    /// Creates a new builder-style object to manufacture [`GetOpsSummaryInput`](crate::operation::get_ops_summary::GetOpsSummaryInput).
         311  +
    pub fn builder() -> crate::operation::get_ops_summary::builders::GetOpsSummaryInputBuilder {
         312  +
        crate::operation::get_ops_summary::builders::GetOpsSummaryInputBuilder::default()
         313  +
    }
         314  +
}
         315  +
         316  +
/// A builder for [`GetOpsSummaryInput`](crate::operation::get_ops_summary::GetOpsSummaryInput).
         317  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         318  +
#[non_exhaustive]
         319  +
pub struct GetOpsSummaryInputBuilder {
         320  +
    pub(crate) sync_name: ::std::option::Option<::std::string::String>,
         321  +
    pub(crate) filters: ::std::option::Option<::std::vec::Vec<crate::types::OpsFilter>>,
         322  +
    pub(crate) aggregators: ::std::option::Option<::std::vec::Vec<crate::types::OpsAggregator>>,
         323  +
    pub(crate) result_attributes: ::std::option::Option<::std::vec::Vec<crate::types::OpsResultAttribute>>,
         324  +
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
         325  +
    pub(crate) max_results: ::std::option::Option<i32>,
         326  +
}
         327  +
impl GetOpsSummaryInputBuilder {
         328  +
    /// <p>Specify the name of a resource data sync to get.</p>
         329  +
    pub fn sync_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         330  +
        self.sync_name = ::std::option::Option::Some(input.into());
         331  +
        self
         332  +
    }
         333  +
    /// <p>Specify the name of a resource data sync to get.</p>
         334  +
    pub fn set_sync_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         335  +
        self.sync_name = input;
         336  +
        self
         337  +
    }
         338  +
    /// <p>Specify the name of a resource data sync to get.</p>
         339  +
    pub fn get_sync_name(&self) -> &::std::option::Option<::std::string::String> {
         340  +
        &self.sync_name
         341  +
    }
         342  +
    /// Appends an item to `filters`.
         343  +
    ///
         344  +
    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
         345  +
    ///
         346  +
    /// <p>Optional filters used to scope down the returned OpsData.</p>
         347  +
    pub fn filters(mut self, input: crate::types::OpsFilter) -> Self {
         348  +
        let mut v = self.filters.unwrap_or_default();
         349  +
        v.push(input);
         350  +
        self.filters = ::std::option::Option::Some(v);
         351  +
        self
         352  +
    }
         353  +
    /// <p>Optional filters used to scope down the returned OpsData.</p>
         354  +
    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::OpsFilter>>) -> Self {
         355  +
        self.filters = input;
         356  +
        self
         357  +
    }
         358  +
    /// <p>Optional filters used to scope down the returned OpsData.</p>
         359  +
    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::OpsFilter>> {
         360  +
        &self.filters
         361  +
    }
         362  +
    /// Appends an item to `aggregators`.
         363  +
    ///
         364  +
    /// To override the contents of this collection use [`set_aggregators`](Self::set_aggregators).
         365  +
    ///
         366  +
    /// <p>Optional aggregators that return counts of OpsData based on one or more expressions.</p>
         367  +
    pub fn aggregators(mut self, input: crate::types::OpsAggregator) -> Self {
         368  +
        let mut v = self.aggregators.unwrap_or_default();
         369  +
        v.push(input);
         370  +
        self.aggregators = ::std::option::Option::Some(v);
         371  +
        self
         372  +
    }
         373  +
    /// <p>Optional aggregators that return counts of OpsData based on one or more expressions.</p>
         374  +
    pub fn set_aggregators(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::OpsAggregator>>) -> Self {
         375  +
        self.aggregators = input;
         376  +
        self
         377  +
    }
         378  +
    /// <p>Optional aggregators that return counts of OpsData based on one or more expressions.</p>
         379  +
    pub fn get_aggregators(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::OpsAggregator>> {
         380  +
        &self.aggregators
         381  +
    }
         382  +
    /// Appends an item to `result_attributes`.
         383  +
    ///
         384  +
    /// To override the contents of this collection use [`set_result_attributes`](Self::set_result_attributes).
         385  +
    ///
         386  +
    /// <p>The OpsData data type to return.</p>
         387  +
    pub fn result_attributes(mut self, input: crate::types::OpsResultAttribute) -> Self {
         388  +
        let mut v = self.result_attributes.unwrap_or_default();
         389  +
        v.push(input);
         390  +
        self.result_attributes = ::std::option::Option::Some(v);
         391  +
        self
         392  +
    }
         393  +
    /// <p>The OpsData data type to return.</p>
         394  +
    pub fn set_result_attributes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::OpsResultAttribute>>) -> Self {
         395  +
        self.result_attributes = input;
         396  +
        self
         397  +
    }
         398  +
    /// <p>The OpsData data type to return.</p>
         399  +
    pub fn get_result_attributes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::OpsResultAttribute>> {
         400  +
        &self.result_attributes
         401  +
    }
         402  +
    /// <p>A token to start the list. Use this token to get the next set of results.</p>
         403  +
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         404  +
        self.next_token = ::std::option::Option::Some(input.into());
         405  +
        self
         406  +
    }
         407  +
    /// <p>A token to start the list. Use this token to get the next set of results.</p>
         408  +
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         409  +
        self.next_token = input;
         410  +
        self
         411  +
    }
         412  +
    /// <p>A token to start the list. Use this token to get the next set of results.</p>
         413  +
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         414  +
        &self.next_token
         415  +
    }
         416  +
    /// <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>
         417  +
    pub fn max_results(mut self, input: i32) -> Self {
         418  +
        self.max_results = ::std::option::Option::Some(input);
         419  +
        self
         420  +
    }
         421  +
    /// <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>
         422  +
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
         423  +
        self.max_results = input;
         424  +
        self
         425  +
    }
         426  +
    /// <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>
         427  +
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
         428  +
        &self.max_results
         429  +
    }
         430  +
    /// Consumes the builder and constructs a [`GetOpsSummaryInput`](crate::operation::get_ops_summary::GetOpsSummaryInput).
         431  +
    pub fn build(
         432  +
        self,
         433  +
    ) -> ::std::result::Result<crate::operation::get_ops_summary::GetOpsSummaryInput, ::aws_smithy_types::error::operation::BuildError> {
         434  +
        ::std::result::Result::Ok(crate::operation::get_ops_summary::GetOpsSummaryInput {
         435  +
            sync_name: self.sync_name,
         436  +
            filters: self.filters,
         437  +
            aggregators: self.aggregators,
         438  +
            result_attributes: self.result_attributes,
         439  +
            next_token: self.next_token,
         440  +
            max_results: self.max_results,
         441  +
        })
         442  +
    }
         443  +
}