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

A builder for UpdateDataSourceInput.

Implementations§

The Amazon Web Services account ID.

Examples found in repository?
src/client.rs (line 14285)
14284
14285
14286
14287
        pub fn aws_account_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.aws_account_id(input.into());
            self
        }

The Amazon Web Services account ID.

Examples found in repository?
src/client.rs (line 14293)
14289
14290
14291
14292
14293
14294
14295
        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
        }

The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

Examples found in repository?
src/client.rs (line 14298)
14297
14298
14299
14300
        pub fn data_source_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.data_source_id(input.into());
            self
        }

The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

Examples found in repository?
src/client.rs (line 14306)
14302
14303
14304
14305
14306
14307
14308
        pub fn set_data_source_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_data_source_id(input);
            self
        }

A display name for the data source.

Examples found in repository?
src/client.rs (line 14311)
14310
14311
14312
14313
        pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.name(input.into());
            self
        }

A display name for the data source.

Examples found in repository?
src/client.rs (line 14316)
14315
14316
14317
14318
        pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_name(input);
            self
        }

The parameters that Amazon QuickSight uses to connect to your underlying source.

Examples found in repository?
src/client.rs (line 14321)
14320
14321
14322
14323
        pub fn data_source_parameters(mut self, input: crate::model::DataSourceParameters) -> Self {
            self.inner = self.inner.data_source_parameters(input);
            self
        }

The parameters that Amazon QuickSight uses to connect to your underlying source.

Examples found in repository?
src/client.rs (line 14329)
14325
14326
14327
14328
14329
14330
14331
        pub fn set_data_source_parameters(
            mut self,
            input: std::option::Option<crate::model::DataSourceParameters>,
        ) -> Self {
            self.inner = self.inner.set_data_source_parameters(input);
            self
        }

The credentials that Amazon QuickSight that uses to connect to your underlying source. Currently, only credentials based on user name and password are supported.

Examples found in repository?
src/client.rs (line 14334)
14333
14334
14335
14336
        pub fn credentials(mut self, input: crate::model::DataSourceCredentials) -> Self {
            self.inner = self.inner.credentials(input);
            self
        }

The credentials that Amazon QuickSight that uses to connect to your underlying source. Currently, only credentials based on user name and password are supported.

Examples found in repository?
src/client.rs (line 14342)
14338
14339
14340
14341
14342
14343
14344
        pub fn set_credentials(
            mut self,
            input: std::option::Option<crate::model::DataSourceCredentials>,
        ) -> Self {
            self.inner = self.inner.set_credentials(input);
            self
        }

Use this parameter only when you want Amazon QuickSight to use a VPC connection when connecting to your underlying source.

Examples found in repository?
src/client.rs (line 14350)
14346
14347
14348
14349
14350
14351
14352
        pub fn vpc_connection_properties(
            mut self,
            input: crate::model::VpcConnectionProperties,
        ) -> Self {
            self.inner = self.inner.vpc_connection_properties(input);
            self
        }

Use this parameter only when you want Amazon QuickSight to use a VPC connection when connecting to your underlying source.

Examples found in repository?
src/client.rs (line 14358)
14354
14355
14356
14357
14358
14359
14360
        pub fn set_vpc_connection_properties(
            mut self,
            input: std::option::Option<crate::model::VpcConnectionProperties>,
        ) -> Self {
            self.inner = self.inner.set_vpc_connection_properties(input);
            self
        }

Secure Socket Layer (SSL) properties that apply when Amazon QuickSight connects to your underlying source.

Examples found in repository?
src/client.rs (line 14363)
14362
14363
14364
14365
        pub fn ssl_properties(mut self, input: crate::model::SslProperties) -> Self {
            self.inner = self.inner.ssl_properties(input);
            self
        }

Secure Socket Layer (SSL) properties that apply when Amazon QuickSight connects to your underlying source.

Examples found in repository?
src/client.rs (line 14371)
14367
14368
14369
14370
14371
14372
14373
        pub fn set_ssl_properties(
            mut self,
            input: std::option::Option<crate::model::SslProperties>,
        ) -> Self {
            self.inner = self.inner.set_ssl_properties(input);
            self
        }

Consumes the builder and constructs a UpdateDataSourceInput.

Examples found in repository?
src/client.rs (line 14252)
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::UpdateDataSource,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::UpdateDataSourceError>,
        > {
            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::UpdateDataSourceOutput,
            aws_smithy_http::result::SdkError<crate::error::UpdateDataSourceError>,
        > {
            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