Struct aws_sdk_databrew::model::recipe_step::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for RecipeStep
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn action(self, input: RecipeAction) -> Self
pub fn action(self, input: RecipeAction) -> Self
The particular action to be performed in the recipe step.
sourcepub fn set_action(self, input: Option<RecipeAction>) -> Self
pub fn set_action(self, input: Option<RecipeAction>) -> Self
The particular action to be performed in the recipe step.
Examples found in repository?
src/json_deser.rs (lines 5687-5691)
5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719
pub(crate) fn deser_structure_crate_model_recipe_step<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::RecipeStep>, 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::recipe_step::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() {
"Action" => {
builder = builder.set_action(
crate::json_deser::deser_structure_crate_model_recipe_action(
tokens,
)?,
);
}
"ConditionExpressions" => {
builder = builder.set_condition_expressions(
crate::json_deser::deser_list_com_amazonaws_databrew_condition_expression_list(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 condition_expressions(self, input: ConditionExpression) -> Self
pub fn condition_expressions(self, input: ConditionExpression) -> Self
Appends an item to condition_expressions
.
To override the contents of this collection use set_condition_expressions
.
One or more conditions that must be met for the recipe step to succeed.
All of the conditions in the array must be met. In other words, all of the conditions must be combined using a logical AND operation.
sourcepub fn set_condition_expressions(
self,
input: Option<Vec<ConditionExpression>>
) -> Self
pub fn set_condition_expressions(
self,
input: Option<Vec<ConditionExpression>>
) -> Self
One or more conditions that must be met for the recipe step to succeed.
All of the conditions in the array must be met. In other words, all of the conditions must be combined using a logical AND operation.
Examples found in repository?
src/json_deser.rs (lines 5694-5696)
5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719
pub(crate) fn deser_structure_crate_model_recipe_step<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::RecipeStep>, 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::recipe_step::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() {
"Action" => {
builder = builder.set_action(
crate::json_deser::deser_structure_crate_model_recipe_action(
tokens,
)?,
);
}
"ConditionExpressions" => {
builder = builder.set_condition_expressions(
crate::json_deser::deser_list_com_amazonaws_databrew_condition_expression_list(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) -> RecipeStep
pub fn build(self) -> RecipeStep
Consumes the builder and constructs a RecipeStep
.
Examples found in repository?
src/json_deser.rs (line 5711)
5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719
pub(crate) fn deser_structure_crate_model_recipe_step<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::RecipeStep>, 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::recipe_step::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() {
"Action" => {
builder = builder.set_action(
crate::json_deser::deser_structure_crate_model_recipe_action(
tokens,
)?,
);
}
"ConditionExpressions" => {
builder = builder.set_condition_expressions(
crate::json_deser::deser_list_com_amazonaws_databrew_condition_expression_list(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",
),
),
}
}