#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StopNotebookInstanceInput {
pub notebook_instance_name: ::std::option::Option<::std::string::String>,
}
impl StopNotebookInstanceInput {
pub fn notebook_instance_name(&self) -> ::std::option::Option<&str> {
self.notebook_instance_name.as_deref()
}
}
impl StopNotebookInstanceInput {
pub fn builder() -> crate::operation::stop_notebook_instance::builders::StopNotebookInstanceInputBuilder {
crate::operation::stop_notebook_instance::builders::StopNotebookInstanceInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StopNotebookInstanceInputBuilder {
pub(crate) notebook_instance_name: ::std::option::Option<::std::string::String>,
}
impl StopNotebookInstanceInputBuilder {
pub fn notebook_instance_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.notebook_instance_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_notebook_instance_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.notebook_instance_name = input;
self
}
pub fn get_notebook_instance_name(&self) -> &::std::option::Option<::std::string::String> {
&self.notebook_instance_name
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::stop_notebook_instance::StopNotebookInstanceInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::stop_notebook_instance::StopNotebookInstanceInput {
notebook_instance_name: self.notebook_instance_name,
})
}
}