Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_top_level.rs

@@ -1,1 +38,72 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* JsonSerializerGenerator.kt:358 */
    2      3   
pub fn ser_top_level(
    3      4   
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4      5   
    input: &crate::types::TopLevel,
    5      6   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           7  +
    /* SerializerUtil.kt:42 */
    6      8   
    {
           9  +
        /* JsonSerializerGenerator.kt:495 */
    7     10   
        #[allow(unused_mut)]
          11  +
        /* JsonSerializerGenerator.kt:496 */
    8     12   
        let mut object_1 = object.key("dialog").start_object();
          13  +
        /* JsonSerializerGenerator.kt:375 */
    9     14   
        crate::protocol_serde::shape_dialog::ser_dialog(&mut object_1, &input.dialog)?;
          15  +
        /* JsonSerializerGenerator.kt:515 */
   10     16   
        object_1.finish();
          17  +
        /* SerializerUtil.kt:42 */
   11     18   
    }
          19  +
    /* SerializerUtil.kt:46 */
   12     20   
    {
          21  +
        /* JsonSerializerGenerator.kt:484 */
   13     22   
        let mut array_2 = object.key("dialogList").start_array();
          23  +
        /* JsonSerializerGenerator.kt:524 */
   14     24   
        for item_3 in &input.dialog_list {
          25  +
            /* SerializerUtil.kt:42 */
   15     26   
            {
          27  +
                /* JsonSerializerGenerator.kt:495 */
   16     28   
                #[allow(unused_mut)]
          29  +
                /* JsonSerializerGenerator.kt:496 */
   17     30   
                let mut object_4 = array_2.value().start_object();
          31  +
                /* JsonSerializerGenerator.kt:375 */
   18     32   
                crate::protocol_serde::shape_dialog::ser_dialog(&mut object_4, item_3)?;
          33  +
                /* JsonSerializerGenerator.kt:515 */
   19     34   
                object_4.finish();
          35  +
                /* SerializerUtil.kt:42 */
   20     36   
            }
          37  +
            /* JsonSerializerGenerator.kt:524 */
   21     38   
        }
          39  +
        /* JsonSerializerGenerator.kt:486 */
   22     40   
        array_2.finish();
          41  +
        /* SerializerUtil.kt:46 */
   23     42   
    }
          43  +
    /* SerializerUtil.kt:46 */
   24     44   
    {
          45  +
        /* JsonSerializerGenerator.kt:495 */
   25     46   
        #[allow(unused_mut)]
          47  +
        /* JsonSerializerGenerator.kt:496 */
   26     48   
        let mut object_5 = object.key("dialogMap").start_object();
          49  +
        /* JsonSerializerGenerator.kt:537 */
   27     50   
        for (key_6, value_7) in &input.dialog_map {
          51  +
            /* SerializerUtil.kt:42 */
   28     52   
            {
          53  +
                /* JsonSerializerGenerator.kt:495 */
   29     54   
                #[allow(unused_mut)]
          55  +
                /* JsonSerializerGenerator.kt:496 */
   30     56   
                let mut object_8 = object_5.key(key_6.as_str()).start_object();
          57  +
                /* JsonSerializerGenerator.kt:375 */
   31     58   
                crate::protocol_serde::shape_dialog::ser_dialog(&mut object_8, value_7)?;
          59  +
                /* JsonSerializerGenerator.kt:515 */
   32     60   
                object_8.finish();
          61  +
                /* SerializerUtil.kt:42 */
   33     62   
            }
          63  +
            /* JsonSerializerGenerator.kt:537 */
   34     64   
        }
          65  +
        /* JsonSerializerGenerator.kt:515 */
   35     66   
        object_5.finish();
          67  +
        /* SerializerUtil.kt:46 */
   36     68   
    }
          69  +
    /* JsonSerializerGenerator.kt:372 */
   37     70   
    Ok(())
          71  +
    /* JsonSerializerGenerator.kt:358 */
   38     72   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_union_payload.rs

@@ -1,1 +94,144 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* JsonSerializerGenerator.kt:547 */
    2      3   
pub fn ser_union_payload(
    3      4   
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4      5   
    input: &crate::types::UnionPayload,
    5      6   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           7  +
    /* JsonSerializerGenerator.kt:556 */
    6      8   
    match input {
           9  +
        /* JsonSerializerGenerator.kt:564 */
    7     10   
        crate::types::UnionPayload::Greeting(inner) => {
    8         -
            object.key("greeting").string(inner.as_str());
          11  +
            /* SerializerUtil.kt:42 */
          12  +
            {
          13  +
                /* JsonSerializerGenerator.kt:423 */
          14  +
                object.key("greeting").string(inner.as_str());
          15  +
                /* SerializerUtil.kt:42 */
          16  +
            }
          17  +
            /* JsonSerializerGenerator.kt:564 */
    9     18   
        }
   10         -
        crate::types::UnionPayload::Unknown => return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant("UnionPayload")),
          19  +
        /* JsonSerializerGenerator.kt:569 */
          20  +
        crate::types::UnionPayload::Unknown => return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant("UnionPayload")), /* JsonSerializerGenerator.kt:556 */
   11     21   
    }
          22  +
    /* JsonSerializerGenerator.kt:576 */
   12     23   
    Ok(())
          24  +
    /* JsonSerializerGenerator.kt:547 */
   13     25   
}
   14     26   
          27  +
/* JsonParserGenerator.kt:175 */
   15     28   
pub(crate) fn de_union_payload_payload(
   16     29   
    input: &[u8],
   17     30   
) -> ::std::result::Result<crate::types::UnionPayload, ::aws_smithy_json::deserialize::error::DeserializeError> {
          31  +
    /* JsonParserGenerator.kt:187 */
   18     32   
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(input)).peekable();
   19     33   
    let tokens = &mut tokens_owned;
   20         -
    let result = crate::protocol_serde::shape_union_payload::de_union_payload(tokens)?
   21         -
        .ok_or_else(|| ::aws_smithy_json::deserialize::error::DeserializeError::custom("expected payload member value"));
          34  +
    /* JsonParserGenerator.kt:194 */
          35  +
    let result =
          36  +
    /* JsonParserGenerator.kt:660 */crate::protocol_serde::shape_union_payload::de_union_payload(tokens)?
          37  +
    /* JsonParserGenerator.kt:196 */.ok_or_else(|| ::aws_smithy_json::deserialize::error::DeserializeError::custom("expected payload member value"));
          38  +
    /* JsonParserGenerator.kt:250 */
   22     39   
    if tokens.next().is_some() {
          40  +
        /* JsonParserGenerator.kt:251 */
   23     41   
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   24     42   
            "found more JSON tokens after completing parsing",
   25     43   
        ));
          44  +
        /* JsonParserGenerator.kt:250 */
   26     45   
    }
          46  +
    /* JsonParserGenerator.kt:198 */
   27     47   
    result
          48  +
    /* JsonParserGenerator.kt:175 */
   28     49   
}
   29     50   
          51  +
