#[non_exhaustive]
pub struct DataSourceBuilder { /* private fields */ }
Expand description

A builder for DataSource.

Implementations§

source§

impl DataSourceBuilder

source

pub fn arn(self, input: impl Into<String>) -> Self

The Amazon Resource Name (ARN) of the data source.

source

pub fn set_arn(self, input: Option<String>) -> Self

The Amazon Resource Name (ARN) of the data source.

source

pub fn get_arn(&self) -> &Option<String>

The Amazon Resource Name (ARN) of the data source.

source

pub fn data_source_id(self, input: impl Into<String>) -> Self

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

source

pub fn set_data_source_id(self, input: Option<String>) -> Self

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

source

pub fn get_data_source_id(&self) -> &Option<String>

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

source

pub fn name(self, input: impl Into<String>) -> Self

A display name for the data source.

source

pub fn set_name(self, input: Option<String>) -> Self

A display name for the data source.

source

pub fn get_name(&self) -> &Option<String>

A display name for the data source.

source

pub fn type(self, input: DataSourceType) -> Self

The type of the data source. This type indicates which database engine the data source connects to.

source

pub fn set_type(self, input: Option<DataSourceType>) -> Self

The type of the data source. This type indicates which database engine the data source connects to.

source

pub fn get_type(&self) -> &Option<DataSourceType>

The type of the data source. This type indicates which database engine the data source connects to.

source

pub fn status(self, input: ResourceStatus) -> Self

The HTTP status of the request.

source

pub fn set_status(self, input: Option<ResourceStatus>) -> Self

The HTTP status of the request.

source

pub fn get_status(&self) -> &Option<ResourceStatus>

The HTTP status of the request.

source

pub fn created_time(self, input: DateTime) -> Self

The time that this data source was created.

source

pub fn set_created_time(self, input: Option<DateTime>) -> Self

The time that this data source was created.

source

pub fn get_created_time(&self) -> &Option<DateTime>

The time that this data source was created.

source

pub fn last_updated_time(self, input: DateTime) -> Self

The last time that this data source was updated.

source

pub fn set_last_updated_time(self, input: Option<DateTime>) -> Self

The last time that this data source was updated.

source

pub fn get_last_updated_time(&self) -> &Option<DateTime>

The last time that this data source was updated.

source

pub fn data_source_parameters(self, input: DataSourceParameters) -> Self

The parameters that Amazon QuickSight uses to connect to your underlying source. This is a variant type structure. For this structure to be valid, only one of the attributes can be non-null.

source

pub fn set_data_source_parameters( self, input: Option<DataSourceParameters> ) -> Self

The parameters that Amazon QuickSight uses to connect to your underlying source. This is a variant type structure. For this structure to be valid, only one of the attributes can be non-null.

source

pub fn get_data_source_parameters(&self) -> &Option<DataSourceParameters>

The parameters that Amazon QuickSight uses to connect to your underlying source. This is a variant type structure. For this structure to be valid, only one of the attributes can be non-null.

source

pub fn alternate_data_source_parameters( self, input: DataSourceParameters ) -> Self

Appends an item to alternate_data_source_parameters.

To override the contents of this collection use set_alternate_data_source_parameters.

A set of alternate data source parameters that you want to share for the credentials stored with this data source. The credentials are applied in tandem with the data source parameters when you copy a data source by using a create or update request. The API operation compares the DataSourceParameters structure that's in the request with the structures in the AlternateDataSourceParameters allow list. If the structures are an exact match, the request is allowed to use the credentials from this existing data source. If the AlternateDataSourceParameters list is null, the Credentials originally used with this DataSourceParameters are automatically allowed.

source

pub fn set_alternate_data_source_parameters( self, input: Option<Vec<DataSourceParameters>> ) -> Self

A set of alternate data source parameters that you want to share for the credentials stored with this data source. The credentials are applied in tandem with the data source parameters when you copy a data source by using a create or update request. The API operation compares the DataSourceParameters structure that's in the request with the structures in the AlternateDataSourceParameters allow list. If the structures are an exact match, the request is allowed to use the credentials from this existing data source. If the AlternateDataSourceParameters list is null, the Credentials originally used with this DataSourceParameters are automatically allowed.

source

pub fn get_alternate_data_source_parameters( &self ) -> &Option<Vec<DataSourceParameters>>

A set of alternate data source parameters that you want to share for the credentials stored with this data source. The credentials are applied in tandem with the data source parameters when you copy a data source by using a create or update request. The API operation compares the DataSourceParameters structure that's in the request with the structures in the AlternateDataSourceParameters allow list. If the structures are an exact match, the request is allowed to use the credentials from this existing data source. If the AlternateDataSourceParameters list is null, the Credentials originally used with this DataSourceParameters are automatically allowed.

source

pub fn vpc_connection_properties(self, input: VpcConnectionProperties) -> Self

The VPC connection information. You need to use this parameter only when you want Amazon QuickSight to use a VPC connection when connecting to your underlying source.

source

pub fn set_vpc_connection_properties( self, input: Option<VpcConnectionProperties> ) -> Self

The VPC connection information. You need to use this parameter only when you want Amazon QuickSight to use a VPC connection when connecting to your underlying source.

source

pub fn get_vpc_connection_properties(&self) -> &Option<VpcConnectionProperties>

The VPC connection information. You need to use this parameter only when you want Amazon QuickSight to use a VPC connection when connecting to your underlying source.

source

pub fn ssl_properties(self, input: SslProperties) -> Self

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

source

pub fn set_ssl_properties(self, input: Option<SslProperties>) -> Self

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

source

pub fn get_ssl_properties(&self) -> &Option<SslProperties>

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

source

pub fn error_info(self, input: DataSourceErrorInfo) -> Self

Error information from the last update or the creation of the data source.

source

pub fn set_error_info(self, input: Option<DataSourceErrorInfo>) -> Self

Error information from the last update or the creation of the data source.

source

pub fn get_error_info(&self) -> &Option<DataSourceErrorInfo>

Error information from the last update or the creation of the data source.

source

pub fn secret_arn(self, input: impl Into<String>) -> Self

The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.

source

pub fn set_secret_arn(self, input: Option<String>) -> Self

The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.

source

pub fn get_secret_arn(&self) -> &Option<String>

The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.

source

pub fn build(self) -> DataSource

Consumes the builder and constructs a DataSource.

Trait Implementations§

source§

impl Clone for DataSourceBuilder

source§

fn clone(&self) -> DataSourceBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DataSourceBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for DataSourceBuilder

source§

fn default() -> DataSourceBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for DataSourceBuilder

source§

fn eq(&self, other: &DataSourceBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for DataSourceBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more