Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/operation_with_defaults.rs

@@ -1,1 +40,49 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* OperationGenerator.kt:77 */
    2      3   
/// Orchestration and serialization glue logic for `OperationWithDefaults`.
           4  +
/* RustType.kt:516 */
    3      5   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
           6  +
/* RustType.kt:516 */
    4      7   
#[non_exhaustive]
           8  +
/* OperationGenerator.kt:84 */
    5      9   
pub struct OperationWithDefaults;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl OperationWithDefaults {
    7         -
    /// Creates a new `OperationWithDefaults`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `OperationWithDefaults`
          13  +
    /* OperationGenerator.kt:87 */
    8     14   
    pub fn new() -> Self {
          15  +
        /* OperationGenerator.kt:88 */
    9     16   
        Self
          17  +
        /* OperationGenerator.kt:87 */
   10     18   
    }
          19  +
    /* OperationGenerator.kt:138 */
   11     20   
    pub(crate) async fn orchestrate(
   12     21   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     22   
        input: crate::operation::operation_with_defaults::OperationWithDefaultsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::operation_with_defaults::OperationWithDefaultsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::operation_with_defaults::OperationWithDefaultsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +270,287 @@
   77     86   
                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
   78     87   
            }
   79     88   
            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
   80     89   
                config_override,
   81     90   
                client_config.config.clone(),
   82     91   
                &client_config.runtime_components,
   83     92   
            ));
   84     93   
        }
   85     94   
        runtime_plugins
   86     95   
    }
          96  +
    /* OperationGenerator.kt:85 */
   87     97   
}
          98  +
/* OperationRuntimePluginGenerator.kt:55 */
   88     99   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for OperationWithDefaults {
   89    100   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
   90    101   
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("OperationWithDefaults");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            OperationWithDefaultsRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            OperationWithDefaultsResponseDeserializer,
   97    108   
        ));
   98    109   
   99    110   
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
  100    111   
            ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
  101    112   
        ));
  102    113   
  103    114   
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
  104    115   
            "OperationWithDefaults",
  105    116   
            "JSON RPC 10",
  106    117   
        ));
  107    118   
  108    119   
        ::std::option::Option::Some(cfg.freeze())
  109    120   
    }
  110    121   
  111    122   
    fn runtime_components(
  112    123   
        &self,
  113    124   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  114    125   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  115    126   
        #[allow(unused_mut)]
  116    127   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("OperationWithDefaults")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(OperationWithDefaultsEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::operation_with_defaults::OperationWithDefaultsError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::operation_with_defaults::OperationWithDefaultsError,
  124    135   
            >::new());
  125    136   
  126    137   
        ::std::borrow::Cow::Owned(rcb)
  127    138   
    }
  128    139   
}
  129    140   
         141  +
/* ResponseDeserializerGenerator.kt:64 */
  130    142   
#[derive(Debug)]
  131    143   
struct OperationWithDefaultsResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for OperationWithDefaultsResponseDeserializer {
  133    145   
    fn deserialize_nonstreaming(
  134    146   
        &self,
  135    147   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
  136    148   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  137    149   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  138    150   
        let headers = response.headers();
  139    151   
        let body = response.body().bytes().expect("body loaded");
  140    152   
        #[allow(unused_mut)]
  141    153   
        let mut force_error = false;
  142    154   
  143    155   
        let parse_result = if !success && status != 200 || force_error {
  144    156   
            crate::protocol_serde::shape_operation_with_defaults::de_operation_with_defaults_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_operation_with_defaults::de_operation_with_defaults_http_response(status, headers, body)
  147    159   
        };
  148    160   
        crate::protocol_serde::type_erase_result(parse_result)
  149    161   
    }
  150    162   
}
         163  +
/* RequestSerializerGenerator.kt:67 */
  151    164   
#[derive(Debug)]
  152    165   
struct OperationWithDefaultsRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for OperationWithDefaultsRequestSerializer {
  154    167   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  155    168   
    fn serialize_input(
  156    169   
        &self,
  157    170   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  158    171   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  159    172   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  160    173   
        let input = input
  161    174   
            .downcast::<crate::operation::operation_with_defaults::OperationWithDefaultsInput>()
  162    175   
            .expect("correct type");
  163    176   
        let _header_serialization_settings = _cfg
  164    177   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  165    178   
            .cloned()
  166    179   
            .unwrap_or_default();
  167    180   
        let mut request_builder = {
  168    181   
            fn uri_base(
  169    182   
                _input: &crate::operation::operation_with_defaults::OperationWithDefaultsInput,
  170    183   
                output: &mut ::std::string::String,
  171    184   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  172    185   
                use ::std::fmt::Write as _;
  173    186   
                ::std::write!(output, "/").expect("formatting should succeed");
  174    187   
                ::std::result::Result::Ok(())
  175    188   
            }
  176    189   
            #[allow(clippy::unnecessary_wraps)]
  177    190   
            fn update_http_builder(
  178    191   
                input: &crate::operation::operation_with_defaults::OperationWithDefaultsInput,
  179    192   
                builder: ::http::request::Builder,
  180    193   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  181    194   
                let mut uri = ::std::string::String::new();
  182    195   
                uri_base(input, &mut uri)?;
  183    196   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  184    197   
            }
  185    198   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  186    199   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-amz-json-1.0");
  187    200   
            builder = _header_serialization_settings.set_default_header(
  188    201   
                builder,
  189    202   
                ::http::header::HeaderName::from_static("x-amz-target"),
  190    203   
                "JsonRpc10.OperationWithDefaults",
  191    204   
            );
  192    205   
            builder
  193    206   
        };
  194    207   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_operation_with_defaults::ser_operation_with_defaults_input(
  195    208   
            &input,
  196    209   
        )?);
  197    210   
        if let Some(content_length) = body.content_length() {
  198    211   
            let content_length = content_length.to_string();
  199    212   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  200    213   
        }
  201    214   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  202    215   
    }
  203    216   
}
         217  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  204    218   
#[derive(Debug)]
  205    219   
struct OperationWithDefaultsEndpointParamsInterceptor;
  206    220   
  207    221   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for OperationWithDefaultsEndpointParamsInterceptor {
  208    222   
    fn name(&self) -> &'static str {
  209    223   
        "OperationWithDefaultsEndpointParamsInterceptor"
  210    224   
    }
  211    225   
  212    226   
    fn read_before_execution(
  213    227   
        &self,
  214    228   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  215    229   
            '_,
  216    230   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  217    231   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  218    232   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  219    233   
        >,
  220    234   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  221    235   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  222    236   
        let _input = context
  223    237   
            .input()
  224    238   
            .downcast_ref::<OperationWithDefaultsInput>()
  225    239   
            .ok_or("failed to downcast to OperationWithDefaultsInput")?;
  226    240   
  227    241   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  228    242   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  229    243   
        })?;
  230    244   
        cfg.interceptor_state()
  231    245   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  232    246   
        ::std::result::Result::Ok(())
  233    247   
    }
  234    248   
}
  235    249   
  236    250   
// The get_* functions below are generated from JMESPath expressions in the
  237    251   
// operationContextParams trait. They target the operation's input shape.
  238    252   
         253  +
/* RustType.kt:516 */
  239    254   
#[allow(unreachable_code, unused_variables)]
         255  +
/* RustType.kt:516 */
  240    256   
#[cfg(test)]
         257  +
/* ProtocolTestGenerator.kt:98 */
  241    258   
mod operation_with_defaults_test {
  242    259   
    use ::aws_smithy_protocol_test::FloatEquals;
  243    260   
  244    261   
    /// Client populates default values in input.
  245    262   
    /// Test ID: AwsJson10ClientPopulatesDefaultValuesInInput
  246    263   
    #[::tokio::test]
  247    264   
    #[::tracing_test::traced_test]
  248    265   
    #[should_panic]
  249    266   
    async fn aws_json10_client_populates_default_values_in_input_request() {
  250    267   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
@@ -787,804 +916,992 @@
  807    824   
            expected_output.zero_float,
  808    825   
            parsed.zero_float
  809    826   
        );
  810    827   
        assert!(
  811    828   
            parsed.zero_double.float_equals(&expected_output.zero_double),
  812    829   
            "Unexpected value for `zero_double` {:?} vs. {:?}",
  813    830   
            expected_output.zero_double,
  814    831   
            parsed.zero_double
  815    832   
        );
  816    833   
    }
         834  +
         835  +
    /* ProtocolTestGenerator.kt:98 */
  817    836   
}
  818    837   
         838  +
/* OperationErrorGenerator.kt:79 */
  819    839   
/// Error type for the `OperationWithDefaultsError` operation.
         840  +
/* RustType.kt:516 */
  820    841   
#[non_exhaustive]
         842  +
/* RustType.kt:516 */
  821    843   
#[derive(::std::fmt::Debug)]
  822         -
pub enum OperationWithDefaultsError {
         844  +
pub /* OperationErrorGenerator.kt:81 */ enum OperationWithDefaultsError {
         845  +
    /* OperationErrorGenerator.kt:88 */
  823    846   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  824    847   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  825    848   
    variable wildcard pattern and check `.code()`:
  826    849   
     \
  827    850   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  828    851   
     \
  829    852   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-OperationWithDefaultsError) for what information is available for the error.")]
  830    853   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         854  +
    /* OperationErrorGenerator.kt:81 */
  831    855   
}
         856  +
/* OperationErrorGenerator.kt:218 */
  832    857   
impl OperationWithDefaultsError {
         858  +
    /* OperationErrorGenerator.kt:219 */
  833    859   
    /// Creates the `OperationWithDefaultsError::Unhandled` variant from any error type.
  834    860   
    pub fn unhandled(
  835    861   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  836    862   
    ) -> Self {
  837    863   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  838    864   
            source: err.into(),
  839    865   
            meta: ::std::default::Default::default(),
  840    866   
        })
  841    867   
    }
  842    868   
  843    869   
    /// Creates the `OperationWithDefaultsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  844    870   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  845    871   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  846    872   
            source: err.clone().into(),
  847    873   
            meta: err,
  848    874   
        })
  849    875   
    }
  850         -
    ///
         876  +
    /// /* OperationErrorGenerator.kt:236 */
  851    877   
    /// Returns error metadata, which includes the error code, message,
  852    878   
    /// request ID, and potentially additional information.
  853    879   
    ///
         880  +
    /* OperationErrorGenerator.kt:242 */
  854    881   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         882  +
        /* OperationErrorGenerator.kt:243 */
  855    883   
        match self {
  856         -
            Self::Unhandled(e) => &e.meta,
         884  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         885  +
            /* OperationErrorGenerator.kt:243 */
  857    886   
        }
         887  +
        /* OperationErrorGenerator.kt:242 */
  858    888   
    }
         889  +
    /* OperationErrorGenerator.kt:218 */
  859    890   
}
         891  +
/* OperationErrorGenerator.kt:269 */
  860    892   
impl ::std::error::Error for OperationWithDefaultsError {
         893  +
    /* OperationErrorGenerator.kt:270 */
  861    894   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         895  +
        /* OperationErrorGenerator.kt:318 */
  862    896   
        match self {
  863         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         897  +
            /* OperationErrorGenerator.kt:326 */
         898  +
            Self::Unhandled(_inner) => {
         899  +
                /* OperationErrorGenerator.kt:279 */
         900  +
                ::std::option::Option::Some(&*_inner.source)
         901  +
                /* OperationErrorGenerator.kt:326 */
         902  +
            } /* OperationErrorGenerator.kt:318 */
  864    903   
        }
         904  +
        /* OperationErrorGenerator.kt:270 */
  865    905   
    }
         906  +
    /* OperationErrorGenerator.kt:269 */
  866    907   
}
         908  +
/* OperationErrorGenerator.kt:133 */
  867    909   
impl ::std::fmt::Display for OperationWithDefaultsError {
         910  +
    /* OperationErrorGenerator.kt:134 */
  868    911   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         912  +
        /* OperationErrorGenerator.kt:318 */
  869    913   
        match self {
         914  +
            /* OperationErrorGenerator.kt:326 */
  870    915   
            Self::Unhandled(_inner) => {
         916  +
                /* OperationErrorGenerator.kt:139 */
  871    917   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  872    918   
                    write!(f, "unhandled error ({code})")
  873    919   
                } else {
  874    920   
                    f.write_str("unhandled error")
  875    921   
                }
         922  +
                /* OperationErrorGenerator.kt:326 */
         923  +
            } /* OperationErrorGenerator.kt:318 */
  876    924   
        }
         925  +
        /* OperationErrorGenerator.kt:134 */
  877    926   
    }
  878         -
    }
         927  +
    /* OperationErrorGenerator.kt:133 */
  879    928   
}
         929  +
/* OperationErrorGenerator.kt:182 */
  880    930   
impl ::aws_smithy_types::retry::ProvideErrorKind for OperationWithDefaultsError {
         931  +
    /* OperationErrorGenerator.kt:186 */
  881    932   
    fn code(&self) -> ::std::option::Option<&str> {
         933  +
        /* OperationErrorGenerator.kt:187 */
  882    934   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         935  +
        /* OperationErrorGenerator.kt:186 */
  883    936   
    }
         937  +
    /* OperationErrorGenerator.kt:190 */
  884    938   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         939  +
        /* OperationErrorGenerator.kt:197 */
  885    940   
        ::std::option::Option::None
         941  +
        /* OperationErrorGenerator.kt:190 */
  886    942   
    }
         943  +
    /* OperationErrorGenerator.kt:182 */
  887    944   
}
         945  +
/* OperationErrorGenerator.kt:163 */
  888    946   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for OperationWithDefaultsError {
         947  +
    /* OperationErrorGenerator.kt:164 */
  889    948   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         949  +
        /* OperationErrorGenerator.kt:318 */
  890    950   
        match self {
  891         -
            Self::Unhandled(_inner) => &_inner.meta,
         951  +
            /* OperationErrorGenerator.kt:326 */
         952  +
            Self::Unhandled(_inner) => {
         953  +
                /* OperationErrorGenerator.kt:168 */
         954  +
                &_inner.meta
         955  +
                /* OperationErrorGenerator.kt:326 */
         956  +
            } /* OperationErrorGenerator.kt:318 */
  892    957   
        }
         958  +
        /* OperationErrorGenerator.kt:164 */
  893    959   
    }
         960  +
    /* OperationErrorGenerator.kt:163 */
  894    961   
}
         962  +
