aws-sdk-wickr 1.8.0

AWS SDK for AWS Wickr Admin API
Documentation
// 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)]
pub struct GetOidcInfoInput {
    /// <p>The ID of the Wickr network whose OIDC configuration will be retrieved.</p>
    pub network_id: ::std::option::Option<::std::string::String>,
    /// <p>The OAuth client ID for retrieving access tokens (optional).</p>
    pub client_id: ::std::option::Option<::std::string::String>,
    /// <p>The authorization code for retrieving access tokens (optional).</p>
    pub code: ::std::option::Option<::std::string::String>,
    /// <p>The OAuth grant type for retrieving access tokens (optional).</p>
    pub grant_type: ::std::option::Option<::std::string::String>,
    /// <p>The redirect URI for the OAuth flow (optional).</p>
    pub redirect_uri: ::std::option::Option<::std::string::String>,
    /// <p>The URL for the OIDC provider (optional).</p>
    pub url: ::std::option::Option<::std::string::String>,
    /// <p>The OAuth client secret for retrieving access tokens (optional).</p>
    pub client_secret: ::std::option::Option<::std::string::String>,
    /// <p>The PKCE code verifier for enhanced security in the OAuth flow (optional).</p>
    pub code_verifier: ::std::option::Option<::std::string::String>,
    /// <p>The CA certificate for secure communication with the OIDC provider (optional).</p>
    pub certificate: ::std::option::Option<::std::string::String>,
}
impl GetOidcInfoInput {
    /// <p>The ID of the Wickr network whose OIDC configuration will be retrieved.</p>
    pub fn network_id(&self) -> ::std::option::Option<&str> {
        self.network_id.as_deref()
    }
    /// <p>The OAuth client ID for retrieving access tokens (optional).</p>
    pub fn client_id(&self) -> ::std::option::Option<&str> {
        self.client_id.as_deref()
    }
    /// <p>The authorization code for retrieving access tokens (optional).</p>
    pub fn code(&self) -> ::std::option::Option<&str> {
        self.code.as_deref()
    }
    /// <p>The OAuth grant type for retrieving access tokens (optional).</p>
    pub fn grant_type(&self) -> ::std::option::Option<&str> {
        self.grant_type.as_deref()
    }
    /// <p>The redirect URI for the OAuth flow (optional).</p>
    pub fn redirect_uri(&self) -> ::std::option::Option<&str> {
        self.redirect_uri.as_deref()
    }
    /// <p>The URL for the OIDC provider (optional).</p>
    pub fn url(&self) -> ::std::option::Option<&str> {
        self.url.as_deref()
    }
    /// <p>The OAuth client secret for retrieving access tokens (optional).</p>
    pub fn client_secret(&self) -> ::std::option::Option<&str> {
        self.client_secret.as_deref()
    }
    /// <p>The PKCE code verifier for enhanced security in the OAuth flow (optional).</p>
    pub fn code_verifier(&self) -> ::std::option::Option<&str> {
        self.code_verifier.as_deref()
    }
    /// <p>The CA certificate for secure communication with the OIDC provider (optional).</p>
    pub fn certificate(&self) -> ::std::option::Option<&str> {
        self.certificate.as_deref()
    }
}
impl ::std::fmt::Debug for GetOidcInfoInput {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("GetOidcInfoInput");
        formatter.field("network_id", &self.network_id);
        formatter.field("client_id", &self.client_id);
        formatter.field("code", &self.code);
        formatter.field("grant_type", &self.grant_type);
        formatter.field("redirect_uri", &self.redirect_uri);
        formatter.field("url", &self.url);
        formatter.field("client_secret", &"*** Sensitive Data Redacted ***");
        formatter.field("code_verifier", &self.code_verifier);
        formatter.field("certificate", &self.certificate);
        formatter.finish()
    }
}
impl GetOidcInfoInput {
    /// Creates a new builder-style object to manufacture [`GetOidcInfoInput`](crate::operation::get_oidc_info::GetOidcInfoInput).
    pub fn builder() -> crate::operation::get_oidc_info::builders::GetOidcInfoInputBuilder {
        crate::operation::get_oidc_info::builders::GetOidcInfoInputBuilder::default()
    }
}

