#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateEventActionInput {
pub action: ::std::option::Option<crate::types::Action>,
pub event_action_id: ::std::option::Option<::std::string::String>,
}
impl UpdateEventActionInput {
pub fn action(&self) -> ::std::option::Option<&crate::types::Action> {
self.action.as_ref()
}
pub fn event_action_id(&self) -> ::std::option::Option<&str> {
self.event_action_id.as_deref()
}
}
impl UpdateEventActionInput {
pub fn builder() -> crate::operation::update_event_action::builders::UpdateEventActionInputBuilder {
crate::operation::update_event_action::builders::UpdateEventActionInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateEventActionInputBuilder {
pub(crate) action: ::std::option::Option<crate::types::Action>,
pub(crate) event_action_id: ::std::option::Option<::std::string::String>,
}
impl UpdateEventActionInputBuilder {
pub fn action(mut self, input: crate::types::Action) -> Self {
self.action = ::std::option::Option::Some(input);
self
}
pub fn set_action(mut self, input: ::std::option::Option<crate::types::Action>) -> Self {
self.action = input;
self
}
pub fn get_action(&self) -> &::std::option::Option<crate::types::Action> {
&self.action
}
pub fn event_action_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.event_action_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_event_action_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.event_action_id = input;
self
}
pub fn get_event_action_id(&self) -> &::std::option::Option<::std::string::String> {
&self.event_action_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_event_action::UpdateEventActionInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_event_action::UpdateEventActionInput {
action: self.action,
event_action_id: self.event_action_id,
})
}
}