aws-sdk-quicksight 1.134.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 CreateFolderMembershipInput {
    /// <p>The ID for the Amazon Web Services account that contains the folder.</p>
    pub aws_account_id: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the folder.</p>
    pub folder_id: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the asset that you want to add to the folder.</p>
    pub member_id: ::std::option::Option<::std::string::String>,
    /// <p>The member type of the asset that you want to add to a folder.</p>
    pub member_type: ::std::option::Option<crate::types::MemberType>,
}
impl CreateFolderMembershipInput {
    /// <p>The ID for the Amazon Web Services account that contains the folder.</p>
    pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
        self.aws_account_id.as_deref()
    }
    /// <p>The ID of the folder.</p>
    pub fn folder_id(&self) -> ::std::option::Option<&str> {
        self.folder_id.as_deref()
    }
    /// <p>The ID of the asset that you want to add to the folder.</p>
    pub fn member_id(&self) -> ::std::option::Option<&str> {
        self.member_id.as_deref()
    }
    /// <p>The member type of the asset that you want to add to a folder.</p>
    pub fn member_type(&self) -> ::std::option::Option<&crate::types::MemberType> {
        self.member_type.as_ref()
    }
}
impl CreateFolderMembershipInput {
    /// Creates a new builder-style object to manufacture [`CreateFolderMembershipInput`](crate::operation::create_folder_membership::CreateFolderMembershipInput).
    pub fn builder() -> crate::operation::create_folder_membership::builders::CreateFolderMembershipInputBuilder {
        crate::operation::create_folder_membership::builders::CreateFolderMembershipInputBuilder::default()
    }
}

/// A builder for [`CreateFolderMembershipInput`](crate::operation::create_folder_membership::CreateFolderMembershipInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateFolderMembershipInputBuilder {
    pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
    pub(crate) folder_id: ::std::option::Option<::std::string::String>,
    pub(crate) member_id: ::std::option::Option<::std::string::String>,
    pub(crate) member_type: ::std::option::Option<crate::types::MemberType>,
}
impl CreateFolderMembershipInputBuilder {
    /// <p>The ID for the Amazon Web Services account that contains the folder.</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 for the Amazon Web Services account that contains the folder.</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 for the Amazon Web Services account that contains the folder.</p>
    pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.aws_account_id
    }
    /// <p>The ID of the folder.</p>
    /// This field is required.
    pub fn folder_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.folder_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the folder.</p>
    pub fn set_folder_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.folder_id = input;
        self
    }
    /// <p>The ID of the folder.</p>
    pub fn get_folder_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.folder_id
    }
    /// <p>The ID of the asset that you want to add to the folder.</p>
    /// This field is required.
    pub fn member_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.member_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the asset that you want to add to the folder.</p>
    pub fn set_member_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.member_id = input;
        self
    }
    /// <p>The ID of the asset that you want to add to the folder.</p>
    pub fn get_member_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.member_id
    }
    /// <p>The member type of the asset that you want to add to a folder.</p>
    /// This field is required.
    pub fn member_type(mut self, input: crate::types::MemberType) -> Self {
        self.member_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The member type of the asset that you want to add to a folder.</p>
    pub fn set_member_type(mut self, input: ::std::option::Option<crate::types::MemberType>) -> Self {
        self.member_type = input;
        self
    }
    /// <p>The member type of the asset that you want to add to a folder.</p>
    pub fn get_member_type(&self) -> &::std::option::Option<crate::types::MemberType> {
        &self.member_type
    }
    /// Consumes the builder and constructs a [`CreateFolderMembershipInput`](crate::operation::create_folder_membership::CreateFolderMembershipInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::create_folder_membership::CreateFolderMembershipInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::create_folder_membership::CreateFolderMembershipInput {
            aws_account_id: self.aws_account_id,
            folder_id: self.folder_id,
            member_id: self.member_id,
            member_type: self.member_type,
        })
    }
}