#[non_exhaustive]pub struct RedshiftDatabaseCredentialsBuilder { /* private fields */ }
Expand description
A builder for RedshiftDatabaseCredentials
.
Implementations§
source§impl RedshiftDatabaseCredentialsBuilder
impl RedshiftDatabaseCredentialsBuilder
sourcepub fn username(self, input: impl Into<String>) -> Self
pub fn username(self, input: impl Into<String>) -> Self
A username to be used by Amazon Machine Learning (Amazon ML)to connect to a database on an Amazon Redshift cluster. The username should have sufficient permissions to execute the RedshiftSelectSqlQuery
query. The username should be valid for an Amazon Redshift USER.
sourcepub fn set_username(self, input: Option<String>) -> Self
pub fn set_username(self, input: Option<String>) -> Self
A username to be used by Amazon Machine Learning (Amazon ML)to connect to a database on an Amazon Redshift cluster. The username should have sufficient permissions to execute the RedshiftSelectSqlQuery
query. The username should be valid for an Amazon Redshift USER.
sourcepub fn get_username(&self) -> &Option<String>
pub fn get_username(&self) -> &Option<String>
A username to be used by Amazon Machine Learning (Amazon ML)to connect to a database on an Amazon Redshift cluster. The username should have sufficient permissions to execute the RedshiftSelectSqlQuery
query. The username should be valid for an Amazon Redshift USER.
sourcepub fn password(self, input: impl Into<String>) -> Self
pub fn password(self, input: impl Into<String>) -> Self
A password to be used by Amazon ML to connect to a database on an Amazon Redshift cluster. The password should have sufficient permissions to execute a RedshiftSelectSqlQuery
query. The password should be valid for an Amazon Redshift USER.
sourcepub fn set_password(self, input: Option<String>) -> Self
pub fn set_password(self, input: Option<String>) -> Self
A password to be used by Amazon ML to connect to a database on an Amazon Redshift cluster. The password should have sufficient permissions to execute a RedshiftSelectSqlQuery
query. The password should be valid for an Amazon Redshift USER.
sourcepub fn get_password(&self) -> &Option<String>
pub fn get_password(&self) -> &Option<String>
A password to be used by Amazon ML to connect to a database on an Amazon Redshift cluster. The password should have sufficient permissions to execute a RedshiftSelectSqlQuery
query. The password should be valid for an Amazon Redshift USER.
sourcepub fn build(self) -> Result<RedshiftDatabaseCredentials, BuildError>
pub fn build(self) -> Result<RedshiftDatabaseCredentials, BuildError>
Consumes the builder and constructs a RedshiftDatabaseCredentials
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RedshiftDatabaseCredentialsBuilder
impl Clone for RedshiftDatabaseCredentialsBuilder
source§fn clone(&self) -> RedshiftDatabaseCredentialsBuilder
fn clone(&self) -> RedshiftDatabaseCredentialsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for RedshiftDatabaseCredentialsBuilder
impl Default for RedshiftDatabaseCredentialsBuilder
source§fn default() -> RedshiftDatabaseCredentialsBuilder
fn default() -> RedshiftDatabaseCredentialsBuilder
source§impl PartialEq for RedshiftDatabaseCredentialsBuilder
impl PartialEq for RedshiftDatabaseCredentialsBuilder
source§fn eq(&self, other: &RedshiftDatabaseCredentialsBuilder) -> bool
fn eq(&self, other: &RedshiftDatabaseCredentialsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RedshiftDatabaseCredentialsBuilder
Auto Trait Implementations§
impl Freeze for RedshiftDatabaseCredentialsBuilder
impl RefUnwindSafe for RedshiftDatabaseCredentialsBuilder
impl Send for RedshiftDatabaseCredentialsBuilder
impl Sync for RedshiftDatabaseCredentialsBuilder
impl Unpin for RedshiftDatabaseCredentialsBuilder
impl UnwindSafe for RedshiftDatabaseCredentialsBuilder
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> 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