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