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
111
112
113
114
115
116
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Contains the authorization parameters to use for the connection.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ConnectionAuthResponseParameters {
    /// <p>The authorization parameters for Basic authorization.</p>
    pub basic_auth_parameters: ::std::option::Option<crate::types::ConnectionBasicAuthResponseParameters>,
    /// <p>The OAuth parameters to use for authorization.</p>
    pub o_auth_parameters: ::std::option::Option<crate::types::ConnectionOAuthResponseParameters>,
    /// <p>The API Key parameters to use for authorization.</p>
    pub api_key_auth_parameters: ::std::option::Option<crate::types::ConnectionApiKeyAuthResponseParameters>,
    /// <p>Additional parameters for the connection that are passed through with every invocation to the HTTP endpoint.</p>
    pub invocation_http_parameters: ::std::option::Option<crate::types::ConnectionHttpParameters>,
}
impl ConnectionAuthResponseParameters {
    /// <p>The authorization parameters for Basic authorization.</p>
    pub fn basic_auth_parameters(&self) -> ::std::option::Option<&crate::types::ConnectionBasicAuthResponseParameters> {
        self.basic_auth_parameters.as_ref()
    }
    /// <p>The OAuth parameters to use for authorization.</p>
    pub fn o_auth_parameters(&self) -> ::std::option::Option<&crate::types::ConnectionOAuthResponseParameters> {
        self.o_auth_parameters.as_ref()
    }
    /// <p>The API Key parameters to use for authorization.</p>
    pub fn api_key_auth_parameters(&self) -> ::std::option::Option<&crate::types::ConnectionApiKeyAuthResponseParameters> {
        self.api_key_auth_parameters.as_ref()
    }
    /// <p>Additional parameters for the connection that are passed through with every invocation to the HTTP endpoint.</p>
    pub fn invocation_http_parameters(&self) -> ::std::option::Option<&crate::types::ConnectionHttpParameters> {
        self.invocation_http_parameters.as_ref()
    }
}
impl ConnectionAuthResponseParameters {
    /// Creates a new builder-style object to manufacture [`ConnectionAuthResponseParameters`](crate::types::ConnectionAuthResponseParameters).
    pub fn builder() -> crate::types::builders::ConnectionAuthResponseParametersBuilder {
        crate::types::builders::ConnectionAuthResponseParametersBuilder::default()
    }
}

/// A builder for [`ConnectionAuthResponseParameters`](crate::types::ConnectionAuthResponseParameters).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ConnectionAuthResponseParametersBuilder {
    pub(crate) basic_auth_parameters: ::std::option::Option<crate::types::ConnectionBasicAuthResponseParameters>,
    pub(crate) o_auth_parameters: ::std::option::Option<crate::types::ConnectionOAuthResponseParameters>,
    pub(crate) api_key_auth_parameters: ::std::option::Option<crate::types::ConnectionApiKeyAuthResponseParameters>,
    pub(crate) invocation_http_parameters: ::std::option::Option<crate::types::ConnectionHttpParameters>,
}
impl ConnectionAuthResponseParametersBuilder {
    /// <p>The authorization parameters for Basic authorization.</p>
    pub fn basic_auth_parameters(mut self, input: crate::types::ConnectionBasicAuthResponseParameters) -> Self {
        self.basic_auth_parameters = ::std::option::Option::Some(input);
        self
    }
    /// <p>The authorization parameters for Basic authorization.</p>
    pub fn set_basic_auth_parameters(mut self, input: ::std::option::Option<crate::types::ConnectionBasicAuthResponseParameters>) -> Self {
        self.basic_auth_parameters = input;
        self
    }
    /// <p>The authorization parameters for Basic authorization.</p>
    pub fn get_basic_auth_parameters(&self) -> &::std::option::Option<crate::types::ConnectionBasicAuthResponseParameters> {
        &self.basic_auth_parameters
    }
    /// <p>The OAuth parameters to use for authorization.</p>
    pub fn o_auth_parameters(mut self, input: crate::types::ConnectionOAuthResponseParameters) -> Self {
        self.o_auth_parameters = ::std::option::Option::Some(input);
        self
    }
    /// <p>The OAuth parameters to use for authorization.</p>
    pub fn set_o_auth_parameters(mut self, input: ::std::option::Option<crate::types::ConnectionOAuthResponseParameters>) -> Self {
        self.o_auth_parameters = input;
        self
    }
    /// <p>The OAuth parameters to use for authorization.</p>
    pub fn get_o_auth_parameters(&self) -> &::std::option::Option<crate::types::ConnectionOAuthResponseParameters> {
        &self.o_auth_parameters
    }
    /// <p>The API Key parameters to use for authorization.</p>
    pub fn api_key_auth_parameters(mut self, input: crate::types::ConnectionApiKeyAuthResponseParameters) -> Self {
        self.api_key_auth_parameters = ::std::option::Option::Some(input);
        self
    }
    /// <p>The API Key parameters to use for authorization.</p>
    pub fn set_api_key_auth_parameters(mut self, input: ::std::option::Option<crate::types::ConnectionApiKeyAuthResponseParameters>) -> Self {
        self.api_key_auth_parameters = input;
        self
    }
    /// <p>The API Key parameters to use for authorization.</p>
    pub fn get_api_key_auth_parameters(&self) -> &::std::option::Option<crate::types::ConnectionApiKeyAuthResponseParameters> {
        &self.api_key_auth_parameters
    }
    /// <p>Additional parameters for the connection that are passed through with every invocation to the HTTP endpoint.</p>
    pub fn invocation_http_parameters(mut self, input: crate::types::ConnectionHttpParameters) -> Self {
        self.invocation_http_parameters = ::std::option::Option::Some(input);
        self
    }
    /// <p>Additional parameters for the connection that are passed through with every invocation to the HTTP endpoint.</p>
    pub fn set_invocation_http_parameters(mut self, input: ::std::option::Option<crate::types::ConnectionHttpParameters>) -> Self {
        self.invocation_http_parameters = input;
        self
    }
    /// <p>Additional parameters for the connection that are passed through with every invocation to the HTTP endpoint.</p>
    pub fn get_invocation_http_parameters(&self) -> &::std::option::Option<crate::types::ConnectionHttpParameters> {
        &self.invocation_http_parameters
    }
    /// Consumes the builder and constructs a [`ConnectionAuthResponseParameters`](crate::types::ConnectionAuthResponseParameters).
    pub fn build(self) -> crate::types::ConnectionAuthResponseParameters {
        crate::types::ConnectionAuthResponseParameters {
            basic_auth_parameters: self.basic_auth_parameters,
            o_auth_parameters: self.o_auth_parameters,
            api_key_auth_parameters: self.api_key_auth_parameters,
            invocation_http_parameters: self.invocation_http_parameters,
        }
    }
}