pub struct Builder { /* private fields */ }
Expand description
A builder for RedshiftDatabaseCredentials
.
Implementations§
source§impl Builder
impl Builder
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 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 build(self) -> RedshiftDatabaseCredentials
pub fn build(self) -> RedshiftDatabaseCredentials
Consumes the builder and constructs a RedshiftDatabaseCredentials
.