/* OperationErrorGenerator.kt:109 */
  895    963   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for OperationWithDefaultsError {
         964  +
    /* OperationErrorGenerator.kt:110 */
  896    965   
    fn create_unhandled_error(
  897    966   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  898    967   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  899    968   
    ) -> Self {
         969  +
        /* OperationErrorGenerator.kt:121 */
  900    970   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  901    971   
            source,
  902    972   
            meta: meta.unwrap_or_default(),
  903    973   
        })
         974  +
        /* OperationErrorGenerator.kt:110 */
  904    975   
    }
         976  +
    /* OperationErrorGenerator.kt:109 */
  905    977   
}
  906    978   
         979  +
/* CodegenDelegator.kt:255 */
  907    980   
pub use crate::operation::operation_with_defaults::_operation_with_defaults_output::OperationWithDefaultsOutput;
  908    981   
         982  +
/* CodegenDelegator.kt:255 */
  909    983   
pub use crate::operation::operation_with_defaults::_operation_with_defaults_input::OperationWithDefaultsInput;
  910    984   
         985  +
/* RustModule.kt:172 */
  911    986   
mod _operation_with_defaults_input;
  912    987   
         988  +
/* RustModule.kt:172 */
  913    989   
mod _operation_with_defaults_output;
  914    990   
  915         -
/// Builders
         991  +
/// /* CodegenDelegator.kt:51 */Builders
  916    992   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/operation_with_defaults/_operation_with_defaults_input.rs

@@ -1,1 +118,217 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* StructureGenerator.kt:197 */
    2      3   
#[allow(missing_docs)] // documentation missing in model
           4  +
/* RustType.kt:516 */
    3      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    4      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5         -
pub struct OperationWithDefaultsInput {
           8  +
pub /* StructureGenerator.kt:201 */ struct OperationWithDefaultsInput {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub defaults: ::std::option::Option<crate::types::Defaults>,
          12  +
    /* StructureGenerator.kt:231 */
    8     13   
    #[allow(missing_docs)] // documentation missing in model
    9     14   
    pub client_optional_defaults: ::std::option::Option<crate::types::ClientOptionalDefaults>,
          15  +
    /* StructureGenerator.kt:231 */
   10     16   
    #[allow(missing_docs)] // documentation missing in model
   11     17   
    pub top_level_default: ::std::option::Option<::std::string::String>,
          18  +
    /* StructureGenerator.kt:231 */
   12     19   
    #[allow(missing_docs)] // documentation missing in model
   13     20   
    pub other_top_level_default: ::std::option::Option<i32>,
          21  +
    /* StructureGenerator.kt:201 */
   14     22   
}
          23  +
/* StructureGenerator.kt:135 */
   15     24   
impl OperationWithDefaultsInput {
          25  +
    /* StructureGenerator.kt:231 */
   16     26   
    #[allow(missing_docs)] // documentation missing in model
          27  +
                           /* StructureGenerator.kt:166 */
   17     28   
    pub fn defaults(&self) -> ::std::option::Option<&crate::types::Defaults> {
          29  +
        /* StructureGenerator.kt:170 */
   18     30   
        self.defaults.as_ref()
          31  +
        /* StructureGenerator.kt:166 */
   19     32   
    }
          33  +
    /* StructureGenerator.kt:231 */
   20     34   
    #[allow(missing_docs)] // documentation missing in model
          35  +
                           /* StructureGenerator.kt:166 */
   21     36   
    pub fn client_optional_defaults(&self) -> ::std::option::Option<&crate::types::ClientOptionalDefaults> {
          37  +
        /* StructureGenerator.kt:170 */
   22     38   
        self.client_optional_defaults.as_ref()
          39  +
        /* StructureGenerator.kt:166 */
   23     40   
    }
          41  +
    /* StructureGenerator.kt:231 */
   24     42   
    #[allow(missing_docs)] // documentation missing in model
          43  +
                           /* StructureGenerator.kt:166 */
   25     44   
    pub fn top_level_default(&self) -> ::std::option::Option<&str> {
          45  +
        /* StructureGenerator.kt:169 */
   26     46   
        self.top_level_default.as_deref()
          47  +
        /* StructureGenerator.kt:166 */
   27     48   
    }
          49  +
    /* StructureGenerator.kt:231 */
   28     50   
    #[allow(missing_docs)] // documentation missing in model
          51  +
                           /* StructureGenerator.kt:166 */
   29     52   
    pub fn other_top_level_default(&self) -> ::std::option::Option<i32> {
          53  +
        /* StructureGenerator.kt:168 */
   30     54   
        self.other_top_level_default
          55  +
        /* StructureGenerator.kt:166 */
   31     56   
    }
          57  +
    /* StructureGenerator.kt:135 */
   32     58   
}
          59  +
/* ClientCodegenVisitor.kt:237 */
   33     60   
impl OperationWithDefaultsInput {
   34         -
    /// Creates a new builder-style object to manufacture [`OperationWithDefaultsInput`](crate::operation::operation_with_defaults::OperationWithDefaultsInput).
          61  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`OperationWithDefaultsInput`](crate::operation::operation_with_defaults::OperationWithDefaultsInput).
          62  +
    /* BuilderGenerator.kt:175 */
   35     63   
    pub fn builder() -> crate::operation::operation_with_defaults::builders::OperationWithDefaultsInputBuilder {
          64  +
        /* BuilderGenerator.kt:176 */
   36     65   
        crate::operation::operation_with_defaults::builders::OperationWithDefaultsInputBuilder::default()
          66  +
        /* BuilderGenerator.kt:175 */
   37     67   
    }
          68  +
    /* ClientCodegenVisitor.kt:237 */
   38     69   
}
   39     70   
   40         -
/// A builder for [`OperationWithDefaultsInput`](crate::operation::operation_with_defaults::OperationWithDefaultsInput).
          71  +
/// /* BuilderGenerator.kt:342 */A builder for [`OperationWithDefaultsInput`](crate::operation::operation_with_defaults::OperationWithDefaultsInput).
          72  +
/* RustType.kt:516 */
   41     73   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          74  +
/* RustType.kt:516 */
   42     75   
#[non_exhaustive]
          76  +
/* BuilderGenerator.kt:345 */
   43     77   
pub struct OperationWithDefaultsInputBuilder {
   44         -
    pub(crate) defaults: ::std::option::Option<crate::types::Defaults>,
   45         -
    pub(crate) client_optional_defaults: ::std::option::Option<crate::types::ClientOptionalDefaults>,
   46         -
    pub(crate) top_level_default: ::std::option::Option<::std::string::String>,
   47         -
    pub(crate) other_top_level_default: ::std::option::Option<i32>,
          78  +
    /* BuilderGenerator.kt:275 */ pub(crate) defaults: ::std::option::Option<crate::types::Defaults>,
          79  +
    /* BuilderGenerator.kt:275 */ pub(crate) client_optional_defaults: ::std::option::Option<crate::types::ClientOptionalDefaults>,
          80  +
    /* BuilderGenerator.kt:275 */ pub(crate) top_level_default: ::std::option::Option<::std::string::String>,
          81  +
    /* BuilderGenerator.kt:275 */ pub(crate) other_top_level_default: ::std::option::Option<i32>,
          82  +
    /* BuilderGenerator.kt:345 */
   48     83   
}
          84  +
/* BuilderGenerator.kt:355 */
   49     85   
impl OperationWithDefaultsInputBuilder {
          86  +
    /* BuilderGenerator.kt:286 */
   50     87   
    #[allow(missing_docs)] // documentation missing in model
          88  +
                           /* BuilderGenerator.kt:291 */
   51     89   
    pub fn defaults(mut self, input: crate::types::Defaults) -> Self {
          90  +
        /* BuilderGenerator.kt:292 */
   52     91   
        self.defaults = ::std::option::Option::Some(input);
          92  +
        /* BuilderGenerator.kt:293 */
   53     93   
        self
          94  +
        /* BuilderGenerator.kt:291 */
   54     95   
    }
          96  +
    /* BuilderGenerator.kt:312 */
   55     97   
    #[allow(missing_docs)] // documentation missing in model
          98  +
                           /* BuilderGenerator.kt:314 */
   56     99   
    pub fn set_defaults(mut self, input: ::std::option::Option<crate::types::Defaults>) -> Self {
         100  +
        /* BuilderGenerator.kt:315 */
   57    101   
        self.defaults = input;
   58    102   
        self
         103  +
        /* BuilderGenerator.kt:314 */
   59    104   
    }
         105  +
    /* BuilderGenerator.kt:334 */
   60    106   
    #[allow(missing_docs)] // documentation missing in model
         107  +
                           /* BuilderGenerator.kt:336 */
   61    108   
    pub fn get_defaults(&self) -> &::std::option::Option<crate::types::Defaults> {
         109  +
        /* BuilderGenerator.kt:337 */
   62    110   
        &self.defaults
         111  +
        /* BuilderGenerator.kt:336 */
   63    112   
    }
         113  +
    /* BuilderGenerator.kt:286 */
   64    114   
    #[allow(missing_docs)] // documentation missing in model
         115  +
                           /* BuilderGenerator.kt:291 */
   65    116   
    pub fn client_optional_defaults(mut self, input: crate::types::ClientOptionalDefaults) -> Self {
         117  +
        /* BuilderGenerator.kt:292 */
   66    118   
        self.client_optional_defaults = ::std::option::Option::Some(input);
         119  +
        /* BuilderGenerator.kt:293 */
   67    120   
        self
         121  +
        /* BuilderGenerator.kt:291 */
   68    122   
    }
         123  +
    /* BuilderGenerator.kt:312 */
   69    124   
    #[allow(missing_docs)] // documentation missing in model
         125  +
                           /* BuilderGenerator.kt:314 */
   70    126   
    pub fn set_client_optional_defaults(mut self, input: ::std::option::Option<crate::types::ClientOptionalDefaults>) -> Self {
         127  +
        /* BuilderGenerator.kt:315 */
   71    128   
        self.client_optional_defaults = input;
   72    129   
        self
         130  +
        /* BuilderGenerator.kt:314 */
   73    131   
    }
         132  +
    /* BuilderGenerator.kt:334 */
   74    133   
    #[allow(missing_docs)] // documentation missing in model
         134  +
                           /* BuilderGenerator.kt:336 */
   75    135   
    pub fn get_client_optional_defaults(&self) -> &::std::option::Option<crate::types::ClientOptionalDefaults> {
         136  +
        /* BuilderGenerator.kt:337 */
   76    137   
        &self.client_optional_defaults
         138  +
        /* BuilderGenerator.kt:336 */
   77    139   
    }
         140  +
    /* BuilderGenerator.kt:286 */
   78    141   
    #[allow(missing_docs)] // documentation missing in model
         142  +
                           /* BuilderGenerator.kt:291 */
   79    143   
    pub fn top_level_default(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         144  +
        /* BuilderGenerator.kt:292 */
   80    145   
        self.top_level_default = ::std::option::Option::Some(input.into());
         146  +
        /* BuilderGenerator.kt:293 */
   81    147   
        self
         148  +
        /* BuilderGenerator.kt:291 */
   82    149   
    }
         150  +
    /* BuilderGenerator.kt:312 */
   83    151   
    #[allow(missing_docs)] // documentation missing in model
         152  +
                           /* BuilderGenerator.kt:314 */
   84    153   
    pub fn set_top_level_default(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         154  +
        /* BuilderGenerator.kt:315 */
   85    155   
        self.top_level_default = input;
   86    156   
        self
         157  +
        /* BuilderGenerator.kt:314 */
   87    158   
    }
         159  +
    /* BuilderGenerator.kt:334 */
   88    160   
    #[allow(missing_docs)] // documentation missing in model
         161  +
                           /* BuilderGenerator.kt:336 */
   89    162   
    pub fn get_top_level_default(&self) -> &::std::option::Option<::std::string::String> {
         163  +
        /* BuilderGenerator.kt:337 */
   90    164   
        &self.top_level_default
         165  +
        /* BuilderGenerator.kt:336 */
   91    166   
    }
         167  +
    /* BuilderGenerator.kt:286 */
   92    168   
    #[allow(missing_docs)] // documentation missing in model
         169  +
                           /* BuilderGenerator.kt:291 */
   93    170   
    pub fn other_top_level_default(mut self, input: i32) -> Self {
         171  +
        /* BuilderGenerator.kt:292 */
   94    172   
        self.other_top_level_default = ::std::option::Option::Some(input);
         173  +
        /* BuilderGenerator.kt:293 */
   95    174   
        self
         175  +
        /* BuilderGenerator.kt:291 */
   96    176   
    }
         177  +
    /* BuilderGenerator.kt:312 */
   97    178   
    #[allow(missing_docs)] // documentation missing in model
         179  +
                           /* BuilderGenerator.kt:314 */
   98    180   
    pub fn set_other_top_level_default(mut self, input: ::std::option::Option<i32>) -> Self {
         181  +
        /* BuilderGenerator.kt:315 */
   99    182   
        self.other_top_level_default = input;
  100    183   
        self
         184  +
        /* BuilderGenerator.kt:314 */
  101    185   
    }
         186  +
    /* BuilderGenerator.kt:334 */
  102    187   
    #[allow(missing_docs)] // documentation missing in model
         188  +
                           /* BuilderGenerator.kt:336 */
  103    189   
    pub fn get_other_top_level_default(&self) -> &::std::option::Option<i32> {
         190  +
        /* BuilderGenerator.kt:337 */
  104    191   
        &self.other_top_level_default
         192  +
        /* BuilderGenerator.kt:336 */
  105    193   
    }
  106         -
    /// Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::operation::operation_with_defaults::OperationWithDefaultsInput).
         194  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::operation::operation_with_defaults::OperationWithDefaultsInput).
         195  +
    /* BuilderGenerator.kt:253 */
  107    196   
    pub fn build(
  108    197   
        self,
  109    198   
    ) -> ::std::result::Result<crate::operation::operation_with_defaults::OperationWithDefaultsInput, ::aws_smithy_types::error::operation::BuildError>
  110    199   
    {
  111         -
        ::std::result::Result::Ok(crate::operation::operation_with_defaults::OperationWithDefaultsInput {
  112         -
            defaults: self.defaults,
         200  +
        /* BuilderGenerator.kt:254 */
         201  +
        ::std::result::Result::Ok(
         202  +
            /* BuilderGenerator.kt:477 */
         203  +
            crate::operation::operation_with_defaults::OperationWithDefaultsInput {
         204  +
                /* BuilderGenerator.kt:481 */ defaults: self.defaults,
         205  +
                /* BuilderGenerator.kt:481 */
  113    206   
                client_optional_defaults: self.client_optional_defaults,
         207  +
                /* BuilderGenerator.kt:481 */
  114    208   
                top_level_default: self.top_level_default,
         209  +
                /* BuilderGenerator.kt:481 */
  115    210   
                other_top_level_default: self.other_top_level_default,
  116         -
        })
         211  +
                /* BuilderGenerator.kt:477 */
         212  +
            }, /* BuilderGenerator.kt:254 */
         213  +
        )
         214  +
        /* BuilderGenerator.kt:253 */
  117    215   
    }
         216  +
    /* BuilderGenerator.kt:355 */
  118    217   
}

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/operation_with_defaults/_operation_with_defaults_output.rs

