SnowflakeExportCopyCommand Class

public final class SnowflakeExportCopyCommand
extends ExportSettings

Snowflake export command settings.

Constructor Summary

Constructor Description
SnowflakeExportCopyCommand()

Creates an instance of SnowflakeExportCopyCommand class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalCopyOptions()

Get the additionalCopyOptions property: Additional copy options directly passed to snowflake Copy Command.

Map<String,Object> additionalFormatOptions()

Get the additionalFormatOptions property: Additional format options directly passed to snowflake Copy Command.

static SnowflakeExportCopyCommand fromJson(JsonReader jsonReader)

Reads an instance of SnowflakeExportCopyCommand from the JsonReader.

Object storageIntegration()

Get the storageIntegration property: The name of the snowflake storage integration to use for the copy operation.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The export setting type.

void validate()

Validates the instance.

SnowflakeExportCopyCommand withAdditionalCopyOptions(Map<String,Object> additionalCopyOptions)

Set the additionalCopyOptions property: Additional copy options directly passed to snowflake Copy Command.

SnowflakeExportCopyCommand withAdditionalFormatOptions(Map<String,Object> additionalFormatOptions)

Set the additionalFormatOptions property: Additional format options directly passed to snowflake Copy Command.

SnowflakeExportCopyCommand withStorageIntegration(Object storageIntegration)

Set the storageIntegration property: The name of the snowflake storage integration to use for the copy operation.

Methods inherited from ExportSettings

Methods inherited from java.lang.Object

Constructor Details

SnowflakeExportCopyCommand

public SnowflakeExportCopyCommand()

Creates an instance of SnowflakeExportCopyCommand class.

Method Details

additionalCopyOptions

public Map<String,Object> additionalCopyOptions()

Get the additionalCopyOptions property: Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", "TIME_FORMAT": "'HH24:MI:SS.FF'" }.

Returns:

the additionalCopyOptions value.

additionalFormatOptions

public Map<String,Object> additionalFormatOptions()

Get the additionalFormatOptions property: Additional format options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: "additionalFormatOptions": { "OVERWRITE": "TRUE", "MAX_FILE_SIZE": "'FALSE'" }.

Returns:

the additionalFormatOptions value.

fromJson

public static SnowflakeExportCopyCommand fromJson(JsonReader jsonReader)

Reads an instance of SnowflakeExportCopyCommand from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SnowflakeExportCopyCommand if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the SnowflakeExportCopyCommand.

storageIntegration

public Object storageIntegration()

Get the storageIntegration property: The name of the snowflake storage integration to use for the copy operation. Type: string (or Expression with resultType string).

Returns:

the storageIntegration value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SnowflakeExportCopyCommand.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The export setting type.

Overrides:

SnowflakeExportCopyCommand.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

SnowflakeExportCopyCommand.validate()

withAdditionalCopyOptions

public SnowflakeExportCopyCommand withAdditionalCopyOptions(Map<String,Object> additionalCopyOptions)

Set the additionalCopyOptions property: Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", "TIME_FORMAT": "'HH24:MI:SS.FF'" }.

Parameters:

additionalCopyOptions - the additionalCopyOptions value to set.

Returns:

the SnowflakeExportCopyCommand object itself.

withAdditionalFormatOptions

public SnowflakeExportCopyCommand withAdditionalFormatOptions(Map<String,Object> additionalFormatOptions)

Set the additionalFormatOptions property: Additional format options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: "additionalFormatOptions": { "OVERWRITE": "TRUE", "MAX_FILE_SIZE": "'FALSE'" }.

Parameters:

additionalFormatOptions - the additionalFormatOptions value to set.

Returns:

the SnowflakeExportCopyCommand object itself.

withStorageIntegration

public SnowflakeExportCopyCommand withStorageIntegration(Object storageIntegration)

Set the storageIntegration property: The name of the snowflake storage integration to use for the copy operation. Type: string (or Expression with resultType string).

Parameters:

storageIntegration - the storageIntegration value to set.

Returns:

the SnowflakeExportCopyCommand object itself.

Applies to