#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetThingShadowOutput {
pub payload: ::std::option::Option<::aws_smithy_types::Blob>,
_request_id: Option<String>,
}
impl GetThingShadowOutput {
pub fn payload(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
self.payload.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetThingShadowOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetThingShadowOutput {
pub fn builder() -> crate::operation::get_thing_shadow::builders::GetThingShadowOutputBuilder {
crate::operation::get_thing_shadow::builders::GetThingShadowOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetThingShadowOutputBuilder {
pub(crate) payload: ::std::option::Option<::aws_smithy_types::Blob>,
_request_id: Option<String>,
}
impl GetThingShadowOutputBuilder {
pub fn payload(mut self, input: ::aws_smithy_types::Blob) -> Self {
self.payload = ::std::option::Option::Some(input);
self
}
pub fn set_payload(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
self.payload = input;
self
}
pub fn get_payload(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
&self.payload
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::get_thing_shadow::GetThingShadowOutput {
crate::operation::get_thing_shadow::GetThingShadowOutput {
payload: self.payload,
_request_id: self._request_id,
}
}
}