#[non_exhaustive]pub struct AmazonRedshiftNodeDataBuilder { /* private fields */ }
Expand description
A builder for AmazonRedshiftNodeData
.
Implementations§
Source§impl AmazonRedshiftNodeDataBuilder
impl AmazonRedshiftNodeDataBuilder
Sourcepub fn access_type(self, input: impl Into<String>) -> Self
pub fn access_type(self, input: impl Into<String>) -> Self
The access type for the Redshift connection. Can be a direct connection or catalog connections.
Sourcepub fn set_access_type(self, input: Option<String>) -> Self
pub fn set_access_type(self, input: Option<String>) -> Self
The access type for the Redshift connection. Can be a direct connection or catalog connections.
Sourcepub fn get_access_type(&self) -> &Option<String>
pub fn get_access_type(&self) -> &Option<String>
The access type for the Redshift connection. Can be a direct connection or catalog connections.
Sourcepub fn source_type(self, input: impl Into<String>) -> Self
pub fn source_type(self, input: impl Into<String>) -> Self
The source type to specify whether a specific table is the source or a custom query.
Sourcepub fn set_source_type(self, input: Option<String>) -> Self
pub fn set_source_type(self, input: Option<String>) -> Self
The source type to specify whether a specific table is the source or a custom query.
Sourcepub fn get_source_type(&self) -> &Option<String>
pub fn get_source_type(&self) -> &Option<String>
The source type to specify whether a specific table is the source or a custom query.
Sourcepub fn connection(self, input: Option) -> Self
pub fn connection(self, input: Option) -> Self
The Glue connection to the Redshift cluster.
Sourcepub fn set_connection(self, input: Option<Option>) -> Self
pub fn set_connection(self, input: Option<Option>) -> Self
The Glue connection to the Redshift cluster.
Sourcepub fn get_connection(&self) -> &Option<Option>
pub fn get_connection(&self) -> &Option<Option>
The Glue connection to the Redshift cluster.
Sourcepub fn schema(self, input: Option) -> Self
pub fn schema(self, input: Option) -> Self
The Redshift schema name when working with a direct connection.
Sourcepub fn set_schema(self, input: Option<Option>) -> Self
pub fn set_schema(self, input: Option<Option>) -> Self
The Redshift schema name when working with a direct connection.
Sourcepub fn get_schema(&self) -> &Option<Option>
pub fn get_schema(&self) -> &Option<Option>
The Redshift schema name when working with a direct connection.
Sourcepub fn table(self, input: Option) -> Self
pub fn table(self, input: Option) -> Self
The Redshift table name when working with a direct connection.
Sourcepub fn set_table(self, input: Option<Option>) -> Self
pub fn set_table(self, input: Option<Option>) -> Self
The Redshift table name when working with a direct connection.
Sourcepub fn get_table(&self) -> &Option<Option>
pub fn get_table(&self) -> &Option<Option>
The Redshift table name when working with a direct connection.
Sourcepub fn catalog_database(self, input: Option) -> Self
pub fn catalog_database(self, input: Option) -> Self
The name of the Glue Data Catalog database when working with a data catalog.
Sourcepub fn set_catalog_database(self, input: Option<Option>) -> Self
pub fn set_catalog_database(self, input: Option<Option>) -> Self
The name of the Glue Data Catalog database when working with a data catalog.
Sourcepub fn get_catalog_database(&self) -> &Option<Option>
pub fn get_catalog_database(&self) -> &Option<Option>
The name of the Glue Data Catalog database when working with a data catalog.
Sourcepub fn catalog_table(self, input: Option) -> Self
pub fn catalog_table(self, input: Option) -> Self
The Glue Data Catalog table name when working with a data catalog.
Sourcepub fn set_catalog_table(self, input: Option<Option>) -> Self
pub fn set_catalog_table(self, input: Option<Option>) -> Self
The Glue Data Catalog table name when working with a data catalog.
Sourcepub fn get_catalog_table(&self) -> &Option<Option>
pub fn get_catalog_table(&self) -> &Option<Option>
The Glue Data Catalog table name when working with a data catalog.
Sourcepub fn catalog_redshift_schema(self, input: impl Into<String>) -> Self
pub fn catalog_redshift_schema(self, input: impl Into<String>) -> Self
The Redshift schema name when working with a data catalog.
Sourcepub fn set_catalog_redshift_schema(self, input: Option<String>) -> Self
pub fn set_catalog_redshift_schema(self, input: Option<String>) -> Self
The Redshift schema name when working with a data catalog.
Sourcepub fn get_catalog_redshift_schema(&self) -> &Option<String>
pub fn get_catalog_redshift_schema(&self) -> &Option<String>
The Redshift schema name when working with a data catalog.
Sourcepub fn catalog_redshift_table(self, input: impl Into<String>) -> Self
pub fn catalog_redshift_table(self, input: impl Into<String>) -> Self
The database table to read from.
Sourcepub fn set_catalog_redshift_table(self, input: Option<String>) -> Self
pub fn set_catalog_redshift_table(self, input: Option<String>) -> Self
The database table to read from.
Sourcepub fn get_catalog_redshift_table(&self) -> &Option<String>
pub fn get_catalog_redshift_table(&self) -> &Option<String>
The database table to read from.
Sourcepub fn temp_dir(self, input: impl Into<String>) -> Self
pub fn temp_dir(self, input: impl Into<String>) -> Self
The Amazon S3 path where temporary data can be staged when copying out of the database.
Sourcepub fn set_temp_dir(self, input: Option<String>) -> Self
pub fn set_temp_dir(self, input: Option<String>) -> Self
The Amazon S3 path where temporary data can be staged when copying out of the database.
Sourcepub fn get_temp_dir(&self) -> &Option<String>
pub fn get_temp_dir(&self) -> &Option<String>
The Amazon S3 path where temporary data can be staged when copying out of the database.
Sourcepub fn iam_role(self, input: Option) -> Self
pub fn iam_role(self, input: Option) -> Self
Optional. The role name use when connection to S3. The IAM role ill default to the role on the job when left blank.
Sourcepub fn set_iam_role(self, input: Option<Option>) -> Self
pub fn set_iam_role(self, input: Option<Option>) -> Self
Optional. The role name use when connection to S3. The IAM role ill default to the role on the job when left blank.
Sourcepub fn get_iam_role(&self) -> &Option<Option>
pub fn get_iam_role(&self) -> &Option<Option>
Optional. The role name use when connection to S3. The IAM role ill default to the role on the job when left blank.
Sourcepub fn advanced_options(self, input: AmazonRedshiftAdvancedOption) -> Self
pub fn advanced_options(self, input: AmazonRedshiftAdvancedOption) -> Self
Appends an item to advanced_options
.
To override the contents of this collection use set_advanced_options
.
Optional values when connecting to the Redshift cluster.
Sourcepub fn set_advanced_options(
self,
input: Option<Vec<AmazonRedshiftAdvancedOption>>,
) -> Self
pub fn set_advanced_options( self, input: Option<Vec<AmazonRedshiftAdvancedOption>>, ) -> Self
Optional values when connecting to the Redshift cluster.
Sourcepub fn get_advanced_options(&self) -> &Option<Vec<AmazonRedshiftAdvancedOption>>
pub fn get_advanced_options(&self) -> &Option<Vec<AmazonRedshiftAdvancedOption>>
Optional values when connecting to the Redshift cluster.
Sourcepub fn sample_query(self, input: impl Into<String>) -> Self
pub fn sample_query(self, input: impl Into<String>) -> Self
The SQL used to fetch the data from a Redshift sources when the SourceType is 'query'.
Sourcepub fn set_sample_query(self, input: Option<String>) -> Self
pub fn set_sample_query(self, input: Option<String>) -> Self
The SQL used to fetch the data from a Redshift sources when the SourceType is 'query'.
Sourcepub fn get_sample_query(&self) -> &Option<String>
pub fn get_sample_query(&self) -> &Option<String>
The SQL used to fetch the data from a Redshift sources when the SourceType is 'query'.
Sourcepub fn pre_action(self, input: impl Into<String>) -> Self
pub fn pre_action(self, input: impl Into<String>) -> Self
The SQL used before a MERGE or APPEND with upsert is run.
Sourcepub fn set_pre_action(self, input: Option<String>) -> Self
pub fn set_pre_action(self, input: Option<String>) -> Self
The SQL used before a MERGE or APPEND with upsert is run.
Sourcepub fn get_pre_action(&self) -> &Option<String>
pub fn get_pre_action(&self) -> &Option<String>
The SQL used before a MERGE or APPEND with upsert is run.
Sourcepub fn post_action(self, input: impl Into<String>) -> Self
pub fn post_action(self, input: impl Into<String>) -> Self
The SQL used before a MERGE or APPEND with upsert is run.
Sourcepub fn set_post_action(self, input: Option<String>) -> Self
pub fn set_post_action(self, input: Option<String>) -> Self
The SQL used before a MERGE or APPEND with upsert is run.
Sourcepub fn get_post_action(&self) -> &Option<String>
pub fn get_post_action(&self) -> &Option<String>
The SQL used before a MERGE or APPEND with upsert is run.
Sourcepub fn action(self, input: impl Into<String>) -> Self
pub fn action(self, input: impl Into<String>) -> Self
Specifies how writing to a Redshift cluser will occur.
Sourcepub fn set_action(self, input: Option<String>) -> Self
pub fn set_action(self, input: Option<String>) -> Self
Specifies how writing to a Redshift cluser will occur.
Sourcepub fn get_action(&self) -> &Option<String>
pub fn get_action(&self) -> &Option<String>
Specifies how writing to a Redshift cluser will occur.
Sourcepub fn table_prefix(self, input: impl Into<String>) -> Self
pub fn table_prefix(self, input: impl Into<String>) -> Self
Specifies the prefix to a table.
Sourcepub fn set_table_prefix(self, input: Option<String>) -> Self
pub fn set_table_prefix(self, input: Option<String>) -> Self
Specifies the prefix to a table.
Sourcepub fn get_table_prefix(&self) -> &Option<String>
pub fn get_table_prefix(&self) -> &Option<String>
Specifies the prefix to a table.
Sourcepub fn upsert(self, input: bool) -> Self
pub fn upsert(self, input: bool) -> Self
The action used on Redshift sinks when doing an APPEND.
Sourcepub fn set_upsert(self, input: Option<bool>) -> Self
pub fn set_upsert(self, input: Option<bool>) -> Self
The action used on Redshift sinks when doing an APPEND.
Sourcepub fn get_upsert(&self) -> &Option<bool>
pub fn get_upsert(&self) -> &Option<bool>
The action used on Redshift sinks when doing an APPEND.
Sourcepub fn merge_action(self, input: impl Into<String>) -> Self
pub fn merge_action(self, input: impl Into<String>) -> Self
The action used when to detemine how a MERGE in a Redshift sink will be handled.
Sourcepub fn set_merge_action(self, input: Option<String>) -> Self
pub fn set_merge_action(self, input: Option<String>) -> Self
The action used when to detemine how a MERGE in a Redshift sink will be handled.
Sourcepub fn get_merge_action(&self) -> &Option<String>
pub fn get_merge_action(&self) -> &Option<String>
The action used when to detemine how a MERGE in a Redshift sink will be handled.
Sourcepub fn merge_when_matched(self, input: impl Into<String>) -> Self
pub fn merge_when_matched(self, input: impl Into<String>) -> Self
The action used when to detemine how a MERGE in a Redshift sink will be handled when an existing record matches a new record.
Sourcepub fn set_merge_when_matched(self, input: Option<String>) -> Self
pub fn set_merge_when_matched(self, input: Option<String>) -> Self
The action used when to detemine how a MERGE in a Redshift sink will be handled when an existing record matches a new record.
Sourcepub fn get_merge_when_matched(&self) -> &Option<String>
pub fn get_merge_when_matched(&self) -> &Option<String>
The action used when to detemine how a MERGE in a Redshift sink will be handled when an existing record matches a new record.
Sourcepub fn merge_when_not_matched(self, input: impl Into<String>) -> Self
pub fn merge_when_not_matched(self, input: impl Into<String>) -> Self
The action used when to detemine how a MERGE in a Redshift sink will be handled when an existing record doesn't match a new record.
Sourcepub fn set_merge_when_not_matched(self, input: Option<String>) -> Self
pub fn set_merge_when_not_matched(self, input: Option<String>) -> Self
The action used when to detemine how a MERGE in a Redshift sink will be handled when an existing record doesn't match a new record.
Sourcepub fn get_merge_when_not_matched(&self) -> &Option<String>
pub fn get_merge_when_not_matched(&self) -> &Option<String>
The action used when to detemine how a MERGE in a Redshift sink will be handled when an existing record doesn't match a new record.
Sourcepub fn merge_clause(self, input: impl Into<String>) -> Self
pub fn merge_clause(self, input: impl Into<String>) -> Self
The SQL used in a custom merge to deal with matching records.
Sourcepub fn set_merge_clause(self, input: Option<String>) -> Self
pub fn set_merge_clause(self, input: Option<String>) -> Self
The SQL used in a custom merge to deal with matching records.
Sourcepub fn get_merge_clause(&self) -> &Option<String>
pub fn get_merge_clause(&self) -> &Option<String>
The SQL used in a custom merge to deal with matching records.
Sourcepub fn crawler_connection(self, input: impl Into<String>) -> Self
pub fn crawler_connection(self, input: impl Into<String>) -> Self
Specifies the name of the connection that is associated with the catalog table used.
Sourcepub fn set_crawler_connection(self, input: Option<String>) -> Self
pub fn set_crawler_connection(self, input: Option<String>) -> Self
Specifies the name of the connection that is associated with the catalog table used.
Sourcepub fn get_crawler_connection(&self) -> &Option<String>
pub fn get_crawler_connection(&self) -> &Option<String>
Specifies the name of the connection that is associated with the catalog table used.
Sourcepub fn table_schema(self, input: Option) -> Self
pub fn table_schema(self, input: Option) -> Self
Appends an item to table_schema
.
To override the contents of this collection use set_table_schema
.
The array of schema output for a given node.
Sourcepub fn set_table_schema(self, input: Option<Vec<Option>>) -> Self
pub fn set_table_schema(self, input: Option<Vec<Option>>) -> Self
The array of schema output for a given node.
Sourcepub fn get_table_schema(&self) -> &Option<Vec<Option>>
pub fn get_table_schema(&self) -> &Option<Vec<Option>>
The array of schema output for a given node.
Sourcepub fn staging_table(self, input: impl Into<String>) -> Self
pub fn staging_table(self, input: impl Into<String>) -> Self
The name of the temporary staging table that is used when doing a MERGE or APPEND with upsert.
Sourcepub fn set_staging_table(self, input: Option<String>) -> Self
pub fn set_staging_table(self, input: Option<String>) -> Self
The name of the temporary staging table that is used when doing a MERGE or APPEND with upsert.
Sourcepub fn get_staging_table(&self) -> &Option<String>
pub fn get_staging_table(&self) -> &Option<String>
The name of the temporary staging table that is used when doing a MERGE or APPEND with upsert.
Sourcepub fn selected_columns(self, input: Option) -> Self
pub fn selected_columns(self, input: Option) -> Self
Appends an item to selected_columns
.
To override the contents of this collection use set_selected_columns
.
The list of column names used to determine a matching record when doing a MERGE or APPEND with upsert.
Sourcepub fn set_selected_columns(self, input: Option<Vec<Option>>) -> Self
pub fn set_selected_columns(self, input: Option<Vec<Option>>) -> Self
The list of column names used to determine a matching record when doing a MERGE or APPEND with upsert.
Sourcepub fn get_selected_columns(&self) -> &Option<Vec<Option>>
pub fn get_selected_columns(&self) -> &Option<Vec<Option>>
The list of column names used to determine a matching record when doing a MERGE or APPEND with upsert.
Sourcepub fn build(self) -> AmazonRedshiftNodeData
pub fn build(self) -> AmazonRedshiftNodeData
Consumes the builder and constructs a AmazonRedshiftNodeData
.
Trait Implementations§
Source§impl Clone for AmazonRedshiftNodeDataBuilder
impl Clone for AmazonRedshiftNodeDataBuilder
Source§fn clone(&self) -> AmazonRedshiftNodeDataBuilder
fn clone(&self) -> AmazonRedshiftNodeDataBuilder
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for AmazonRedshiftNodeDataBuilder
impl Default for AmazonRedshiftNodeDataBuilder
Source§fn default() -> AmazonRedshiftNodeDataBuilder
fn default() -> AmazonRedshiftNodeDataBuilder
Source§impl PartialEq for AmazonRedshiftNodeDataBuilder
impl PartialEq for AmazonRedshiftNodeDataBuilder
Source§fn eq(&self, other: &AmazonRedshiftNodeDataBuilder) -> bool
fn eq(&self, other: &AmazonRedshiftNodeDataBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AmazonRedshiftNodeDataBuilder
Auto Trait Implementations§
impl Freeze for AmazonRedshiftNodeDataBuilder
impl RefUnwindSafe for AmazonRedshiftNodeDataBuilder
impl Send for AmazonRedshiftNodeDataBuilder
impl Sync for AmazonRedshiftNodeDataBuilder
impl Unpin for AmazonRedshiftNodeDataBuilder
impl UnwindSafe for AmazonRedshiftNodeDataBuilder
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§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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);