AWS SDK

AWS SDK

rev. a25ccedd311e7562a03a1cd07d728cef10c9474c (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_create_session.rs

@@ -33,33 +101,103 @@
   53     53   
        crate::serde_util::create_session_output_output_correct_errors(output).build()
   54     54   
    })
   55     55   
}
   56     56   
   57     57   
pub fn ser_create_session_headers(
   58     58   
    input: &crate::operation::create_session::CreateSessionInput,
   59     59   
    mut builder: ::http::request::Builder,
   60     60   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   61     61   
    if let ::std::option::Option::Some(inner_1) = &input.session_mode {
   62     62   
        let formatted_2 = inner_1.as_str();
          63  +
        if !formatted_2.is_empty() {
   63     64   
            let header_value = formatted_2;
   64     65   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   65     66   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   66     67   
                    "session_mode",
   67     68   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   68     69   
                )
   69     70   
            })?;
   70     71   
            builder = builder.header("x-amz-create-session-mode", header_value);
   71     72   
        }
          73  +
    }
   72     74   
    Ok(builder)
   73     75   
}
   74     76   
   75     77   
#[allow(unused_mut)]
   76     78   
pub fn de_create_session(
   77     79   
    inp: &[u8],
   78     80   
    mut builder: crate::operation::create_session::builders::CreateSessionOutputBuilder,
   79     81   
) -> Result<crate::operation::create_session::builders::CreateSessionOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
   80     82   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
   81     83   

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_delete_bucket.rs

@@ -8,8 +48,50 @@
   28     28   
        output.build()
   29     29   
    })
   30     30   
}
   31     31   
   32     32   
pub fn ser_delete_bucket_headers(
   33     33   
    input: &crate::operation::delete_bucket::DeleteBucketInput,
   34     34   
    mut builder: ::http::request::Builder,
   35     35   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   36     36   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   37     37   
        let formatted_2 = inner_1.as_str();
          38  +
        if !formatted_2.is_empty() {
   38     39   
            let header_value = formatted_2;
   39     40   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   40     41   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   41     42   
                    "expected_bucket_owner",
   42     43   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   43     44   
                )
   44     45   
            })?;
   45     46   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   46     47   
        }
          48  +
    }
   47     49   
    Ok(builder)
   48     50   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_delete_bucket_analytics_configuration.rs

@@ -15,15 +55,57 @@
   35     35   
        output.build()
   36     36   
    })
   37     37   
}
   38     38   
   39     39   
pub fn ser_delete_bucket_analytics_configuration_headers(
   40     40   
    input: &crate::operation::delete_bucket_analytics_configuration::DeleteBucketAnalyticsConfigurationInput,
   41     41   
    mut builder: ::http::request::Builder,
   42     42   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   43     43   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   44     44   
        let formatted_2 = inner_1.as_str();
          45  +
        if !formatted_2.is_empty() {
   45     46   
            let header_value = formatted_2;
   46     47   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   47     48   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   48     49   
                    "expected_bucket_owner",
   49     50   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   50     51   
                )
   51     52   
            })?;
   52     53   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   53     54   
        }
          55  +
    }
   54     56   
    Ok(builder)
   55     57   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_delete_bucket_cors.rs

@@ -8,8 +48,50 @@
   28     28   
        output.build()
   29     29   
    })
   30     30   
}
   31     31   
   32     32   
pub fn ser_delete_bucket_cors_headers(
   33     33   
    input: &crate::operation::delete_bucket_cors::DeleteBucketCorsInput,
   34     34   
    mut builder: ::http::request::Builder,
   35     35   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   36     36   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   37     37   
        let formatted_2 = inner_1.as_str();
          38  +
        if !formatted_2.is_empty() {
   38     39   
            let header_value = formatted_2;
   39     40   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   40     41   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   41     42   
                    "expected_bucket_owner",
   42     43   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   43     44   
                )
   44     45   
            })?;
   45     46   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   46     47   
        }
          48  +
    }
   47     49   
    Ok(builder)
   48     50   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_delete_bucket_encryption.rs

