pub struct Builder { /* private fields */ }
Expand description
A builder for ActionExecutionOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn output_artifacts(self, input: ArtifactDetail) -> Self
pub fn output_artifacts(self, input: ArtifactDetail) -> Self
Appends an item to output_artifacts
.
To override the contents of this collection use set_output_artifacts
.
Details of output artifacts of the action that correspond to the action execution.
sourcepub fn set_output_artifacts(self, input: Option<Vec<ArtifactDetail>>) -> Self
pub fn set_output_artifacts(self, input: Option<Vec<ArtifactDetail>>) -> Self
Details of output artifacts of the action that correspond to the action execution.
Examples found in repository?
7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081
pub(crate) fn deser_structure_crate_model_action_execution_output<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ActionExecutionOutput>,
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::action_execution_output::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() {
"outputArtifacts" => {
builder = builder.set_output_artifacts(
crate::json_deser::deser_list_com_amazonaws_codepipeline_artifact_detail_list(tokens)?
);
}
"executionResult" => {
builder = builder.set_execution_result(
crate::json_deser::deser_structure_crate_model_action_execution_result(tokens)?
);
}
"outputVariables" => {
builder = builder.set_output_variables(
crate::json_deser::deser_map_com_amazonaws_codepipeline_output_variables_map(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 execution_result(self, input: ActionExecutionResult) -> Self
pub fn execution_result(self, input: ActionExecutionResult) -> Self
Execution result information listed in the output details for an action execution.
sourcepub fn set_execution_result(self, input: Option<ActionExecutionResult>) -> Self
pub fn set_execution_result(self, input: Option<ActionExecutionResult>) -> Self
Execution result information listed in the output details for an action execution.
Examples found in repository?
7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081
pub(crate) fn deser_structure_crate_model_action_execution_output<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ActionExecutionOutput>,
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::action_execution_output::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() {
"outputArtifacts" => {
builder = builder.set_output_artifacts(
crate::json_deser::deser_list_com_amazonaws_codepipeline_artifact_detail_list(tokens)?
);
}
"executionResult" => {
builder = builder.set_execution_result(
crate::json_deser::deser_structure_crate_model_action_execution_result(tokens)?
);
}
"outputVariables" => {
builder = builder.set_output_variables(
crate::json_deser::deser_map_com_amazonaws_codepipeline_output_variables_map(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 output_variables(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn output_variables(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to output_variables
.
To override the contents of this collection use set_output_variables
.
The outputVariables field shows the key-value pairs that were output as part of that execution.
sourcepub fn set_output_variables(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_output_variables(self, input: Option<HashMap<String, String>>) -> Self
The outputVariables field shows the key-value pairs that were output as part of that execution.
Examples found in repository?
7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081
pub(crate) fn deser_structure_crate_model_action_execution_output<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ActionExecutionOutput>,
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::action_execution_output::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() {
"outputArtifacts" => {
builder = builder.set_output_artifacts(
crate::json_deser::deser_list_com_amazonaws_codepipeline_artifact_detail_list(tokens)?
);
}
"executionResult" => {
builder = builder.set_execution_result(
crate::json_deser::deser_structure_crate_model_action_execution_result(tokens)?
);
}
"outputVariables" => {
builder = builder.set_output_variables(
crate::json_deser::deser_map_com_amazonaws_codepipeline_output_variables_map(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) -> ActionExecutionOutput
pub fn build(self) -> ActionExecutionOutput
Consumes the builder and constructs a ActionExecutionOutput
.
Examples found in repository?
7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081
pub(crate) fn deser_structure_crate_model_action_execution_output<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ActionExecutionOutput>,
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::action_execution_output::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() {
"outputArtifacts" => {
builder = builder.set_output_artifacts(
crate::json_deser::deser_list_com_amazonaws_codepipeline_artifact_detail_list(tokens)?
);
}
"executionResult" => {
builder = builder.set_execution_result(
crate::json_deser::deser_structure_crate_model_action_execution_result(tokens)?
);
}
"outputVariables" => {
builder = builder.set_output_variables(
crate::json_deser::deser_map_com_amazonaws_codepipeline_output_variables_map(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",
),
),
}
}