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)]
pub struct UpdateKnowledgeBaseInput {
    /// <p>The ID of the Amazon Web Services account that contains the knowledge base.</p>
    pub aws_account_id: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier for the knowledge base.</p>
    pub knowledge_base_id: ::std::option::Option<::std::string::String>,
    /// <p>The name of the knowledge base. If you don't specify a name, the existing name is retained.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>A description for the knowledge base. If you don't specify a description, the existing description is retained.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>The configuration settings for a knowledge base.</p>
    pub knowledge_base_configuration: ::std::option::Option<crate::types::KnowledgeBaseConfiguration>,
    /// <p>The configuration for media extraction from knowledge base documents.</p>
    pub media_extraction_configuration: ::std::option::Option<crate::types::MediaExtractionConfiguration>,
    /// <p>Specifies whether email notifications are enabled for ingestion failures.</p>
    pub is_email_notification_opted_for_ingestion_failures: ::std::option::Option<bool>,
    /// <p>The access control configuration for the knowledge base. If you don't specify this parameter, the existing setting is retained.</p>
    pub access_control_configuration: ::std::option::Option<crate::types::AccessControlConfiguration>,
}
impl UpdateKnowledgeBaseInput {
    /// <p>The ID of the Amazon Web Services account that contains the knowledge base.</p>
    pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
        self.aws_account_id.as_deref()
    }
    /// <p>The unique identifier for the knowledge base.</p>
    pub fn knowledge_base_id(&self) -> ::std::option::Option<&str> {
        self.knowledge_base_id.as_deref()
    }
    /// <p>The name of the knowledge base. If you don't specify a name, the existing name is retained.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>A description for the knowledge base. If you don't specify a description, the existing description is retained.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>The configuration settings for a knowledge base.</p>
    pub fn knowledge_base_configuration(&self) -> ::std::option::Option<&crate::types::KnowledgeBaseConfiguration> {
        self.knowledge_base_configuration.as_ref()
    }
    /// <p>The configuration for media extraction from knowledge base documents.</p>
    pub fn media_extraction_configuration(&self) -> ::std::option::Option<&crate::types::MediaExtractionConfiguration> {
        self.media_extraction_configuration.as_ref()
    }
    /// <p>Specifies whether email notifications are enabled for ingestion failures.</p>
    pub fn is_email_notification_opted_for_ingestion_failures(&self) -> ::std::option::Option<bool> {
        self.is_email_notification_opted_for_ingestion_failures
    }
    /// <p>The access control configuration for the knowledge base. If you don't specify this parameter, the existing setting is retained.</p>
    pub fn access_control_configuration(&self) -> ::std::option::Option<&crate::types::AccessControlConfiguration> {
        self.access_control_configuration.as_ref()
    }
}
impl ::std::fmt::Debug for UpdateKnowledgeBaseInput {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("UpdateKnowledgeBaseInput");
        formatter.field("aws_account_id", &self.aws_account_id);
        formatter.field("knowledge_base_id", &self.knowledge_base_id);
        formatter.field("name", &self.name);
        formatter.field("description", &self.description);
        formatter.field("knowledge_base_configuration", &"*** Sensitive Data Redacted ***");
        formatter.field("media_extraction_configuration", &self.media_extraction_configuration);
        formatter.field(
            "is_email_notification_opted_for_ingestion_failures",
            &self.is_email_notification_opted_for_ingestion_failures,
        );
        formatter.field("access_control_configuration", &self.access_control_configuration);
        formatter.finish()
    }
}
impl UpdateKnowledgeBaseInput {
    /// Creates a new builder-style object to manufacture [`UpdateKnowledgeBaseInput`](crate::operation::update_knowledge_base::UpdateKnowledgeBaseInput).
    pub fn builder() -> crate::operation::update_knowledge_base::builders::UpdateKnowledgeBaseInputBuilder {
        crate::operation::update_knowledge_base::builders::UpdateKnowledgeBaseInputBuilder::default()
    }
}

