pub struct Builder { /* private fields */ }Expand description
A builder for StartNotebookExecutionOutput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn notebook_execution_id(self, input: impl Into<String>) -> Self
pub fn notebook_execution_id(self, input: impl Into<String>) -> Self
The unique identifier of the notebook execution.
sourcepub fn set_notebook_execution_id(self, input: Option<String>) -> Self
pub fn set_notebook_execution_id(self, input: Option<String>) -> Self
The unique identifier of the notebook execution.
Examples found in repository?
src/json_deser.rs (lines 1857-1863)
1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886
pub(crate) fn deser_operation_crate_operation_start_notebook_execution(
value: &[u8],
mut builder: crate::output::start_notebook_execution_output::Builder,
) -> Result<
crate::output::start_notebook_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() {
"NotebookExecutionId" => {
builder = builder.set_notebook_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) -> StartNotebookExecutionOutput
pub fn build(self) -> StartNotebookExecutionOutput
Consumes the builder and constructs a StartNotebookExecutionOutput.
Examples found in repository?
src/operation_deser.rs (line 2980)
2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982
pub fn parse_start_notebook_execution_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::StartNotebookExecutionOutput,
crate::error::StartNotebookExecutionError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::start_notebook_execution_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_start_notebook_execution(
response.body().as_ref(),
output,
)
.map_err(crate::error::StartNotebookExecutionError::unhandled)?;
output.build()
})
}