1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
// 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 DescribePermissionsInput {
/// <p>The user's IAM ARN. This can also be a federated user's ARN. For more information about IAM ARNs, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">Using Identifiers</a>.</p>
pub iam_user_arn: ::std::option::Option<::std::string::String>,
/// <p>The stack ID.</p>
pub stack_id: ::std::option::Option<::std::string::String>,
}
impl DescribePermissionsInput {
/// <p>The user's IAM ARN. This can also be a federated user's ARN. For more information about IAM ARNs, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">Using Identifiers</a>.</p>
pub fn iam_user_arn(&self) -> ::std::option::Option<&str> {
self.iam_user_arn.as_deref()
}
/// <p>The stack ID.</p>
pub fn stack_id(&self) -> ::std::option::Option<&str> {
self.stack_id.as_deref()
}
}
impl DescribePermissionsInput {
/// Creates a new builder-style object to manufacture [`DescribePermissionsInput`](crate::operation::describe_permissions::DescribePermissionsInput).
pub fn builder() -> crate::operation::describe_permissions::builders::DescribePermissionsInputBuilder {
crate::operation::describe_permissions::builders::DescribePermissionsInputBuilder::default()
}
}
/// A builder for [`DescribePermissionsInput`](crate::operation::describe_permissions::DescribePermissionsInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DescribePermissionsInputBuilder {
pub(crate) iam_user_arn: ::std::option::Option<::std::string::String>,
pub(crate) stack_id: ::std::option::Option<::std::string::String>,
}
impl DescribePermissionsInputBuilder {
/// <p>The user's IAM ARN. This can also be a federated user's ARN. For more information about IAM ARNs, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">Using Identifiers</a>.</p>
pub fn iam_user_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.iam_user_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The user's IAM ARN. This can also be a federated user's ARN. For more information about IAM ARNs, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">Using Identifiers</a>.</p>
pub fn set_iam_user_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.iam_user_arn = input;
self
}
/// <p>The user's IAM ARN. This can also be a federated user's ARN. For more information about IAM ARNs, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">Using Identifiers</a>.</p>
pub fn get_iam_user_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.iam_user_arn
}
/// <p>The stack ID.</p>
pub fn stack_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.stack_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The stack ID.</p>
pub fn set_stack_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.stack_id = input;
self
}
/// <p>The stack ID.</p>
pub fn get_stack_id(&self) -> &::std::option::Option<::std::string::String> {
&self.stack_id
}
/// Consumes the builder and constructs a [`DescribePermissionsInput`](crate::operation::describe_permissions::DescribePermissionsInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_permissions::DescribePermissionsInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::describe_permissions::DescribePermissionsInput {
iam_user_arn: self.iam_user_arn,
stack_id: self.stack_id,
})
}
}