pub struct Builder { /* private fields */ }
Expand description

A builder for ImportBackendAuthInput.

Implementations§

The app ID.

Examples found in repository?
src/client.rs (line 2650)
2649
2650
2651
2652
        pub fn app_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.app_id(input.into());
            self
        }

The app ID.

Examples found in repository?
src/client.rs (line 2655)
2654
2655
2656
2657
        pub fn set_app_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_app_id(input);
            self
        }

The name of the backend environment.

Examples found in repository?
src/client.rs (line 2660)
2659
2660
2661
2662
        pub fn backend_environment_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.backend_environment_name(input.into());
            self
        }

The name of the backend environment.

Examples found in repository?
src/client.rs (line 2668)
2664
2665
2666
2667
2668
2669
2670
        pub fn set_backend_environment_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_backend_environment_name(input);
            self
        }

The ID of the Amazon Cognito identity pool.

Examples found in repository?
src/client.rs (line 2673)
2672
2673
2674
2675
        pub fn identity_pool_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.identity_pool_id(input.into());
            self
        }

The ID of the Amazon Cognito identity pool.

Examples found in repository?
src/client.rs (line 2681)
2677
2678
2679
2680
2681
2682
2683
        pub fn set_identity_pool_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_identity_pool_id(input);
            self
        }

The ID of the Amazon Cognito native client.

Examples found in repository?
src/client.rs (line 2686)
2685
2686
2687
2688
        pub fn native_client_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.native_client_id(input.into());
            self
        }

The ID of the Amazon Cognito native client.

Examples found in repository?
src/client.rs (line 2694)
2690
2691
2692
2693
2694
2695
2696
        pub fn set_native_client_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_native_client_id(input);
            self
        }

The ID of the Amazon Cognito user pool.

Examples found in repository?
src/client.rs (line 2699)
2698
2699
2700
2701
        pub fn user_pool_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.user_pool_id(input.into());
            self
        }

The ID of the Amazon Cognito user pool.

Examples found in repository?
src/client.rs (line 2704)
2703
2704
2705
2706
        pub fn set_user_pool_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_user_pool_id(input);
            self
        }

The ID of the Amazon Cognito web client.

Examples found in repository?
src/client.rs (line 2709)
2708
2709
2710
2711
        pub fn web_client_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.web_client_id(input.into());
            self
        }

The ID of the Amazon Cognito web client.

Examples found in repository?
src/client.rs (line 2717)
2713
2714
2715
2716
2717
2718
2719
        pub fn set_web_client_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_web_client_id(input);
            self
        }

Consumes the builder and constructs a ImportBackendAuthInput.

Examples found in repository?
src/client.rs (line 2617)
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::ImportBackendAuth,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::ImportBackendAuthError>,
        > {
            let handle = self.handle.clone();
            let operation = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            Ok(crate::operation::customize::CustomizableOperation { handle, operation })
        }

        /// 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::output::ImportBackendAuthOutput,
            aws_smithy_http::result::SdkError<crate::error::ImportBackendAuthError>,
        > {
            let op = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&self.handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            self.handle.client.call(op).await
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more