pub struct Builder { /* private fields */ }
Expand description
A builder for AwsEcsClusterConfigurationDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn execute_command_configuration(
self,
input: AwsEcsClusterConfigurationExecuteCommandConfigurationDetails
) -> Self
pub fn execute_command_configuration(
self,
input: AwsEcsClusterConfigurationExecuteCommandConfigurationDetails
) -> Self
Contains the run command configuration for the cluster.
sourcepub fn set_execute_command_configuration(
self,
input: Option<AwsEcsClusterConfigurationExecuteCommandConfigurationDetails>
) -> Self
pub fn set_execute_command_configuration(
self,
input: Option<AwsEcsClusterConfigurationExecuteCommandConfigurationDetails>
) -> Self
Contains the run command configuration for the cluster.
Examples found in repository?
src/json_deser.rs (lines 29079-29081)
29053 29054 29055 29056 29057 29058 29059 29060 29061 29062 29063 29064 29065 29066 29067 29068 29069 29070 29071 29072 29073 29074 29075 29076 29077 29078 29079 29080 29081 29082 29083 29084 29085 29086 29087 29088 29089 29090 29091 29092 29093 29094 29095 29096 29097 29098 29099 29100 29101 29102 29103 29104
pub(crate) fn deser_structure_crate_model_aws_ecs_cluster_configuration_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsClusterConfigurationDetails>,
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_cluster_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() {
"ExecuteCommandConfiguration" => {
builder = builder.set_execute_command_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_cluster_configuration_execute_command_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) -> AwsEcsClusterConfigurationDetails
pub fn build(self) -> AwsEcsClusterConfigurationDetails
Consumes the builder and constructs a AwsEcsClusterConfigurationDetails
.
Examples found in repository?
src/json_deser.rs (line 29096)
29053 29054 29055 29056 29057 29058 29059 29060 29061 29062 29063 29064 29065 29066 29067 29068 29069 29070 29071 29072 29073 29074 29075 29076 29077 29078 29079 29080 29081 29082 29083 29084 29085 29086 29087 29088 29089 29090 29091 29092 29093 29094 29095 29096 29097 29098 29099 29100 29101 29102 29103 29104
pub(crate) fn deser_structure_crate_model_aws_ecs_cluster_configuration_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsClusterConfigurationDetails>,
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_cluster_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() {
"ExecuteCommandConfiguration" => {
builder = builder.set_execute_command_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_cluster_configuration_execute_command_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",
),
),
}
}