aws-sdk-quicksight 1.135.0

AWS SDK for Amazon QuickSight
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub use crate::operation::update_o_auth_client_application::_update_o_auth_client_application_input::UpdateOAuthClientApplicationInputBuilder;

pub use crate::operation::update_o_auth_client_application::_update_o_auth_client_application_output::UpdateOAuthClientApplicationOutputBuilder;

impl crate::operation::update_o_auth_client_application::builders::UpdateOAuthClientApplicationInputBuilder {
    /// Sends a request with this input using the given client.
    pub async fn send_with(
        self,
        client: &crate::Client,
    ) -> ::std::result::Result<
        crate::operation::update_o_auth_client_application::UpdateOAuthClientApplicationOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::update_o_auth_client_application::UpdateOAuthClientApplicationError,
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
        >,
    > {
        let mut fluent_builder = client.update_o_auth_client_application();
        fluent_builder.inner = self;
        fluent_builder.send().await
    }
}
/// Fluent builder constructing a request to `UpdateOAuthClientApplication`.
///
/// <p>Updates an OAuthClientApplication.</p>
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateOAuthClientApplicationFluentBuilder {
    handle: ::std::sync::Arc<crate::client::Handle>,
    inner: crate::operation::update_o_auth_client_application::builders::UpdateOAuthClientApplicationInputBuilder,
    config_override: ::std::option::Option<crate::config::Builder>,
}
impl
    crate::client::customize::internal::CustomizableSend<
        crate::operation::update_o_auth_client_application::UpdateOAuthClientApplicationOutput,
        crate::operation::update_o_auth_client_application::UpdateOAuthClientApplicationError,
    > for UpdateOAuthClientApplicationFluentBuilder
{
    fn send(
        self,
        config_override: crate::config::Builder,
    ) -> crate::client::customize::internal::BoxFuture<
        crate::client::customize::internal::SendResult<
            crate::operation::update_o_auth_client_application::UpdateOAuthClientApplicationOutput,
            crate::operation::update_o_auth_client_application::UpdateOAuthClientApplicationError,
        >,
    > {
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
    }
}
impl UpdateOAuthClientApplicationFluentBuilder {
    /// Creates a new `UpdateOAuthClientApplicationFluentBuilder`.
    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 UpdateOAuthClientApplication as a reference.
    pub fn as_input(&self) -> &crate::operation::update_o_auth_client_application::builders::UpdateOAuthClientApplicationInputBuilder {
        &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::update_o_auth_client_application::UpdateOAuthClientApplicationOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::update_o_auth_client_application::UpdateOAuthClientApplicationError,
            ::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::update_o_auth_client_application::UpdateOAuthClientApplication::operation_runtime_plugins(
            self.handle.runtime_plugins.clone(),
            &self.handle.conf,
            self.config_override,
        );
        crate::operation::update_o_auth_client_application::UpdateOAuthClientApplication::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::update_o_auth_client_application::UpdateOAuthClientApplicationOutput,
        crate::operation::update_o_auth_client_application::UpdateOAuthClientApplicationError,
        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 Amazon Web Services account ID.</p>
    pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.aws_account_id(input.into());
        self
    }
    /// <p>The Amazon Web Services account ID.</p>
    pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_aws_account_id(input);
        self
    }
    /// <p>The Amazon Web Services account ID.</p>
    pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_aws_account_id()
    }
    /// <p>The ID of the OAuthClientApplication that you want to update.</p>
    pub fn o_auth_client_application_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.o_auth_client_application_id(input.into());
        self
    }
    /// <p>The ID of the OAuthClientApplication that you want to update.</p>
    pub fn set_o_auth_client_application_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_o_auth_client_application_id(input);
        self
    }
    /// <p>The ID of the OAuthClientApplication that you want to update.</p>
    pub fn get_o_auth_client_application_id(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_o_auth_client_application_id()
    }
    /// <p>The display name for the OAuthClientApplication.</p>
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.name(input.into());
        self
    }
    /// <p>The display name for the OAuthClientApplication.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_name(input);
        self
    }
    /// <p>The display name for the OAuthClientApplication.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_name()
    }
    /// <p>The client ID of the OAuth application that is registered with the identity provider.</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 client ID of the OAuth application that is registered with the identity provider.</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 client ID of the OAuth application that is registered with the identity provider.</p>
    pub fn get_client_id(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_client_id()
    }
    /// <p>The client secret of the OAuth application that is registered with the identity provider.</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 client secret of the OAuth application that is registered with the identity provider.</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 client secret of the OAuth application that is registered with the identity provider.</p>
    pub fn get_client_secret(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_client_secret()
    }
    /// <p>The token endpoint URL of the identity provider that is used to obtain access tokens.</p>
    pub fn o_auth_token_endpoint_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.o_auth_token_endpoint_url(input.into());
        self
    }
    /// <p>The token endpoint URL of the identity provider that is used to obtain access tokens.</p>
    pub fn set_o_auth_token_endpoint_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_o_auth_token_endpoint_url(input);
        self
    }
    /// <p>The token endpoint URL of the identity provider that is used to obtain access tokens.</p>
    pub fn get_o_auth_token_endpoint_url(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_o_auth_token_endpoint_url()
    }
    /// <p>The authorization endpoint URL of the identity provider that is used to obtain authorization codes.</p>
    pub fn o_auth_authorization_endpoint_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.o_auth_authorization_endpoint_url(input.into());
        self
    }
    /// <p>The authorization endpoint URL of the identity provider that is used to obtain authorization codes.</p>
    pub fn set_o_auth_authorization_endpoint_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_o_auth_authorization_endpoint_url(input);
        self
    }
    /// <p>The authorization endpoint URL of the identity provider that is used to obtain authorization codes.</p>
    pub fn get_o_auth_authorization_endpoint_url(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_o_auth_authorization_endpoint_url()
    }
    /// <p>The OAuth scopes that are requested when the OAuthClientApplication obtains an access token from the identity provider.</p>
    pub fn o_auth_scopes(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.o_auth_scopes(input.into());
        self
    }
    /// <p>The OAuth scopes that are requested when the OAuthClientApplication obtains an access token from the identity provider.</p>
    pub fn set_o_auth_scopes(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_o_auth_scopes(input);
        self
    }
    /// <p>The OAuth scopes that are requested when the OAuthClientApplication obtains an access token from the identity provider.</p>
    pub fn get_o_auth_scopes(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_o_auth_scopes()
    }
    /// <p>The type of data source that the OAuthClientApplication is used with. Valid values are <code>SNOWFLAKE</code>.</p>
    pub fn data_source_type(mut self, input: crate::types::DataSourceType) -> Self {
        self.inner = self.inner.data_source_type(input);
        self
    }
    /// <p>The type of data source that the OAuthClientApplication is used with. Valid values are <code>SNOWFLAKE</code>.</p>
    pub fn set_data_source_type(mut self, input: ::std::option::Option<crate::types::DataSourceType>) -> Self {
        self.inner = self.inner.set_data_source_type(input);
        self
    }
    /// <p>The type of data source that the OAuthClientApplication is used with. Valid values are <code>SNOWFLAKE</code>.</p>
    pub fn get_data_source_type(&self) -> &::std::option::Option<crate::types::DataSourceType> {
        self.inner.get_data_source_type()
    }
    /// <p>VPC connection properties.</p>
    pub fn identity_provider_vpc_connection_properties(mut self, input: crate::types::VpcConnectionProperties) -> Self {
        self.inner = self.inner.identity_provider_vpc_connection_properties(input);
        self
    }
    /// <p>VPC connection properties.</p>
    pub fn set_identity_provider_vpc_connection_properties(mut self, input: ::std::option::Option<crate::types::VpcConnectionProperties>) -> Self {
        self.inner = self.inner.set_identity_provider_vpc_connection_properties(input);
        self
    }
    /// <p>VPC connection properties.</p>
    pub fn get_identity_provider_vpc_connection_properties(&self) -> &::std::option::Option<crate::types::VpcConnectionProperties> {
        self.inner.get_identity_provider_vpc_connection_properties()
    }
}