aws-sdk-wickr 1.6.0

AWS SDK for AWS Wickr Admin API
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub use crate::operation::get_oidc_info::_get_oidc_info_input::GetOidcInfoInputBuilder;

pub use crate::operation::get_oidc_info::_get_oidc_info_output::GetOidcInfoOutputBuilder;

impl crate::operation::get_oidc_info::builders::GetOidcInfoInputBuilder {
    /// Sends a request with this input using the given client.
    pub async fn send_with(
        self,
        client: &crate::Client,
    ) -> ::std::result::Result<
        crate::operation::get_oidc_info::GetOidcInfoOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::get_oidc_info::GetOidcInfoError,
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
        >,
    > {
        let mut fluent_builder = client.get_oidc_info();
        fluent_builder.inner = self;
        fluent_builder.send().await
    }
}
/// Fluent builder constructing a request to `GetOidcInfo`.
///
/// <p>Retrieves the OpenID Connect (OIDC) configuration for a Wickr network, including SSO settings and optional token information if access token parameters are provided.</p>
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct GetOidcInfoFluentBuilder {
    handle: ::std::sync::Arc<crate::client::Handle>,
    inner: crate::operation::get_oidc_info::builders::GetOidcInfoInputBuilder,
    config_override: ::std::option::Option<crate::config::Builder>,
}
impl
    crate::client::customize::internal::CustomizableSend<
        crate::operation::get_oidc_info::GetOidcInfoOutput,
        crate::operation::get_oidc_info::GetOidcInfoError,
    > for GetOidcInfoFluentBuilder
{
    fn send(
        self,
        config_override: crate::config::Builder,
    ) -> crate::client::customize::internal::BoxFuture<
        crate::client::customize::internal::SendResult<
            crate::operation::get_oidc_info::GetOidcInfoOutput,
            crate::operation::get_oidc_info::GetOidcInfoError,
        >,
    > {
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
    }
}
impl GetOidcInfoFluentBuilder {
    /// Creates a new `GetOidcInfoFluentBuilder`.
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
        Self {
            handle,
            inner: ::std::default::Default::default(),
            config_override: ::std::option::Option::None,
        }
    }
    /// Access the GetOidcInfo as a reference.
    pub fn as_input(&self) -> &crate::operation::get_oidc_info::builders::GetOidcInfoInputBuilder {
        &self.inner
    }
    /// Sends the request and returns the response.
    ///
    /// If an error occurs, an `SdkError` will be returned with additional details that
    /// can be matched against.
    ///
    /// By default, any retryable failures will be retried twice. Retry behavior
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
    /// set when configuring the client.
    pub async fn send(
        self,
    ) -> ::std::result::Result<
        crate::operation::get_oidc_info::GetOidcInfoOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::get_oidc_info::GetOidcInfoError,
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
        >,
    > {
        let input = self
            .inner
            .build()
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
        let runtime_plugins = crate::operation::get_oidc_info::GetOidcInfo::operation_runtime_plugins(
            self.handle.runtime_plugins.clone(),
            &self.handle.conf,
            self.config_override,
        );
        crate::operation::get_oidc_info::GetOidcInfo::orchestrate(&runtime_plugins, input).await
    }

    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
    pub fn customize(
        self,
    ) -> crate::client::customize::CustomizableOperation<
        crate::operation::get_oidc_info::GetOidcInfoOutput,
        crate::operation::get_oidc_info::GetOidcInfoError,
        Self,
    > {
        crate::client::customize::CustomizableOperation::new(self)
    }
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
        self.set_config_override(::std::option::Option::Some(config_override.into()));
        self
    }

    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
        self.config_override = config_override;
        self
    }
    /// <p>The ID of the Wickr network whose OIDC configuration will be retrieved.</p>
    pub fn network_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.network_id(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.inner = self.inner.set_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.inner.get_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.inner = self.inner.client_id(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.inner = self.inner.set_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.inner.get_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.inner = self.inner.code(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.inner = self.inner.set_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.inner.get_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.inner = self.inner.grant_type(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.inner = self.inner.set_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.inner.get_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.inner = self.inner.redirect_uri(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.inner = self.inner.set_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.inner.get_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.inner = self.inner.url(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.inner = self.inner.set_url(input);
        self
    }
    /// <p>The URL for the OIDC provider (optional).</p>
    pub fn get_url(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_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.inner = self.inner.client_secret(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.inner = self.inner.set_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.inner.get_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.inner = self.inner.code_verifier(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.inner = self.inner.set_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.inner.get_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.inner = self.inner.certificate(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.inner = self.inner.set_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.inner.get_certificate()
    }
}