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