@@ -1,1 +679,1291 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* StructureGenerator.kt:197 */
    2      3   
#[allow(missing_docs)] // documentation missing in model
           4  +
/* RustType.kt:516 */
    3      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    4      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5         -
pub struct OperationWithDefaultsOutput {
    6         -
    #[allow(missing_docs)] // documentation missing in model
           8  +
pub /* StructureGenerator.kt:201 */ struct OperationWithDefaultsOutput {
           9  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
    7     10   
    pub default_string: ::std::string::String,
    8         -
    #[allow(missing_docs)] // documentation missing in model
          11  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
    9     12   
    pub default_boolean: bool,
          13  +
    /* StructureGenerator.kt:231 */
   10     14   
    #[allow(missing_docs)] // documentation missing in model
   11     15   
    pub default_list: ::std::vec::Vec<::std::string::String>,
          16  +
    /* StructureGenerator.kt:231 */
   12     17   
    #[allow(missing_docs)] // documentation missing in model
   13     18   
    pub default_document_map: ::aws_smithy_types::Document,
          19  +
    /* StructureGenerator.kt:231 */
   14     20   
    #[allow(missing_docs)] // documentation missing in model
   15     21   
    pub default_document_string: ::aws_smithy_types::Document,
          22  +
    /* StructureGenerator.kt:231 */
   16     23   
    #[allow(missing_docs)] // documentation missing in model
   17     24   
    pub default_document_boolean: ::aws_smithy_types::Document,
          25  +
    /* StructureGenerator.kt:231 */
   18     26   
    #[allow(missing_docs)] // documentation missing in model
   19     27   
    pub default_document_list: ::aws_smithy_types::Document,
          28  +
    /* StructureGenerator.kt:231 */
   20     29   
    #[allow(missing_docs)] // documentation missing in model
   21     30   
    pub default_null_document: ::std::option::Option<::aws_smithy_types::Document>,
          31  +
    /* StructureGenerator.kt:231 */
   22     32   
    #[allow(missing_docs)] // documentation missing in model
   23     33   
    pub default_timestamp: ::aws_smithy_types::DateTime,
   24         -
    #[allow(missing_docs)] // documentation missing in model
          34  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   25     35   
    pub default_blob: ::aws_smithy_types::Blob,
   26         -
    #[allow(missing_docs)] // documentation missing in model
          36  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   27     37   
    pub default_byte: i8,
   28         -
    #[allow(missing_docs)] // documentation missing in model
          38  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   29     39   
    pub default_short: i16,
   30         -
    #[allow(missing_docs)] // documentation missing in model
          40  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   31     41   
    pub default_integer: i32,
   32         -
    #[allow(missing_docs)] // documentation missing in model
          42  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   33     43   
    pub default_long: i64,
   34         -
    #[allow(missing_docs)] // documentation missing in model
          44  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   35     45   
    pub default_float: f32,
   36         -
    #[allow(missing_docs)] // documentation missing in model
          46  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   37     47   
    pub default_double: f64,
          48  +
    /* StructureGenerator.kt:231 */
   38     49   
    #[allow(missing_docs)] // documentation missing in model
   39     50   
    pub default_map: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
   40         -
    #[allow(missing_docs)] // documentation missing in model
          51  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   41     52   
    pub default_enum: crate::types::TestEnum,
   42         -
    #[allow(missing_docs)] // documentation missing in model
          53  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   43     54   
    pub default_int_enum: i32,
   44         -
    #[allow(missing_docs)] // documentation missing in model
          55  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   45     56   
    pub empty_string: ::std::string::String,
   46         -
    #[allow(missing_docs)] // documentation missing in model
          57  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   47     58   
    pub false_boolean: bool,
   48         -
    #[allow(missing_docs)] // documentation missing in model
          59  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   49     60   
    pub empty_blob: ::aws_smithy_types::Blob,
   50         -
    #[allow(missing_docs)] // documentation missing in model
          61  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   51     62   
    pub zero_byte: i8,
   52         -
    #[allow(missing_docs)] // documentation missing in model
          63  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   53     64   
    pub zero_short: i16,
   54         -
    #[allow(missing_docs)] // documentation missing in model
          65  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   55     66   
    pub zero_integer: i32,
   56         -
    #[allow(missing_docs)] // documentation missing in model
          67  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   57     68   
    pub zero_long: i64,
   58         -
    #[allow(missing_docs)] // documentation missing in model
          69  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   59     70   
    pub zero_float: f32,
          71  +
    /* StructureGenerator.kt:231 */
   60     72   
    #[allow(missing_docs)] // documentation missing in model
   61     73   
    pub zero_double: f64,
          74  +
    /* StructureGenerator.kt:201 */
   62     75   
}
          76  +
/* StructureGenerator.kt:135 */
   63     77   
impl OperationWithDefaultsOutput {
          78  +
    /* StructureGenerator.kt:231 */
   64     79   
    #[allow(missing_docs)] // documentation missing in model
          80  +
                           /* StructureGenerator.kt:166 */
   65     81   
    pub fn default_string(&self) -> &str {
          82  +
        /* StructureGenerator.kt:171 */
   66     83   
        use std::ops::Deref;
   67     84   
        self.default_string.deref()
          85  +
        /* StructureGenerator.kt:166 */
   68     86   
    }
          87  +
    /* StructureGenerator.kt:231 */
   69     88   
    #[allow(missing_docs)] // documentation missing in model
          89  +
                           /* StructureGenerator.kt:166 */
   70     90   
    pub fn default_boolean(&self) -> bool {
          91  +
        /* StructureGenerator.kt:168 */
   71     92   
        self.default_boolean
          93  +
        /* StructureGenerator.kt:166 */
   72     94   
    }
          95  +
    /* StructureGenerator.kt:231 */
   73     96   
    #[allow(missing_docs)] // documentation missing in model
          97  +
                           /* StructureGenerator.kt:166 */
   74     98   
    pub fn default_list(&self) -> &[::std::string::String] {
          99  +
        /* StructureGenerator.kt:171 */
   75    100   
        use std::ops::Deref;
   76    101   
        self.default_list.deref()
         102  +
        /* StructureGenerator.kt:166 */
   77    103   
    }
         104  +
    /* StructureGenerator.kt:231 */
   78    105   
    #[allow(missing_docs)] // documentation missing in model
         106  +
                           /* StructureGenerator.kt:166 */
   79    107   
    pub fn default_document_map(&self) -> &::aws_smithy_types::Document {
         108  +
        /* StructureGenerator.kt:172 */
   80    109   
        &self.default_document_map
         110  +
        /* StructureGenerator.kt:166 */
   81    111   
    }
         112  +
    /* StructureGenerator.kt:231 */
   82    113   
    #[allow(missing_docs)] // documentation missing in model
         114  +
                           /* StructureGenerator.kt:166 */
   83    115   
    pub fn default_document_string(&self) -> &::aws_smithy_types::Document {
         116  +
        /* StructureGenerator.kt:172 */
   84    117   
        &self.default_document_string
         118  +
        /* StructureGenerator.kt:166 */
   85    119   
    }
         120  +
    /* StructureGenerator.kt:231 */
   86    121   
    #[allow(missing_docs)] // documentation missing in model
         122  +
                           /* StructureGenerator.kt:166 */
   87    123   
    pub fn default_document_boolean(&self) -> &::aws_smithy_types::Document {
         124  +
        /* StructureGenerator.kt:172 */
   88    125   
        &self.default_document_boolean
         126  +
        /* StructureGenerator.kt:166 */
   89    127   
    }
         128  +
    /* StructureGenerator.kt:231 */
   90    129   
    #[allow(missing_docs)] // documentation missing in model
         130  +
                           /* StructureGenerator.kt:166 */
   91    131   
    pub fn default_document_list(&self) -> &::aws_smithy_types::Document {
         132  +
        /* StructureGenerator.kt:172 */
   92    133   
        &self.default_document_list
         134  +
        /* StructureGenerator.kt:166 */
   93    135   
    }
         136  +
    /* StructureGenerator.kt:231 */
   94    137   
    #[allow(missing_docs)] // documentation missing in model
         138  +
                           /* StructureGenerator.kt:166 */
   95    139   
    pub fn default_null_document(&self) -> ::std::option::Option<&::aws_smithy_types::Document> {
         140  +
        /* StructureGenerator.kt:170 */
   96    141   
        self.default_null_document.as_ref()
         142  +
        /* StructureGenerator.kt:166 */
   97    143   
    }
         144  +
    /* StructureGenerator.kt:231 */
   98    145   
    #[allow(missing_docs)] // documentation missing in model
         146  +
                           /* StructureGenerator.kt:166 */
   99    147   
    pub fn default_timestamp(&self) -> &::aws_smithy_types::DateTime {
         148  +
        /* StructureGenerator.kt:172 */
  100    149   
        &self.default_timestamp
         150  +
        /* StructureGenerator.kt:166 */
  101    151   
    }
         152  +
    /* StructureGenerator.kt:231 */
  102    153   
    #[allow(missing_docs)] // documentation missing in model
         154  +
                           /* StructureGenerator.kt:166 */
  103    155   
    pub fn default_blob(&self) -> &::aws_smithy_types::Blob {
         156  +
        /* StructureGenerator.kt:172 */
  104    157   
        &self.default_blob
         158  +
        /* StructureGenerator.kt:166 */
  105    159   
    }
         160  +
    /* StructureGenerator.kt:231 */
  106    161   
    #[allow(missing_docs)] // documentation missing in model
         162  +
                           /* StructureGenerator.kt:166 */
  107    163   
    pub fn default_byte(&self) -> i8 {
         164  +
        /* StructureGenerator.kt:168 */
  108    165   
        self.default_byte
         166  +
        /* StructureGenerator.kt:166 */
  109    167   
    }
         168  +
    /* StructureGenerator.kt:231 */
  110    169   
    #[allow(missing_docs)] // documentation missing in model
         170  +
                           /* StructureGenerator.kt:166 */
  111    171   
    pub fn default_short(&self) -> i16 {
         172  +
        /* StructureGenerator.kt:168 */
  112    173   
        self.default_short
         174  +
        /* StructureGenerator.kt:166 */
  113    175   
    }
         176  +
    /* StructureGenerator.kt:231 */
  114    177   
    #[allow(missing_docs)] // documentation missing in model
         178  +
                           /* StructureGenerator.kt:166 */
  115    179   
    pub fn default_integer(&self) -> i32 {
         180  +
        /* StructureGenerator.kt:168 */
  116    181   
        self.default_integer
         182  +
        /* StructureGenerator.kt:166 */
  117    183   
    }
         184  +
    /* StructureGenerator.kt:231 */
  118    185   
    #[allow(missing_docs)] // documentation missing in model
         186  +
                           /* StructureGenerator.kt:166 */
  119    187   
    pub fn default_long(&self) -> i64 {
         188  +
        /* StructureGenerator.kt:168 */
  120    189   
        self.default_long
         190  +
        /* StructureGenerator.kt:166 */
  121    191   
    }
         192  +
    /* StructureGenerator.kt:231 */
  122    193   
    #[allow(missing_docs)] // documentation missing in model
         194  +
                           /* StructureGenerator.kt:166 */
  123    195   
    pub fn default_float(&self) -> f32 {
         196  +
        /* StructureGenerator.kt:168 */
  124    197   
        self.default_float
         198  +
        /* StructureGenerator.kt:166 */
  125    199   
    }
         200  +
    /* StructureGenerator.kt:231 */
  126    201   
    #[allow(missing_docs)] // documentation missing in model
         202  +
                           /* StructureGenerator.kt:166 */
  127    203   
    pub fn default_double(&self) -> f64 {
         204  +
        /* StructureGenerator.kt:168 */
  128    205   
        self.default_double
         206  +
        /* StructureGenerator.kt:166 */
  129    207   
    }
         208  +
    /* StructureGenerator.kt:231 */
  130    209   
    #[allow(missing_docs)] // documentation missing in model
         210  +
                           /* StructureGenerator.kt:166 */
  131    211   
    pub fn default_map(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
         212  +
        /* StructureGenerator.kt:172 */
  132    213   
        &self.default_map
         214  +
        /* StructureGenerator.kt:166 */
  133    215   
    }
         216  +
    /* StructureGenerator.kt:231 */
  134    217   
    #[allow(missing_docs)] // documentation missing in model
         218  +
                           /* StructureGenerator.kt:166 */
  135    219   
    pub fn default_enum(&self) -> &crate::types::TestEnum {
         220  +
        /* StructureGenerator.kt:172 */
  136    221   
        &self.default_enum
         222  +
        /* StructureGenerator.kt:166 */
  137    223   
    }
         224  +
    /* StructureGenerator.kt:231 */
  138    225   
    #[allow(missing_docs)] // documentation missing in model
         226  +
                           /* StructureGenerator.kt:166 */
  139    227   
    pub fn default_int_enum(&self) -> i32 {
         228  +
        /* StructureGenerator.kt:168 */
  140    229   
        self.default_int_enum
         230  +
        /* StructureGenerator.kt:166 */
  141    231   
    }
         232  +
    /* StructureGenerator.kt:231 */
  142    233   
    #[allow(missing_docs)] // documentation missing in model
         234  +
                           /* StructureGenerator.kt:166 */
  143    235   
    pub fn empty_string(&self) -> &str {
         236  +
        /* StructureGenerator.kt:171 */
  144    237   
        use std::ops::Deref;
  145    238   
        self.empty_string.deref()
         239  +
        /* StructureGenerator.kt:166 */
  146    240   
    }
         241  +
    /* StructureGenerator.kt:231 */
  147    242   
    #[allow(missing_docs)] // documentation missing in model
         243  +
                           /* StructureGenerator.kt:166 */
  148    244   
    pub fn false_boolean(&self) -> bool {
         245  +
        /* StructureGenerator.kt:168 */
  149    246   
        self.false_boolean
         247  +
        /* StructureGenerator.kt:166 */
  150    248   
    }
         249  +
    /* StructureGenerator.kt:231 */
  151    250   
    #[allow(missing_docs)] // documentation missing in model
         251  +
                           /* StructureGenerator.kt:166 */
  152    252   
    pub fn empty_blob(&self) -> &::aws_smithy_types::Blob {
         253  +
        /* StructureGenerator.kt:172 */
  153    254   
        &self.empty_blob
         255  +
        /* StructureGenerator.kt:166 */
  154    256   
    }
         257  +
    /* StructureGenerator.kt:231 */
  155    258   
    #[allow(missing_docs)] // documentation missing in model
         259  +
                           /* StructureGenerator.kt:166 */
  156    260   
    pub fn zero_byte(&self) -> i8 {
         261  +
        /* StructureGenerator.kt:168 */
  157    262   
        self.zero_byte
         263  +
        /* StructureGenerator.kt:166 */
  158    264   
    }
         265  +
    /* StructureGenerator.kt:231 */
  159    266   
    #[allow(missing_docs)] // documentation missing in model
         267  +
                           /* StructureGenerator.kt:166 */
  160    268   
    pub fn zero_short(&self) -> i16 {
         269  +
        /* StructureGenerator.kt:168 */
  161    270   
        self.zero_short
         271  +
        /* StructureGenerator.kt:166 */
  162    272   
    }
         273  +
    /* StructureGenerator.kt:231 */
  163    274   
    #[allow(missing_docs)] // documentation missing in model
         275  +
                           /* StructureGenerator.kt:166 */
  164    276   
    pub fn zero_integer(&self) -> i32 {
         277  +
        /* StructureGenerator.kt:168 */
  165    278   
        self.zero_integer
         279  +
        /* StructureGenerator.kt:166 */
  166    280   
    }
         281  +
    /* StructureGenerator.kt:231 */
  167    282   
    #[allow(missing_docs)] // documentation missing in model
         283  +
                           /* StructureGenerator.kt:166 */
  168    284   
    pub fn zero_long(&self) -> i64 {
         285  +
        /* StructureGenerator.kt:168 */
  169    286   
        self.zero_long
         287  +
        /* StructureGenerator.kt:166 */
  170    288   
    }
         289  +
    /* StructureGenerator.kt:231 */
  171    290   
    #[allow(missing_docs)] // documentation missing in model
         291  +
                           /* StructureGenerator.kt:166 */
  172    292   
    pub fn zero_float(&self) -> f32 {
         293  +
        /* StructureGenerator.kt:168 */
  173    294   
        self.zero_float
         295  +
        /* StructureGenerator.kt:166 */
  174    296   
    }
         297  +
    /* StructureGenerator.kt:231 */
  175    298   
    #[allow(missing_docs)] // documentation missing in model
         299  +
                           /* StructureGenerator.kt:166 */
  176    300   
    pub fn zero_double(&self) -> f64 {
         301  +
        /* StructureGenerator.kt:168 */
  177    302   
        self.zero_double
         303  +
        /* StructureGenerator.kt:166 */
  178    304   
    }
         305  +
    /* StructureGenerator.kt:135 */
  179    306   
}
         307  +
/* ClientCodegenVisitor.kt:237 */
  180    308   
impl OperationWithDefaultsOutput {
  181         -
    /// Creates a new builder-style object to manufacture [`OperationWithDefaultsOutput`](crate::operation::operation_with_defaults::OperationWithDefaultsOutput).
         309  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`OperationWithDefaultsOutput`](crate::operation::operation_with_defaults::OperationWithDefaultsOutput).
         310  +
    /* BuilderGenerator.kt:175 */
  182    311   
    pub fn builder() -> crate::operation::operation_with_defaults::builders::OperationWithDefaultsOutputBuilder {
         312  +
        /* BuilderGenerator.kt:176 */
  183    313   
        crate::operation::operation_with_defaults::builders::OperationWithDefaultsOutputBuilder::default()
         314  +
        /* BuilderGenerator.kt:175 */
  184    315   
    }
         316  +
    /* ClientCodegenVisitor.kt:237 */
  185    317   
}
  186    318   
  187         -
