aws-sdk-quicksight 1.129.0

AWS SDK for Amazon QuickSight
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 DescribeThemePermissionsInput {
    /// <p>The ID of the Amazon Web Services account that contains the theme that you're describing.</p>
    pub aws_account_id: ::std::option::Option<::std::string::String>,
    /// <p>The ID for the theme that you want to describe permissions for.</p>
    pub theme_id: ::std::option::Option<::std::string::String>,
}
impl DescribeThemePermissionsInput {
    /// <p>The ID of the Amazon Web Services account that contains the theme that you're describing.</p>
    pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
        self.aws_account_id.as_deref()
    }
    /// <p>The ID for the theme that you want to describe permissions for.</p>
    pub fn theme_id(&self) -> ::std::option::Option<&str> {
        self.theme_id.as_deref()
    }
}
impl DescribeThemePermissionsInput {
    /// Creates a new builder-style object to manufacture [`DescribeThemePermissionsInput`](crate::operation::describe_theme_permissions::DescribeThemePermissionsInput).
    pub fn builder() -> crate::operation::describe_theme_permissions::builders::DescribeThemePermissionsInputBuilder {
        crate::operation::describe_theme_permissions::builders::DescribeThemePermissionsInputBuilder::default()
    }
}

/// A builder for [`DescribeThemePermissionsInput`](crate::operation::describe_theme_permissions::DescribeThemePermissionsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeThemePermissionsInputBuilder {
    pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
    pub(crate) theme_id: ::std::option::Option<::std::string::String>,
}
impl DescribeThemePermissionsInputBuilder {
    /// <p>The ID of the Amazon Web Services account that contains the theme that you're describing.</p>
    /// This field is required.
    pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.aws_account_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the Amazon Web Services account that contains the theme that you're describing.</p>
    pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.aws_account_id = input;
        self
    }
    /// <p>The ID of the Amazon Web Services account that contains the theme that you're describing.</p>
    pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.aws_account_id
    }
    /// <p>The ID for the theme that you want to describe permissions for.</p>
    /// This field is required.
    pub fn theme_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.theme_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID for the theme that you want to describe permissions for.</p>
    pub fn set_theme_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.theme_id = input;
        self
    }
    /// <p>The ID for the theme that you want to describe permissions for.</p>
    pub fn get_theme_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.theme_id
    }
    /// Consumes the builder and constructs a [`DescribeThemePermissionsInput`](crate::operation::describe_theme_permissions::DescribeThemePermissionsInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::describe_theme_permissions::DescribeThemePermissionsInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::describe_theme_permissions::DescribeThemePermissionsInput {
            aws_account_id: self.aws_account_id,
            theme_id: self.theme_id,
        })
    }
}