aws-sdk-eks 1.128.0

AWS SDK for Amazon Elastic Kubernetes Service
Documentation
// 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 }
    }
}