/* JsonParserGenerator.kt:551 */
   30     52   
pub(crate) fn de_union_payload<'a, I>(
   31     53   
    tokens: &mut ::std::iter::Peekable<I>,
   32     54   
) -> ::std::result::Result<Option<crate::types::UnionPayload>, ::aws_smithy_json::deserialize::error::DeserializeError>
   33     55   
where
   34     56   
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
   35     57   
{
          58  +
    /* JsonParserGenerator.kt:565 */
   36     59   
    let mut variant = None;
          60  +
    /* JsonParserGenerator.kt:567 */
   37     61   
    match tokens.next().transpose()? {
   38         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => return Ok(None),
   39         -
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => loop {
   40         -
            match tokens.next().transpose()? {
   41         -
                Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   42         -
                Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
   43         -
                    if let ::std::option::Option::Some(::std::result::Result::Ok(::aws_smithy_json::deserialize::Token::ValueNull { .. })) =
   44         -
                        tokens.peek()
   45         -
                    {
   46         -
                        let _ = tokens.next().expect("peek returned a token")?;
   47         -
                        continue;
   48         -
                    }
   49         -
                    let key = key.to_unescaped()?;
   50         -
                    if key == "__type" {
   51         -
                        ::aws_smithy_json::deserialize::token::skip_value(tokens)?;
   52         -
                        continue;
   53         -
                    }
   54         -
                    if variant.is_some() {
   55         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   56         -
                            "encountered mixed variants in union",
   57         -
                        ));
   58         -
                    }
   59         -
                    variant = match key.as_ref() {
   60         -
                        "greeting" => Some(crate::types::UnionPayload::Greeting(
   61         -
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   62         -
                                .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   63         -
                                .transpose()?
   64         -
                                .ok_or_else(|| {
   65         -
                                    ::aws_smithy_json::deserialize::error::DeserializeError::custom("value for 'greeting' cannot be null")
   66         -
                                })?,
   67         -
                        )),
   68         -
                        _ => {
          62  +
        /* JsonParserGenerator.kt:568 */ Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => return Ok(None),
          63  +
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
          64  +
            /* JsonParserGenerator.kt:684 */
          65  +
            loop {
          66  +
                /* JsonParserGenerator.kt:685 */
          67  +
                match tokens.next().transpose()? {
          68  +
                    /* JsonParserGenerator.kt:686 */ Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
          69  +
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
          70  +
                        /* JsonParserGenerator.kt:576 */
          71  +
                        if let ::std::option::Option::Some(::std::result::Result::Ok(::aws_smithy_json::deserialize::Token::ValueNull { .. })) =
          72  +
                            tokens.peek()
          73  +
                        {
          74  +
                            let _ = tokens.next().expect("peek returned a token")?;
          75  +
                            continue;
          76  +
                        }
          77  +
                        /* JsonParserGenerator.kt:585 */
          78  +
                        let key = key.to_unescaped()?;
          79  +
                        if key == "__type" {
   69     80   
                            ::aws_smithy_json::deserialize::token::skip_value(tokens)?;
   70         -
                            Some(crate::types::UnionPayload::Unknown)
          81  +
                            continue;
   71     82   
                        }
   72         -
                    };
   73         -
                }
   74         -
                other => {
   75         -
                    return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   76         -
                        "expected object key or end object, found: {:?}",
   77         -
                        other
   78         -
                    )))
          83  +
                        if variant.is_some() {
          84  +
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          85  +
                                "encountered mixed variants in union",
          86  +
                            ));
          87  +
                        }
          88  +
                        /* JsonParserGenerator.kt:598 */
          89  +
                        variant = match key.as_ref() {
          90  +
                            /* JsonParserGenerator.kt:601 */
          91  +
                            "greeting" => {
          92  +
                                /* JsonParserGenerator.kt:611 */
          93  +
                                Some(crate::types::UnionPayload::Greeting(
          94  +
                                    /* JsonParserGenerator.kt:354 */
          95  +
                                    ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
          96  +
                                        .map(|s|
          97  +
                                        /* JsonParserGenerator.kt:339 */s.to_unescaped().map(|u|
          98  +
                                            /* JsonParserGenerator.kt:348 */u.into_owned()
          99  +
                                        /* JsonParserGenerator.kt:339 */) /* JsonParserGenerator.kt:354 */)
         100  +
                                        .transpose()?
         101  +
                                        /* JsonParserGenerator.kt:670 */
         102  +
                                        .ok_or_else(|| {
         103  +
                                            ::aws_smithy_json::deserialize::error::DeserializeError::custom("value for 'greeting' cannot be null")
         104  +
                                        })?, /* JsonParserGenerator.kt:611 */
         105  +
                                ))
         106  +
                                /* JsonParserGenerator.kt:601 */
         107  +
                            }
         108  +
                            /* JsonParserGenerator.kt:621 */
         109  +
                            _ => {
         110  +
                                ::aws_smithy_json::deserialize::token::skip_value(tokens)?;
         111  +
                                Some(crate::types::UnionPayload::Unknown)
         112  +
                            } /* JsonParserGenerator.kt:598 */
         113  +
                        };
         114  +
                        /* JsonParserGenerator.kt:686 */
         115  +
                    }
         116  +
                    /* JsonParserGenerator.kt:695 */
         117  +
                    other => {
         118  +
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
         119  +
                            "expected object key or end object, found: {:?}",
         120  +
                            other
         121  +
                        )))
         122  +
                    } /* JsonParserGenerator.kt:685 */
   79    123   
                }
         124  +
                /* JsonParserGenerator.kt:684 */
   80    125   
            }
   81         -
        },
         126  +
            /* JsonParserGenerator.kt:568 */
         127  +
        }
         128  +
        /* JsonParserGenerator.kt:642 */
   82    129   
        _ => {
   83    130   
            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   84    131   
                "expected start object or null",
   85    132   
            ))
   86         -
        }
         133  +
        } /* JsonParserGenerator.kt:567 */
   87    134   
    }
         135  +
    /* JsonParserGenerator.kt:649 */
   88    136   
    if variant.is_none() {
   89    137   
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   90    138   
            "Union did not contain a valid variant.",
   91    139   
        ));
   92    140   
    }
         141  +
    /* JsonParserGenerator.kt:657 */
   93    142   
    Ok(variant)
         143  +
    /* JsonParserGenerator.kt:551 */
   94    144   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_union_with_json_name.rs