/// A builder for [`GetOidcInfoInput`](crate::operation::get_oidc_info::GetOidcInfoInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct GetOidcInfoInputBuilder {
    pub(crate) network_id: ::std::option::Option<::std::string::String>,
    pub(crate) client_id: ::std::option::Option<::std::string::String>,
    pub(crate) code: ::std::option::Option<::std::string::String>,
    pub(crate) grant_type: ::std::option::Option<::std::string::String>,
    pub(crate) redirect_uri: ::std::option::Option<::std::string::String>,
    pub(crate) url: ::std::option::Option<::std::string::String>,
    pub(crate) client_secret: ::std::option::Option<::std::string::String>,
    pub(crate) code_verifier: ::std::option::Option<::std::string::String>,
    pub(crate) certificate: ::std::option::Option<::std::string::String>,
}
impl GetOidcInfoInputBuilder {
    /// <p>The ID of the Wickr network whose OIDC configuration will be retrieved.</p>
    /// This field is required.
    pub fn network_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.network_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the Wickr network whose OIDC configuration will be retrieved.</p>
    pub fn set_network_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.network_id = input;
        self
    }
    /// <p>The ID of the Wickr network whose OIDC configuration will be retrieved.</p>
    pub fn get_network_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.network_id
    }
    /// <p>The OAuth client ID for retrieving access tokens (optional).</p>
    pub fn client_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.client_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The OAuth client ID for retrieving access tokens (optional).</p>
    pub fn set_client_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.client_id = input;
        self
    }
    /// <p>The OAuth client ID for retrieving access tokens (optional).</p>
    pub fn get_client_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.client_id
    }
    /// <p>The authorization code for retrieving access tokens (optional).</p>
    pub fn code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.code = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The authorization code for retrieving access tokens (optional).</p>
    pub fn set_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.code = input;
        self
    }
    /// <p>The authorization code for retrieving access tokens (optional).</p>
    pub fn get_code(&self) -> &::std::option::Option<::std::string::String> {
        &self.code
    }
    /// <p>The OAuth grant type for retrieving access tokens (optional).</p>
    pub fn grant_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.grant_type = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The OAuth grant type for retrieving access tokens (optional).</p>
    pub fn set_grant_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.grant_type = input;
        self
    }
    /// <p>The OAuth grant type for retrieving access tokens (optional).</p>
    pub fn get_grant_type(&self) -> &::std::option::Option<::std::string::String> {
        &self.grant_type
    }
    /// <p>The redirect URI for the OAuth flow (optional).</p>
    pub fn redirect_uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.redirect_uri = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The redirect URI for the OAuth flow (optional).</p>
    pub fn set_redirect_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.redirect_uri = input;
        self
    }
    /// <p>The redirect URI for the OAuth flow (optional).</p>
    pub fn get_redirect_uri(&self) -> &::std::option::Option<::std::string::String> {
        &self.redirect_uri
    }
    /// <p>The URL for the OIDC provider (optional).</p>
    pub fn url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.url = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The URL for the OIDC provider (optional).</p>
    pub fn set_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.url = input;
        self
    }
    /// <p>The URL for the OIDC provider (optional).</p>
    pub fn get_url(&self) -> &::std::option::Option<::std::string::String> {
        &self.url
    }
    /// <p>The OAuth client secret for retrieving access tokens (optional).</p>
    pub fn client_secret(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.client_secret = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The OAuth client secret for retrieving access tokens (optional).</p>
    pub fn set_client_secret(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.client_secret = input;
        self
    }
    /// <p>The OAuth client secret for retrieving access tokens (optional).</p>
    pub fn get_client_secret(&self) -> &::std::option::Option<::std::string::String> {
        &self.client_secret
    }
    /// <p>The PKCE code verifier for enhanced security in the OAuth flow (optional).</p>
    pub fn code_verifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.code_verifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The PKCE code verifier for enhanced security in the OAuth flow (optional).</p>
    pub fn set_code_verifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.code_verifier = input;
        self
    }
    /// <p>The PKCE code verifier for enhanced security in the OAuth flow (optional).</p>
    pub fn get_code_verifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.code_verifier
    }
    /// <p>The CA certificate for secure communication with the OIDC provider (optional).</p>
    pub fn certificate(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.certificate = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The CA certificate for secure communication with the OIDC provider (optional).</p>
    pub fn set_certificate(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.certificate = input;
        self
    }
    /// <p>The CA certificate for secure communication with the OIDC provider (optional).</p>
    pub fn get_certificate(&self) -> &::std::option::Option<::std::string::String> {
        &self.certificate
    }
    /// Consumes the builder and constructs a [`GetOidcInfoInput`](crate::operation::get_oidc_info::GetOidcInfoInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::get_oidc_info::GetOidcInfoInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_oidc_info::GetOidcInfoInput {
            network_id: self.network_id,
            client_id: self.client_id,
            code: self.code,
            grant_type: self.grant_type,
            redirect_uri: self.redirect_uri,
            url: self.url,
            client_secret: self.client_secret,
            code_verifier: self.code_verifier,
            certificate: self.certificate,
        })
    }
}
impl ::std::fmt::Debug for GetOidcInfoInputBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("GetOidcInfoInputBuilder");
        formatter.field("network_id", &self.network_id);
        formatter.field("client_id", &self.client_id);
        formatter.field("code", &self.code);
        formatter.field("grant_type", &self.grant_type);
        formatter.field("redirect_uri", &self.redirect_uri);
        formatter.field("url", &self.url);
        formatter.field("client_secret", &"*** Sensitive Data Redacted ***");
        formatter.field("code_verifier", &self.code_verifier);
        formatter.field("certificate", &self.certificate);
        formatter.finish()
    }
}