/// A builder for [`OperationWithDefaultsOutput`](crate::operation::operation_with_defaults::OperationWithDefaultsOutput).
         319  +
/// /* BuilderGenerator.kt:342 */A builder for [`OperationWithDefaultsOutput`](crate::operation::operation_with_defaults::OperationWithDefaultsOutput).
         320  +
/* RustType.kt:516 */
  188    321   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         322  +
/* RustType.kt:516 */
  189    323   
#[non_exhaustive]
         324  +
/* BuilderGenerator.kt:345 */
  190    325   
pub struct OperationWithDefaultsOutputBuilder {
  191         -
    pub(crate) default_string: ::std::option::Option<::std::string::String>,
  192         -
    pub(crate) default_boolean: ::std::option::Option<bool>,
  193         -
    pub(crate) default_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
  194         -
    pub(crate) default_document_map: ::std::option::Option<::aws_smithy_types::Document>,
  195         -
    pub(crate) default_document_string: ::std::option::Option<::aws_smithy_types::Document>,
  196         -
    pub(crate) default_document_boolean: ::std::option::Option<::aws_smithy_types::Document>,
  197         -
    pub(crate) default_document_list: ::std::option::Option<::aws_smithy_types::Document>,
  198         -
    pub(crate) default_null_document: ::std::option::Option<::aws_smithy_types::Document>,
  199         -
    pub(crate) default_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
  200         -
    pub(crate) default_blob: ::std::option::Option<::aws_smithy_types::Blob>,
  201         -
    pub(crate) default_byte: ::std::option::Option<i8>,
  202         -
    pub(crate) default_short: ::std::option::Option<i16>,
  203         -
    pub(crate) default_integer: ::std::option::Option<i32>,
  204         -
    pub(crate) default_long: ::std::option::Option<i64>,
  205         -
    pub(crate) default_float: ::std::option::Option<f32>,
  206         -
    pub(crate) default_double: ::std::option::Option<f64>,
         326  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_string: ::std::option::Option<::std::string::String>,
         327  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_boolean: ::std::option::Option<bool>,
         328  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
         329  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_document_map: ::std::option::Option<::aws_smithy_types::Document>,
         330  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_document_string: ::std::option::Option<::aws_smithy_types::Document>,
         331  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_document_boolean: ::std::option::Option<::aws_smithy_types::Document>,
         332  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_document_list: ::std::option::Option<::aws_smithy_types::Document>,
         333  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_null_document: ::std::option::Option<::aws_smithy_types::Document>,
         334  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
         335  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_blob: ::std::option::Option<::aws_smithy_types::Blob>,
         336  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_byte: ::std::option::Option<i8>,
         337  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_short: ::std::option::Option<i16>,
         338  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_integer: ::std::option::Option<i32>,
         339  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_long: ::std::option::Option<i64>,
         340  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_float: ::std::option::Option<f32>,
         341  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_double: ::std::option::Option<f64>,
         342  +
    /* BuilderGenerator.kt:275 */
  207    343   
    pub(crate) default_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
  208         -
    pub(crate) default_enum: ::std::option::Option<crate::types::TestEnum>,
  209         -
    pub(crate) default_int_enum: ::std::option::Option<i32>,
  210         -
    pub(crate) empty_string: ::std::option::Option<::std::string::String>,
  211         -
    pub(crate) false_boolean: ::std::option::Option<bool>,
  212         -
    pub(crate) empty_blob: ::std::option::Option<::aws_smithy_types::Blob>,
  213         -
    pub(crate) zero_byte: ::std::option::Option<i8>,
  214         -
    pub(crate) zero_short: ::std::option::Option<i16>,
  215         -
    pub(crate) zero_integer: ::std::option::Option<i32>,
  216         -
    pub(crate) zero_long: ::std::option::Option<i64>,
  217         -
    pub(crate) zero_float: ::std::option::Option<f32>,
  218         -
    pub(crate) zero_double: ::std::option::Option<f64>,
         344  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_enum: ::std::option::Option<crate::types::TestEnum>,
         345  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_int_enum: ::std::option::Option<i32>,
         346  +
    /* BuilderGenerator.kt:275 */ pub(crate) empty_string: ::std::option::Option<::std::string::String>,
         347  +
    /* BuilderGenerator.kt:275 */ pub(crate) false_boolean: ::std::option::Option<bool>,
         348  +
    /* BuilderGenerator.kt:275 */ pub(crate) empty_blob: ::std::option::Option<::aws_smithy_types::Blob>,
         349  +
    /* BuilderGenerator.kt:275 */ pub(crate) zero_byte: ::std::option::Option<i8>,
         350  +
    /* BuilderGenerator.kt:275 */ pub(crate) zero_short: ::std::option::Option<i16>,
         351  +
    /* BuilderGenerator.kt:275 */ pub(crate) zero_integer: ::std::option::Option<i32>,
         352  +
    /* BuilderGenerator.kt:275 */ pub(crate) zero_long: ::std::option::Option<i64>,
         353  +
    /* BuilderGenerator.kt:275 */ pub(crate) zero_float: ::std::option::Option<f32>,
         354  +
    /* BuilderGenerator.kt:275 */ pub(crate) zero_double: ::std::option::Option<f64>,
         355  +
    /* BuilderGenerator.kt:345 */
  219    356   
}
         357  +
/* BuilderGenerator.kt:355 */
  220    358   
