#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetAutomationEventInput {
pub event_id: ::std::option::Option<::std::string::String>,
}
impl GetAutomationEventInput {
pub fn event_id(&self) -> ::std::option::Option<&str> {
self.event_id.as_deref()
}
}
impl GetAutomationEventInput {
pub fn builder() -> crate::operation::get_automation_event::builders::GetAutomationEventInputBuilder {
crate::operation::get_automation_event::builders::GetAutomationEventInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetAutomationEventInputBuilder {
pub(crate) event_id: ::std::option::Option<::std::string::String>,
}
impl GetAutomationEventInputBuilder {
pub fn event_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.event_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_event_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.event_id = input;
self
}
pub fn get_event_id(&self) -> &::std::option::Option<::std::string::String> {
&self.event_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_automation_event::GetAutomationEventInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::get_automation_event::GetAutomationEventInput { event_id: self.event_id })
}
}