pub struct Builder { /* private fields */ }
Expand description
A builder for GetPipelineExecutionOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn pipeline_execution(self, input: PipelineExecution) -> Self
pub fn pipeline_execution(self, input: PipelineExecution) -> Self
Represents information about the execution of a pipeline.
sourcepub fn set_pipeline_execution(self, input: Option<PipelineExecution>) -> Self
pub fn set_pipeline_execution(self, input: Option<PipelineExecution>) -> Self
Represents information about the execution of a pipeline.
Examples found in repository?
src/json_deser.rs (lines 1313-1317)
1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340
pub(crate) fn deser_operation_crate_operation_get_pipeline_execution(
value: &[u8],
mut builder: crate::output::get_pipeline_execution_output::Builder,
) -> Result<
crate::output::get_pipeline_execution_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
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() {
"pipelineExecution" => {
builder = builder.set_pipeline_execution(
crate::json_deser::deser_structure_crate_model_pipeline_execution(
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
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}
sourcepub fn build(self) -> GetPipelineExecutionOutput
pub fn build(self) -> GetPipelineExecutionOutput
Consumes the builder and constructs a GetPipelineExecutionOutput
.
Examples found in repository?
src/operation_deser.rs (line 1304)
1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306
pub fn parse_get_pipeline_execution_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::GetPipelineExecutionOutput,
crate::error::GetPipelineExecutionError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::get_pipeline_execution_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_get_pipeline_execution(
response.body().as_ref(),
output,
)
.map_err(crate::error::GetPipelineExecutionError::unhandled)?;
output.build()
})
}