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