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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
// 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 GetConfigOutput {
    /// <p>The type of credentials.</p>
    pub config_type: ::std::option::Option<::std::string::String>,
    /// <p>The chrystoki.conf configuration file.</p>
    pub config_file: ::std::option::Option<::std::string::String>,
    /// <p>The certificate file containing the server.pem files of the HSMs.</p>
    pub config_cred: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl GetConfigOutput {
    /// <p>The type of credentials.</p>
    pub fn config_type(&self) -> ::std::option::Option<&str> {
        self.config_type.as_deref()
    }
    /// <p>The chrystoki.conf configuration file.</p>
    pub fn config_file(&self) -> ::std::option::Option<&str> {
        self.config_file.as_deref()
    }
    /// <p>The certificate file containing the server.pem files of the HSMs.</p>
    pub fn config_cred(&self) -> ::std::option::Option<&str> {
        self.config_cred.as_deref()
    }
}
impl ::aws_types::request_id::RequestId for GetConfigOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetConfigOutput {
    /// Creates a new builder-style object to manufacture [`GetConfigOutput`](crate::operation::get_config::GetConfigOutput).
    pub fn builder() -> crate::operation::get_config::builders::GetConfigOutputBuilder {
        crate::operation::get_config::builders::GetConfigOutputBuilder::default()
    }
}

/// A builder for [`GetConfigOutput`](crate::operation::get_config::GetConfigOutput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetConfigOutputBuilder {
    pub(crate) config_type: ::std::option::Option<::std::string::String>,
    pub(crate) config_file: ::std::option::Option<::std::string::String>,
    pub(crate) config_cred: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl GetConfigOutputBuilder {
    /// <p>The type of credentials.</p>
    pub fn config_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.config_type = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The type of credentials.</p>
    pub fn set_config_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.config_type = input;
        self
    }
    /// <p>The type of credentials.</p>
    pub fn get_config_type(&self) -> &::std::option::Option<::std::string::String> {
        &self.config_type
    }
    /// <p>The chrystoki.conf configuration file.</p>
    pub fn config_file(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.config_file = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The chrystoki.conf configuration file.</p>
    pub fn set_config_file(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.config_file = input;
        self
    }
    /// <p>The chrystoki.conf configuration file.</p>
    pub fn get_config_file(&self) -> &::std::option::Option<::std::string::String> {
        &self.config_file
    }
    /// <p>The certificate file containing the server.pem files of the HSMs.</p>
    pub fn config_cred(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.config_cred = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The certificate file containing the server.pem files of the HSMs.</p>
    pub fn set_config_cred(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.config_cred = input;
        self
    }
    /// <p>The certificate file containing the server.pem files of the HSMs.</p>
    pub fn get_config_cred(&self) -> &::std::option::Option<::std::string::String> {
        &self.config_cred
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`GetConfigOutput`](crate::operation::get_config::GetConfigOutput).
    pub fn build(self) -> crate::operation::get_config::GetConfigOutput {
        crate::operation::get_config::GetConfigOutput {
            config_type: self.config_type,
            config_file: self.config_file,
            config_cred: self.config_cred,
            _request_id: self._request_id,
        }
    }
}