impl OperationWithDefaultsOutputBuilder {
         359  +
    /* BuilderGenerator.kt:286 */
  221    360   
    #[allow(missing_docs)] // documentation missing in model
         361  +
                           /* BuilderGenerator.kt:291 */
  222    362   
    pub fn default_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         363  +
        /* BuilderGenerator.kt:292 */
  223    364   
        self.default_string = ::std::option::Option::Some(input.into());
         365  +
        /* BuilderGenerator.kt:293 */
  224    366   
        self
         367  +
        /* BuilderGenerator.kt:291 */
  225    368   
    }
         369  +
    /* BuilderGenerator.kt:312 */
  226    370   
    #[allow(missing_docs)] // documentation missing in model
         371  +
                           /* BuilderGenerator.kt:314 */
  227    372   
    pub fn set_default_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         373  +
        /* BuilderGenerator.kt:315 */
  228    374   
        self.default_string = input;
  229    375   
        self
         376  +
        /* BuilderGenerator.kt:314 */
  230    377   
    }
         378  +
    /* BuilderGenerator.kt:334 */
  231    379   
    #[allow(missing_docs)] // documentation missing in model
         380  +
                           /* BuilderGenerator.kt:336 */
  232    381   
    pub fn get_default_string(&self) -> &::std::option::Option<::std::string::String> {
         382  +
        /* BuilderGenerator.kt:337 */
  233    383   
        &self.default_string
         384  +
        /* BuilderGenerator.kt:336 */
  234    385   
    }
         386  +
    /* BuilderGenerator.kt:286 */
  235    387   
    #[allow(missing_docs)] // documentation missing in model
         388  +
                           /* BuilderGenerator.kt:291 */
  236    389   
    pub fn default_boolean(mut self, input: bool) -> Self {
         390  +
        /* BuilderGenerator.kt:292 */
  237    391   
        self.default_boolean = ::std::option::Option::Some(input);
         392  +
        /* BuilderGenerator.kt:293 */
  238    393   
        self
         394  +
        /* BuilderGenerator.kt:291 */
  239    395   
    }
         396  +
    /* BuilderGenerator.kt:312 */
  240    397   
    #[allow(missing_docs)] // documentation missing in model
         398  +
                           /* BuilderGenerator.kt:314 */
  241    399   
    pub fn set_default_boolean(mut self, input: ::std::option::Option<bool>) -> Self {
         400  +
        /* BuilderGenerator.kt:315 */
  242    401   
        self.default_boolean = input;
  243    402   
        self
         403  +
        /* BuilderGenerator.kt:314 */
  244    404   
    }
         405  +
    /* BuilderGenerator.kt:334 */
  245    406   
    #[allow(missing_docs)] // documentation missing in model
         407  +
                           /* BuilderGenerator.kt:336 */
  246    408   
    pub fn get_default_boolean(&self) -> &::std::option::Option<bool> {
         409  +
        /* BuilderGenerator.kt:337 */
  247    410   
        &self.default_boolean
         411  +
        /* BuilderGenerator.kt:336 */
  248    412   
    }
  249         -
    /// Appends an item to `default_list`.
         413  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `default_list`.
         414  +
    /* BuilderGenerator.kt:411 */
  250    415   
    ///
  251         -
    /// To override the contents of this collection use [`set_default_list`](Self::set_default_list).
         416  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_default_list`](Self::set_default_list).
         417  +
    /* BuilderGenerator.kt:413 */
  252    418   
    ///
         419  +
    /* BuilderGenerator.kt:418 */
  253    420   
    pub fn default_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         421  +
        /* BuilderGenerator.kt:419 */
  254    422   
        let mut v = self.default_list.unwrap_or_default();
  255    423   
        v.push(input.into());
  256    424   
        self.default_list = ::std::option::Option::Some(v);
  257    425   
        self
         426  +
        /* BuilderGenerator.kt:418 */
  258    427   
    }
         428  +
    /* BuilderGenerator.kt:312 */
  259    429   
    #[allow(missing_docs)] // documentation missing in model
         430  +
                           /* BuilderGenerator.kt:314 */
  260    431   
    pub fn set_default_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
         432  +
        /* BuilderGenerator.kt:315 */
  261    433   
        self.default_list = input;
  262    434   
        self
         435  +
        /* BuilderGenerator.kt:314 */
  263    436   
    }
         437  +
    /* BuilderGenerator.kt:334 */
  264    438   
    #[allow(missing_docs)] // documentation missing in model
         439  +
                           /* BuilderGenerator.kt:336 */
  265    440   
    pub fn get_default_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
         441  +
        /* BuilderGenerator.kt:337 */
  266    442   
        &self.default_list
         443  +
        /* BuilderGenerator.kt:336 */
  267    444   
    }
         445  +
    /* BuilderGenerator.kt:286 */
  268    446   
    #[allow(missing_docs)] // documentation missing in model
         447  +
                           /* BuilderGenerator.kt:291 */
  269    448   
    pub fn default_document_map(mut self, input: ::aws_smithy_types::Document) -> Self {
         449  +
        /* BuilderGenerator.kt:292 */
  270    450   
        self.default_document_map = ::std::option::Option::Some(input);
         451  +
        /* BuilderGenerator.kt:293 */
  271    452   
        self
         453  +
        /* BuilderGenerator.kt:291 */
  272    454   
    }
         455  +
    /* BuilderGenerator.kt:312 */
  273    456   
    #[allow(missing_docs)] // documentation missing in model
         457  +
                           /* BuilderGenerator.kt:314 */
  274    458   
    pub fn set_default_document_map(mut self, input: ::std::option::Option<::aws_smithy_types::Document>) -> Self {
         459  +
        /* BuilderGenerator.kt:315 */
  275    460   
        self.default_document_map = input;
  276    461   
        self
         462  +
        /* BuilderGenerator.kt:314 */
  277    463   
    }
         464  +
    /* BuilderGenerator.kt:334 */
  278    465   
    #[allow(missing_docs)] // documentation missing in model
         466  +
                           /* BuilderGenerator.kt:336 */
  279    467   
    pub fn get_default_document_map(&self) -> &::std::option::Option<::aws_smithy_types::Document> {
         468  +
        /* BuilderGenerator.kt:337 */
  280    469   
        &self.default_document_map
         470  +
        /* BuilderGenerator.kt:336 */
  281    471   
    }
         472  +
    /* BuilderGenerator.kt:286 */
  282    473   
    #[allow(missing_docs)] // documentation missing in model
         474  +
                           /* BuilderGenerator.kt:291 */
  283    475   
    pub fn default_document_string(mut self, input: ::aws_smithy_types::Document) -> Self {
         476  +
        /* BuilderGenerator.kt:292 */
  284    477   
        self.default_document_string = ::std::option::Option::Some(input);
         478  +
        /* BuilderGenerator.kt:293 */
  285    479   
        self
         480  +
        /* BuilderGenerator.kt:291 */
  286    481   
    }
         482  +
    /* BuilderGenerator.kt:312 */
  287    483   
    #[allow(missing_docs)] // documentation missing in model
         484  +
                           /* BuilderGenerator.kt:314 */
  288    485   
    pub fn set_default_document_string(mut self, input: ::std::option::Option<::aws_smithy_types::Document>) -> Self {
         486  +
        /* BuilderGenerator.kt:315 */
  289    487   
        self.default_document_string = input;
  290    488   
        self
         489  +
        /* BuilderGenerator.kt:314 */
  291    490   
    }
         491  +
    /* BuilderGenerator.kt:334 */
  292    492   
    #[allow(missing_docs)] // documentation missing in model
         493  +
                           /* BuilderGenerator.kt:336 */
  293    494   
    pub fn get_default_document_string(&self) -> &::std::option::Option<::aws_smithy_types::Document> {
         495  +
        /* BuilderGenerator.kt:337 */
  294    496   
        &self.default_document_string
         497  +
        /* BuilderGenerator.kt:336 */
  295    498   
    }
         499  +
    /* BuilderGenerator.kt:286 */
  296    500   
    #[allow(missing_docs)] // documentation missing in model
         501  +
                           /* BuilderGenerator.kt:291 */
  297    502   
    pub fn default_document_boolean(mut self, input: ::aws_smithy_types::Document) -> Self {
         503  +
        /* BuilderGenerator.kt:292 */
  298    504   
        self.default_document_boolean = ::std::option::Option::Some(input);
         505  +
        /* BuilderGenerator.kt:293 */
  299    506   
        self
         507  +
        /* BuilderGenerator.kt:291 */
  300    508   
    }
         509  +
    /* BuilderGenerator.kt:312 */
  301    510   
    #[allow(missing_docs)] // documentation missing in model
         511  +
                           /* BuilderGenerator.kt:314 */
  302    512   
    pub fn set_default_document_boolean(mut self, input: ::std::option::Option<::aws_smithy_types::Document>) -> Self {
         513  +
        /* BuilderGenerator.kt:315 */
  303    514   
        self.default_document_boolean = input;
  304    515   
        self
         516  +
        /* BuilderGenerator.kt:314 */
  305    517   
    }
         518  +
    /* BuilderGenerator.kt:334 */
  306    519   
    #[allow(missing_docs)] // documentation missing in model
         520  +
                           /* BuilderGenerator.kt:336 */
  307    521   
    pub fn get_default_document_boolean(&self) -> &::std::option::Option<::aws_smithy_types::Document> {
         522  +
        /* BuilderGenerator.kt:337 */
  308    523   
        &self.default_document_boolean
         524  +
        /* BuilderGenerator.kt:336 */
  309    525   
    }
         526  +
    /* BuilderGenerator.kt:286 */
  310    527   
    #[allow(missing_docs)] // documentation missing in model
         528  +
                           /* BuilderGenerator.kt:291 */
  311    529   
    pub fn default_document_list(mut self, input: ::aws_smithy_types::Document) -> Self {
         530  +
        /* BuilderGenerator.kt:292 */
  312    531   
        self.default_document_list = ::std::option::Option::Some(input);
         532  +
        /* BuilderGenerator.kt:293 */
  313    533   
        self
         534  +
        /* BuilderGenerator.kt:291 */
  314    535   
    }
         536  +
    /* BuilderGenerator.kt:312 */
  315    537   
    #[allow(missing_docs)] // documentation missing in model
         538  +
                           /* BuilderGenerator.kt:314 */
  316    539   
    pub fn set_default_document_list(mut self, input: ::std::option::Option<::aws_smithy_types::Document>) -> Self {
         540  +
        /* BuilderGenerator.kt:315 */
  317    541   
        self.default_document_list = input;
  318    542   
        self
         543  +
        /* BuilderGenerator.kt:314 */
  319    544   
    }
         545  +
    /* BuilderGenerator.kt:334 */
  320    546   
    #[allow(missing_docs)] // documentation missing in model
         547  +
                           /* BuilderGenerator.kt:336 */
  321    548   
    pub fn get_default_document_list(&self) -> &::std::option::Option<::aws_smithy_types::Document> {
         549  +
        /* BuilderGenerator.kt:337 */
  322    550   
        &self.default_document_list
         551  +
        /* BuilderGenerator.kt:336 */
  323    552   
    }
         553  +
    /* BuilderGenerator.kt:286 */
  324    554   
    #[allow(missing_docs)] // documentation missing in model
         555  +
                           /* BuilderGenerator.kt:291 */
  325    556   
    pub fn default_null_document(mut self, input: ::aws_smithy_types::Document) -> Self {
         557  +
        /* BuilderGenerator.kt:292 */
  326    558   
        self.default_null_document = ::std::option::Option::Some(input);
         559  +
        /* BuilderGenerator.kt:293 */
  327    560   
        self
         561  +
        /* BuilderGenerator.kt:291 */
  328    562   
    }
         563  +
    /* BuilderGenerator.kt:312 */
  329    564   
    #[allow(missing_docs)] // documentation missing in model
         565  +
                           /* BuilderGenerator.kt:314 */
  330    566   
    pub fn set_default_null_document(mut self, input: ::std::option::Option<::aws_smithy_types::Document>) -> Self {
         567  +
        /* BuilderGenerator.kt:315 */
  331    568   
        self.default_null_document = input;
  332    569   
        self
         570  +
        /* BuilderGenerator.kt:314 */
  333    571   
    }
         572  +
    /* BuilderGenerator.kt:334 */
  334    573   
    #[allow(missing_docs)] // documentation missing in model
         574  +
                           /* BuilderGenerator.kt:336 */
  335    575   
    pub fn get_default_null_document(&self) -> &::std::option::Option<::aws_smithy_types::Document> {
         576  +
        /* BuilderGenerator.kt:337 */
  336    577   
        &self.default_null_document
         578  +
        /* BuilderGenerator.kt:336 */
  337    579   
    }
         580  +
    /* BuilderGenerator.kt:286 */
  338    581   
    #[allow(missing_docs)] // documentation missing in model
         582  +
                           /* BuilderGenerator.kt:291 */
  339    583   
    pub fn default_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         584  +
        /* BuilderGenerator.kt:292 */
  340    585   
        self.default_timestamp = ::std::option::Option::Some(input);
         586  +
        /* BuilderGenerator.kt:293 */
  341    587   
        self
         588  +
        /* BuilderGenerator.kt:291 */
  342    589   
    }
         590  +
    /* BuilderGenerator.kt:312 */
  343    591   
    #[allow(missing_docs)] // documentation missing in model
         592  +
                           /* BuilderGenerator.kt:314 */
  344    593   
    pub fn set_default_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         594  +
        /* BuilderGenerator.kt:315 */
  345    595   
        self.default_timestamp = input;
  346    596   
        self
         597  +
        /* BuilderGenerator.kt:314 */
  347    598   
    }
         599  +
    /* BuilderGenerator.kt:334 */
  348    600   
    #[allow(missing_docs)] // documentation missing in model
         601  +
                           /* BuilderGenerator.kt:336 */
  349    602   
    pub fn get_default_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         603  +
        /* BuilderGenerator.kt:337 */
  350    604   
        &self.default_timestamp
         605  +
        /* BuilderGenerator.kt:336 */
  351    606   
    }
         607  +
    /* BuilderGenerator.kt:286 */
  352    608   
    #[allow(missing_docs)] // documentation missing in model
         609  +
                           /* BuilderGenerator.kt:291 */
  353    610   
    pub fn default_blob(mut self, input: ::aws_smithy_types::Blob) -> Self {
         611  +
        /* BuilderGenerator.kt:292 */
  354    612   
        self.default_blob = ::std::option::Option::Some(input);
         613  +
        /* BuilderGenerator.kt:293 */
  355    614   
        self
         615  +
        /* BuilderGenerator.kt:291 */
  356    616   
    }
         617  +
    /* BuilderGenerator.kt:312 */
  357    618   
    #[allow(missing_docs)] // documentation missing in model
         619  +
                           /* BuilderGenerator.kt:314 */
  358    620   
    pub fn set_default_blob(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
         621  +
        /* BuilderGenerator.kt:315 */
  359    622   
        self.default_blob = input;
  360    623   
        self
         624  +
        /* BuilderGenerator.kt:314 */
  361    625   
    }
         626  +
    /* BuilderGenerator.kt:334 */
  362    627   
    #[allow(missing_docs)] // documentation missing in model
         628  +
                           /* BuilderGenerator.kt:336 */
  363    629   
    pub fn get_default_blob(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
         630  +
        /* BuilderGenerator.kt:337 */
  364    631   
        &self.default_blob
         632  +
        /* BuilderGenerator.kt:336 */
  365    633   
    }
         634  +
    /* BuilderGenerator.kt:286 */
  366    635   
    #[allow(missing_docs)] // documentation missing in model
         636  +
                           /* BuilderGenerator.kt:291 */
  367    637   
    pub fn default_byte(mut self, input: i8) -> Self {
         638  +
        /* BuilderGenerator.kt:292 */
  368    639   
        self.default_byte = ::std::option::Option::Some(input);
         640  +
        /* BuilderGenerator.kt:293 */
  369    641   
        self
         642  +
        /* BuilderGenerator.kt:291 */
  370    643   
    }
         644  +
    /* BuilderGenerator.kt:312 */
  371    645   
    #[allow(missing_docs)] // documentation missing in model
         646  +
                           /* BuilderGenerator.kt:314 */
  372    647   
    pub fn set_default_byte(mut self, input: ::std::option::Option<i8>) -> Self {
         648  +
        /* BuilderGenerator.kt:315 */
  373    649   
        self.default_byte = input;
  374    650   
        self
         651  +
        /* BuilderGenerator.kt:314 */
  375    652   
    }
         653  +
    /* BuilderGenerator.kt:334 */
  376    654   
    #[allow(missing_docs)] // documentation missing in model
         655  +
                           /* BuilderGenerator.kt:336 */
  377    656   
    pub fn get_default_byte(&self) -> &::std::option::Option<i8> {
         657  +
        /* BuilderGenerator.kt:337 */
  378    658   
        &self.default_byte
         659  +
        /* BuilderGenerator.kt:336 */
  379    660   
    }
         661  +
    /* BuilderGenerator.kt:286 */
  380    662   
    #[allow(missing_docs)] // documentation missing in model
         663  +
                           /* BuilderGenerator.kt:291 */
  381    664   
    pub fn default_short(mut self, input: i16) -> Self {
         665  +
        /* BuilderGenerator.kt:292 */
  382    666   
        self.default_short = ::std::option::Option::Some(input);
         667  +
        /* BuilderGenerator.kt:293 */
  383    668   
        self
         669  +
        /* BuilderGenerator.kt:291 */
  384    670   
    }
         671  +
    /* BuilderGenerator.kt:312 */
  385    672   
    #[allow(missing_docs)] // documentation missing in model
         673  +
                           /* BuilderGenerator.kt:314 */
  386    674   
    pub fn set_default_short(mut self, input: ::std::option::Option<i16>) -> Self {
         675  +
        /* BuilderGenerator.kt:315 */
  387    676   
        self.default_short = input;
  388    677   
        self
         678  +
        /* BuilderGenerator.kt:314 */
  389    679   
    }
         680  +
    /* BuilderGenerator.kt:334 */
  390    681   
    #[allow(missing_docs)] // documentation missing in model
         682  +
                           /* BuilderGenerator.kt:336 */
  391    683   
    pub fn get_default_short(&self) -> &::std::option::Option<i16> {
         684  +
        /* BuilderGenerator.kt:337 */
  392    685   
        &self.default_short
         686  +
        /* BuilderGenerator.kt:336 */
  393    687   
    }
         688  +
    /* BuilderGenerator.kt:286 */
  394    689   
    #[allow(missing_docs)] // documentation missing in model
         690  +
                           /* BuilderGenerator.kt:291 */
  395    691   
    pub fn default_integer(mut self, input: i32) -> Self {
         692  +
        /* BuilderGenerator.kt:292 */
  396    693   
        self.default_integer = ::std::option::Option::Some(input);
         694  +
        /* BuilderGenerator.kt:293 */
  397    695   
        self
         696  +
        /* BuilderGenerator.kt:291 */
  398    697   
    }
         698  +
    /* BuilderGenerator.kt:312 */
  399    699   
    #[allow(missing_docs)] // documentation missing in model
         700  +
                           /* BuilderGenerator.kt:314 */
  400    701   
    pub fn set_default_integer(mut self, input: ::std::option::Option<i32>) -> Self {
         702  +
        /* BuilderGenerator.kt:315 */
  401    703   
        self.default_integer = input;
  402    704   
        self
         705  +
        /* BuilderGenerator.kt:314 */
  403    706   
    }
         707  +
    /* BuilderGenerator.kt:334 */
  404    708   
    #[allow(missing_docs)] // documentation missing in model
         709  +
                           /* BuilderGenerator.kt:336 */
  405    710   
    pub fn get_default_integer(&self) -> &::std::option::Option<i32> {
         711  +
        /* BuilderGenerator.kt:337 */
  406    712   
        &self.default_integer
         713  +
        /* BuilderGenerator.kt:336 */
  407    714   
    }
         715  +
    /* BuilderGenerator.kt:286 */
  408    716   
    #[allow(missing_docs)] // documentation missing in model
         717  +
                           /* BuilderGenerator.kt:291 */
  409    718   
    pub fn default_long(mut self, input: i64) -> Self {
         719  +
        /* BuilderGenerator.kt:292 */
  410    720   
        self.default_long = ::std::option::Option::Some(input);
         721  +
        /* BuilderGenerator.kt:293 */
  411    722   
        self
         723  +
        /* BuilderGenerator.kt:291 */
  412    724   
    }
         725  +
    /* BuilderGenerator.kt:312 */
  413    726   
    #[allow(missing_docs)] // documentation missing in model
         727  +
                           /* BuilderGenerator.kt:314 */
  414    728   
    pub fn set_default_long(mut self, input: ::std::option::Option<i64>) -> Self {
         729  +
        /* BuilderGenerator.kt:315 */
  415    730   
        self.default_long = input;
  416    731   
        self
         732  +
        /* BuilderGenerator.kt:314 */
  417    733   
    }
         734  +
    /* BuilderGenerator.kt:334 */
  418    735   
    #[allow(missing_docs)] // documentation missing in model
         736  +
                           /* BuilderGenerator.kt:336 */
  419    737   
    pub fn get_default_long(&self) -> &::std::option::Option<i64> {
         738  +
        /* BuilderGenerator.kt:337 */
  420    739   
        &self.default_long
         740  +
        /* BuilderGenerator.kt:336 */
  421    741   
    }
         742  +
    /* BuilderGenerator.kt:286 */
  422    743   
    #[allow(missing_docs)] // documentation missing in model
         744  +
                           /* BuilderGenerator.kt:291 */
  423    745   
    pub fn default_float(mut self, input: f32) -> Self {
         746  +
        /* BuilderGenerator.kt:292 */
  424    747   
        self.default_float = ::std::option::Option::Some(input);
         748  +
        /* BuilderGenerator.kt:293 */
  425    749   
        self
         750  +
        /* BuilderGenerator.kt:291 */
  426    751   
    }
         752  +
    /* BuilderGenerator.kt:312 */
  427    753   
    #[allow(missing_docs)] // documentation missing in model
         754  +
                           /* BuilderGenerator.kt:314 */
  428    755   
    pub fn set_default_float(mut self, input: ::std::option::Option<f32>) -> Self {
         756  +
        /* BuilderGenerator.kt:315 */
  429    757   
        self.default_float = input;
  430    758   
        self
         759  +
        /* BuilderGenerator.kt:314 */
  431    760   
    }
         761  +
    /* BuilderGenerator.kt:334 */
  432    762   
    #[allow(missing_docs)] // documentation missing in model
         763  +
                           /* BuilderGenerator.kt:336 */
  433    764   
    pub fn get_default_float(&self) -> &::std::option::Option<f32> {
         765  +
        /* BuilderGenerator.kt:337 */
  434    766   
        &self.default_float
         767  +
        /* BuilderGenerator.kt:336 */
  435    768   
    }
         769  +
    /* BuilderGenerator.kt:286 */
  436    770   
    #[allow(missing_docs)] // documentation missing in model
         771  +
                           /* BuilderGenerator.kt:291 */
  437    772   
    pub fn default_double(mut self, input: f64) -> Self {
         773  +
        /* BuilderGenerator.kt:292 */
  438    774   
        self.default_double = ::std::option::Option::Some(input);
         775  +
        /* BuilderGenerator.kt:293 */
  439    776   
        self
         777  +
        /* BuilderGenerator.kt:291 */
  440    778   
    }
         779  +
    /* BuilderGenerator.kt:312 */
  441    780   
    #[allow(missing_docs)] // documentation missing in model
         781  +
                           /* BuilderGenerator.kt:314 */
  442    782   
    pub fn set_default_double(mut self, input: ::std::option::Option<f64>) -> Self {
         783  +
        /* BuilderGenerator.kt:315 */
  443    784   
        self.default_double = input;
  444    785   
        self
         786  +
        /* BuilderGenerator.kt:314 */
  445    787   
    }
         788  +
    /* BuilderGenerator.kt:334 */
  446    789   
    #[allow(missing_docs)] // documentation missing in model
         790  +
                           /* BuilderGenerator.kt:336 */
  447    791   
    pub fn get_default_double(&self) -> &::std::option::Option<f64> {
         792  +
        /* BuilderGenerator.kt:337 */
  448    793   
        &self.default_double
         794  +
        /* BuilderGenerator.kt:336 */
  449    795   
    }
  450         -
    /// Adds a key-value pair to `default_map`.
         796  +
    /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `default_map`.
         797  +
    /* BuilderGenerator.kt:437 */
  451    798   
    ///
  452         -
    /// To override the contents of this collection use [`set_default_map`](Self::set_default_map).
         799  +
    /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_default_map`](Self::set_default_map).
         800  +
    /* BuilderGenerator.kt:439 */
  453    801   
    ///
         802  +
    /* BuilderGenerator.kt:445 */
  454    803   
    pub fn default_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
         804  +
        /* BuilderGenerator.kt:448 */
  455    805   
        let mut hash_map = self.default_map.unwrap_or_default();
  456    806   
        hash_map.insert(k.into(), v.into());
  457    807   
        self.default_map = ::std::option::Option::Some(hash_map);
  458    808   
        self
         809  +
        /* BuilderGenerator.kt:445 */
  459    810   
    }
         811  +
    /* BuilderGenerator.kt:312 */
  460    812   
    #[allow(missing_docs)] // documentation missing in model
         813  +
                           /* BuilderGenerator.kt:314 */
  461    814   
    pub fn set_default_map(
  462    815   
        mut self,
  463    816   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
  464    817   
    ) -> Self {
         818  +
        /* BuilderGenerator.kt:315 */
  465    819   
        self.default_map = input;
  466    820   
        self
         821  +
        /* BuilderGenerator.kt:314 */
  467    822   
    }
         823  +
    /* BuilderGenerator.kt:334 */
  468    824   
    #[allow(missing_docs)] // documentation missing in model
         825  +
                           /* BuilderGenerator.kt:336 */
  469    826   
    pub fn get_default_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
         827  +
        /* BuilderGenerator.kt:337 */
  470    828   
        &self.default_map
         829  +
        /* BuilderGenerator.kt:336 */
  471    830   
    }
         831  +
    /* BuilderGenerator.kt:286 */
  472    832   
    #[allow(missing_docs)] // documentation missing in model
         833  +
                           /* BuilderGenerator.kt:291 */
  473    834   
    pub fn default_enum(mut self, input: crate::types::TestEnum) -> Self {
         835  +
        /* BuilderGenerator.kt:292 */
  474    836   
        self.default_enum = ::std::option::Option::Some(input);
         837  +
        /* BuilderGenerator.kt:293 */
  475    838   
        self
         839  +
        /* BuilderGenerator.kt:291 */
  476    840   
    }
         841  +
    /* BuilderGenerator.kt:312 */
  477    842   
    #[allow(missing_docs)] // documentation missing in model
         843  +
                           /* BuilderGenerator.kt:314 */
  478    844   
    pub fn set_default_enum(mut self, input: ::std::option::Option<crate::types::TestEnum>) -> Self {
         845  +
        /* BuilderGenerator.kt:315 */
  479    846   
        self.default_enum = input;
  480    847   
        self
         848  +
        /* BuilderGenerator.kt:314 */
  481    849   
    }
         850  +
    /* BuilderGenerator.kt:334 */
  482    851   
    #[allow(missing_docs)] // documentation missing in model
         852  +
                           /* BuilderGenerator.kt:336 */
  483    853   
    pub fn get_default_enum(&self) -> &::std::option::Option<crate::types::TestEnum> {
         854  +
        /* BuilderGenerator.kt:337 */
  484    855   
        &self.default_enum
         856  +
        /* BuilderGenerator.kt:336 */
  485    857   
    }
         858  +
    /* BuilderGenerator.kt:286 */
  486    859   
    #[allow(missing_docs)] // documentation missing in model
         860  +
                           /* BuilderGenerator.kt:291 */
  487    861   
    pub fn default_int_enum(mut self, input: i32) -> Self {
         862  +
        /* BuilderGenerator.kt:292 */
  488    863   
        self.default_int_enum = ::std::option::Option::Some(input);
         864  +
        /* BuilderGenerator.kt:293 */
  489    865   
        self
         866  +
        /* BuilderGenerator.kt:291 */
  490    867   
    }
         868  +
    /* BuilderGenerator.kt:312 */
  491    869   
    #[allow(missing_docs)] // documentation missing in model
         870  +
                           /* BuilderGenerator.kt:314 */
  492    871   
    pub fn set_default_int_enum(mut self, input: ::std::option::Option<i32>) -> Self {
         872  +
        /* BuilderGenerator.kt:315 */
  493    873   
        self.default_int_enum = input;
  494    874   
        self
         875  +
        /* BuilderGenerator.kt:314 */
  495    876   
    }
         877  +
    /* BuilderGenerator.kt:334 */
  496    878   
    #[allow(missing_docs)] // documentation missing in model
         879  +
                           /* BuilderGenerator.kt:336 */
  497    880   
    pub fn get_default_int_enum(&self) -> &::std::option::Option<i32> {
         881  +
        /* BuilderGenerator.kt:337 */
  498    882   
        &self.default_int_enum
         883  +
        /* BuilderGenerator.kt:336 */
  499    884   
    }
         885  +
    /* BuilderGenerator.kt:286 */
  500    886   
    #[allow(missing_docs)] // documentation missing in model
         887  +
                           /* BuilderGenerator.kt:291 */
  501    888   
    pub fn empty_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         889  +
        /* BuilderGenerator.kt:292 */
  502    890   
        self.empty_string = ::std::option::Option::Some(input.into());
         891  +
        /* BuilderGenerator.kt:293 */
  503    892   
        self
         893  +
        /* BuilderGenerator.kt:291 */
  504    894   
    }
         895  +
    /* BuilderGenerator.kt:312 */
  505    896   
    #[allow(missing_docs)] // documentation missing in model
         897  +
                           /* BuilderGenerator.kt:314 */
  506    898   
    pub fn set_empty_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         899  +
        /* BuilderGenerator.kt:315 */
  507    900   
        self.empty_string = input;
  508    901   
        self
         902  +
        /* BuilderGenerator.kt:314 */
  509    903   
    }
         904  +
    /* BuilderGenerator.kt:334 */
  510    905   
    #[allow(missing_docs)] // documentation missing in model
         906  +
                           /* BuilderGenerator.kt:336 */
  511    907   
    pub fn get_empty_string(&self) -> &::std::option::Option<::std::string::String> {
         908  +
        /* BuilderGenerator.kt:337 */
  512    909   
        &self.empty_string
         910  +
        /* BuilderGenerator.kt:336 */
  513    911   
    }
         912  +
    /* BuilderGenerator.kt:286 */
  514    913   
    #[allow(missing_docs)] // documentation missing in model
         914  +
                           /* BuilderGenerator.kt:291 */
  515    915   
    pub fn false_boolean(mut self, input: bool) -> Self {
         916  +
        /* BuilderGenerator.kt:292 */
  516    917   
        self.false_boolean = ::std::option::Option::Some(input);
         918  +
        /* BuilderGenerator.kt:293 */
  517    919   
        self
         920  +
        /* BuilderGenerator.kt:291 */
  518    921   
    }
         922  +
    /* BuilderGenerator.kt:312 */
  519    923   
    #[allow(missing_docs)] // documentation missing in model
         924  +
                           /* BuilderGenerator.kt:314 */
  520    925   
    pub fn set_false_boolean(mut self, input: ::std::option::Option<bool>) -> Self {
         926  +
        /* BuilderGenerator.kt:315 */
  521    927   
        self.false_boolean = input;
  522    928   
        self
         929  +
        /* BuilderGenerator.kt:314 */
  523    930   
    }
         931  +
    /* BuilderGenerator.kt:334 */
  524    932   
    #[allow(missing_docs)] // documentation missing in model
         933  +
                           /* BuilderGenerator.kt:336 */
  525    934   
    pub fn get_false_boolean(&self) -> &::std::option::Option<bool> {
         935  +
        /* BuilderGenerator.kt:337 */
  526    936   
        &self.false_boolean
         937  +
        /* BuilderGenerator.kt:336 */
  527    938   
    }
         939  +
    /* BuilderGenerator.kt:286 */
  528    940   
    #[allow(missing_docs)] // documentation missing in model
         941  +
                           /* BuilderGenerator.kt:291 */
  529    942   
    pub fn empty_blob(mut self, input: ::aws_smithy_types::Blob) -> Self {
         943  +
        /* BuilderGenerator.kt:292 */
  530    944   
        self.empty_blob = ::std::option::Option::Some(input);
         945  +
        /* BuilderGenerator.kt:293 */
  531    946   
        self
         947  +
        /* BuilderGenerator.kt:291 */
  532    948   
    }
         949  +
    /* BuilderGenerator.kt:312 */
  533    950   
    #[allow(missing_docs)] // documentation missing in model
         951  +
                           /* BuilderGenerator.kt:314 */
  534    952   
    pub fn set_empty_blob(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
         953  +
        /* BuilderGenerator.kt:315 */
  535    954   
        self.empty_blob = input;
  536    955   
        self
         956  +
        /* BuilderGenerator.kt:314 */
  537    957   
    }
         958  +
    /* BuilderGenerator.kt:334 */
  538    959   
    #[allow(missing_docs)] // documentation missing in model
         960  +
                           /* BuilderGenerator.kt:336 */
  539    961   
    pub fn get_empty_blob(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
         962  +
        /* BuilderGenerator.kt:337 */
  540    963   
        &self.empty_blob
         964  +
        /* BuilderGenerator.kt:336 */
  541    965   
    }
         966  +
    /* BuilderGenerator.kt:286 */
  542    967   
    #[allow(missing_docs)] // documentation missing in model
         968  +
                           /* BuilderGenerator.kt:291 */
  543    969   
    pub fn zero_byte(mut self, input: i8) -> Self {
         970  +
        /* BuilderGenerator.kt:292 */
  544    971   
        self.zero_byte = ::std::option::Option::Some(input);
         972  +
        /* BuilderGenerator.kt:293 */
  545    973   
        self
         974  +
        /* BuilderGenerator.kt:291 */
  546    975   
    }
         976  +
    /* BuilderGenerator.kt:312 */
  547    977   
    #[allow(missing_docs)] // documentation missing in model
         978  +
                           /* BuilderGenerator.kt:314 */
  548    979   
    pub fn set_zero_byte(mut self, input: ::std::option::Option<i8>) -> Self {
         980  +
        /* BuilderGenerator.kt:315 */
  549    981   
        self.zero_byte = input;
  550    982   
        self
         983  +
        /* BuilderGenerator.kt:314 */
  551    984   
    }
         985  +
    /* BuilderGenerator.kt:334 */
  552    986   
    #[allow(missing_docs)] // documentation missing in model
         987  +
                           /* BuilderGenerator.kt:336 */
  553    988   
    pub fn get_zero_byte(&self) -> &::std::option::Option<i8> {
         989  +
        /* BuilderGenerator.kt:337 */
  554    990   
        &self.zero_byte
         991  +
        /* BuilderGenerator.kt:336 */
  555    992   
    }
         993  +
    /* BuilderGenerator.kt:286 */
  556    994   
    #[allow(missing_docs)] // documentation missing in model
         995  +
                           /* BuilderGenerator.kt:291 */
  557    996   
    pub fn zero_short(mut self, input: i16) -> Self {
         997  +
        /* BuilderGenerator.kt:292 */
  558    998   
        self.zero_short = ::std::option::Option::Some(input);
         999  +
        /* BuilderGenerator.kt:293 */
  559   1000   
        self
        1001  +
        /* BuilderGenerator.kt:291 */
  560   1002   
    }
        1003  +
    /* BuilderGenerator.kt:312 */
  561   1004   
    #[allow(missing_docs)] // documentation missing in model
        1005  +
                           /* BuilderGenerator.kt:314 */
  562   1006   
    pub fn set_zero_short(mut self, input: ::std::option::Option<i16>) -> Self {
        1007  +
        /* BuilderGenerator.kt:315 */
  563   1008   
        self.zero_short = input;
  564   1009   
        self
        1010  +
        /* BuilderGenerator.kt:314 */
  565   1011   
    }
        1012  +
    /* BuilderGenerator.kt:334 */
  566   1013   
    #[allow(missing_docs)] // documentation missing in model
        1014  +
                           /* BuilderGenerator.kt:336 */
  567   1015   
    pub fn get_zero_short(&self) -> &::std::option::Option<i16> {
        1016  +
        /* BuilderGenerator.kt:337 */
  568   1017   
        &self.zero_short
        1018  +
        /* BuilderGenerator.kt:336 */
  569   1019   
    }
        1020  +
    /* BuilderGenerator.kt:286 */
  570   1021   
    #[allow(missing_docs)] // documentation missing in model
        1022  +
                           /* BuilderGenerator.kt:291 */
  571   1023   
    pub fn zero_integer(mut self, input: i32) -> Self {
        1024  +
        /* BuilderGenerator.kt:292 */
  572   1025   
        self.zero_integer = ::std::option::Option::Some(input);
        1026  +
        /* BuilderGenerator.kt:293 */
  573   1027   
        self
        1028  +
        /* BuilderGenerator.kt:291 */
  574   1029   
    }
        1030  +
    /* BuilderGenerator.kt:312 */
  575   1031   
    #[allow(missing_docs)] // documentation missing in model
        1032  +
                           /* BuilderGenerator.kt:314 */
  576   1033   
    pub fn set_zero_integer(mut self, input: ::std::option::Option<i32>) -> Self {
        1034  +
        /* BuilderGenerator.kt:315 */
  577   1035   
        self.zero_integer = input;
  578   1036   
        self
        1037  +
        /* BuilderGenerator.kt:314 */
  579   1038   
    }
        1039  +
    /* BuilderGenerator.kt:334 */
  580   1040   
    #[allow(missing_docs)] // documentation missing in model
        1041  +
                           /* BuilderGenerator.kt:336 */
  581   1042   
    pub fn get_zero_integer(&self) -> &::std::option::Option<i32> {
        1043  +
        /* BuilderGenerator.kt:337 */
  582   1044   
        &self.zero_integer
        1045  +
        /* BuilderGenerator.kt:336 */
  583   1046   
    }
        1047  +
    /* BuilderGenerator.kt:286 */
  584   1048   
    #[allow(missing_docs)] // documentation missing in model
        1049  +
                           /* BuilderGenerator.kt:291 */
  585   1050   
    pub fn zero_long(mut self, input: i64) -> Self {
        1051  +
        /* BuilderGenerator.kt:292 */
  586   1052   
        self.zero_long = ::std::option::Option::Some(input);
        1053  +
        /* BuilderGenerator.kt:293 */
  587   1054   
        self
        1055  +
        /* BuilderGenerator.kt:291 */
  588   1056   
    }
        1057  +
    /* BuilderGenerator.kt:312 */
  589   1058   
    #[allow(missing_docs)] // documentation missing in model
        1059  +
                           /* BuilderGenerator.kt:314 */
  590   1060   
    pub fn set_zero_long(mut self, input: ::std::option::Option<i64>) -> Self {
        1061  +
        /* BuilderGenerator.kt:315 */
  591   1062   
        self.zero_long = input;
  592   1063   
        self
        1064  +
        /* BuilderGenerator.kt:314 */
  593   1065   
    }
        1066  +
    /* BuilderGenerator.kt:334 */
  594   1067   
    #[allow(missing_docs)] // documentation missing in model
        1068  +
                           /* BuilderGenerator.kt:336 */
  595   1069   
    pub fn get_zero_long(&self) -> &::std::option::Option<i64> {
        1070  +
        /* BuilderGenerator.kt:337 */
  596   1071   
        &self.zero_long
        1072  +
        /* BuilderGenerator.kt:336 */
  597   1073   
    }
        1074  +
    /* BuilderGenerator.kt:286 */
  598   1075   
    #[allow(missing_docs)] // documentation missing in model
        1076  +
                           /* BuilderGenerator.kt:291 */
  599   1077   
    pub fn zero_float(mut self, input: f32) -> Self {
        1078  +
        /* BuilderGenerator.kt:292 */
  600   1079   
        self.zero_float = ::std::option::Option::Some(input);
        1080  +
        /* BuilderGenerator.kt:293 */
  601   1081   
        self
        1082  +
        /* BuilderGenerator.kt:291 */
  602   1083   
    }
        1084  +
    /* BuilderGenerator.kt:312 */
  603   1085   
    #[allow(missing_docs)] // documentation missing in model
        1086  +
                           /* BuilderGenerator.kt:314 */
  604   1087   
    pub fn set_zero_float(mut self, input: ::std::option::Option<f32>) -> Self {
        1088  +
        /* BuilderGenerator.kt:315 */
  605   1089   
        self.zero_float = input;
  606   1090   
        self
        1091  +
        /* BuilderGenerator.kt:314 */
  607   1092   
    }
        1093  +
    /* BuilderGenerator.kt:334 */
  608   1094   
    #[allow(missing_docs)] // documentation missing in model
        1095  +
                           /* BuilderGenerator.kt:336 */
  609   1096   
    pub fn get_zero_float(&self) -> &::std::option::Option<f32> {
        1097  +
        /* BuilderGenerator.kt:337 */
  610   1098   
        &self.zero_float
        1099  +
        /* BuilderGenerator.kt:336 */
  611   1100   
    }
        1101  +
    /* BuilderGenerator.kt:286 */
  612   1102   
    #[allow(missing_docs)] // documentation missing in model
        1103  +
                           /* BuilderGenerator.kt:291 */
  613   1104   
    pub fn zero_double(mut self, input: f64) -> Self {
        1105  +
        /* BuilderGenerator.kt:292 */
  614   1106   
        self.zero_double = ::std::option::Option::Some(input);
        1107  +
        /* BuilderGenerator.kt:293 */
  615   1108   
        self
        1109  +
        /* BuilderGenerator.kt:291 */
  616   1110   
    }
        1111  +
    /* BuilderGenerator.kt:312 */
  617   1112   
    #[allow(missing_docs)] // documentation missing in model
        1113  +
                           /* BuilderGenerator.kt:314 */
  618   1114   
    pub fn set_zero_double(mut self, input: ::std::option::Option<f64>) -> Self {
        1115  +
        /* BuilderGenerator.kt:315 */
  619   1116   
        self.zero_double = input;
  620   1117   
        self
        1118  +
        /* BuilderGenerator.kt:314 */
  621   1119   
    }
        1120  +
    /* BuilderGenerator.kt:334 */
  622   1121   
    #[allow(missing_docs)] // documentation missing in model
        1122  +
                           /* BuilderGenerator.kt:336 */
  623   1123   
    pub fn get_zero_double(&self) -> &::std::option::Option<f64> {
        1124  +
        /* BuilderGenerator.kt:337 */
  624   1125   
        &self.zero_double
        1126  +
        /* BuilderGenerator.kt:336 */
  625   1127   
    }
  626         -
    /// Consumes the builder and constructs a [`OperationWithDefaultsOutput`](crate::operation::operation_with_defaults::OperationWithDefaultsOutput).
        1128  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`OperationWithDefaultsOutput`](crate::operation::operation_with_defaults::OperationWithDefaultsOutput).
        1129  +
    /* BuilderGenerator.kt:253 */
  627   1130   
    pub fn build(self) -> crate::operation::operation_with_defaults::OperationWithDefaultsOutput {
        1131  +
        /* BuilderGenerator.kt:477 */
  628   1132   
        crate::operation::operation_with_defaults::OperationWithDefaultsOutput {
  629         -
            default_string: self.default_string.unwrap_or_else(|| "hi".to_owned()),
  630         -
            default_boolean: self.default_boolean.unwrap_or(true),
  631         -
            default_list: self.default_list.unwrap_or_default(),
  632         -
            default_document_map: self.default_document_map.unwrap_or_else(|| {
        1133  +
            /* BuilderGenerator.kt:481 */
        1134  +
            default_string: self
        1135  +
                .default_string
        1136  +
                /* BuilderGenerator.kt:489 */
        1137  +
                .unwrap_or_else(|| "hi".to_owned()),
        1138  +
            /* BuilderGenerator.kt:481 */
        1139  +
            default_boolean: self
        1140  +
                .default_boolean
        1141  +
                /* BuilderGenerator.kt:491 */
        1142  +
                .unwrap_or(true),
        1143  +
            /* BuilderGenerator.kt:481 */
        1144  +
            default_list: self
        1145  +
                .default_list
        1146  +
                /* BuilderGenerator.kt:487 */
        1147  +
                .unwrap_or_default(),
        1148  +
            /* BuilderGenerator.kt:481 */
        1149  +
            default_document_map: self
        1150  +
                .default_document_map
        1151  +
                /* BuilderGenerator.kt:489 */
        1152  +
                .unwrap_or_else(|| {
  633   1153   
                    let json_bytes = br#"{}"#;
  634   1154   
                    let mut tokens = ::aws_smithy_json::deserialize::json_token_iter(json_bytes).peekable();
  635   1155   
                    ::aws_smithy_json::deserialize::token::expect_document(&mut tokens).expect("well formed json")
  636   1156   
                }),
  637         -
            default_document_string: self.default_document_string.unwrap_or_else(|| {
        1157  +
            /* BuilderGenerator.kt:481 */
        1158  +
            default_document_string: self
        1159  +
                .default_document_string
        1160  +
                /* BuilderGenerator.kt:489 */
        1161  +
                .unwrap_or_else(|| {
  638   1162   
                    let json_bytes = br#""hi""#;
  639   1163   
                    let mut tokens = ::aws_smithy_json::deserialize::json_token_iter(json_bytes).peekable();
  640   1164   
                    ::aws_smithy_json::deserialize::token::expect_document(&mut tokens).expect("well formed json")
  641   1165   
                }),
  642         -
            default_document_boolean: self.default_document_boolean.unwrap_or_else(|| {
        1166  +
            /* BuilderGenerator.kt:481 */
        1167  +
            default_document_boolean: self
        1168  +
                .default_document_boolean
        1169  +
                /* BuilderGenerator.kt:489 */
        1170  +
                .unwrap_or_else(|| {
  643   1171   
                    let json_bytes = br#"true"#;
  644   1172   
                    let mut tokens = ::aws_smithy_json::deserialize::json_token_iter(json_bytes).peekable();
  645   1173   
                    ::aws_smithy_json::deserialize::token::expect_document(&mut tokens).expect("well formed json")
  646   1174   
                }),
  647         -
            default_document_list: self.default_document_list.unwrap_or_else(|| {
        1175  +
            /* BuilderGenerator.kt:481 */
        1176  +
            default_document_list: self
        1177  +
                .default_document_list
        1178  +
                /* BuilderGenerator.kt:489 */
        1179  +
                .unwrap_or_else(|| {
  648   1180   
                    let json_bytes = br#"[]"#;
  649   1181   
                    let mut tokens = ::aws_smithy_json::deserialize::json_token_iter(json_bytes).peekable();
  650   1182   
                    ::aws_smithy_json::deserialize::token::expect_document(&mut tokens).expect("well formed json")
  651   1183   
                }),
        1184  +
            /* BuilderGenerator.kt:481 */
  652   1185   
            default_null_document: self.default_null_document,
        1186  +
            /* BuilderGenerator.kt:481 */
  653   1187   
            default_timestamp: self
  654   1188   
                .default_timestamp
        1189  +
                /* BuilderGenerator.kt:489 */
  655   1190   
                .unwrap_or_else(|| ::aws_smithy_types::DateTime::from_fractional_secs(0, 0_f64)),
  656         -
            default_blob: self.default_blob.unwrap_or_else(|| ::aws_smithy_types::Blob::new("abc")),
  657         -
            default_byte: self.default_byte.unwrap_or(1),
  658         -
            default_short: self.default_short.unwrap_or(1),
  659         -
            default_integer: self.default_integer.unwrap_or(10),
  660         -
            default_long: self.default_long.unwrap_or(100),
  661         -
            default_float: self.default_float.unwrap_or(1.0_f32),
  662         -
            default_double: self.default_double.unwrap_or(1.0_f64),
  663         -
            default_map: self.default_map.unwrap_or_default(),
        1191  +
            /* BuilderGenerator.kt:481 */
        1192  +
            default_blob: self
        1193  +
                .default_blob
        1194  +
                /* BuilderGenerator.kt:489 */
        1195  +
                .unwrap_or_else(|| ::aws_smithy_types::Blob::new("abc")),
        1196  +
            /* BuilderGenerator.kt:481 */
        1197  +
            default_byte: self
        1198  +
                .default_byte
        1199  +
                /* BuilderGenerator.kt:491 */
        1200  +
                .unwrap_or(1),
        1201  +
            /* BuilderGenerator.kt:481 */
        1202  +
            default_short: self
        1203  +
                .default_short
        1204  +
                /* BuilderGenerator.kt:491 */
        1205  +
                .unwrap_or(1),
        1206  +
            /* BuilderGenerator.kt:481 */
        1207  +
            default_integer: self
        1208  +
                .default_integer
        1209  +
                /* BuilderGenerator.kt:491 */
        1210  +
                .unwrap_or(10),
        1211  +
            /* BuilderGenerator.kt:481 */
        1212  +
            default_long: self
        1213  +
                .default_long
        1214  +
                /* BuilderGenerator.kt:491 */
        1215  +
                .unwrap_or(100),
        1216  +
            /* BuilderGenerator.kt:481 */
        1217  +
            default_float: self
        1218  +
                .default_float
        1219  +
                /* BuilderGenerator.kt:491 */
        1220  +
                .unwrap_or(1.0_f32),
        1221  +
            /* BuilderGenerator.kt:481 */
        1222  +
            default_double: self
        1223  +
                .default_double
        1224  +
                /* BuilderGenerator.kt:491 */
        1225  +
                .unwrap_or(1.0_f64),
        1226  +
            /* BuilderGenerator.kt:481 */
        1227  +
            default_map: self
        1228  +
                .default_map
        1229  +
                /* BuilderGenerator.kt:487 */
        1230  +
                .unwrap_or_default(),
        1231  +
            /* BuilderGenerator.kt:481 */
  664   1232   
            default_enum: self
  665   1233   
                .default_enum
        1234  +
                /* BuilderGenerator.kt:491 */
  666   1235   
                .unwrap_or("FOO".parse::<crate::types::TestEnum>().expect("static value validated to member")),
  667         -
            default_int_enum: self.default_int_enum.unwrap_or(1),
  668         -
            empty_string: self.empty_string.unwrap_or_default(),
  669         -
            false_boolean: self.false_boolean.unwrap_or_default(),
  670         -
            empty_blob: self.empty_blob.unwrap_or_default(),
  671         -
            zero_byte: self.zero_byte.unwrap_or_default(),
  672         -
            zero_short: self.zero_short.unwrap_or_default(),
  673         -
            zero_integer: self.zero_integer.unwrap_or_default(),
  674         -
            zero_long: self.zero_long.unwrap_or_default(),
  675         -
            zero_float: self.zero_float.unwrap_or(0.0_f32),
  676         -
            zero_double: self.zero_double.unwrap_or(0.0_f64),
  677         -
        }
  678         -
    }
        1236  +
            /* BuilderGenerator.kt:481 */
        1237  +
            default_int_enum: self
        1238  +
                .default_int_enum
        1239  +
                /* BuilderGenerator.kt:491 */
        1240  +
                .unwrap_or(1),
        1241  +
            /* BuilderGenerator.kt:481 */
        1242  +
            empty_string: self
        1243  +
                .empty_string
        1244  +
                /* BuilderGenerator.kt:487 */
        1245  +
                .unwrap_or_default(),
        1246  +
            /* BuilderGenerator.kt:481 */
        1247  +
            false_boolean: self
        1248  +
                .false_boolean
        1249  +
                /* BuilderGenerator.kt:487 */
        1250  +
                .unwrap_or_default(),
        1251  +
            /* BuilderGenerator.kt:481 */
        1252  +
            empty_blob: self
        1253  +
                .empty_blob
        1254  +
                /* BuilderGenerator.kt:487 */
        1255  +
                .unwrap_or_default(),
        1256  +
            /* BuilderGenerator.kt:481 */
        1257  +
            zero_byte: self
        1258  +
                .zero_byte
        1259  +
                /* BuilderGenerator.kt:487 */
        1260  +
                .unwrap_or_default(),
        1261  +
            /* BuilderGenerator.kt:481 */
        1262  +
            zero_short: self
        1263  +
                .zero_short
        1264  +
                /* BuilderGenerator.kt:487 */
        1265  +
                .unwrap_or_default(),
        1266  +
            /* BuilderGenerator.kt:481 */
        1267  +
            zero_integer: self
        1268  +
                .zero_integer
        1269  +
                /* BuilderGenerator.kt:487 */
        1270  +
                .unwrap_or_default(),
        1271  +
            /* BuilderGenerator.kt:481 */
        1272  +
            zero_long: self
        1273  +
                .zero_long
        1274  +
                /* BuilderGenerator.kt:487 */
        1275  +
                .unwrap_or_default(),
        1276  +
            /* BuilderGenerator.kt:481 */
        1277  +
            zero_float: self
        1278  +
                .zero_float
        1279  +
                /* BuilderGenerator.kt:491 */
        1280  +
                .unwrap_or(0.0_f32),
        1281  +
            /* BuilderGenerator.kt:481 */
        1282  +
            zero_double: self
        1283  +
                .zero_double
        1284  +
                /* BuilderGenerator.kt:491 */
        1285  +
                .unwrap_or(0.0_f64),
        1286  +
            /* BuilderGenerator.kt:477 */
        1287  +
        }
        1288  +
        /* BuilderGenerator.kt:253 */
        1289  +
    }
        1290  +
    /* BuilderGenerator.kt:355 */
  679   1291   
}

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/operation_with_defaults/builders.rs

@@ -1,1 +166,202 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::operation::operation_with_defaults::_operation_with_defaults_output::OperationWithDefaultsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::operation_with_defaults::_operation_with_defaults_input::OperationWithDefaultsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::operation_with_defaults::builders::OperationWithDefaultsInputBuilder {
    7     10   
    /// Sends a request with this input using the given client.
    8     11   
    pub async fn send_with(
    9     12   
        self,
   10     13   
        client: &crate::Client,
   11     14   
    ) -> ::std::result::Result<
   12     15   
        crate::operation::operation_with_defaults::OperationWithDefaultsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::operation_with_defaults::OperationWithDefaultsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.operation_with_defaults();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `OperationWithDefaults`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `OperationWithDefaults`.
   24     27   
///
          28  +
/* RustType.kt:516 */
   25     29   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          30  +
/* FluentBuilderGenerator.kt:270 */
   26     31   
pub struct OperationWithDefaultsFluentBuilder {
   27     32   
    handle: ::std::sync::Arc<crate::client::Handle>,
   28     33   
    inner: crate::operation::operation_with_defaults::builders::OperationWithDefaultsInputBuilder,
   29     34   
    config_override: ::std::option::Option<crate::config::Builder>,
   30     35   
}
          36  +
/* FluentBuilderGenerator.kt:381 */
   31     37   
impl
   32     38   
    crate::client::customize::internal::CustomizableSend<
   33     39   
        crate::operation::operation_with_defaults::OperationWithDefaultsOutput,
   34     40   
        crate::operation::operation_with_defaults::OperationWithDefaultsError,
   35     41   
    > for OperationWithDefaultsFluentBuilder
   36     42   
{
   37     43   
    fn send(
   38     44   
        self,
   39     45   
        config_override: crate::config::Builder,
   40     46   
    ) -> crate::client::customize::internal::BoxFuture<
   41     47   
        crate::client::customize::internal::SendResult<
   42     48   
            crate::operation::operation_with_defaults::OperationWithDefaultsOutput,
   43     49   
            crate::operation::operation_with_defaults::OperationWithDefaultsError,
   44     50   
        >,
   45     51   
    > {
   46     52   
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
   47     53   
    }
   48     54   
}
          55  +
/* FluentBuilderGenerator.kt:282 */
   49     56   
impl OperationWithDefaultsFluentBuilder {
          57  +
    /* FluentBuilderGenerator.kt:288 */
   50     58   
    /// Creates a new `OperationWithDefaultsFluentBuilder`.
   51     59   
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
   52     60   
        Self {
   53     61   
            handle,
   54     62   
            inner: ::std::default::Default::default(),
   55     63   
            config_override: ::std::option::Option::None,
   56     64   
        }
   57     65   
    }
          66  +
    /* FluentBuilderGenerator.kt:301 */
   58     67   
    /// Access the OperationWithDefaults as a reference.
   59     68   
    pub fn as_input(&self) -> &crate::operation::operation_with_defaults::builders::OperationWithDefaultsInputBuilder {
   60     69   
        &self.inner
   61     70   
    }
          71  +
    /* FluentBuilderGenerator.kt:145 */
   62     72   
    /// Sends the request and returns the response.
   63     73   
    ///
   64     74   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   65     75   
    /// can be matched against.
   66     76   
    ///
   67     77   
    /// By default, any retryable failures will be retried twice. Retry behavior
   68     78   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   69     79   
    /// set when configuring the client.
   70     80   
    pub async fn send(
   71     81   
        self,
   72     82   
    ) -> ::std::result::Result<
   73     83   
        crate::operation::operation_with_defaults::OperationWithDefaultsOutput,
   74     84   
        ::aws_smithy_runtime_api::client::result::SdkError<
   75     85   
            crate::operation::operation_with_defaults::OperationWithDefaultsError,
   76     86   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   77     87   
        >,
   78     88   
    > {
   79     89   
        let input = self
   80     90   
            .inner
   81     91   
            .build()
   82     92   
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
   83     93   
        let runtime_plugins = crate::operation::operation_with_defaults::OperationWithDefaults::operation_runtime_plugins(
   84     94   
            self.handle.runtime_plugins.clone(),
   85     95   
            &self.handle.conf,
   86     96   
            self.config_override,
   87     97   
        );
   88     98   
        crate::operation::operation_with_defaults::OperationWithDefaults::orchestrate(&runtime_plugins, input).await
   89     99   
    }
   90    100   
   91    101   
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
   92    102   
    pub fn customize(
   93    103   
        self,
   94    104   
    ) -> crate::client::customize::CustomizableOperation<
   95    105   
        crate::operation::operation_with_defaults::OperationWithDefaultsOutput,
   96    106   
        crate::operation::operation_with_defaults::OperationWithDefaultsError,
   97    107   
        Self,
   98    108   
    > {
   99    109   
        crate::client::customize::CustomizableOperation::new(self)
  100    110   
    }
         111  +
    /* FluentBuilderGenerator.kt:315 */
  101    112   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  102    113   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  103    114   
        self
  104    115   
    }
  105    116   
  106    117   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  107    118   
        self.config_override = config_override;
  108    119   
        self
  109    120   
    }
         121  +
    /* FluentBuilderGenerator.kt:498 */
  110    122   
    #[allow(missing_docs)] // documentation missing in model
         123  +
                           /* FluentBuilderGenerator.kt:500 */
  111    124   
    pub fn defaults(mut self, input: crate::types::Defaults) -> Self {
  112    125   
        self.inner = self.inner.defaults(input);
  113    126   
        self
  114    127   
    }
         128  +
    /* FluentBuilderGenerator.kt:498 */
  115    129   
    #[allow(missing_docs)] // documentation missing in model
         130  +
                           /* FluentBuilderGenerator.kt:500 */
  116    131   
    pub fn set_defaults(mut self, input: ::std::option::Option<crate::types::Defaults>) -> Self {
  117    132   
        self.inner = self.inner.set_defaults(input);
  118    133   
        self
  119    134   
    }
         135  +
    /* FluentBuilderGenerator.kt:518 */
  120    136   
    #[allow(missing_docs)] // documentation missing in model
         137  +
                           /* FluentBuilderGenerator.kt:520 */
  121    138   
    pub fn get_defaults(&self) -> &::std::option::Option<crate::types::Defaults> {
  122    139   
        self.inner.get_defaults()
  123    140   
    }
         141  +
    /* FluentBuilderGenerator.kt:498 */
  124    142   
    #[allow(missing_docs)] // documentation missing in model
         143  +
                           /* FluentBuilderGenerator.kt:500 */
  125    144   
    pub fn client_optional_defaults(mut self, input: crate::types::ClientOptionalDefaults) -> Self {
  126    145   
        self.inner = self.inner.client_optional_defaults(input);
  127    146   
        self
  128    147   
    }
         148  +
    /* FluentBuilderGenerator.kt:498 */
  129    149   
    #[allow(missing_docs)] // documentation missing in model
         150  +
                           /* FluentBuilderGenerator.kt:500 */
  130    151   
    pub fn set_client_optional_defaults(mut self, input: ::std::option::Option<crate::types::ClientOptionalDefaults>) -> Self {
  131    152   
        self.inner = self.inner.set_client_optional_defaults(input);
  132    153   
        self
  133    154   
    }
         155  +
    /* FluentBuilderGenerator.kt:518 */
  134    156   
    #[allow(missing_docs)] // documentation missing in model
         157  +
                           /* FluentBuilderGenerator.kt:520 */
  135    158   
    pub fn get_client_optional_defaults(&self) -> &::std::option::Option<crate::types::ClientOptionalDefaults> {
  136    159   
        self.inner.get_client_optional_defaults()
  137    160   
    }
         161  +
    /* FluentBuilderGenerator.kt:498 */
  138    162   
    #[allow(missing_docs)] // documentation missing in model
         163  +
                           /* FluentBuilderGenerator.kt:500 */
  139    164   
    pub fn top_level_default(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  140    165   
        self.inner = self.inner.top_level_default(input.into());
  141    166   
        self
  142    167   
    }
         168  +
    /* FluentBuilderGenerator.kt:498 */
  143    169   
    #[allow(missing_docs)] // documentation missing in model
         170  +
                           /* FluentBuilderGenerator.kt:500 */
  144    171   
    pub fn set_top_level_default(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  145    172   
        self.inner = self.inner.set_top_level_default(input);
  146    173   
        self
  147    174   
    }
         175  +
    /* FluentBuilderGenerator.kt:518 */
  148    176   
    #[allow(missing_docs)] // documentation missing in model
         177  +
                           /* FluentBuilderGenerator.kt:520 */
  149    178   
    pub fn get_top_level_default(&self) -> &::std::option::Option<::std::string::String> {
  150    179   
        self.inner.get_top_level_default()
  151    180   
    }
         181  +
    /* FluentBuilderGenerator.kt:498 */
  152    182   
    #[allow(missing_docs)] // documentation missing in model
         183  +
                           /* FluentBuilderGenerator.kt:500 */
  153    184   
    pub fn other_top_level_default(mut self, input: i32) -> Self {
  154    185   
        self.inner = self.inner.other_top_level_default(input);
  155    186   
        self
  156    187   
    }
         188  +
    /* FluentBuilderGenerator.kt:498 */
  157    189   
    #[allow(missing_docs)] // documentation missing in model
         190  +
                           /* FluentBuilderGenerator.kt:500 */
  158    191   
    pub fn set_other_top_level_default(mut self, input: ::std::option::Option<i32>) -> Self {
  159    192   
        self.inner = self.inner.set_other_top_level_default(input);
  160    193   
        self
  161    194   
    }
         195  +
    /* FluentBuilderGenerator.kt:518 */
  162    196   
    #[allow(missing_docs)] // documentation missing in model
         197  +
                           /* FluentBuilderGenerator.kt:520 */
  163    198   
    pub fn get_other_top_level_default(&self) -> &::std::option::Option<i32> {
  164    199   
        self.inner.get_other_top_level_default()
  165    200   
    }
         201  +
    /* FluentBuilderGenerator.kt:282 */
  166    202   
}