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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>An object representing an identity provider.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Identity {
/// <p>An object representing the <a href="https://openid.net/connect/">OpenID Connect</a> identity provider information.</p>
pub oidc: ::std::option::Option<crate::types::Oidc>,
}
impl Identity {
/// <p>An object representing the <a href="https://openid.net/connect/">OpenID Connect</a> identity provider information.</p>
pub fn oidc(&self) -> ::std::option::Option<&crate::types::Oidc> {
self.oidc.as_ref()
}
}
impl Identity {
/// Creates a new builder-style object to manufacture [`Identity`](crate::types::Identity).
pub fn builder() -> crate::types::builders::IdentityBuilder {
crate::types::builders::IdentityBuilder::default()
}
}
/// A builder for [`Identity`](crate::types::Identity).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct IdentityBuilder {
pub(crate) oidc: ::std::option::Option<crate::types::Oidc>,
}
impl IdentityBuilder {
/// <p>An object representing the <a href="https://openid.net/connect/">OpenID Connect</a> identity provider information.</p>
pub fn oidc(mut self, input: crate::types::Oidc) -> Self {
self.oidc = ::std::option::Option::Some(input);
self
}
/// <p>An object representing the <a href="https://openid.net/connect/">OpenID Connect</a> identity provider information.</p>
pub fn set_oidc(mut self, input: ::std::option::Option<crate::types::Oidc>) -> Self {
self.oidc = input;
self
}
/// <p>An object representing the <a href="https://openid.net/connect/">OpenID Connect</a> identity provider information.</p>
pub fn get_oidc(&self) -> &::std::option::Option<crate::types::Oidc> {
&self.oidc
}
/// Consumes the builder and constructs a [`Identity`](crate::types::Identity).
pub fn build(self) -> crate::types::Identity {
crate::types::Identity { oidc: self.oidc }
}
}