aws_sdk_redshift/protocol_serde/
shape_describe_endpoint_authorization_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn ser_describe_endpoint_authorization_input_input_input(
3    input: &crate::operation::describe_endpoint_authorization::DescribeEndpointAuthorizationInput,
4) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
5    let mut out = String::new();
6    #[allow(unused_mut)]
7    let mut writer = ::aws_smithy_query::QueryWriter::new(&mut out, "DescribeEndpointAuthorization", "2012-12-01");
8    #[allow(unused_mut)]
9    let mut scope_1 = writer.prefix("ClusterIdentifier");
10    if let Some(var_2) = &input.cluster_identifier {
11        scope_1.string(var_2);
12    }
13    #[allow(unused_mut)]
14    let mut scope_3 = writer.prefix("Account");
15    if let Some(var_4) = &input.account {
16        scope_3.string(var_4);
17    }
18    #[allow(unused_mut)]
19    let mut scope_5 = writer.prefix("Grantee");
20    if let Some(var_6) = &input.grantee {
21        scope_5.boolean(*var_6);
22    }
23    #[allow(unused_mut)]
24    let mut scope_7 = writer.prefix("MaxRecords");
25    if let Some(var_8) = &input.max_records {
26        scope_7.number(
27            #[allow(clippy::useless_conversion)]
28            ::aws_smithy_types::Number::NegInt((*var_8).into()),
29        );
30    }
31    #[allow(unused_mut)]
32    let mut scope_9 = writer.prefix("Marker");
33    if let Some(var_10) = &input.marker {
34        scope_9.string(var_10);
35    }
36    writer.finish();
37    Ok(::aws_smithy_types::body::SdkBody::from(out))
38}