#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateSceneOutput {
pub update_date_time: ::aws_smithy_types::DateTime,
_request_id: Option<String>,
}
impl UpdateSceneOutput {
pub fn update_date_time(&self) -> &::aws_smithy_types::DateTime {
&self.update_date_time
}
}
impl ::aws_types::request_id::RequestId for UpdateSceneOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl UpdateSceneOutput {
pub fn builder() -> crate::operation::update_scene::builders::UpdateSceneOutputBuilder {
crate::operation::update_scene::builders::UpdateSceneOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateSceneOutputBuilder {
pub(crate) update_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
_request_id: Option<String>,
}
impl UpdateSceneOutputBuilder {
pub fn update_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.update_date_time = ::std::option::Option::Some(input);
self
}
pub fn set_update_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.update_date_time = input;
self
}
pub fn get_update_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.update_date_time
}
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) -> ::std::result::Result<crate::operation::update_scene::UpdateSceneOutput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_scene::UpdateSceneOutput {
update_date_time: self.update_date_time.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"update_date_time",
"update_date_time was not specified but it is required when building UpdateSceneOutput",
)
})?,
_request_id: self._request_id,
})
}
}