@@ -1,1 +99,180 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* JsonParserGenerator.kt:551 */
    2      3   
pub(crate) fn de_union_with_json_name<'a, I>(
    3      4   
    tokens: &mut ::std::iter::Peekable<I>,
    4      5   
) -> ::std::result::Result<Option<crate::types::UnionWithJsonName>, ::aws_smithy_json::deserialize::error::DeserializeError>
    5      6   
where
    6      7   
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
    7      8   
{
           9  +
    /* JsonParserGenerator.kt:565 */
    8     10   
    let mut variant = None;
          11  +
    /* JsonParserGenerator.kt:567 */
    9     12   
    match tokens.next().transpose()? {
   10         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => return Ok(None),
   11         -
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => loop {
   12         -
            match tokens.next().transpose()? {
   13         -
                Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   14         -
                Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
   15         -
                    if let ::std::option::Option::Some(::std::result::Result::Ok(::aws_smithy_json::deserialize::Token::ValueNull { .. })) =
   16         -
                        tokens.peek()
   17         -
                    {
   18         -
                        let _ = tokens.next().expect("peek returned a token")?;
   19         -
                        continue;
   20         -
                    }
   21         -
                    let key = key.to_unescaped()?;
   22         -
                    if key == "__type" {
   23         -
                        ::aws_smithy_json::deserialize::token::skip_value(tokens)?;
   24         -
                        continue;
   25         -
                    }
   26         -
                    if variant.is_some() {
   27         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   28         -
                            "encountered mixed variants in union",
   29         -
                        ));
   30         -
                    }
   31         -
                    variant = match key.as_ref() {
   32         -
                        "FOO" => Some(crate::types::UnionWithJsonName::Foo(
   33         -
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   34         -
                                .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   35         -
                                .transpose()?
   36         -
                                .ok_or_else(|| ::aws_smithy_json::deserialize::error::DeserializeError::custom("value for 'foo' cannot be null"))?,
   37         -
                        )),
   38         -
                        "bar" => Some(crate::types::UnionWithJsonName::Bar(
   39         -
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   40         -
                                .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   41         -
                                .transpose()?
   42         -
                                .ok_or_else(|| ::aws_smithy_json::deserialize::error::DeserializeError::custom("value for 'bar' cannot be null"))?,
   43         -
                        )),
   44         -
                        "_baz" => Some(crate::types::UnionWithJsonName::Baz(
   45         -
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   46         -
                                .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   47         -
                                .transpose()?
   48         -
                                .ok_or_else(|| ::aws_smithy_json::deserialize::error::DeserializeError::custom("value for 'baz' cannot be null"))?,
   49         -
                        )),
   50         -
                        _ => {
          13  +
        /* JsonParserGenerator.kt:568 */ Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => return Ok(None),
          14  +
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
          15  +
            /* JsonParserGenerator.kt:684 */
          16  +
            loop {
          17  +
                /* JsonParserGenerator.kt:685 */
          18  +
                match tokens.next().transpose()? {
          19  +
                    /* JsonParserGenerator.kt:686 */ Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
          20  +
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
          21  +
                        /* JsonParserGenerator.kt:576 */
          22  +
                        if let ::std::option::Option::Some(::std::result::Result::Ok(::aws_smithy_json::deserialize::Token::ValueNull { .. })) =
          23  +
                            tokens.peek()
          24  +
                        {
          25  +
                            let _ = tokens.next().expect("peek returned a token")?;
          26  +
                            continue;
          27  +
                        }
          28  +
                        /* JsonParserGenerator.kt:585 */
          29  +
                        let key = key.to_unescaped()?;
          30  +
                        if key == "__type" {
   51     31   
                            ::aws_smithy_json::deserialize::token::skip_value(tokens)?;
   52         -
                            Some(crate::types::UnionWithJsonName::Unknown)
          32  +
                            continue;
   53     33   
                        }
   54         -
                    };
   55         -
                }
   56         -
                other => {
   57         -
                    return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   58         -
                        "expected object key or end object, found: {:?}",
   59         -
                        other
   60         -
                    )))
          34  +
                        if variant.is_some() {
          35  +
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          36  +
                                "encountered mixed variants in union",
          37  +
                            ));
          38  +
                        }
          39  +
                        /* JsonParserGenerator.kt:598 */
          40  +
                        variant = match key.as_ref() {
          41  +
                            /* JsonParserGenerator.kt:601 */
          42  +
                            "FOO" => {
          43  +
                                /* JsonParserGenerator.kt:611 */
          44  +
                                Some(crate::types::UnionWithJsonName::Foo(
          45  +
                                    /* JsonParserGenerator.kt:354 */
          46  +
                                    ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
          47  +
                                        .map(|s|
          48  +
                                        /* JsonParserGenerator.kt:339 */s.to_unescaped().map(|u|
          49  +
                                            /* JsonParserGenerator.kt:348 */u.into_owned()
          50  +
                                        /* JsonParserGenerator.kt:339 */) /* JsonParserGenerator.kt:354 */)
          51  +
                                        .transpose()?
          52  +
                                        /* JsonParserGenerator.kt:670 */
          53  +
                                        .ok_or_else(|| {
          54  +
                                            ::aws_smithy_json::deserialize::error::DeserializeError::custom("value for 'foo' cannot be null")
          55  +
                                        })?, /* JsonParserGenerator.kt:611 */
          56  +
                                ))
          57  +
                                /* JsonParserGenerator.kt:601 */
          58  +
                            }
          59  +
                            /* JsonParserGenerator.kt:601 */
          60  +
                            "bar" => {
          61  +
                                /* JsonParserGenerator.kt:611 */
          62  +
                                Some(crate::types::UnionWithJsonName::Bar(
          63  +
                                    /* JsonParserGenerator.kt:354 */
          64  +
                                    ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
          65  +
                                        .map(|s|
          66  +
                                        /* JsonParserGenerator.kt:339 */s.to_unescaped().map(|u|
          67  +
                                            /* JsonParserGenerator.kt:348 */u.into_owned()
          68  +
                                        /* JsonParserGenerator.kt:339 */) /* JsonParserGenerator.kt:354 */)
          69  +
                                        .transpose()?
          70  +
                                        /* JsonParserGenerator.kt:670 */
          71  +
                                        .ok_or_else(|| {
          72  +
                                            ::aws_smithy_json::deserialize::error::DeserializeError::custom("value for 'bar' cannot be null")
          73  +
                                        })?, /* JsonParserGenerator.kt:611 */
          74  +
                                ))
          75  +
                                /* JsonParserGenerator.kt:601 */
          76  +
                            }
          77  +
                            /* JsonParserGenerator.kt:601 */
          78  +
                            "_baz" => {
          79  +
                                /* JsonParserGenerator.kt:611 */
          80  +
                                Some(crate::types::UnionWithJsonName::Baz(
          81  +
                                    /* JsonParserGenerator.kt:354 */
          82  +
                                    ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
          83  +
                                        .map(|s|
          84  +
                                        /* JsonParserGenerator.kt:339 */s.to_unescaped().map(|u|
          85  +
                                            /* JsonParserGenerator.kt:348 */u.into_owned()
          86  +
                                        /* JsonParserGenerator.kt:339 */) /* JsonParserGenerator.kt:354 */)
          87  +
                                        .transpose()?
          88  +
                                        /* JsonParserGenerator.kt:670 */
          89  +
                                        .ok_or_else(|| {
          90  +
                                            ::aws_smithy_json::deserialize::error::DeserializeError::custom("value for 'baz' cannot be null")
          91  +
                                        })?, /* JsonParserGenerator.kt:611 */
          92  +
                                ))
          93  +
                                /* JsonParserGenerator.kt:601 */
          94  +
                            }
          95  +
                            /* JsonParserGenerator.kt:621 */
          96  +
                            _ => {
          97  +
                                ::aws_smithy_json::deserialize::token::skip_value(tokens)?;
          98  +
                                Some(crate::types::UnionWithJsonName::Unknown)
          99  +
                            } /* JsonParserGenerator.kt:598 */
         100  +
                        };
         101  +
                        /* JsonParserGenerator.kt:686 */
         102  +
                    }
         103  +
                    /* JsonParserGenerator.kt:695 */
         104  +
                    other => {
         105  +
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
         106  +
                            "expected object key or end object, found: {:?}",
         107  +
                            other
         108  +
                        )))
         109  +
                    } /* JsonParserGenerator.kt:685 */
   61    110   
                }
         111  +
                /* JsonParserGenerator.kt:684 */
   62    112   
            }
   63         -
        },
         113  +
            /* JsonParserGenerator.kt:568 */
         114  +
        }
         115  +
        /* JsonParserGenerator.kt:642 */
   64    116   
        _ => {
   65    117   
            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   66    118   
                "expected start object or null",
   67    119   
            ))
   68         -
        }
         120  +
        } /* JsonParserGenerator.kt:567 */
   69    121   
    }
         122  +
    /* JsonParserGenerator.kt:649 */
   70    123   
    if variant.is_none() {
   71    124   
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   72    125   
            "Union did not contain a valid variant.",
   73    126   
        ));
   74    127   
    }
         128  +
    /* JsonParserGenerator.kt:657 */
   75    129   
    Ok(variant)
         130  +
    /* JsonParserGenerator.kt:551 */
   76    131   
}
   77    132   
         133  +
