pub struct Builder { /* private fields */ }
Expand description
A builder for StopPipelineExecutionOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn pipeline_execution_id(self, input: impl Into<String>) -> Self
pub fn pipeline_execution_id(self, input: impl Into<String>) -> Self
The unique system-generated ID of the pipeline execution that was stopped.
sourcepub fn set_pipeline_execution_id(self, input: Option<String>) -> Self
pub fn set_pipeline_execution_id(self, input: Option<String>) -> Self
The unique system-generated ID of the pipeline execution that was stopped.
Examples found in repository?
src/json_deser.rs (lines 2941-2947)
2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970
pub(crate) fn deser_operation_crate_operation_stop_pipeline_execution(
value: &[u8],
mut builder: crate::output::stop_pipeline_execution_output::Builder,
) -> Result<
crate::output::stop_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() {
"pipelineExecutionId" => {
builder = builder.set_pipeline_execution_id(
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
)),
)
}
}
}
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) -> StopPipelineExecutionOutput
pub fn build(self) -> StopPipelineExecutionOutput
Consumes the builder and constructs a StopPipelineExecutionOutput
.
Examples found in repository?
src/operation_deser.rs (line 3430)
3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432
pub fn parse_stop_pipeline_execution_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::StopPipelineExecutionOutput,
crate::error::StopPipelineExecutionError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::stop_pipeline_execution_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_stop_pipeline_execution(
response.body().as_ref(),
output,
)
.map_err(crate::error::StopPipelineExecutionError::unhandled)?;
output.build()
})
}