1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// 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,
}
}
}