@@ -14,14 +54,56 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_delete_bucket_encryption_headers(
   39     39   
    input: &crate::operation::delete_bucket_encryption::DeleteBucketEncryptionInput,
   40     40   
    mut builder: ::http::request::Builder,
   41     41   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   42     42   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   43     43   
        let formatted_2 = inner_1.as_str();
          44  +
        if !formatted_2.is_empty() {
   44     45   
            let header_value = formatted_2;
   45     46   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   46     47   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   47     48   
                    "expected_bucket_owner",
   48     49   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   49     50   
                )
   50     51   
            })?;
   51     52   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   52     53   
        }
          54  +
    }
   53     55   
    Ok(builder)
   54     56   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_delete_bucket_inventory_configuration.rs

@@ -15,15 +55,57 @@
   35     35   
        output.build()
   36     36   
    })
   37     37   
}
   38     38   
   39     39   
pub fn ser_delete_bucket_inventory_configuration_headers(
   40     40   
    input: &crate::operation::delete_bucket_inventory_configuration::DeleteBucketInventoryConfigurationInput,
   41     41   
    mut builder: ::http::request::Builder,
   42     42   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   43     43   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   44     44   
        let formatted_2 = inner_1.as_str();
          45  +
        if !formatted_2.is_empty() {
   45     46   
            let header_value = formatted_2;
   46     47   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   47     48   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   48     49   
                    "expected_bucket_owner",
   49     50   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   50     51   
                )
   51     52   
            })?;
   52     53   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   53     54   
        }
          55  +
    }
   54     56   
    Ok(builder)
   55     57   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_delete_bucket_lifecycle.rs

@@ -14,14 +54,56 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_delete_bucket_lifecycle_headers(
   39     39   
    input: &crate::operation::delete_bucket_lifecycle::DeleteBucketLifecycleInput,
   40     40   
    mut builder: ::http::request::Builder,
   41     41   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   42     42   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   43     43   
        let formatted_2 = inner_1.as_str();
          44  +
        if !formatted_2.is_empty() {
   44     45   
            let header_value = formatted_2;
   45     46   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   46     47   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   47     48   
                    "expected_bucket_owner",
   48     49   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   49     50   
                )
   50     51   
            })?;
   51     52   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   52     53   
        }
          54  +
    }
   53     55   
    Ok(builder)
   54     56   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_delete_bucket_metrics_configuration.rs

@@ -14,14 +54,56 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_delete_bucket_metrics_configuration_headers(
   39     39   
    input: &crate::operation::delete_bucket_metrics_configuration::DeleteBucketMetricsConfigurationInput,
   40     40   
    mut builder: ::http::request::Builder,
   41     41   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   42     42   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   43     43   
        let formatted_2 = inner_1.as_str();
          44  +
        if !formatted_2.is_empty() {
   44     45   
            let header_value = formatted_2;
   45     46   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   46     47   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   47     48   
                    "expected_bucket_owner",
   48     49   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   49     50   
                )
   50     51   
            })?;
   51     52   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   52     53   
        }
          54  +
    }
   53     55   
    Ok(builder)
   54     56   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_delete_bucket_ownership_controls.rs

@@ -14,14 +54,56 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_delete_bucket_ownership_controls_headers(
   39     39   
    input: &crate::operation::delete_bucket_ownership_controls::DeleteBucketOwnershipControlsInput,
   40     40   
    mut builder: ::http::request::Builder,
   41     41   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   42     42   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   43     43   
        let formatted_2 = inner_1.as_str();
          44  +
        if !formatted_2.is_empty() {
   44     45   
            let header_value = formatted_2;
   45     46   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   46     47   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   47     48   
                    "expected_bucket_owner",
   48     49   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   49     50   
                )
   50     51   
            })?;
   51     52   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   52     53   
        }
          54  +
    }
   53     55   
    Ok(builder)
   54     56   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_delete_bucket_policy.rs

@@ -14,14 +54,56 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_delete_bucket_policy_headers(
   39     39   
    input: &crate::operation::delete_bucket_policy::DeleteBucketPolicyInput,
   40     40   
    mut builder: ::http::request::Builder,
   41     41   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   42     42   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   43     43   
        let formatted_2 = inner_1.as_str();
          44  +
        if !formatted_2.is_empty() {
   44     45   
            let header_value = formatted_2;
   45     46   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   46     47   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   47     48   
                    "expected_bucket_owner",
   48     49   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   49     50   
                )
   50     51   
            })?;
   51     52   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   52     53   
        }
          54  +
    }
   53     55   
    Ok(builder)
   54     56   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_delete_bucket_replication.rs

@@ -16,16 +56,58 @@
   36     36   
        output.build()
   37     37   
    })
   38     38   
}
   39     39   
   40     40   
