#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetSceneInput {
pub workspace_id: ::std::option::Option<::std::string::String>,
pub scene_id: ::std::option::Option<::std::string::String>,
}
impl GetSceneInput {
pub fn workspace_id(&self) -> ::std::option::Option<&str> {
self.workspace_id.as_deref()
}
pub fn scene_id(&self) -> ::std::option::Option<&str> {
self.scene_id.as_deref()
}
}
impl GetSceneInput {
pub fn builder() -> crate::operation::get_scene::builders::GetSceneInputBuilder {
crate::operation::get_scene::builders::GetSceneInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetSceneInputBuilder {
pub(crate) workspace_id: ::std::option::Option<::std::string::String>,
pub(crate) scene_id: ::std::option::Option<::std::string::String>,
}
impl GetSceneInputBuilder {
pub fn workspace_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.workspace_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_workspace_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.workspace_id = input;
self
}
pub fn get_workspace_id(&self) -> &::std::option::Option<::std::string::String> {
&self.workspace_id
}
pub fn scene_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.scene_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_scene_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.scene_id = input;
self
}
pub fn get_scene_id(&self) -> &::std::option::Option<::std::string::String> {
&self.scene_id
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_scene::GetSceneInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_scene::GetSceneInput {
workspace_id: self.workspace_id,
scene_id: self.scene_id,
})
}
}