aws-sdk-quicksight 1.145.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 DescribeAgentPermissionsInput {
    /// <p>The unique identifier for the agent.</p>
    pub agent_id: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the Amazon Web Services account that contains the agent.</p>
    pub aws_account_id: ::std::option::Option<::std::string::String>,
}
impl DescribeAgentPermissionsInput {
    /// <p>The unique identifier for the agent.</p>
    pub fn agent_id(&self) -> ::std::option::Option<&str> {
        self.agent_id.as_deref()
    }
    /// <p>The ID of the Amazon Web Services account that contains the agent.</p>
    pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
        self.aws_account_id.as_deref()
    }
}
impl DescribeAgentPermissionsInput {
    /// Creates a new builder-style object to manufacture [`DescribeAgentPermissionsInput`](crate::operation::describe_agent_permissions::DescribeAgentPermissionsInput).
    pub fn builder() -> crate::operation::describe_agent_permissions::builders::DescribeAgentPermissionsInputBuilder {
        crate::operation::describe_agent_permissions::builders::DescribeAgentPermissionsInputBuilder::default()
    }
}

/// A builder for [`DescribeAgentPermissionsInput`](crate::operation::describe_agent_permissions::DescribeAgentPermissionsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeAgentPermissionsInputBuilder {
    pub(crate) agent_id: ::std::option::Option<::std::string::String>,
    pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
}
impl DescribeAgentPermissionsInputBuilder {
    /// <p>The unique identifier for the agent.</p>
    /// This field is required.
    pub fn agent_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.agent_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier for the agent.</p>
    pub fn set_agent_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.agent_id = input;
        self
    }
    /// <p>The unique identifier for the agent.</p>
    pub fn get_agent_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.agent_id
    }
    /// <p>The ID of the Amazon Web Services account that contains the agent.</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 agent.</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 agent.</p>
    pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.aws_account_id
    }
    /// Consumes the builder and constructs a [`DescribeAgentPermissionsInput`](crate::operation::describe_agent_permissions::DescribeAgentPermissionsInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::describe_agent_permissions::DescribeAgentPermissionsInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::describe_agent_permissions::DescribeAgentPermissionsInput {
            agent_id: self.agent_id,
            aws_account_id: self.aws_account_id,
        })
    }
}