pub fn ser_delete_bucket_replication_headers(
   41     41   
    input: &crate::operation::delete_bucket_replication::DeleteBucketReplicationInput,
   42     42   
    mut builder: ::http::request::Builder,
   43     43   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   44     44   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   45     45   
        let formatted_2 = inner_1.as_str();
          46  +
        if !formatted_2.is_empty() {
   46     47   
            let header_value = formatted_2;
   47     48   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   48     49   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   49     50   
                    "expected_bucket_owner",
   50     51   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   51     52   
                )
   52     53   
            })?;
   53     54   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   54     55   
        }
          56  +
    }
   55     57   
    Ok(builder)
   56     58   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_delete_bucket_tagging.rs

@@ -14,14 +54,56 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_delete_bucket_tagging_headers(
   39     39   
    input: &crate::operation::delete_bucket_tagging::DeleteBucketTaggingInput,
   40     40   
    mut builder: ::http::request::Builder,
   41     41   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   42     42   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   43     43   
        let formatted_2 = inner_1.as_str();
          44  +
        if !formatted_2.is_empty() {
   44     45   
            let header_value = formatted_2;
   45     46   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   46     47   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   47     48   
                    "expected_bucket_owner",
   48     49   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   49     50   
                )
   50     51   
            })?;
   51     52   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   52     53   
        }
          54  +
    }
   53     55   
    Ok(builder)
   54     56   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_delete_bucket_website.rs

@@ -14,14 +54,56 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_delete_bucket_website_headers(
   39     39   
    input: &crate::operation::delete_bucket_website::DeleteBucketWebsiteInput,
   40     40   
    mut builder: ::http::request::Builder,
   41     41   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   42     42   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   43     43   
        let formatted_2 = inner_1.as_str();
          44  +
        if !formatted_2.is_empty() {
   44     45   
            let header_value = formatted_2;
   45     46   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   46     47   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   47     48   
                    "expected_bucket_owner",
   48     49   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   49     50   
                )
   50     51   
            })?;
   51     52   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   52     53   
        }
          54  +
    }
   53     55   
    Ok(builder)
   54     56   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_delete_object.rs

@@ -23,23 +97,105 @@
   43     43   
        output.build()
   44     44   
    })
   45     45   
}
   46     46   
   47     47   
pub fn ser_delete_object_headers(
   48     48   
    input: &crate::operation::delete_object::DeleteObjectInput,
   49     49   
    mut builder: ::http::request::Builder,
   50     50   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   51     51   
    if let ::std::option::Option::Some(inner_1) = &input.mfa {
   52     52   
        let formatted_2 = inner_1.as_str();
          53  +
        if !formatted_2.is_empty() {
   53     54   
            let header_value = formatted_2;
   54     55   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   55     56   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   56     57   
                    "mfa",
   57     58   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   58     59   
                )
   59     60   
            })?;
   60     61   
            builder = builder.header("x-amz-mfa", header_value);
   61     62   
        }
          63  +
    }
   62     64   
    if let ::std::option::Option::Some(inner_3) = &input.request_payer {
   63     65   
        let formatted_4 = inner_3.as_str();
          66  +
        if !formatted_4.is_empty() {
   64     67   
            let header_value = formatted_4;
   65     68   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   66     69   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   67     70   
                    "request_payer",
   68     71   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   69     72   
                )
   70     73   
            })?;
   71     74   
            builder = builder.header("x-amz-request-payer", header_value);
   72     75   
        }
          76  +
    }
   73     77   
    if let ::std::option::Option::Some(inner_5) = &input.bypass_governance_retention {
   74     78   
        let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_5);
   75     79   
        let formatted_6 = encoder.encode();
          80  +
        if !formatted_6.is_empty() {
   76     81   
            let header_value = formatted_6;
   77     82   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   78     83   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   79     84   
                    "bypass_governance_retention",
   80     85   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   81     86   
                )
   82     87   
            })?;
   83     88   
            builder = builder.header("x-amz-bypass-governance-retention", header_value);
   84     89   
        }
          90  +
    }
   85     91   
    if let ::std::option::Option::Some(inner_7) = &input.expected_bucket_owner {
   86     92   
        let formatted_8 = inner_7.as_str();
          93  +
        if !formatted_8.is_empty() {
   87     94   
            let header_value = formatted_8;
   88     95   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   89     96   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   90     97   
                    "expected_bucket_owner",
   91     98   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   92     99   
                )
   93    100   
            })?;
   94    101   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   95    102   
        }
         103  +
    }
   96    104   
    Ok(builder)
   97    105   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_delete_object_tagging.rs

