aws-sdk-redshift 1.106.0

AWS SDK for Amazon Redshift
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 UpdatePartnerStatusInput {
    /// <p>The Amazon Web Services account ID that owns the cluster.</p>
    pub account_id: ::std::option::Option<::std::string::String>,
    /// <p>The cluster identifier of the cluster whose partner integration status is being updated.</p>
    pub cluster_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The name of the database whose partner integration status is being updated.</p>
    pub database_name: ::std::option::Option<::std::string::String>,
    /// <p>The name of the partner whose integration status is being updated.</p>
    pub partner_name: ::std::option::Option<::std::string::String>,
    /// <p>The value of the updated status.</p>
    pub status: ::std::option::Option<crate::types::PartnerIntegrationStatus>,
    /// <p>The status message provided by the partner.</p>
    pub status_message: ::std::option::Option<::std::string::String>,
}
impl UpdatePartnerStatusInput {
    /// <p>The Amazon Web Services account ID that owns the cluster.</p>
    pub fn account_id(&self) -> ::std::option::Option<&str> {
        self.account_id.as_deref()
    }
    /// <p>The cluster identifier of the cluster whose partner integration status is being updated.</p>
    pub fn cluster_identifier(&self) -> ::std::option::Option<&str> {
        self.cluster_identifier.as_deref()
    }
    /// <p>The name of the database whose partner integration status is being updated.</p>
    pub fn database_name(&self) -> ::std::option::Option<&str> {
        self.database_name.as_deref()
    }
    /// <p>The name of the partner whose integration status is being updated.</p>
    pub fn partner_name(&self) -> ::std::option::Option<&str> {
        self.partner_name.as_deref()
    }
    /// <p>The value of the updated status.</p>
    pub fn status(&self) -> ::std::option::Option<&crate::types::PartnerIntegrationStatus> {
        self.status.as_ref()
    }
    /// <p>The status message provided by the partner.</p>
    pub fn status_message(&self) -> ::std::option::Option<&str> {
        self.status_message.as_deref()
    }
}
impl UpdatePartnerStatusInput {
    /// Creates a new builder-style object to manufacture [`UpdatePartnerStatusInput`](crate::operation::update_partner_status::UpdatePartnerStatusInput).
    pub fn builder() -> crate::operation::update_partner_status::builders::UpdatePartnerStatusInputBuilder {
        crate::operation::update_partner_status::builders::UpdatePartnerStatusInputBuilder::default()
    }
}

/// A builder for [`UpdatePartnerStatusInput`](crate::operation::update_partner_status::UpdatePartnerStatusInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdatePartnerStatusInputBuilder {
    pub(crate) account_id: ::std::option::Option<::std::string::String>,
    pub(crate) cluster_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) database_name: ::std::option::Option<::std::string::String>,
    pub(crate) partner_name: ::std::option::Option<::std::string::String>,
    pub(crate) status: ::std::option::Option<crate::types::PartnerIntegrationStatus>,
    pub(crate) status_message: ::std::option::Option<::std::string::String>,
}
impl UpdatePartnerStatusInputBuilder {
    /// <p>The Amazon Web Services account ID that owns the cluster.</p>
    /// This field is required.
    pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.account_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Web Services account ID that owns the cluster.</p>
    pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.account_id = input;
        self
    }
    /// <p>The Amazon Web Services account ID that owns the cluster.</p>
    pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.account_id
    }
    /// <p>The cluster identifier of the cluster whose partner integration status is being updated.</p>
    /// This field is required.
    pub fn cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.cluster_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The cluster identifier of the cluster whose partner integration status is being updated.</p>
    pub fn set_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.cluster_identifier = input;
        self
    }
    /// <p>The cluster identifier of the cluster whose partner integration status is being updated.</p>
    pub fn get_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.cluster_identifier
    }
    /// <p>The name of the database whose partner integration status is being updated.</p>
    /// This field is required.
    pub fn database_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.database_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the database whose partner integration status is being updated.</p>
    pub fn set_database_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.database_name = input;
        self
    }
    /// <p>The name of the database whose partner integration status is being updated.</p>
    pub fn get_database_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.database_name
    }
    /// <p>The name of the partner whose integration status is being updated.</p>
    /// This field is required.
    pub fn partner_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.partner_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the partner whose integration status is being updated.</p>
    pub fn set_partner_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.partner_name = input;
        self
    }
    /// <p>The name of the partner whose integration status is being updated.</p>
    pub fn get_partner_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.partner_name
    }
    /// <p>The value of the updated status.</p>
    /// This field is required.
    pub fn status(mut self, input: crate::types::PartnerIntegrationStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The value of the updated status.</p>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::PartnerIntegrationStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The value of the updated status.</p>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::PartnerIntegrationStatus> {
        &self.status
    }
    /// <p>The status message provided by the partner.</p>
    pub fn status_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.status_message = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The status message provided by the partner.</p>
    pub fn set_status_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.status_message = input;
        self
    }
    /// <p>The status message provided by the partner.</p>
    pub fn get_status_message(&self) -> &::std::option::Option<::std::string::String> {
        &self.status_message
    }
    /// Consumes the builder and constructs a [`UpdatePartnerStatusInput`](crate::operation::update_partner_status::UpdatePartnerStatusInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_partner_status::UpdatePartnerStatusInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::update_partner_status::UpdatePartnerStatusInput {
            account_id: self.account_id,
            cluster_identifier: self.cluster_identifier,
            database_name: self.database_name,
            partner_name: self.partner_name,
            status: self.status,
            status_message: self.status_message,
        })
    }
}