/* JsonSerializerGenerator.kt:547 */
   78    134   
pub fn ser_union_with_json_name(
   79    135   
    object_2: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
   80    136   
    input: &crate::types::UnionWithJsonName,
   81    137   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
         138  +
    /* JsonSerializerGenerator.kt:556 */
   82    139   
    match input {
         140  +
        /* JsonSerializerGenerator.kt:564 */
   83    141   
        crate::types::UnionWithJsonName::Foo(inner) => {
   84         -
            object_2.key("FOO").string(inner.as_str());
         142  +
            /* SerializerUtil.kt:42 */
         143  +
            {
         144  +
                /* JsonSerializerGenerator.kt:423 */
         145  +
                object_2.key("FOO").string(inner.as_str());
         146  +
                /* SerializerUtil.kt:42 */
         147  +
            }
         148  +
            /* JsonSerializerGenerator.kt:564 */
   85    149   
        }
         150  +
        /* JsonSerializerGenerator.kt:564 */
   86    151   
        crate::types::UnionWithJsonName::Bar(inner) => {
   87         -
            object_2.key("bar").string(inner.as_str());
         152  +
            /* SerializerUtil.kt:42 */
         153  +
            {
         154  +
                /* JsonSerializerGenerator.kt:423 */
         155  +
                object_2.key("bar").string(inner.as_str());
         156  +
                /* SerializerUtil.kt:42 */
         157  +
            }
         158  +
            /* JsonSerializerGenerator.kt:564 */
   88    159   
        }
         160  +
        /* JsonSerializerGenerator.kt:564 */
   89    161   
        crate::types::UnionWithJsonName::Baz(inner) => {
   90         -
            object_2.key("_baz").string(inner.as_str());
         162  +
            /* SerializerUtil.kt:42 */
         163  +
            {
         164  +
                /* JsonSerializerGenerator.kt:423 */
         165  +
                object_2.key("_baz").string(inner.as_str());
         166  +
                /* SerializerUtil.kt:42 */
         167  +
            }
         168  +
            /* JsonSerializerGenerator.kt:564 */
   91    169   
        }
         170  +
        /* JsonSerializerGenerator.kt:569 */
   92    171   
        crate::types::UnionWithJsonName::Unknown => {
   93    172   
            return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
   94    173   
                "UnionWithJsonName",
   95    174   
            ))
   96         -
        }
         175  +
        } /* JsonSerializerGenerator.kt:556 */
   97    176   
    }
         177  +
    /* JsonSerializerGenerator.kt:576 */
   98    178   
    Ok(())
         179  +
    /* JsonSerializerGenerator.kt:547 */
   99    180   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_unit_input_and_output.rs

@@ -1,1 +32,47 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* RustType.kt:516 */
    2      3   
#[allow(clippy::unnecessary_wraps)]
           4  +
/* ProtocolParserGenerator.kt:99 */
    3      5   