@@ -21,21 +61,63 @@
   41     41   
        output.build()
   42     42   
    })
   43     43   
}
   44     44   
   45     45   
pub fn ser_delete_object_tagging_headers(
   46     46   
    input: &crate::operation::delete_object_tagging::DeleteObjectTaggingInput,
   47     47   
    mut builder: ::http::request::Builder,
   48     48   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   49     49   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   50     50   
        let formatted_2 = inner_1.as_str();
          51  +
        if !formatted_2.is_empty() {
   51     52   
            let header_value = formatted_2;
   52     53   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   53     54   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   54     55   
                    "expected_bucket_owner",
   55     56   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   56     57   
                )
   57     58   
            })?;
   58     59   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   59     60   
        }
          61  +
    }
   60     62   
    Ok(builder)
   61     63   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_delete_objects.rs

@@ -15,15 +128,138 @@
   35     35   
        output.build()
   36     36   
    })
   37     37   
}
   38     38   
   39     39   
pub fn ser_delete_objects_headers(
   40     40   
    input: &crate::operation::delete_objects::DeleteObjectsInput,
   41     41   
    mut builder: ::http::request::Builder,
   42     42   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   43     43   
    if let ::std::option::Option::Some(inner_1) = &input.mfa {
   44     44   
        let formatted_2 = inner_1.as_str();
          45  +
        if !formatted_2.is_empty() {
   45     46   
            let header_value = formatted_2;
   46     47   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   47     48   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   48     49   
                    "mfa",
   49     50   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   50     51   
                )
   51     52   
            })?;
   52     53   
            builder = builder.header("x-amz-mfa", header_value);
   53     54   
        }
          55  +
    }
   54     56   
    if let ::std::option::Option::Some(inner_3) = &input.request_payer {
   55     57   
        let formatted_4 = inner_3.as_str();
          58  +
        if !formatted_4.is_empty() {
   56     59   
            let header_value = formatted_4;
   57     60   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   58     61   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   59     62   
                    "request_payer",
   60     63   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   61     64   
                )
   62     65   
            })?;
   63     66   
            builder = builder.header("x-amz-request-payer", header_value);
   64     67   
        }
          68  +
    }
   65     69   
    if let ::std::option::Option::Some(inner_5) = &input.bypass_governance_retention {
   66     70   
        let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_5);
   67     71   
        let formatted_6 = encoder.encode();
          72  +
        if !formatted_6.is_empty() {
   68     73   
            let header_value = formatted_6;
   69     74   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   70     75   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   71     76   
                    "bypass_governance_retention",
   72     77   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   73     78   
                )
   74     79   
            })?;
   75     80   
            builder = builder.header("x-amz-bypass-governance-retention", header_value);
   76     81   
        }
          82  +
    }
   77     83   
    if let ::std::option::Option::Some(inner_7) = &input.expected_bucket_owner {
   78     84   
        let formatted_8 = inner_7.as_str();
          85  +
        if !formatted_8.is_empty() {
   79     86   
            let header_value = formatted_8;
   80     87   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   81     88   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   82     89   
                    "expected_bucket_owner",
   83     90   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   84     91   
                )
   85     92   
            })?;
   86     93   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   87     94   
        }
          95  +
    }
   88     96   
    if let ::std::option::Option::Some(inner_9) = &input.checksum_algorithm {
   89     97   
        let formatted_10 = inner_9.as_str();
          98  +
        if !formatted_10.is_empty() {
   90     99   
            let header_value = formatted_10;
   91    100   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   92    101   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   93    102   
                    "checksum_algorithm",
   94    103   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   95    104   
                )
   96    105   
            })?;
   97    106   
            builder = builder.header("x-amz-sdk-checksum-algorithm", header_value);
   98    107   
        }
         108  +
    }
   99    109   
    Ok(builder)
  100    110   
}
  101    111   
  102    112   
#[allow(unused_mut)]
  103    113   
pub fn de_delete_objects(
  104    114   
    inp: &[u8],
  105    115   
    mut builder: crate::operation::delete_objects::builders::DeleteObjectsOutputBuilder,
  106    116   
) -> Result<crate::operation::delete_objects::builders::DeleteObjectsOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
  107    117   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
  108    118