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.

/// <p>A structure that defines the Amazon Redshift connect service integration scope.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Connect {
    /// <p>Determines whether the Amazon Redshift connect integration is enabled or disabled for the application.</p>
    pub authorization: ::std::option::Option<crate::types::ServiceAuthorization>,
}
impl Connect {
    /// <p>Determines whether the Amazon Redshift connect integration is enabled or disabled for the application.</p>
    pub fn authorization(&self) -> ::std::option::Option<&crate::types::ServiceAuthorization> {
        self.authorization.as_ref()
    }
}
impl Connect {
    /// Creates a new builder-style object to manufacture [`Connect`](crate::types::Connect).
    pub fn builder() -> crate::types::builders::ConnectBuilder {
        crate::types::builders::ConnectBuilder::default()
    }
}

/// A builder for [`Connect`](crate::types::Connect).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ConnectBuilder {
    pub(crate) authorization: ::std::option::Option<crate::types::ServiceAuthorization>,
}
impl ConnectBuilder {
    /// <p>Determines whether the Amazon Redshift connect integration is enabled or disabled for the application.</p>
    /// This field is required.
    pub fn authorization(mut self, input: crate::types::ServiceAuthorization) -> Self {
        self.authorization = ::std::option::Option::Some(input);
        self
    }
    /// <p>Determines whether the Amazon Redshift connect integration is enabled or disabled for the application.</p>
    pub fn set_authorization(mut self, input: ::std::option::Option<crate::types::ServiceAuthorization>) -> Self {
        self.authorization = input;
        self
    }
    /// <p>Determines whether the Amazon Redshift connect integration is enabled or disabled for the application.</p>
    pub fn get_authorization(&self) -> &::std::option::Option<crate::types::ServiceAuthorization> {
        &self.authorization
    }
    /// Consumes the builder and constructs a [`Connect`](crate::types::Connect).
    pub fn build(self) -> crate::types::Connect {
        crate::types::Connect {
            authorization: self.authorization,
        }
    }
}