pub fn de_unit_input_and_output_http_error(
    4      6   
    _response_status: u16,
    5      7   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6      8   
    _response_body: &[u8],
    7      9   
) -> std::result::Result<
    8     10   
    crate::operation::unit_input_and_output::UnitInputAndOutputOutput,
    9     11   
    crate::operation::unit_input_and_output::UnitInputAndOutputError,
   10     12   
> {
          13  +
    /* RustType.kt:516 */
   11     14   
    #[allow(unused_mut)]
          15  +
    /* ProtocolParserGenerator.kt:106 */
   12     16   
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   13     17   
        .map_err(crate::operation::unit_input_and_output::UnitInputAndOutputError::unhandled)?;
          18  +
    /* ProtocolParserGenerator.kt:120 */
   14     19   
    let generic = generic_builder.build();
          20  +
    /* ProtocolParserGenerator.kt:185 */
   15     21   
    Err(crate::operation::unit_input_and_output::UnitInputAndOutputError::generic(generic))
          22  +
    /* ProtocolParserGenerator.kt:99 */
   16     23   
}
   17     24   
          25  +
/* RustType.kt:516 */
   18     26   
#[allow(clippy::unnecessary_wraps)]
          27  +
/* ProtocolParserGenerator.kt:71 */
   19     28   
pub fn de_unit_input_and_output_http_response(
   20     29   
    _response_status: u16,
   21     30   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   22     31   
    _response_body: &[u8],
   23     32   
) -> std::result::Result<
   24     33   
    crate::operation::unit_input_and_output::UnitInputAndOutputOutput,
   25     34   
    crate::operation::unit_input_and_output::UnitInputAndOutputError,
   26     35   
