Struct aws_sdk_securityhub::model::aws_ecs_task_definition_proxy_configuration_details::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AwsEcsTaskDefinitionProxyConfigurationDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn container_name(self, input: impl Into<String>) -> Self
pub fn container_name(self, input: impl Into<String>) -> Self
The name of the container that will serve as the App Mesh proxy.
sourcepub fn set_container_name(self, input: Option<String>) -> Self
pub fn set_container_name(self, input: Option<String>) -> Self
The name of the container that will serve as the App Mesh proxy.
Examples found in repository?
src/json_deser.rs (lines 29372-29378)
29342 29343 29344 29345 29346 29347 29348 29349 29350 29351 29352 29353 29354 29355 29356 29357 29358 29359 29360 29361 29362 29363 29364 29365 29366 29367 29368 29369 29370 29371 29372 29373 29374 29375 29376 29377 29378 29379 29380 29381 29382 29383 29384 29385 29386 29387 29388 29389 29390 29391 29392 29393 29394 29395 29396 29397 29398 29399 29400 29401 29402 29403 29404 29405 29406 29407 29408 29409 29410 29411 29412 29413 29414 29415
pub(crate) fn deser_structure_crate_model_aws_ecs_task_definition_proxy_configuration_details<
'a,
I,
>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsTaskDefinitionProxyConfigurationDetails>,
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_task_definition_proxy_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() {
"ContainerName" => {
builder = builder.set_container_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ProxyConfigurationProperties" => {
builder = builder.set_proxy_configuration_properties(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_proxy_configuration_proxy_configuration_properties_list(tokens)?
);
}
"Type" => {
builder = builder.set_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 proxy_configuration_properties(
self,
input: AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails
) -> Self
pub fn proxy_configuration_properties(
self,
input: AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails
) -> Self
Appends an item to proxy_configuration_properties
.
To override the contents of this collection use set_proxy_configuration_properties
.
The set of network configuration parameters to provide to the Container Network Interface (CNI) plugin, specified as key-value pairs.
sourcepub fn set_proxy_configuration_properties(
self,
input: Option<Vec<AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails>>
) -> Self
pub fn set_proxy_configuration_properties(
self,
input: Option<Vec<AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails>>
) -> Self
The set of network configuration parameters to provide to the Container Network Interface (CNI) plugin, specified as key-value pairs.
Examples found in repository?
src/json_deser.rs (lines 29381-29383)
29342 29343 29344 29345 29346 29347 29348 29349 29350 29351 29352 29353 29354 29355 29356 29357 29358 29359 29360 29361 29362 29363 29364 29365 29366 29367 29368 29369 29370 29371 29372 29373 29374 29375 29376 29377 29378 29379 29380 29381 29382 29383 29384 29385 29386 29387 29388 29389 29390 29391 29392 29393 29394 29395 29396 29397 29398 29399 29400 29401 29402 29403 29404 29405 29406 29407 29408 29409 29410 29411 29412 29413 29414 29415
pub(crate) fn deser_structure_crate_model_aws_ecs_task_definition_proxy_configuration_details<
'a,
I,
>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsTaskDefinitionProxyConfigurationDetails>,
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_task_definition_proxy_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() {
"ContainerName" => {
builder = builder.set_container_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ProxyConfigurationProperties" => {
builder = builder.set_proxy_configuration_properties(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_proxy_configuration_proxy_configuration_properties_list(tokens)?
);
}
"Type" => {
builder = builder.set_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
The proxy type.
Examples found in repository?
src/json_deser.rs (lines 29386-29392)
29342 29343 29344 29345 29346 29347 29348 29349 29350 29351 29352 29353 29354 29355 29356 29357 29358 29359 29360 29361 29362 29363 29364 29365 29366 29367 29368 29369 29370 29371 29372 29373 29374 29375 29376 29377 29378 29379 29380 29381 29382 29383 29384 29385 29386 29387 29388 29389 29390 29391 29392 29393 29394 29395 29396 29397 29398 29399 29400 29401 29402 29403 29404 29405 29406 29407 29408 29409 29410 29411 29412 29413 29414 29415
pub(crate) fn deser_structure_crate_model_aws_ecs_task_definition_proxy_configuration_details<
'a,
I,
>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsTaskDefinitionProxyConfigurationDetails>,
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_task_definition_proxy_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() {
"ContainerName" => {
builder = builder.set_container_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ProxyConfigurationProperties" => {
builder = builder.set_proxy_configuration_properties(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_proxy_configuration_proxy_configuration_properties_list(tokens)?
);
}
"Type" => {
builder = builder.set_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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) -> AwsEcsTaskDefinitionProxyConfigurationDetails
pub fn build(self) -> AwsEcsTaskDefinitionProxyConfigurationDetails
Consumes the builder and constructs a AwsEcsTaskDefinitionProxyConfigurationDetails
.
Examples found in repository?
src/json_deser.rs (line 29407)
29342 29343 29344 29345 29346 29347 29348 29349 29350 29351 29352 29353 29354 29355 29356 29357 29358 29359 29360 29361 29362 29363 29364 29365 29366 29367 29368 29369 29370 29371 29372 29373 29374 29375 29376 29377 29378 29379 29380 29381 29382 29383 29384 29385 29386 29387 29388 29389 29390 29391 29392 29393 29394 29395 29396 29397 29398 29399 29400 29401 29402 29403 29404 29405 29406 29407 29408 29409 29410 29411 29412 29413 29414 29415
pub(crate) fn deser_structure_crate_model_aws_ecs_task_definition_proxy_configuration_details<
'a,
I,
>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsTaskDefinitionProxyConfigurationDetails>,
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_task_definition_proxy_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() {
"ContainerName" => {
builder = builder.set_container_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ProxyConfigurationProperties" => {
builder = builder.set_proxy_configuration_properties(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_proxy_configuration_proxy_configuration_properties_list(tokens)?
);
}
"Type" => {
builder = builder.set_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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",
),
),
}
}