static GETCONFIGURATIONINPUT_MEMBER_APPLICATION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts(
"com.amazonaws.appconfigcloudextension.synthetic#GetConfigurationInput$application",
"com.amazonaws.appconfigcloudextension.synthetic",
"GetConfigurationInput",
),
::aws_smithy_schema::ShapeType::String,
"application",
0,
);
static GETCONFIGURATIONINPUT_MEMBER_ENVIRONMENT: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts(
"com.amazonaws.appconfigcloudextension.synthetic#GetConfigurationInput$environment",
"com.amazonaws.appconfigcloudextension.synthetic",
"GetConfigurationInput",
),
::aws_smithy_schema::ShapeType::String,
"environment",
1,
);
static GETCONFIGURATIONINPUT_MEMBER_CONFIGURATION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts(
"com.amazonaws.appconfigcloudextension.synthetic#GetConfigurationInput$configuration",
"com.amazonaws.appconfigcloudextension.synthetic",
"GetConfigurationInput",
),
::aws_smithy_schema::ShapeType::String,
"configuration",
2,
);
static GETCONFIGURATIONINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
::aws_smithy_schema::ShapeId::from_parts(
"com.amazonaws.appconfigcloudextension.synthetic#GetConfigurationInput",
"com.amazonaws.appconfigcloudextension.synthetic",
"GetConfigurationInput",
),
::aws_smithy_schema::ShapeType::Structure,
&[
&GETCONFIGURATIONINPUT_MEMBER_APPLICATION,
&GETCONFIGURATIONINPUT_MEMBER_ENVIRONMENT,
&GETCONFIGURATIONINPUT_MEMBER_CONFIGURATION,
],
)
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
.with_original_name("GetConfigurationRequest");
impl crate::operation::get_configuration::GetConfigurationInput {
pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &GETCONFIGURATIONINPUT_SCHEMA;
}
impl ::aws_smithy_schema::serde::SerializableStruct for crate::operation::get_configuration::GetConfigurationInput {
fn schema(&self) -> &::aws_smithy_schema::Schema<'_> {
Self::SCHEMA
}
#[allow(unused_variables, clippy::diverging_sub_expression)]
fn serialize_members(
&self,
ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
if let Some(ref val) = self.application {
ser.write_string(&GETCONFIGURATIONINPUT_MEMBER_APPLICATION, val)?;
}
if let Some(ref val) = self.environment {
ser.write_string(&GETCONFIGURATIONINPUT_MEMBER_ENVIRONMENT, val)?;
}
if let Some(ref val) = self.configuration {
ser.write_string(&GETCONFIGURATIONINPUT_MEMBER_CONFIGURATION, val)?;
}
Ok(())
}
}
impl crate::operation::get_configuration::builders::GetConfigurationInputBuilder {
#[allow(
unused_variables,
unreachable_code,
clippy::single_match,
clippy::match_single_binding,
clippy::diverging_sub_expression
)]
pub(crate) fn deserialize_members(
&mut self,
deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
deserializer.read_struct(&GETCONFIGURATIONINPUT_SCHEMA, &mut |member, deser| {
match member.member_index() {
Some(0) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.application = Some(deser.read_string(member)?);
}
}
Some(1) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.environment = Some(deser.read_string(member)?);
}
}
Some(2) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.configuration = Some(deser.read_string(member)?);
}
}
_ => {}
}
Ok(())
})
}
}
impl crate::operation::get_configuration::GetConfigurationInput {
pub fn deserialize(
deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
let mut builder = Self::builder();
builder.deserialize_members(deserializer)?;
builder.application = builder.application.or(Some(String::new()));
builder.environment = builder.environment.or(Some(String::new()));
builder.configuration = builder.configuration.or(Some(String::new()));
builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
}
}