> {
          36  +
    /* ProtocolParserGenerator.kt:77 */
   27     37   
    Ok({
          38  +
        /* RustType.kt:516 */
   28     39   
        #[allow(unused_mut)]
          40  +
        /* ProtocolParserGenerator.kt:240 */
   29     41   
        let mut output = crate::operation::unit_input_and_output::builders::UnitInputAndOutputOutputBuilder::default();
          42  +
        /* ClientBuilderInstantiator.kt:56 */
   30     43   
        output.build()
          44  +
        /* ProtocolParserGenerator.kt:77 */
   31     45   
    })
          46  +
    /* ProtocolParserGenerator.kt:71 */
   32     47   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/serde_util.rs

@@ -1,1 +30,33 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ErrorCorrection.kt:126 */
    2      3   
pub(crate) fn operation_with_nested_structure_output_output_correct_errors(
    3      4   
    mut builder: crate::operation::operation_with_nested_structure::builders::OperationWithNestedStructureOutputBuilder,
    4      5   
) -> crate::operation::operation_with_nested_structure::builders::OperationWithNestedStructureOutputBuilder {
    5      6   
    if builder.dialog.is_none() {
    6      7   
        builder.dialog = {
    7      8   
            let builder = crate::types::builders::DialogBuilder::default();
    8      9   
            Some(builder.build())
    9     10   
        }
   10     11   
    }
   11     12   
    builder
   12     13   
}
   13     14   
          15  +
/* ErrorCorrection.kt:126 */
   14     16   
pub(crate) fn post_player_action_output_output_correct_errors(
   15     17   
    mut builder: crate::operation::post_player_action::builders::PostPlayerActionOutputBuilder,
   16     18   
) -> crate::operation::post_player_action::builders::PostPlayerActionOutputBuilder {
   17     19   
    if builder.action.is_none() {
   18     20   
        builder.action = Some(crate::types::PlayerAction::Unknown)
   19     21   
    }
   20     22   
    builder
   21     23   
}
   22     24   
          25  +
/* ErrorCorrection.kt:126 */
   23     26   
pub(crate) fn post_union_with_json_name_output_output_correct_errors(
   24     27   
    mut builder: crate::operation::post_union_with_json_name::builders::PostUnionWithJsonNameOutputBuilder,
   25     28   
) -> crate::operation::post_union_with_json_name::builders::PostUnionWithJsonNameOutputBuilder {
   26     29   
    if builder.value.is_none() {
   27     30   
        builder.value = Some(crate::types::UnionWithJsonName::Unknown)
   28     31   
    }
   29     32   
    builder
   30     33   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/types.rs

@@ -1,1 +98,144 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::types::_dialog::Dialog;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::types::_farewell::Farewell;
    5      7   
           8  +
/* CodegenDelegator.kt:255 */
    6      9   
pub use crate::types::_top_level::TopLevel;
    7     10   
          11  +
/* CodegenDelegator.kt:255 */
    8     12   
pub use crate::types::_test_enum::TestEnum;
    9     13   
          14  +
/* CodegenDelegator.kt:255 */
   10     15   
pub use crate::types::_client_optional_defaults::ClientOptionalDefaults;
   11     16   
          17  +
/* CodegenDelegator.kt:255 */
   12     18   
pub use crate::types::_defaults::Defaults;
   13     19   
          20  +
/* CodegenDelegator.kt:255 */
   14     21   
pub use crate::types::_payload_config::PayloadConfig;
   15     22   
          23  +
/* CodegenDelegator.kt:255 */
   16     24   
pub use crate::types::_test_config::TestConfig;
   17     25   
          26  +
/* CodegenDelegator.kt:255 */
   18     27   
pub use crate::types::_simple_union::SimpleUnion;
   19     28   
          29  +
/* CodegenDelegator.kt:255 */
   20     30   
pub use crate::types::_union_with_json_name::UnionWithJsonName;
   21     31   
          32  +
/* CodegenDelegator.kt:255 */
   22     33   
pub use crate::types::_player_action::PlayerAction;
   23     34   
          35  +
/* CodegenDelegator.kt:255 */
   24     36   
pub use crate::types::_unit::Unit;
   25     37   
          38  +
/* CodegenDelegator.kt:255 */
   26     39   
pub use crate::types::_my_union::MyUnion;
   27     40   
          41  +
/* CodegenDelegator.kt:255 */
   28     42   
pub use crate::types::_renamed_greeting::RenamedGreeting;
   29     43   
          44  +
/* CodegenDelegator.kt:255 */
   30     45   
pub use crate::types::_greeting_struct::GreetingStruct;
   31     46   
          47  +
/* CodegenDelegator.kt:255 */
   32     48   
pub use crate::types::_foo_enum::FooEnum;
   33     49   
          50  +
/* CodegenDelegator.kt:255 */
   34     51   
pub use crate::types::_structure_list_member::StructureListMember;
   35     52   
          53  +
/* CodegenDelegator.kt:255 */
   36     54   
pub use crate::types::_recursive_shapes_input_output_nested1::RecursiveShapesInputOutputNested1;
   37     55   
          56  +
/* CodegenDelegator.kt:255 */
   38     57   
pub use crate::types::_recursive_shapes_input_output_nested2::RecursiveShapesInputOutputNested2;
   39     58   
          59  +
/* CodegenDelegator.kt:255 */
   40     60   
pub use crate::types::_complex_nested_error_data::ComplexNestedErrorData;
   41     61   
          62  +
/* CodegenDelegator.kt:255 */
   42     63   
pub use crate::types::_union_payload::UnionPayload;
   43     64   
          65  +
/* CodegenDelegator.kt:255 */
   44     66   
pub use crate::types::_string_enum::StringEnum;
   45     67   
          68  +
/* CodegenDelegator.kt:255 */
   46     69   
pub use crate::types::_nested_payload::NestedPayload;
   47     70   
          71  +
/* RustModule.kt:172 */
   48     72   
mod _client_optional_defaults;
   49     73   
          74  +
/* RustModule.kt:172 */
   50     75   
mod _complex_nested_error_data;
   51     76   
          77  +
/* RustModule.kt:172 */
   52     78   
mod _defaults;
   53     79   
          80  +
/* RustModule.kt:172 */
   54     81   
mod _dialog;
   55     82   
          83  +
/* RustModule.kt:172 */
   56     84   
mod _farewell;
   57     85   
          86  +
/* RustModule.kt:172 */
   58     87   
mod _foo_enum;
   59     88   
          89  +
/* RustModule.kt:172 */
   60     90   
mod _greeting_struct;
   61     91   
          92  +
/* RustModule.kt:172 */
   62     93   
mod _my_union;
   63     94   
          95  +
/* RustModule.kt:172 */
   64     96   
mod _nested_payload;
   65     97   
          98  +
/* RustModule.kt:172 */
   66     99   
mod _payload_config;
   67    100   
         101  +
/* RustModule.kt:172 */
   68    102   
mod _player_action;
   69    103   
         104  +
/* RustModule.kt:172 */
   70    105   
mod _recursive_shapes_input_output_nested1;
   71    106   
         107  +
/* RustModule.kt:172 */
   72    108   
mod _recursive_shapes_input_output_nested2;
   73    109   
         110  +
/* RustModule.kt:172 */
   74    111   
mod _renamed_greeting;
   75    112   
         113  +
/* RustModule.kt:172 */
   76    114   
mod _simple_union;
   77    115   
         116  +
/* RustModule.kt:172 */
   78    117   
mod _string_enum;
   79    118   
         119  +
/* RustModule.kt:172 */
   80    120   
mod _structure_list_member;
   81    121   
         122  +
/* RustModule.kt:172 */
   82    123   
mod _test_config;
   83    124   
         125  +
/* RustModule.kt:172 */
   84    126   
mod _test_enum;
   85    127   
         128  +
/* RustModule.kt:172 */
   86    129   
mod _top_level;
   87    130   
         131  +
/* RustModule.kt:172 */
   88    132   
mod _union_payload;
   89    133   
         134  +
/* RustModule.kt:172 */
   90    135   
mod _union_with_json_name;
   91    136   
         137  +
/* RustModule.kt:172 */
   92    138   
mod _unit;
   93    139   
   94         -
/// Builders
         140  +
/// /* CodegenDelegator.kt:51 */Builders
   95    141   
pub mod builders;
   96    142   
   97         -
/// Error types that Sample Rest Json Protocol Service can respond with.
         143  +
/// /* ClientRustModule.kt:121 */Error types that Sample Rest Json Protocol Service can respond with.
   98    144   
pub mod error;

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/types/_client_optional_defaults.rs

@@ -1,1 +47,88 @@
    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 ClientOptionalDefaults {
           8  +
pub /* StructureGenerator.kt:201 */ struct ClientOptionalDefaults {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub member: ::std::option::Option<i32>,
          12  +
    /* StructureGenerator.kt:201 */
    8     13   
}
          14  +
/* StructureGenerator.kt:135 */
    9     15   
impl ClientOptionalDefaults {
          16  +
    /* StructureGenerator.kt:231 */
   10     17   
    #[allow(missing_docs)] // documentation missing in model
          18  +
                           /* StructureGenerator.kt:166 */
   11     19   
    pub fn member(&self) -> ::std::option::Option<i32> {
          20  +
        /* StructureGenerator.kt:168 */
   12     21   
        self.member
          22  +
        /* StructureGenerator.kt:166 */
   13     23   
    }
          24  +
    /* StructureGenerator.kt:135 */
   14     25   
}
          26  +
/* ClientCodegenVisitor.kt:237 */
   15     27   
impl ClientOptionalDefaults {
   16         -
    /// Creates a new builder-style object to manufacture [`ClientOptionalDefaults`](crate::types::ClientOptionalDefaults).
          28  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ClientOptionalDefaults`](crate::types::ClientOptionalDefaults).
          29  +
    /* BuilderGenerator.kt:175 */
   17     30   
    pub fn builder() -> crate::types::builders::ClientOptionalDefaultsBuilder {
          31  +
        /* BuilderGenerator.kt:176 */
   18     32   
        crate::types::builders::ClientOptionalDefaultsBuilder::default()
          33  +
        /* BuilderGenerator.kt:175 */
   19     34   
    }
          35  +
    /* ClientCodegenVisitor.kt:237 */
   20     36   
}
   21     37   
   22         -
/// A builder for [`ClientOptionalDefaults`](crate::types::ClientOptionalDefaults).
          38  +
/// /* BuilderGenerator.kt:342 */A builder for [`ClientOptionalDefaults`](crate::types::ClientOptionalDefaults).
          39  +
/* RustType.kt:516 */
   23     40   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          41  +
/* RustType.kt:516 */
   24     42   
#[non_exhaustive]
          43  +
/* BuilderGenerator.kt:345 */
   25     44   
pub struct ClientOptionalDefaultsBuilder {
   26         -
    pub(crate) member: ::std::option::Option<i32>,
          45  +
    /* BuilderGenerator.kt:275 */ pub(crate) member: ::std::option::Option<i32>,
          46  +
    /* BuilderGenerator.kt:345 */
   27     47   
}
          48  +
/* BuilderGenerator.kt:355 */
   28     49   
impl ClientOptionalDefaultsBuilder {
          50  +
    /* BuilderGenerator.kt:286 */
   29     51   
    #[allow(missing_docs)] // documentation missing in model
          52  +
                           /* BuilderGenerator.kt:291 */
   30     53   
    pub fn member(mut self, input: i32) -> Self {
          54  +
        /* BuilderGenerator.kt:292 */
   31     55   
        self.member = ::std::option::Option::Some(input);
          56  +
        /* BuilderGenerator.kt:293 */
   32     57   
        self
          58  +
        /* BuilderGenerator.kt:291 */
   33     59   
    }
          60  +
    /* BuilderGenerator.kt:312 */
   34     61   
    #[allow(missing_docs)] // documentation missing in model
          62  +
                           /* BuilderGenerator.kt:314 */
   35     63   
    pub fn set_member(mut self, input: ::std::option::Option<i32>) -> Self {
          64  +
        /* BuilderGenerator.kt:315 */
   36     65   
        self.member = input;
   37     66   
        self
          67  +
        /* BuilderGenerator.kt:314 */
   38     68   
    }
          69  +
    /* BuilderGenerator.kt:334 */
   39     70   
    #[allow(missing_docs)] // documentation missing in model
          71  +
                           /* BuilderGenerator.kt:336 */
   40     72   
    pub fn get_member(&self) -> &::std::option::Option<i32> {
          73  +
        /* BuilderGenerator.kt:337 */
   41     74   
        &self.member
          75  +
        /* BuilderGenerator.kt:336 */
   42     76   
    }
   43         -
    /// Consumes the builder and constructs a [`ClientOptionalDefaults`](crate::types::ClientOptionalDefaults).
          77  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ClientOptionalDefaults`](crate::types::ClientOptionalDefaults).
          78  +
    /* BuilderGenerator.kt:253 */
   44     79   
    pub fn build(self) -> crate::types::ClientOptionalDefaults {
   45         -
        crate::types::ClientOptionalDefaults { member: self.member }
          80  +
        /* BuilderGenerator.kt:477 */
          81  +
        crate::types::ClientOptionalDefaults {
          82  +
            /* BuilderGenerator.kt:481 */ member: self.member,
          83  +
            /* BuilderGenerator.kt:477 */
          84  +
        }
          85  +
        /* BuilderGenerator.kt:253 */
   46     86   
    }
          87  +
    /* BuilderGenerator.kt:355 */
   47     88   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/types/_complex_nested_error_data.rs

@@ -1,1 +47,88 @@
    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 ComplexNestedErrorData {
           8  +
pub /* StructureGenerator.kt:201 */ struct ComplexNestedErrorData {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub foo: ::std::option::Option<::std::string::String>,
          12  +
    /* StructureGenerator.kt:201 */
    8     13   
}
          14  +
/* StructureGenerator.kt:135 */
    9     15   
impl ComplexNestedErrorData {
          16  +
    /* StructureGenerator.kt:231 */
   10     17   
    #[allow(missing_docs)] // documentation missing in model
          18  +
                           /* StructureGenerator.kt:166 */
   11     19   
    pub fn foo(&self) -> ::std::option::Option<&str> {
          20  +
        /* StructureGenerator.kt:169 */
   12     21   
        self.foo.as_deref()
          22  +
        /* StructureGenerator.kt:166 */
   13     23   
    }
          24  +
    /* StructureGenerator.kt:135 */
   14     25   
}
          26  +
/* ClientCodegenVisitor.kt:237 */
   15     27   
impl ComplexNestedErrorData {
   16         -
    /// Creates a new builder-style object to manufacture [`ComplexNestedErrorData`](crate::types::ComplexNestedErrorData).
          28  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ComplexNestedErrorData`](crate::types::ComplexNestedErrorData).
          29  +
    /* BuilderGenerator.kt:175 */
   17     30   
    pub fn builder() -> crate::types::builders::ComplexNestedErrorDataBuilder {
          31  +
        /* BuilderGenerator.kt:176 */
   18     32   
        crate::types::builders::ComplexNestedErrorDataBuilder::default()
          33  +
        /* BuilderGenerator.kt:175 */
   19     34   
    }
          35  +
    /* ClientCodegenVisitor.kt:237 */
   20     36   
}
   21     37   
   22         -
/// A builder for [`ComplexNestedErrorData`](crate::types::ComplexNestedErrorData).
          38  +
/// /* BuilderGenerator.kt:342 */A builder for [`ComplexNestedErrorData`](crate::types::ComplexNestedErrorData).
          39  +
/* RustType.kt:516 */
   23     40   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          41  +
/* RustType.kt:516 */
   24     42   
#[non_exhaustive]
          43  +
/* BuilderGenerator.kt:345 */
   25     44   
pub struct ComplexNestedErrorDataBuilder {
   26         -
    pub(crate) foo: ::std::option::Option<::std::string::String>,
          45  +
    /* BuilderGenerator.kt:275 */ pub(crate) foo: ::std::option::Option<::std::string::String>,
          46  +
    /* BuilderGenerator.kt:345 */
   27     47   
}
          48  +
/* BuilderGenerator.kt:355 */
   28     49   
impl ComplexNestedErrorDataBuilder {
          50  +
    /* BuilderGenerator.kt:286 */
   29     51   
    #[allow(missing_docs)] // documentation missing in model
          52  +
                           /* BuilderGenerator.kt:291 */
   30     53   
    pub fn foo(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          54  +
        /* BuilderGenerator.kt:292 */
   31     55   
        self.foo = ::std::option::Option::Some(input.into());
          56  +
        /* BuilderGenerator.kt:293 */
   32     57   
        self
          58  +
        /* BuilderGenerator.kt:291 */
   33     59   
    }
          60  +
    /* BuilderGenerator.kt:312 */
   34     61   
    #[allow(missing_docs)] // documentation missing in model
          62  +
                           /* BuilderGenerator.kt:314 */
   35     63   
    pub fn set_foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          64  +
        /* BuilderGenerator.kt:315 */
   36     65   
        self.foo = input;
   37     66   
        self
          67  +
        /* BuilderGenerator.kt:314 */
   38     68   
    }
          69  +
    /* BuilderGenerator.kt:334 */
   39     70   
    #[allow(missing_docs)] // documentation missing in model
          71  +
                           /* BuilderGenerator.kt:336 */
   40     72   
    pub fn get_foo(&self) -> &::std::option::Option<::std::string::String> {
          73  +
        /* BuilderGenerator.kt:337 */
   41     74   
        &self.foo
          75  +
        /* BuilderGenerator.kt:336 */
   42     76   
    }
   43         -
    /// Consumes the builder and constructs a [`ComplexNestedErrorData`](crate::types::ComplexNestedErrorData).
          77  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ComplexNestedErrorData`](crate::types::ComplexNestedErrorData).
          78  +
    /* BuilderGenerator.kt:253 */
   44     79   
    pub fn build(self) -> crate::types::ComplexNestedErrorData {
   45         -
        crate::types::ComplexNestedErrorData { foo: self.foo }
          80  +
        /* BuilderGenerator.kt:477 */
          81  +
        crate::types::ComplexNestedErrorData {
          82  +
            /* BuilderGenerator.kt:481 */ foo: self.foo,
          83  +
            /* BuilderGenerator.kt:477 */
          84  +
        }
          85  +
        /* BuilderGenerator.kt:253 */
   46     86   
    }
          87  +
    /* BuilderGenerator.kt:355 */
   47     88   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/types/_defaults.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 Defaults {
    6         -
    #[allow(missing_docs)] // documentation missing in model
           8  +
pub /* StructureGenerator.kt:201 */ struct Defaults {
           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 Defaults {
          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 Defaults {
  181         -
    /// Creates a new builder-style object to manufacture [`Defaults`](crate::types::Defaults).
         309  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`Defaults`](crate::types::Defaults).
         310  +
    /* BuilderGenerator.kt:175 */
  182    311   
    pub fn builder() -> crate::types::builders::DefaultsBuilder {
         312  +
        /* BuilderGenerator.kt:176 */
  183    313   
        crate::types::builders::DefaultsBuilder::default()
         314  +
        /* BuilderGenerator.kt:175 */
  184    315   
    }
         316  +
    /* ClientCodegenVisitor.kt:237 */
  185    317   
}
  186    318   
  187         -
/// A builder for [`Defaults`](crate::types::Defaults).
         319  +
/// /* BuilderGenerator.kt:342 */A builder for [`Defaults`](crate::types::Defaults).
         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 DefaultsBuilder {
  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 DefaultsBuilder {
         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 [`Defaults`](crate::types::Defaults).
        1128  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`Defaults`](crate::types::Defaults).
        1129  +
    /* BuilderGenerator.kt:253 */
  627   1130   
    pub fn build(self) -> crate::types::Defaults {
        1131  +
        /* BuilderGenerator.kt:477 */
  628   1132   
        crate::types::Defaults {
  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(|| {
  633         -
                let json_bytes = br#"{}"#;
  634         -
                let mut tokens = ::aws_smithy_json::deserialize::json_token_iter(json_bytes).peekable();
  635         -
                ::aws_smithy_json::deserialize::token::expect_document(&mut tokens).expect("well formed json")
  636         -
            }),
  637         -
            default_document_string: self.default_document_string.unwrap_or_else(|| {
  638         -
                let json_bytes = br#""hi""#;
  639         -
                let mut tokens = ::aws_smithy_json::deserialize::json_token_iter(json_bytes).peekable();
  640         -
                ::aws_smithy_json::deserialize::token::expect_document(&mut tokens).expect("well formed json")
  641         -
            }),
  642         -
            default_document_boolean: self.default_document_boolean.unwrap_or_else(|| {
  643         -
                let json_bytes = br#"true"#;
  644         -
                let mut tokens = ::aws_smithy_json::deserialize::json_token_iter(json_bytes).peekable();
  645         -
                ::aws_smithy_json::deserialize::token::expect_document(&mut tokens).expect("well formed json")
  646         -
            }),
  647         -
            default_document_list: self.default_document_list.unwrap_or_else(|| {
  648         -
                let json_bytes = br#"[]"#;
  649         -
                let mut tokens = ::aws_smithy_json::deserialize::json_token_iter(json_bytes).peekable();
  650         -
                ::aws_smithy_json::deserialize::token::expect_document(&mut tokens).expect("well formed json")
  651         -
            }),
        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(|| {
        1153  +
                    let json_bytes = br#"{}"#;
        1154  +
                    let mut tokens = ::aws_smithy_json::deserialize::json_token_iter(json_bytes).peekable();
        1155  +
                    ::aws_smithy_json::deserialize::token::expect_document(&mut tokens).expect("well formed json")
        1156  +
                }),
        1157  +
            /* BuilderGenerator.kt:481 */
        1158  +
            default_document_string: self
        1159  +
                .default_document_string
        1160  +
                /* BuilderGenerator.kt:489 */
        1161  +
                .unwrap_or_else(|| {
        1162  +
                    let json_bytes = br#""hi""#;
        1163  +
                    let mut tokens = ::aws_smithy_json::deserialize::json_token_iter(json_bytes).peekable();
        1164  +
                    ::aws_smithy_json::deserialize::token::expect_document(&mut tokens).expect("well formed json")
        1165  +
                }),
        1166  +
            /* BuilderGenerator.kt:481 */
        1167  +
            default_document_boolean: self
        1168  +
                .default_document_boolean
        1169  +
                /* BuilderGenerator.kt:489 */
        1170  +
                .unwrap_or_else(|| {
        1171  +
                    let json_bytes = br#"true"#;
        1172  +
                    let mut tokens = ::aws_smithy_json::deserialize::json_token_iter(json_bytes).peekable();
        1173  +
                    ::aws_smithy_json::deserialize::token::expect_document(&mut tokens).expect("well formed json")
        1174  +
                }),
        1175  +
            /* BuilderGenerator.kt:481 */
        1176  +
            default_document_list: self
        1177  +
                .default_document_list
        1178  +
                /* BuilderGenerator.kt:489 */
        1179  +
                .unwrap_or_else(|| {
        1180  +
                    let json_bytes = br#"[]"#;
        1181  +
                    let mut tokens = ::aws_smithy_json::deserialize::json_token_iter(json_bytes).peekable();
        1182  +
                    ::aws_smithy_json::deserialize::token::expect_document(&mut tokens).expect("well formed json")
        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),
        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 */
  677   1287   
        }
        1288  +
        /* BuilderGenerator.kt:253 */
  678   1289   
    }
        1290  +
    /* BuilderGenerator.kt:355 */
  679   1291   
}