/// A builder for [`UpdateKnowledgeBaseInput`](crate::operation::update_knowledge_base::UpdateKnowledgeBaseInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct UpdateKnowledgeBaseInputBuilder {
    pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
    pub(crate) knowledge_base_id: ::std::option::Option<::std::string::String>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) knowledge_base_configuration: ::std::option::Option<crate::types::KnowledgeBaseConfiguration>,
    pub(crate) media_extraction_configuration: ::std::option::Option<crate::types::MediaExtractionConfiguration>,
    pub(crate) is_email_notification_opted_for_ingestion_failures: ::std::option::Option<bool>,
    pub(crate) access_control_configuration: ::std::option::Option<crate::types::AccessControlConfiguration>,
}
impl UpdateKnowledgeBaseInputBuilder {
    /// <p>The ID of the Amazon Web Services account that contains the knowledge base.</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 knowledge base.</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 knowledge base.</p>
    pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.aws_account_id
    }
    /// <p>The unique identifier for the knowledge base.</p>
    /// This field is required.
    pub fn knowledge_base_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.knowledge_base_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier for the knowledge base.</p>
    pub fn set_knowledge_base_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.knowledge_base_id = input;
        self
    }
    /// <p>The unique identifier for the knowledge base.</p>
    pub fn get_knowledge_base_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.knowledge_base_id
    }
    /// <p>The name of the knowledge base. If you don't specify a name, the existing name is retained.</p>
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the knowledge base. If you don't specify a name, the existing name is retained.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name of the knowledge base. If you don't specify a name, the existing name is retained.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>A description for the knowledge base. If you don't specify a description, the existing description is retained.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A description for the knowledge base. If you don't specify a description, the existing description is retained.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>A description for the knowledge base. If you don't specify a description, the existing description is retained.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// <p>The configuration settings for a knowledge base.</p>
    pub fn knowledge_base_configuration(mut self, input: crate::types::KnowledgeBaseConfiguration) -> Self {
        self.knowledge_base_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>The configuration settings for a knowledge base.</p>
    pub fn set_knowledge_base_configuration(mut self, input: ::std::option::Option<crate::types::KnowledgeBaseConfiguration>) -> Self {
        self.knowledge_base_configuration = input;
        self
    }
    /// <p>The configuration settings for a knowledge base.</p>
    pub fn get_knowledge_base_configuration(&self) -> &::std::option::Option<crate::types::KnowledgeBaseConfiguration> {
        &self.knowledge_base_configuration
    }
    /// <p>The configuration for media extraction from knowledge base documents.</p>
    pub fn media_extraction_configuration(mut self, input: crate::types::MediaExtractionConfiguration) -> Self {
        self.media_extraction_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>The configuration for media extraction from knowledge base documents.</p>
    pub fn set_media_extraction_configuration(mut self, input: ::std::option::Option<crate::types::MediaExtractionConfiguration>) -> Self {
        self.media_extraction_configuration = input;
        self
    }
    /// <p>The configuration for media extraction from knowledge base documents.</p>
    pub fn get_media_extraction_configuration(&self) -> &::std::option::Option<crate::types::MediaExtractionConfiguration> {
        &self.media_extraction_configuration
    }
    /// <p>Specifies whether email notifications are enabled for ingestion failures.</p>
    pub fn is_email_notification_opted_for_ingestion_failures(mut self, input: bool) -> Self {
        self.is_email_notification_opted_for_ingestion_failures = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies whether email notifications are enabled for ingestion failures.</p>
    pub fn set_is_email_notification_opted_for_ingestion_failures(mut self, input: ::std::option::Option<bool>) -> Self {
        self.is_email_notification_opted_for_ingestion_failures = input;
        self
    }
    /// <p>Specifies whether email notifications are enabled for ingestion failures.</p>
    pub fn get_is_email_notification_opted_for_ingestion_failures(&self) -> &::std::option::Option<bool> {
        &self.is_email_notification_opted_for_ingestion_failures
    }
    /// <p>The access control configuration for the knowledge base. If you don't specify this parameter, the existing setting is retained.</p>
    pub fn access_control_configuration(mut self, input: crate::types::AccessControlConfiguration) -> Self {
        self.access_control_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>The access control configuration for the knowledge base. If you don't specify this parameter, the existing setting is retained.</p>
    pub fn set_access_control_configuration(mut self, input: ::std::option::Option<crate::types::AccessControlConfiguration>) -> Self {
        self.access_control_configuration = input;
        self
    }
    /// <p>The access control configuration for the knowledge base. If you don't specify this parameter, the existing setting is retained.</p>
    pub fn get_access_control_configuration(&self) -> &::std::option::Option<crate::types::AccessControlConfiguration> {
        &self.access_control_configuration
    }
    /// Consumes the builder and constructs a [`UpdateKnowledgeBaseInput`](crate::operation::update_knowledge_base::UpdateKnowledgeBaseInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_knowledge_base::UpdateKnowledgeBaseInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::update_knowledge_base::UpdateKnowledgeBaseInput {
            aws_account_id: self.aws_account_id,
            knowledge_base_id: self.knowledge_base_id,
            name: self.name,
            description: self.description,
            knowledge_base_configuration: self.knowledge_base_configuration,
            media_extraction_configuration: self.media_extraction_configuration,
            is_email_notification_opted_for_ingestion_failures: self.is_email_notification_opted_for_ingestion_failures,
            access_control_configuration: self.access_control_configuration,
        })
    }
}
impl ::std::fmt::Debug for UpdateKnowledgeBaseInputBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("UpdateKnowledgeBaseInputBuilder");
        formatter.field("aws_account_id", &self.aws_account_id);
        formatter.field("knowledge_base_id", &self.knowledge_base_id);
        formatter.field("name", &self.name);
        formatter.field("description", &self.description);
        formatter.field("knowledge_base_configuration", &"*** Sensitive Data Redacted ***");
        formatter.field("media_extraction_configuration", &self.media_extraction_configuration);
        formatter.field(
            "is_email_notification_opted_for_ingestion_failures",
            &self.is_email_notification_opted_for_ingestion_failures,
        );
        formatter.field("access_control_configuration", &self.access_control_configuration);
        formatter.finish()
    }
}