pub struct Builder { /* private fields */ }
Expand description
A builder for AwsEcsServiceNetworkConfigurationDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn aws_vpc_configuration(
self,
input: AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails
) -> Self
pub fn aws_vpc_configuration(
self,
input: AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails
) -> Self
The VPC subnet and security group configuration.
sourcepub fn set_aws_vpc_configuration(
self,
input: Option<AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails>
) -> Self
pub fn set_aws_vpc_configuration(
self,
input: Option<AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails>
) -> Self
The VPC subnet and security group configuration.
Examples found in repository?
src/json_deser.rs (lines 29753-29755)
29727 29728 29729 29730 29731 29732 29733 29734 29735 29736 29737 29738 29739 29740 29741 29742 29743 29744 29745 29746 29747 29748 29749 29750 29751 29752 29753 29754 29755 29756 29757 29758 29759 29760 29761 29762 29763 29764 29765 29766 29767 29768 29769 29770 29771 29772 29773 29774 29775 29776 29777 29778
pub(crate) fn deser_structure_crate_model_aws_ecs_service_network_configuration_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceNetworkConfigurationDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_ecs_service_network_configuration_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"AwsVpcConfiguration" => {
builder = builder.set_aws_vpc_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_aws_vpc_configuration_details(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn build(self) -> AwsEcsServiceNetworkConfigurationDetails
pub fn build(self) -> AwsEcsServiceNetworkConfigurationDetails
Consumes the builder and constructs a AwsEcsServiceNetworkConfigurationDetails
.
Examples found in repository?
src/json_deser.rs (line 29770)
29727 29728 29729 29730 29731 29732 29733 29734 29735 29736 29737 29738 29739 29740 29741 29742 29743 29744 29745 29746 29747 29748 29749 29750 29751 29752 29753 29754 29755 29756 29757 29758 29759 29760 29761 29762 29763 29764 29765 29766 29767 29768 29769 29770 29771 29772 29773 29774 29775 29776 29777 29778
pub(crate) fn deser_structure_crate_model_aws_ecs_service_network_configuration_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceNetworkConfigurationDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_ecs_service_network_configuration_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"AwsVpcConfiguration" => {
builder = builder.set_aws_vpc_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_aws_vpc_configuration_details(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}