Struct aws_sdk_quicksight::types::builders::CredentialPairBuilder
source · #[non_exhaustive]pub struct CredentialPairBuilder { /* private fields */ }Expand description
A builder for CredentialPair.
Implementations§
source§impl CredentialPairBuilder
impl CredentialPairBuilder
sourcepub fn set_username(self, input: Option<String>) -> Self
pub fn set_username(self, input: Option<String>) -> Self
User name.
sourcepub fn get_username(&self) -> &Option<String>
pub fn get_username(&self) -> &Option<String>
User name.
sourcepub fn set_password(self, input: Option<String>) -> Self
pub fn set_password(self, input: Option<String>) -> Self
Password.
sourcepub fn get_password(&self) -> &Option<String>
pub fn get_password(&self) -> &Option<String>
Password.
sourcepub fn alternate_data_source_parameters(
self,
input: DataSourceParameters
) -> Self
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 these credentials. 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 new data source with the existing credentials. If the AlternateDataSourceParameters list is null, the DataSourceParameters originally used with these Credentials is automatically allowed.
sourcepub fn set_alternate_data_source_parameters(
self,
input: Option<Vec<DataSourceParameters>>
) -> Self
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 these credentials. 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 new data source with the existing credentials. If the AlternateDataSourceParameters list is null, the DataSourceParameters originally used with these Credentials is automatically allowed.
sourcepub fn get_alternate_data_source_parameters(
&self
) -> &Option<Vec<DataSourceParameters>>
pub fn get_alternate_data_source_parameters( &self ) -> &Option<Vec<DataSourceParameters>>
A set of alternate data source parameters that you want to share for these credentials. 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 new data source with the existing credentials. If the AlternateDataSourceParameters list is null, the DataSourceParameters originally used with these Credentials is automatically allowed.
sourcepub fn build(self) -> Result<CredentialPair, BuildError>
pub fn build(self) -> Result<CredentialPair, BuildError>
Consumes the builder and constructs a CredentialPair.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CredentialPairBuilder
impl Clone for CredentialPairBuilder
source§fn clone(&self) -> CredentialPairBuilder
fn clone(&self) -> CredentialPairBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CredentialPairBuilder
impl Debug for CredentialPairBuilder
source§impl Default for CredentialPairBuilder
impl Default for CredentialPairBuilder
source§fn default() -> CredentialPairBuilder
fn default() -> CredentialPairBuilder
source§impl PartialEq for CredentialPairBuilder
impl PartialEq for CredentialPairBuilder
source§fn eq(&self, other: &CredentialPairBuilder) -> bool
fn eq(&self, other: &CredentialPairBuilder) -> bool
self and other values to be equal, and is used
by ==.