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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>The access configuration for the cluster.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct AccessConfigResponse {
    /// <p>Specifies whether or not the cluster creator IAM principal was set as a cluster admin access entry during cluster creation time.</p>
    pub bootstrap_cluster_creator_admin_permissions: ::std::option::Option<bool>,
    /// <p>The current authentication mode of the cluster.</p>
    pub authentication_mode: ::std::option::Option<crate::types::AuthenticationMode>,
}
impl AccessConfigResponse {
    /// <p>Specifies whether or not the cluster creator IAM principal was set as a cluster admin access entry during cluster creation time.</p>
    pub fn bootstrap_cluster_creator_admin_permissions(&self) -> ::std::option::Option<bool> {
        self.bootstrap_cluster_creator_admin_permissions
    }
    /// <p>The current authentication mode of the cluster.</p>
    pub fn authentication_mode(&self) -> ::std::option::Option<&crate::types::AuthenticationMode> {
        self.authentication_mode.as_ref()
    }
}
impl AccessConfigResponse {
    /// Creates a new builder-style object to manufacture [`AccessConfigResponse`](crate::types::AccessConfigResponse).
    pub fn builder() -> crate::types::builders::AccessConfigResponseBuilder {
        crate::types::builders::AccessConfigResponseBuilder::default()
    }
}

/// A builder for [`AccessConfigResponse`](crate::types::AccessConfigResponse).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct AccessConfigResponseBuilder {
    pub(crate) bootstrap_cluster_creator_admin_permissions: ::std::option::Option<bool>,
    pub(crate) authentication_mode: ::std::option::Option<crate::types::AuthenticationMode>,
}
impl AccessConfigResponseBuilder {
    /// <p>Specifies whether or not the cluster creator IAM principal was set as a cluster admin access entry during cluster creation time.</p>
    pub fn bootstrap_cluster_creator_admin_permissions(mut self, input: bool) -> Self {
        self.bootstrap_cluster_creator_admin_permissions = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies whether or not the cluster creator IAM principal was set as a cluster admin access entry during cluster creation time.</p>
    pub fn set_bootstrap_cluster_creator_admin_permissions(mut self, input: ::std::option::Option<bool>) -> Self {
        self.bootstrap_cluster_creator_admin_permissions = input;
        self
    }
    /// <p>Specifies whether or not the cluster creator IAM principal was set as a cluster admin access entry during cluster creation time.</p>
    pub fn get_bootstrap_cluster_creator_admin_permissions(&self) -> &::std::option::Option<bool> {
        &self.bootstrap_cluster_creator_admin_permissions
    }
    /// <p>The current authentication mode of the cluster.</p>
    pub fn authentication_mode(mut self, input: crate::types::AuthenticationMode) -> Self {
        self.authentication_mode = ::std::option::Option::Some(input);
        self
    }
    /// <p>The current authentication mode of the cluster.</p>
    pub fn set_authentication_mode(mut self, input: ::std::option::Option<crate::types::AuthenticationMode>) -> Self {
        self.authentication_mode = input;
        self
    }
    /// <p>The current authentication mode of the cluster.</p>
    pub fn get_authentication_mode(&self) -> &::std::option::Option<crate::types::AuthenticationMode> {
        &self.authentication_mode
    }
    /// Consumes the builder and constructs a [`AccessConfigResponse`](crate::types::AccessConfigResponse).
    pub fn build(self) -> crate::types::AccessConfigResponse {
        crate::types::AccessConfigResponse {
            bootstrap_cluster_creator_admin_permissions: self.bootstrap_cluster_creator_admin_permissions,
            authentication_mode: self.authentication_mode,
        }
    }
}