#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ApplyEnvironmentManagedActionInput {
pub environment_name: ::std::option::Option<::std::string::String>,
pub environment_id: ::std::option::Option<::std::string::String>,
pub action_id: ::std::option::Option<::std::string::String>,
}
impl ApplyEnvironmentManagedActionInput {
pub fn environment_name(&self) -> ::std::option::Option<&str> {
self.environment_name.as_deref()
}
pub fn environment_id(&self) -> ::std::option::Option<&str> {
self.environment_id.as_deref()
}
pub fn action_id(&self) -> ::std::option::Option<&str> {
self.action_id.as_deref()
}
}
impl ApplyEnvironmentManagedActionInput {
pub fn builder() -> crate::operation::apply_environment_managed_action::builders::ApplyEnvironmentManagedActionInputBuilder {
crate::operation::apply_environment_managed_action::builders::ApplyEnvironmentManagedActionInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ApplyEnvironmentManagedActionInputBuilder {
pub(crate) environment_name: ::std::option::Option<::std::string::String>,
pub(crate) environment_id: ::std::option::Option<::std::string::String>,
pub(crate) action_id: ::std::option::Option<::std::string::String>,
}
impl ApplyEnvironmentManagedActionInputBuilder {
pub fn environment_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.environment_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_environment_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.environment_name = input;
self
}
pub fn get_environment_name(&self) -> &::std::option::Option<::std::string::String> {
&self.environment_name
}
pub fn environment_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.environment_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_environment_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.environment_id = input;
self
}
pub fn get_environment_id(&self) -> &::std::option::Option<::std::string::String> {
&self.environment_id
}
pub fn action_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.action_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_action_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.action_id = input;
self
}
pub fn get_action_id(&self) -> &::std::option::Option<::std::string::String> {
&self.action_id
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::apply_environment_managed_action::ApplyEnvironmentManagedActionInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::apply_environment_managed_action::ApplyEnvironmentManagedActionInput {
environment_name: self.environment_name,
environment_id: self.environment_id,
action_id: self.action_id,
})
}
}