#[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 ==
.