aws-sdk-assurance 1.0.0

AWS SDK for AWS Assurance
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetPermissionSetInput {
    /// <p>The ARN of this governance environment.</p>
    pub environment_arn: ::std::option::Option<::std::string::String>,
    /// <p>The identifier of the permission set.</p>
    pub permission_set_id: ::std::option::Option<::std::string::String>,
}
impl GetPermissionSetInput {
    /// <p>The ARN of this governance environment.</p>
    pub fn environment_arn(&self) -> ::std::option::Option<&str> {
        self.environment_arn.as_deref()
    }
    /// <p>The identifier of the permission set.</p>
    pub fn permission_set_id(&self) -> ::std::option::Option<&str> {
        self.permission_set_id.as_deref()
    }
}
impl GetPermissionSetInput {
    /// Creates a new builder-style object to manufacture [`GetPermissionSetInput`](crate::operation::get_permission_set::GetPermissionSetInput).
    pub fn builder() -> crate::operation::get_permission_set::builders::GetPermissionSetInputBuilder {
        crate::operation::get_permission_set::builders::GetPermissionSetInputBuilder::default()
    }
}

/// A builder for [`GetPermissionSetInput`](crate::operation::get_permission_set::GetPermissionSetInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetPermissionSetInputBuilder {
    pub(crate) environment_arn: ::std::option::Option<::std::string::String>,
    pub(crate) permission_set_id: ::std::option::Option<::std::string::String>,
}
impl GetPermissionSetInputBuilder {
    /// <p>The ARN of this governance environment.</p>
    /// This field is required.
    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
    }
    /// <p>The ARN of this governance environment.</p>
    pub fn set_environment_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.environment_arn = input;
        self
    }
    /// <p>The ARN of this governance environment.</p>
    pub fn get_environment_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.environment_arn
    }
    /// <p>The identifier of the permission set.</p>
    /// This field is required.
    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
    }
    /// <p>The identifier of the permission set.</p>
    pub fn set_permission_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.permission_set_id = input;
        self
    }
    /// <p>The identifier of the permission set.</p>
    pub fn get_permission_set_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.permission_set_id
    }
    /// Consumes the builder and constructs a [`GetPermissionSetInput`](crate::operation::get_permission_set::GetPermissionSetInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_permission_set::GetPermissionSetInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_permission_set::GetPermissionSetInput {
            environment_arn: self.environment_arn,
            permission_set_id: self.permission_set_id,
        })
    }
}