#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetThingShadowInput {
pub thing_name: ::std::option::Option<::std::string::String>,
pub shadow_name: ::std::option::Option<::std::string::String>,
}
impl GetThingShadowInput {
pub fn thing_name(&self) -> ::std::option::Option<&str> {
self.thing_name.as_deref()
}
pub fn shadow_name(&self) -> ::std::option::Option<&str> {
self.shadow_name.as_deref()
}
}
impl GetThingShadowInput {
pub fn builder() -> crate::operation::get_thing_shadow::builders::GetThingShadowInputBuilder {
crate::operation::get_thing_shadow::builders::GetThingShadowInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetThingShadowInputBuilder {
pub(crate) thing_name: ::std::option::Option<::std::string::String>,
pub(crate) shadow_name: ::std::option::Option<::std::string::String>,
}
impl GetThingShadowInputBuilder {
pub fn thing_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.thing_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_thing_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.thing_name = input;
self
}
pub fn get_thing_name(&self) -> &::std::option::Option<::std::string::String> {
&self.thing_name
}
pub fn shadow_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.shadow_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_shadow_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.shadow_name = input;
self
}
pub fn get_shadow_name(&self) -> &::std::option::Option<::std::string::String> {
&self.shadow_name
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_thing_shadow::GetThingShadowInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_thing_shadow::GetThingShadowInput {
thing_name: self.thing_name,
shadow_name: self.shadow_name,
})
}
}