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 ==.impl StructuralPartialEq for CredentialPairBuilder
Auto Trait Implementations§
impl Freeze for CredentialPairBuilder
impl RefUnwindSafe for CredentialPairBuilder
impl Send for CredentialPairBuilder
impl Sync for CredentialPairBuilder
impl Unpin for CredentialPairBuilder
impl UnwindSafe for CredentialPairBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more