Struct aws_sdk_glue::types::builders::SnowflakeNodeDataBuilder
source · #[non_exhaustive]pub struct SnowflakeNodeDataBuilder { /* private fields */ }
Expand description
A builder for SnowflakeNodeData
.
Implementations§
source§impl SnowflakeNodeDataBuilder
impl SnowflakeNodeDataBuilder
sourcepub fn source_type(self, input: impl Into<String>) -> Self
pub fn source_type(self, input: impl Into<String>) -> Self
Specifies how retrieved data is specified. Valid values: "table"
, "query"
.
sourcepub fn set_source_type(self, input: Option<String>) -> Self
pub fn set_source_type(self, input: Option<String>) -> Self
Specifies how retrieved data is specified. Valid values: "table"
, "query"
.
sourcepub fn get_source_type(&self) -> &Option<String>
pub fn get_source_type(&self) -> &Option<String>
Specifies how retrieved data is specified. Valid values: "table"
, "query"
.
sourcepub fn connection(self, input: Option) -> Self
pub fn connection(self, input: Option) -> Self
Specifies a Glue Data Catalog Connection to a Snowflake endpoint.
sourcepub fn set_connection(self, input: Option<Option>) -> Self
pub fn set_connection(self, input: Option<Option>) -> Self
Specifies a Glue Data Catalog Connection to a Snowflake endpoint.
sourcepub fn get_connection(&self) -> &Option<Option>
pub fn get_connection(&self) -> &Option<Option>
Specifies a Glue Data Catalog Connection to a Snowflake endpoint.
sourcepub fn schema(self, input: impl Into<String>) -> Self
pub fn schema(self, input: impl Into<String>) -> Self
Specifies a Snowflake database schema for your node to use.
sourcepub fn set_schema(self, input: Option<String>) -> Self
pub fn set_schema(self, input: Option<String>) -> Self
Specifies a Snowflake database schema for your node to use.
sourcepub fn get_schema(&self) -> &Option<String>
pub fn get_schema(&self) -> &Option<String>
Specifies a Snowflake database schema for your node to use.
sourcepub fn table(self, input: impl Into<String>) -> Self
pub fn table(self, input: impl Into<String>) -> Self
Specifies a Snowflake table for your node to use.
sourcepub fn set_table(self, input: Option<String>) -> Self
pub fn set_table(self, input: Option<String>) -> Self
Specifies a Snowflake table for your node to use.
sourcepub fn database(self, input: impl Into<String>) -> Self
pub fn database(self, input: impl Into<String>) -> Self
Specifies a Snowflake database for your node to use.
sourcepub fn set_database(self, input: Option<String>) -> Self
pub fn set_database(self, input: Option<String>) -> Self
Specifies a Snowflake database for your node to use.
sourcepub fn get_database(&self) -> &Option<String>
pub fn get_database(&self) -> &Option<String>
Specifies a Snowflake database for your node to use.
sourcepub fn set_temp_dir(self, input: Option<String>) -> Self
pub fn set_temp_dir(self, input: Option<String>) -> Self
Not currently used.
sourcepub fn get_temp_dir(&self) -> &Option<String>
pub fn get_temp_dir(&self) -> &Option<String>
Not currently used.
sourcepub fn set_iam_role(self, input: Option<Option>) -> Self
pub fn set_iam_role(self, input: Option<Option>) -> Self
Not currently used.
sourcepub fn get_iam_role(&self) -> &Option<Option>
pub fn get_iam_role(&self) -> &Option<Option>
Not currently used.
sourcepub fn additional_options(
self,
k: impl Into<String>,
v: impl Into<String>,
) -> Self
pub fn additional_options( self, k: impl Into<String>, v: impl Into<String>, ) -> Self
Adds a key-value pair to additional_options
.
To override the contents of this collection use set_additional_options
.
Specifies additional options passed to the Snowflake connector. If options are specified elsewhere in this node, this will take precedence.
sourcepub fn set_additional_options(
self,
input: Option<HashMap<String, String>>,
) -> Self
pub fn set_additional_options( self, input: Option<HashMap<String, String>>, ) -> Self
Specifies additional options passed to the Snowflake connector. If options are specified elsewhere in this node, this will take precedence.
sourcepub fn get_additional_options(&self) -> &Option<HashMap<String, String>>
pub fn get_additional_options(&self) -> &Option<HashMap<String, String>>
Specifies additional options passed to the Snowflake connector. If options are specified elsewhere in this node, this will take precedence.
sourcepub fn sample_query(self, input: impl Into<String>) -> Self
pub fn sample_query(self, input: impl Into<String>) -> Self
A SQL string used to retrieve data with the query
sourcetype.
sourcepub fn set_sample_query(self, input: Option<String>) -> Self
pub fn set_sample_query(self, input: Option<String>) -> Self
A SQL string used to retrieve data with the query
sourcetype.
sourcepub fn get_sample_query(&self) -> &Option<String>
pub fn get_sample_query(&self) -> &Option<String>
A SQL string used to retrieve data with the query
sourcetype.
sourcepub fn pre_action(self, input: impl Into<String>) -> Self
pub fn pre_action(self, input: impl Into<String>) -> Self
A SQL string run before the Snowflake connector performs its standard actions.
sourcepub fn set_pre_action(self, input: Option<String>) -> Self
pub fn set_pre_action(self, input: Option<String>) -> Self
A SQL string run before the Snowflake connector performs its standard actions.
sourcepub fn get_pre_action(&self) -> &Option<String>
pub fn get_pre_action(&self) -> &Option<String>
A SQL string run before the Snowflake connector performs its standard actions.
sourcepub fn post_action(self, input: impl Into<String>) -> Self
pub fn post_action(self, input: impl Into<String>) -> Self
A SQL string run after the Snowflake connector performs its standard actions.
sourcepub fn set_post_action(self, input: Option<String>) -> Self
pub fn set_post_action(self, input: Option<String>) -> Self
A SQL string run after the Snowflake connector performs its standard actions.
sourcepub fn get_post_action(&self) -> &Option<String>
pub fn get_post_action(&self) -> &Option<String>
A SQL string run after the Snowflake connector performs its standard actions.
sourcepub fn action(self, input: impl Into<String>) -> Self
pub fn action(self, input: impl Into<String>) -> Self
Specifies what action to take when writing to a table with preexisting data. Valid values: append
, merge
, truncate
, drop
.
sourcepub fn set_action(self, input: Option<String>) -> Self
pub fn set_action(self, input: Option<String>) -> Self
Specifies what action to take when writing to a table with preexisting data. Valid values: append
, merge
, truncate
, drop
.
sourcepub fn get_action(&self) -> &Option<String>
pub fn get_action(&self) -> &Option<String>
Specifies what action to take when writing to a table with preexisting data. Valid values: append
, merge
, truncate
, drop
.
sourcepub fn upsert(self, input: bool) -> Self
pub fn upsert(self, input: bool) -> Self
Used when Action is append
. Specifies the resolution behavior when a row already exists. If true, preexisting rows will be updated. If false, those rows will be inserted.
sourcepub fn set_upsert(self, input: Option<bool>) -> Self
pub fn set_upsert(self, input: Option<bool>) -> Self
Used when Action is append
. Specifies the resolution behavior when a row already exists. If true, preexisting rows will be updated. If false, those rows will be inserted.
sourcepub fn get_upsert(&self) -> &Option<bool>
pub fn get_upsert(&self) -> &Option<bool>
Used when Action is append
. Specifies the resolution behavior when a row already exists. If true, preexisting rows will be updated. If false, those rows will be inserted.
sourcepub fn merge_action(self, input: impl Into<String>) -> Self
pub fn merge_action(self, input: impl Into<String>) -> Self
Specifies a merge action. Valid values: simple
, custom
. If simple, merge behavior is defined by MergeWhenMatched
and MergeWhenNotMatched
. If custom, defined by MergeClause
.
sourcepub fn set_merge_action(self, input: Option<String>) -> Self
pub fn set_merge_action(self, input: Option<String>) -> Self
Specifies a merge action. Valid values: simple
, custom
. If simple, merge behavior is defined by MergeWhenMatched
and MergeWhenNotMatched
. If custom, defined by MergeClause
.
sourcepub fn get_merge_action(&self) -> &Option<String>
pub fn get_merge_action(&self) -> &Option<String>
Specifies a merge action. Valid values: simple
, custom
. If simple, merge behavior is defined by MergeWhenMatched
and MergeWhenNotMatched
. If custom, defined by MergeClause
.
sourcepub fn merge_when_matched(self, input: impl Into<String>) -> Self
pub fn merge_when_matched(self, input: impl Into<String>) -> Self
Specifies how to resolve records that match preexisting data when merging. Valid values: update
, delete
.
sourcepub fn set_merge_when_matched(self, input: Option<String>) -> Self
pub fn set_merge_when_matched(self, input: Option<String>) -> Self
Specifies how to resolve records that match preexisting data when merging. Valid values: update
, delete
.
sourcepub fn get_merge_when_matched(&self) -> &Option<String>
pub fn get_merge_when_matched(&self) -> &Option<String>
Specifies how to resolve records that match preexisting data when merging. Valid values: update
, delete
.
sourcepub fn merge_when_not_matched(self, input: impl Into<String>) -> Self
pub fn merge_when_not_matched(self, input: impl Into<String>) -> Self
Specifies how to process records that do not match preexisting data when merging. Valid values: insert
, none
.
sourcepub fn set_merge_when_not_matched(self, input: Option<String>) -> Self
pub fn set_merge_when_not_matched(self, input: Option<String>) -> Self
Specifies how to process records that do not match preexisting data when merging. Valid values: insert
, none
.
sourcepub fn get_merge_when_not_matched(&self) -> &Option<String>
pub fn get_merge_when_not_matched(&self) -> &Option<String>
Specifies how to process records that do not match preexisting data when merging. Valid values: insert
, none
.
sourcepub fn merge_clause(self, input: impl Into<String>) -> Self
pub fn merge_clause(self, input: impl Into<String>) -> Self
A SQL statement that specifies a custom merge behavior.
sourcepub fn set_merge_clause(self, input: Option<String>) -> Self
pub fn set_merge_clause(self, input: Option<String>) -> Self
A SQL statement that specifies a custom merge behavior.
sourcepub fn get_merge_clause(&self) -> &Option<String>
pub fn get_merge_clause(&self) -> &Option<String>
A SQL statement that specifies a custom merge behavior.
sourcepub fn staging_table(self, input: impl Into<String>) -> Self
pub fn staging_table(self, input: impl Into<String>) -> Self
The name of a staging table used when performing merge
or upsert append
actions. Data is written to this table, then moved to table
by a generated postaction.
sourcepub fn set_staging_table(self, input: Option<String>) -> Self
pub fn set_staging_table(self, input: Option<String>) -> Self
The name of a staging table used when performing merge
or upsert append
actions. Data is written to this table, then moved to table
by a generated postaction.
sourcepub fn get_staging_table(&self) -> &Option<String>
pub fn get_staging_table(&self) -> &Option<String>
The name of a staging table used when performing merge
or upsert append
actions. Data is written to this table, then moved to table
by a generated postaction.
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
.
Specifies the columns combined to identify a record when detecting matches for merges and upserts. A list of structures with value
, label
and description
keys. Each structure describes a column.
sourcepub fn set_selected_columns(self, input: Option<Vec<Option>>) -> Self
pub fn set_selected_columns(self, input: Option<Vec<Option>>) -> Self
Specifies the columns combined to identify a record when detecting matches for merges and upserts. A list of structures with value
, label
and description
keys. Each structure describes a column.
sourcepub fn get_selected_columns(&self) -> &Option<Vec<Option>>
pub fn get_selected_columns(&self) -> &Option<Vec<Option>>
Specifies the columns combined to identify a record when detecting matches for merges and upserts. A list of structures with value
, label
and description
keys. Each structure describes a column.
sourcepub fn auto_pushdown(self, input: bool) -> Self
pub fn auto_pushdown(self, input: bool) -> Self
Specifies whether automatic query pushdown is enabled. If pushdown is enabled, then when a query is run on Spark, if part of the query can be "pushed down" to the Snowflake server, it is pushed down. This improves performance of some queries.
sourcepub fn set_auto_pushdown(self, input: Option<bool>) -> Self
pub fn set_auto_pushdown(self, input: Option<bool>) -> Self
Specifies whether automatic query pushdown is enabled. If pushdown is enabled, then when a query is run on Spark, if part of the query can be "pushed down" to the Snowflake server, it is pushed down. This improves performance of some queries.
sourcepub fn get_auto_pushdown(&self) -> &Option<bool>
pub fn get_auto_pushdown(&self) -> &Option<bool>
Specifies whether automatic query pushdown is enabled. If pushdown is enabled, then when a query is run on Spark, if part of the query can be "pushed down" to the Snowflake server, it is pushed down. This improves performance of some queries.
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
.
Manually defines the target schema for the node. A list of structures with value
, label
and description
keys. Each structure defines a column.
sourcepub fn set_table_schema(self, input: Option<Vec<Option>>) -> Self
pub fn set_table_schema(self, input: Option<Vec<Option>>) -> Self
Manually defines the target schema for the node. A list of structures with value
, label
and description
keys. Each structure defines a column.
sourcepub fn get_table_schema(&self) -> &Option<Vec<Option>>
pub fn get_table_schema(&self) -> &Option<Vec<Option>>
Manually defines the target schema for the node. A list of structures with value
, label
and description
keys. Each structure defines a column.
sourcepub fn build(self) -> SnowflakeNodeData
pub fn build(self) -> SnowflakeNodeData
Consumes the builder and constructs a SnowflakeNodeData
.
Trait Implementations§
source§impl Clone for SnowflakeNodeDataBuilder
impl Clone for SnowflakeNodeDataBuilder
source§fn clone(&self) -> SnowflakeNodeDataBuilder
fn clone(&self) -> SnowflakeNodeDataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SnowflakeNodeDataBuilder
impl Debug for SnowflakeNodeDataBuilder
source§impl Default for SnowflakeNodeDataBuilder
impl Default for SnowflakeNodeDataBuilder
source§fn default() -> SnowflakeNodeDataBuilder
fn default() -> SnowflakeNodeDataBuilder
source§impl PartialEq for SnowflakeNodeDataBuilder
impl PartialEq for SnowflakeNodeDataBuilder
source§fn eq(&self, other: &SnowflakeNodeDataBuilder) -> bool
fn eq(&self, other: &SnowflakeNodeDataBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SnowflakeNodeDataBuilder
Auto Trait Implementations§
impl Freeze for SnowflakeNodeDataBuilder
impl RefUnwindSafe for SnowflakeNodeDataBuilder
impl Send for SnowflakeNodeDataBuilder
impl Sync for SnowflakeNodeDataBuilder
impl Unpin for SnowflakeNodeDataBuilder
impl UnwindSafe for SnowflakeNodeDataBuilder
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