#[non_exhaustive]pub struct RedshiftMetadataBuilder { /* private fields */ }
Expand description
A builder for RedshiftMetadata
.
Implementations§
source§impl RedshiftMetadataBuilder
impl RedshiftMetadataBuilder
sourcepub fn redshift_database(self, input: RedshiftDatabase) -> Self
pub fn redshift_database(self, input: RedshiftDatabase) -> Self
Describes the database details required to connect to an Amazon Redshift database.
sourcepub fn set_redshift_database(self, input: Option<RedshiftDatabase>) -> Self
pub fn set_redshift_database(self, input: Option<RedshiftDatabase>) -> Self
Describes the database details required to connect to an Amazon Redshift database.
sourcepub fn get_redshift_database(&self) -> &Option<RedshiftDatabase>
pub fn get_redshift_database(&self) -> &Option<RedshiftDatabase>
Describes the database details required to connect to an Amazon Redshift database.
sourcepub fn database_user_name(self, input: impl Into<String>) -> Self
pub fn database_user_name(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_database_user_name(self, input: Option<String>) -> Self
pub fn set_database_user_name(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_database_user_name(&self) -> &Option<String>
pub fn get_database_user_name(&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 select_sql_query(self, input: impl Into<String>) -> Self
pub fn select_sql_query(self, input: impl Into<String>) -> Self
The SQL query that is specified during CreateDataSourceFromRedshift
. Returns only if Verbose
is true in GetDataSourceInput.
sourcepub fn set_select_sql_query(self, input: Option<String>) -> Self
pub fn set_select_sql_query(self, input: Option<String>) -> Self
The SQL query that is specified during CreateDataSourceFromRedshift
. Returns only if Verbose
is true in GetDataSourceInput.
sourcepub fn get_select_sql_query(&self) -> &Option<String>
pub fn get_select_sql_query(&self) -> &Option<String>
The SQL query that is specified during CreateDataSourceFromRedshift
. Returns only if Verbose
is true in GetDataSourceInput.
sourcepub fn build(self) -> RedshiftMetadata
pub fn build(self) -> RedshiftMetadata
Consumes the builder and constructs a RedshiftMetadata
.
Trait Implementations§
source§impl Clone for RedshiftMetadataBuilder
impl Clone for RedshiftMetadataBuilder
source§fn clone(&self) -> RedshiftMetadataBuilder
fn clone(&self) -> RedshiftMetadataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RedshiftMetadataBuilder
impl Debug for RedshiftMetadataBuilder
source§impl Default for RedshiftMetadataBuilder
impl Default for RedshiftMetadataBuilder
source§fn default() -> RedshiftMetadataBuilder
fn default() -> RedshiftMetadataBuilder
source§impl PartialEq for RedshiftMetadataBuilder
impl PartialEq for RedshiftMetadataBuilder
source§fn eq(&self, other: &RedshiftMetadataBuilder) -> bool
fn eq(&self, other: &RedshiftMetadataBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RedshiftMetadataBuilder
Auto Trait Implementations§
impl Freeze for RedshiftMetadataBuilder
impl RefUnwindSafe for RedshiftMetadataBuilder
impl Send for RedshiftMetadataBuilder
impl Sync for RedshiftMetadataBuilder
impl Unpin for RedshiftMetadataBuilder
impl UnwindSafe for RedshiftMetadataBuilder
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