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 DescribeSpaceInput {
    /// <p>The ID of the Amazon Web Services account that contains the space.</p>
    pub aws_account_id: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the space that you want to describe.</p>
    pub space_id: ::std::option::Option<::std::string::String>,
    /// <p>The maximum number of contributors to include in the response.</p>
    pub max_contributors: ::std::option::Option<i32>,
}
impl DescribeSpaceInput {
    /// <p>The ID of the Amazon Web Services account that contains the space.</p>
    pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
        self.aws_account_id.as_deref()
    }
    /// <p>The ID of the space that you want to describe.</p>
    pub fn space_id(&self) -> ::std::option::Option<&str> {
        self.space_id.as_deref()
    }
    /// <p>The maximum number of contributors to include in the response.</p>
    pub fn max_contributors(&self) -> ::std::option::Option<i32> {
        self.max_contributors
    }
}
impl DescribeSpaceInput {
    /// Creates a new builder-style object to manufacture [`DescribeSpaceInput`](crate::operation::describe_space::DescribeSpaceInput).
    pub fn builder() -> crate::operation::describe_space::builders::DescribeSpaceInputBuilder {
        crate::operation::describe_space::builders::DescribeSpaceInputBuilder::default()
    }
}

/// A builder for [`DescribeSpaceInput`](crate::operation::describe_space::DescribeSpaceInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeSpaceInputBuilder {
    pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
    pub(crate) space_id: ::std::option::Option<::std::string::String>,
    pub(crate) max_contributors: ::std::option::Option<i32>,
}
impl DescribeSpaceInputBuilder {
    /// <p>The ID of the Amazon Web Services account that contains the space.</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 space.</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 space.</p>
    pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.aws_account_id
    }
    /// <p>The ID of the space that you want to describe.</p>
    /// This field is required.
    pub fn space_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.space_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the space that you want to describe.</p>
    pub fn set_space_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.space_id = input;
        self
    }
    /// <p>The ID of the space that you want to describe.</p>
    pub fn get_space_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.space_id
    }
    /// <p>The maximum number of contributors to include in the response.</p>
    pub fn max_contributors(mut self, input: i32) -> Self {
        self.max_contributors = ::std::option::Option::Some(input);
        self
    }
    /// <p>The maximum number of contributors to include in the response.</p>
    pub fn set_max_contributors(mut self, input: ::std::option::Option<i32>) -> Self {
        self.max_contributors = input;
        self
    }
    /// <p>The maximum number of contributors to include in the response.</p>
    pub fn get_max_contributors(&self) -> &::std::option::Option<i32> {
        &self.max_contributors
    }
    /// Consumes the builder and constructs a [`DescribeSpaceInput`](crate::operation::describe_space::DescribeSpaceInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_space::DescribeSpaceInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::describe_space::DescribeSpaceInput {
            aws_account_id: self.aws_account_id,
            space_id: self.space_id,
            max_contributors: self.max_contributors,
        })
    }
}