#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateStateMachineOutput {
pub update_date: ::aws_smithy_types::DateTime,
pub revision_id: ::std::option::Option<::std::string::String>,
pub state_machine_version_arn: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl UpdateStateMachineOutput {
pub fn update_date(&self) -> &::aws_smithy_types::DateTime {
&self.update_date
}
pub fn revision_id(&self) -> ::std::option::Option<&str> {
self.revision_id.as_deref()
}
pub fn state_machine_version_arn(&self) -> ::std::option::Option<&str> {
self.state_machine_version_arn.as_deref()
}
}
impl ::aws_types::request_id::RequestId for UpdateStateMachineOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl UpdateStateMachineOutput {
pub fn builder() -> crate::operation::update_state_machine::builders::UpdateStateMachineOutputBuilder {
crate::operation::update_state_machine::builders::UpdateStateMachineOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateStateMachineOutputBuilder {
pub(crate) update_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) revision_id: ::std::option::Option<::std::string::String>,
pub(crate) state_machine_version_arn: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl UpdateStateMachineOutputBuilder {
pub fn update_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.update_date = ::std::option::Option::Some(input);
self
}
pub fn set_update_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.update_date = input;
self
}
pub fn get_update_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.update_date
}
pub fn revision_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.revision_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_revision_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.revision_id = input;
self
}
pub fn get_revision_id(&self) -> &::std::option::Option<::std::string::String> {
&self.revision_id
}
pub fn state_machine_version_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.state_machine_version_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_state_machine_version_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.state_machine_version_arn = input;
self
}
pub fn get_state_machine_version_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.state_machine_version_arn
}
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_state_machine::UpdateStateMachineOutput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::update_state_machine::UpdateStateMachineOutput {
update_date: self.update_date.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"update_date",
"update_date was not specified but it is required when building UpdateStateMachineOutput",
)
})?,
revision_id: self.revision_id,
state_machine_version_arn: self.state_machine_version_arn,
_request_id: self._request_id,
})
}
}