aws-sdk-quicksight 1.133.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 DescribeKeyRegistrationInput {
    /// <p>The ID of the Amazon Web Services account that contains the customer managed key registration that you want to describe.</p>
    pub aws_account_id: ::std::option::Option<::std::string::String>,
    /// <p>Determines whether the request returns the default key only.</p>
    pub default_key_only: ::std::option::Option<bool>,
}
impl DescribeKeyRegistrationInput {
    /// <p>The ID of the Amazon Web Services account that contains the customer managed key registration that you want to describe.</p>
    pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
        self.aws_account_id.as_deref()
    }
    /// <p>Determines whether the request returns the default key only.</p>
    pub fn default_key_only(&self) -> ::std::option::Option<bool> {
        self.default_key_only
    }
}
impl DescribeKeyRegistrationInput {
    /// Creates a new builder-style object to manufacture [`DescribeKeyRegistrationInput`](crate::operation::describe_key_registration::DescribeKeyRegistrationInput).
    pub fn builder() -> crate::operation::describe_key_registration::builders::DescribeKeyRegistrationInputBuilder {
        crate::operation::describe_key_registration::builders::DescribeKeyRegistrationInputBuilder::default()
    }
}

/// A builder for [`DescribeKeyRegistrationInput`](crate::operation::describe_key_registration::DescribeKeyRegistrationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeKeyRegistrationInputBuilder {
    pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
    pub(crate) default_key_only: ::std::option::Option<bool>,
}
impl DescribeKeyRegistrationInputBuilder {
    /// <p>The ID of the Amazon Web Services account that contains the customer managed key registration that you want to describe.</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 customer managed key registration that you want to describe.</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 customer managed key registration that you want to describe.</p>
    pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.aws_account_id
    }
    /// <p>Determines whether the request returns the default key only.</p>
    pub fn default_key_only(mut self, input: bool) -> Self {
        self.default_key_only = ::std::option::Option::Some(input);
        self
    }
    /// <p>Determines whether the request returns the default key only.</p>
    pub fn set_default_key_only(mut self, input: ::std::option::Option<bool>) -> Self {
        self.default_key_only = input;
        self
    }
    /// <p>Determines whether the request returns the default key only.</p>
    pub fn get_default_key_only(&self) -> &::std::option::Option<bool> {
        &self.default_key_only
    }
    /// Consumes the builder and constructs a [`DescribeKeyRegistrationInput`](crate::operation::describe_key_registration::DescribeKeyRegistrationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::describe_key_registration::DescribeKeyRegistrationInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::describe_key_registration::DescribeKeyRegistrationInput {
            aws_account_id: self.aws_account_id,
            default_key_only: self.default_key_only,
        })
    }
}