All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.kinesisfirehose.model.SnowflakeDestinationConfiguration Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Kinesis module holds the client classes that are used for communicating with Amazon Kinesis Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.kinesisfirehose.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Configure Snowflake destination *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SnowflakeDestinationConfiguration implements Serializable, Cloneable, StructuredPojo { /** *

* URL for accessing your Snowflake account. This URL must include your account identifier. Note that the * protocol (https://) and port number are optional. *

*/ private String accountUrl; /** *

* The private key used to encrypt your Snowflake client. For information, see Using Key Pair Authentication & Key Rotation. *

*/ private String privateKey; /** *

* Passphrase to decrypt the private key when the key is encrypted. For information, see Using Key Pair Authentication & Key Rotation. *

*/ private String keyPassphrase; /** *

* User login name for the Snowflake account. *

*/ private String user; /** *

* All data in Snowflake is maintained in databases. *

*/ private String database; /** *

* Each database consists of one or more schemas, which are logical groupings of database objects, such as tables * and views *

*/ private String schema; /** *

* All data in Snowflake is stored in database tables, logically structured as collections of columns and rows. *

*/ private String table; /** *

* Optionally configure a Snowflake role. Otherwise the default user role will be used. *

*/ private SnowflakeRoleConfiguration snowflakeRoleConfiguration; /** *

* Choose to load JSON keys mapped to table column names or choose to split the JSON payload where content is mapped * to a record content column and source metadata is mapped to a record metadata column. *

*/ private String dataLoadingOption; /** *

* The name of the record metadata column *

*/ private String metaDataColumnName; /** *

* The name of the record content column *

*/ private String contentColumnName; /** *

* The VPCE ID for Firehose to privately connect with Snowflake. The ID format is * com.amazonaws.vpce.[region].vpce-svc-<[id]>. For more information, see Amazon PrivateLink & Snowflake *

*/ private SnowflakeVpcConfiguration snowflakeVpcConfiguration; private CloudWatchLoggingOptions cloudWatchLoggingOptions; private ProcessingConfiguration processingConfiguration; /** *

* The Amazon Resource Name (ARN) of the Snowflake role *

*/ private String roleARN; /** *

* The time period where Firehose will retry sending data to the chosen HTTP endpoint. *

*/ private SnowflakeRetryOptions retryOptions; /** *

* Choose an S3 backup mode *

*/ private String s3BackupMode; private S3DestinationConfiguration s3Configuration; /** *

* The configuration that defines how you access secrets for Snowflake. *

*/ private SecretsManagerConfiguration secretsManagerConfiguration; /** *

* Describes the buffering to perform before delivering data to the Snowflake destination. If you do not specify any * value, Firehose uses the default values. *

*/ private SnowflakeBufferingHints bufferingHints; /** *

* URL for accessing your Snowflake account. This URL must include your account identifier. Note that the * protocol (https://) and port number are optional. *

* * @param accountUrl * URL for accessing your Snowflake account. This URL must include your account identifier. Note that * the protocol (https://) and port number are optional. */ public void setAccountUrl(String accountUrl) { this.accountUrl = accountUrl; } /** *

* URL for accessing your Snowflake account. This URL must include your account identifier. Note that the * protocol (https://) and port number are optional. *

* * @return URL for accessing your Snowflake account. This URL must include your account identifier. Note * that the protocol (https://) and port number are optional. */ public String getAccountUrl() { return this.accountUrl; } /** *

* URL for accessing your Snowflake account. This URL must include your account identifier. Note that the * protocol (https://) and port number are optional. *

* * @param accountUrl * URL for accessing your Snowflake account. This URL must include your account identifier. Note that * the protocol (https://) and port number are optional. * @return Returns a reference to this object so that method calls can be chained together. */ public SnowflakeDestinationConfiguration withAccountUrl(String accountUrl) { setAccountUrl(accountUrl); return this; } /** *

* The private key used to encrypt your Snowflake client. For information, see Using Key Pair Authentication & Key Rotation. *

* * @param privateKey * The private key used to encrypt your Snowflake client. For information, see Using Key Pair Authentication & Key Rotation. */ public void setPrivateKey(String privateKey) { this.privateKey = privateKey; } /** *

* The private key used to encrypt your Snowflake client. For information, see Using Key Pair Authentication & Key Rotation. *

* * @return The private key used to encrypt your Snowflake client. For information, see Using Key Pair Authentication & Key Rotation. */ public String getPrivateKey() { return this.privateKey; } /** *

* The private key used to encrypt your Snowflake client. For information, see Using Key Pair Authentication & Key Rotation. *

* * @param privateKey * The private key used to encrypt your Snowflake client. For information, see Using Key Pair Authentication & Key Rotation. * @return Returns a reference to this object so that method calls can be chained together. */ public SnowflakeDestinationConfiguration withPrivateKey(String privateKey) { setPrivateKey(privateKey); return this; } /** *

* Passphrase to decrypt the private key when the key is encrypted. For information, see Using Key Pair Authentication & Key Rotation. *

* * @param keyPassphrase * Passphrase to decrypt the private key when the key is encrypted. For information, see Using Key Pair Authentication & Key Rotation. */ public void setKeyPassphrase(String keyPassphrase) { this.keyPassphrase = keyPassphrase; } /** *

* Passphrase to decrypt the private key when the key is encrypted. For information, see Using Key Pair Authentication & Key Rotation. *

* * @return Passphrase to decrypt the private key when the key is encrypted. For information, see Using Key Pair Authentication & Key Rotation. */ public String getKeyPassphrase() { return this.keyPassphrase; } /** *

* Passphrase to decrypt the private key when the key is encrypted. For information, see Using Key Pair Authentication & Key Rotation. *

* * @param keyPassphrase * Passphrase to decrypt the private key when the key is encrypted. For information, see Using Key Pair Authentication & Key Rotation. * @return Returns a reference to this object so that method calls can be chained together. */ public SnowflakeDestinationConfiguration withKeyPassphrase(String keyPassphrase) { setKeyPassphrase(keyPassphrase); return this; } /** *

* User login name for the Snowflake account. *

* * @param user * User login name for the Snowflake account. */ public void setUser(String user) { this.user = user; } /** *

* User login name for the Snowflake account. *

* * @return User login name for the Snowflake account. */ public String getUser() { return this.user; } /** *

* User login name for the Snowflake account. *

* * @param user * User login name for the Snowflake account. * @return Returns a reference to this object so that method calls can be chained together. */ public SnowflakeDestinationConfiguration withUser(String user) { setUser(user); return this; } /** *

* All data in Snowflake is maintained in databases. *

* * @param database * All data in Snowflake is maintained in databases. */ public void setDatabase(String database) { this.database = database; } /** *

* All data in Snowflake is maintained in databases. *

* * @return All data in Snowflake is maintained in databases. */ public String getDatabase() { return this.database; } /** *

* All data in Snowflake is maintained in databases. *

* * @param database * All data in Snowflake is maintained in databases. * @return Returns a reference to this object so that method calls can be chained together. */ public SnowflakeDestinationConfiguration withDatabase(String database) { setDatabase(database); return this; } /** *

* Each database consists of one or more schemas, which are logical groupings of database objects, such as tables * and views *

* * @param schema * Each database consists of one or more schemas, which are logical groupings of database objects, such as * tables and views */ public void setSchema(String schema) { this.schema = schema; } /** *

* Each database consists of one or more schemas, which are logical groupings of database objects, such as tables * and views *

* * @return Each database consists of one or more schemas, which are logical groupings of database objects, such as * tables and views */ public String getSchema() { return this.schema; } /** *

* Each database consists of one or more schemas, which are logical groupings of database objects, such as tables * and views *

* * @param schema * Each database consists of one or more schemas, which are logical groupings of database objects, such as * tables and views * @return Returns a reference to this object so that method calls can be chained together. */ public SnowflakeDestinationConfiguration withSchema(String schema) { setSchema(schema); return this; } /** *

* All data in Snowflake is stored in database tables, logically structured as collections of columns and rows. *

* * @param table * All data in Snowflake is stored in database tables, logically structured as collections of columns and * rows. */ public void setTable(String table) { this.table = table; } /** *

* All data in Snowflake is stored in database tables, logically structured as collections of columns and rows. *

* * @return All data in Snowflake is stored in database tables, logically structured as collections of columns and * rows. */ public String getTable() { return this.table; } /** *

* All data in Snowflake is stored in database tables, logically structured as collections of columns and rows. *

* * @param table * All data in Snowflake is stored in database tables, logically structured as collections of columns and * rows. * @return Returns a reference to this object so that method calls can be chained together. */ public SnowflakeDestinationConfiguration withTable(String table) { setTable(table); return this; } /** *

* Optionally configure a Snowflake role. Otherwise the default user role will be used. *

* * @param snowflakeRoleConfiguration * Optionally configure a Snowflake role. Otherwise the default user role will be used. */ public void setSnowflakeRoleConfiguration(SnowflakeRoleConfiguration snowflakeRoleConfiguration) { this.snowflakeRoleConfiguration = snowflakeRoleConfiguration; } /** *

* Optionally configure a Snowflake role. Otherwise the default user role will be used. *

* * @return Optionally configure a Snowflake role. Otherwise the default user role will be used. */ public SnowflakeRoleConfiguration getSnowflakeRoleConfiguration() { return this.snowflakeRoleConfiguration; } /** *

* Optionally configure a Snowflake role. Otherwise the default user role will be used. *

* * @param snowflakeRoleConfiguration * Optionally configure a Snowflake role. Otherwise the default user role will be used. * @return Returns a reference to this object so that method calls can be chained together. */ public SnowflakeDestinationConfiguration withSnowflakeRoleConfiguration(SnowflakeRoleConfiguration snowflakeRoleConfiguration) { setSnowflakeRoleConfiguration(snowflakeRoleConfiguration); return this; } /** *

* Choose to load JSON keys mapped to table column names or choose to split the JSON payload where content is mapped * to a record content column and source metadata is mapped to a record metadata column. *

* * @param dataLoadingOption * Choose to load JSON keys mapped to table column names or choose to split the JSON payload where content is * mapped to a record content column and source metadata is mapped to a record metadata column. * @see SnowflakeDataLoadingOption */ public void setDataLoadingOption(String dataLoadingOption) { this.dataLoadingOption = dataLoadingOption; } /** *

* Choose to load JSON keys mapped to table column names or choose to split the JSON payload where content is mapped * to a record content column and source metadata is mapped to a record metadata column. *

* * @return Choose to load JSON keys mapped to table column names or choose to split the JSON payload where content * is mapped to a record content column and source metadata is mapped to a record metadata column. * @see SnowflakeDataLoadingOption */ public String getDataLoadingOption() { return this.dataLoadingOption; } /** *

* Choose to load JSON keys mapped to table column names or choose to split the JSON payload where content is mapped * to a record content column and source metadata is mapped to a record metadata column. *

* * @param dataLoadingOption * Choose to load JSON keys mapped to table column names or choose to split the JSON payload where content is * mapped to a record content column and source metadata is mapped to a record metadata column. * @return Returns a reference to this object so that method calls can be chained together. * @see SnowflakeDataLoadingOption */ public SnowflakeDestinationConfiguration withDataLoadingOption(String dataLoadingOption) { setDataLoadingOption(dataLoadingOption); return this; } /** *

* Choose to load JSON keys mapped to table column names or choose to split the JSON payload where content is mapped * to a record content column and source metadata is mapped to a record metadata column. *

* * @param dataLoadingOption * Choose to load JSON keys mapped to table column names or choose to split the JSON payload where content is * mapped to a record content column and source metadata is mapped to a record metadata column. * @return Returns a reference to this object so that method calls can be chained together. * @see SnowflakeDataLoadingOption */ public SnowflakeDestinationConfiguration withDataLoadingOption(SnowflakeDataLoadingOption dataLoadingOption) { this.dataLoadingOption = dataLoadingOption.toString(); return this; } /** *

* The name of the record metadata column *

* * @param metaDataColumnName * The name of the record metadata column */ public void setMetaDataColumnName(String metaDataColumnName) { this.metaDataColumnName = metaDataColumnName; } /** *

* The name of the record metadata column *

* * @return The name of the record metadata column */ public String getMetaDataColumnName() { return this.metaDataColumnName; } /** *

* The name of the record metadata column *

* * @param metaDataColumnName * The name of the record metadata column * @return Returns a reference to this object so that method calls can be chained together. */ public SnowflakeDestinationConfiguration withMetaDataColumnName(String metaDataColumnName) { setMetaDataColumnName(metaDataColumnName); return this; } /** *

* The name of the record content column *

* * @param contentColumnName * The name of the record content column */ public void setContentColumnName(String contentColumnName) { this.contentColumnName = contentColumnName; } /** *

* The name of the record content column *

* * @return The name of the record content column */ public String getContentColumnName() { return this.contentColumnName; } /** *

* The name of the record content column *

* * @param contentColumnName * The name of the record content column * @return Returns a reference to this object so that method calls can be chained together. */ public SnowflakeDestinationConfiguration withContentColumnName(String contentColumnName) { setContentColumnName(contentColumnName); return this; } /** *

* The VPCE ID for Firehose to privately connect with Snowflake. The ID format is * com.amazonaws.vpce.[region].vpce-svc-<[id]>. For more information, see Amazon PrivateLink & Snowflake *

* * @param snowflakeVpcConfiguration * The VPCE ID for Firehose to privately connect with Snowflake. The ID format is * com.amazonaws.vpce.[region].vpce-svc-<[id]>. For more information, see Amazon PrivateLink & * Snowflake */ public void setSnowflakeVpcConfiguration(SnowflakeVpcConfiguration snowflakeVpcConfiguration) { this.snowflakeVpcConfiguration = snowflakeVpcConfiguration; } /** *

* The VPCE ID for Firehose to privately connect with Snowflake. The ID format is * com.amazonaws.vpce.[region].vpce-svc-<[id]>. For more information, see Amazon PrivateLink & Snowflake *

* * @return The VPCE ID for Firehose to privately connect with Snowflake. The ID format is * com.amazonaws.vpce.[region].vpce-svc-<[id]>. For more information, see Amazon PrivateLink & * Snowflake */ public SnowflakeVpcConfiguration getSnowflakeVpcConfiguration() { return this.snowflakeVpcConfiguration; } /** *

* The VPCE ID for Firehose to privately connect with Snowflake. The ID format is * com.amazonaws.vpce.[region].vpce-svc-<[id]>. For more information, see Amazon PrivateLink & Snowflake *

* * @param snowflakeVpcConfiguration * The VPCE ID for Firehose to privately connect with Snowflake. The ID format is * com.amazonaws.vpce.[region].vpce-svc-<[id]>. For more information, see Amazon PrivateLink & * Snowflake * @return Returns a reference to this object so that method calls can be chained together. */ public SnowflakeDestinationConfiguration withSnowflakeVpcConfiguration(SnowflakeVpcConfiguration snowflakeVpcConfiguration) { setSnowflakeVpcConfiguration(snowflakeVpcConfiguration); return this; } /** * @param cloudWatchLoggingOptions */ public void setCloudWatchLoggingOptions(CloudWatchLoggingOptions cloudWatchLoggingOptions) { this.cloudWatchLoggingOptions = cloudWatchLoggingOptions; } /** * @return */ public CloudWatchLoggingOptions getCloudWatchLoggingOptions() { return this.cloudWatchLoggingOptions; } /** * @param cloudWatchLoggingOptions * @return Returns a reference to this object so that method calls can be chained together. */ public SnowflakeDestinationConfiguration withCloudWatchLoggingOptions(CloudWatchLoggingOptions cloudWatchLoggingOptions) { setCloudWatchLoggingOptions(cloudWatchLoggingOptions); return this; } /** * @param processingConfiguration */ public void setProcessingConfiguration(ProcessingConfiguration processingConfiguration) { this.processingConfiguration = processingConfiguration; } /** * @return */ public ProcessingConfiguration getProcessingConfiguration() { return this.processingConfiguration; } /** * @param processingConfiguration * @return Returns a reference to this object so that method calls can be chained together. */ public SnowflakeDestinationConfiguration withProcessingConfiguration(ProcessingConfiguration processingConfiguration) { setProcessingConfiguration(processingConfiguration); return this; } /** *

* The Amazon Resource Name (ARN) of the Snowflake role *

* * @param roleARN * The Amazon Resource Name (ARN) of the Snowflake role */ public void setRoleARN(String roleARN) { this.roleARN = roleARN; } /** *

* The Amazon Resource Name (ARN) of the Snowflake role *

* * @return The Amazon Resource Name (ARN) of the Snowflake role */ public String getRoleARN() { return this.roleARN; } /** *

* The Amazon Resource Name (ARN) of the Snowflake role *

* * @param roleARN * The Amazon Resource Name (ARN) of the Snowflake role * @return Returns a reference to this object so that method calls can be chained together. */ public SnowflakeDestinationConfiguration withRoleARN(String roleARN) { setRoleARN(roleARN); return this; } /** *

* The time period where Firehose will retry sending data to the chosen HTTP endpoint. *

* * @param retryOptions * The time period where Firehose will retry sending data to the chosen HTTP endpoint. */ public void setRetryOptions(SnowflakeRetryOptions retryOptions) { this.retryOptions = retryOptions; } /** *

* The time period where Firehose will retry sending data to the chosen HTTP endpoint. *

* * @return The time period where Firehose will retry sending data to the chosen HTTP endpoint. */ public SnowflakeRetryOptions getRetryOptions() { return this.retryOptions; } /** *

* The time period where Firehose will retry sending data to the chosen HTTP endpoint. *

* * @param retryOptions * The time period where Firehose will retry sending data to the chosen HTTP endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public SnowflakeDestinationConfiguration withRetryOptions(SnowflakeRetryOptions retryOptions) { setRetryOptions(retryOptions); return this; } /** *

* Choose an S3 backup mode *

* * @param s3BackupMode * Choose an S3 backup mode * @see SnowflakeS3BackupMode */ public void setS3BackupMode(String s3BackupMode) { this.s3BackupMode = s3BackupMode; } /** *

* Choose an S3 backup mode *

* * @return Choose an S3 backup mode * @see SnowflakeS3BackupMode */ public String getS3BackupMode() { return this.s3BackupMode; } /** *

* Choose an S3 backup mode *

* * @param s3BackupMode * Choose an S3 backup mode * @return Returns a reference to this object so that method calls can be chained together. * @see SnowflakeS3BackupMode */ public SnowflakeDestinationConfiguration withS3BackupMode(String s3BackupMode) { setS3BackupMode(s3BackupMode); return this; } /** *

* Choose an S3 backup mode *

* * @param s3BackupMode * Choose an S3 backup mode * @return Returns a reference to this object so that method calls can be chained together. * @see SnowflakeS3BackupMode */ public SnowflakeDestinationConfiguration withS3BackupMode(SnowflakeS3BackupMode s3BackupMode) { this.s3BackupMode = s3BackupMode.toString(); return this; } /** * @param s3Configuration */ public void setS3Configuration(S3DestinationConfiguration s3Configuration) { this.s3Configuration = s3Configuration; } /** * @return */ public S3DestinationConfiguration getS3Configuration() { return this.s3Configuration; } /** * @param s3Configuration * @return Returns a reference to this object so that method calls can be chained together. */ public SnowflakeDestinationConfiguration withS3Configuration(S3DestinationConfiguration s3Configuration) { setS3Configuration(s3Configuration); return this; } /** *

* The configuration that defines how you access secrets for Snowflake. *

* * @param secretsManagerConfiguration * The configuration that defines how you access secrets for Snowflake. */ public void setSecretsManagerConfiguration(SecretsManagerConfiguration secretsManagerConfiguration) { this.secretsManagerConfiguration = secretsManagerConfiguration; } /** *

* The configuration that defines how you access secrets for Snowflake. *

* * @return The configuration that defines how you access secrets for Snowflake. */ public SecretsManagerConfiguration getSecretsManagerConfiguration() { return this.secretsManagerConfiguration; } /** *

* The configuration that defines how you access secrets for Snowflake. *

* * @param secretsManagerConfiguration * The configuration that defines how you access secrets for Snowflake. * @return Returns a reference to this object so that method calls can be chained together. */ public SnowflakeDestinationConfiguration withSecretsManagerConfiguration(SecretsManagerConfiguration secretsManagerConfiguration) { setSecretsManagerConfiguration(secretsManagerConfiguration); return this; } /** *

* Describes the buffering to perform before delivering data to the Snowflake destination. If you do not specify any * value, Firehose uses the default values. *

* * @param bufferingHints * Describes the buffering to perform before delivering data to the Snowflake destination. If you do not * specify any value, Firehose uses the default values. */ public void setBufferingHints(SnowflakeBufferingHints bufferingHints) { this.bufferingHints = bufferingHints; } /** *

* Describes the buffering to perform before delivering data to the Snowflake destination. If you do not specify any * value, Firehose uses the default values. *

* * @return Describes the buffering to perform before delivering data to the Snowflake destination. If you do not * specify any value, Firehose uses the default values. */ public SnowflakeBufferingHints getBufferingHints() { return this.bufferingHints; } /** *

* Describes the buffering to perform before delivering data to the Snowflake destination. If you do not specify any * value, Firehose uses the default values. *

* * @param bufferingHints * Describes the buffering to perform before delivering data to the Snowflake destination. If you do not * specify any value, Firehose uses the default values. * @return Returns a reference to this object so that method calls can be chained together. */ public SnowflakeDestinationConfiguration withBufferingHints(SnowflakeBufferingHints bufferingHints) { setBufferingHints(bufferingHints); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAccountUrl() != null) sb.append("AccountUrl: ").append("***Sensitive Data Redacted***").append(","); if (getPrivateKey() != null) sb.append("PrivateKey: ").append("***Sensitive Data Redacted***").append(","); if (getKeyPassphrase() != null) sb.append("KeyPassphrase: ").append("***Sensitive Data Redacted***").append(","); if (getUser() != null) sb.append("User: ").append("***Sensitive Data Redacted***").append(","); if (getDatabase() != null) sb.append("Database: ").append("***Sensitive Data Redacted***").append(","); if (getSchema() != null) sb.append("Schema: ").append("***Sensitive Data Redacted***").append(","); if (getTable() != null) sb.append("Table: ").append("***Sensitive Data Redacted***").append(","); if (getSnowflakeRoleConfiguration() != null) sb.append("SnowflakeRoleConfiguration: ").append(getSnowflakeRoleConfiguration()).append(","); if (getDataLoadingOption() != null) sb.append("DataLoadingOption: ").append(getDataLoadingOption()).append(","); if (getMetaDataColumnName() != null) sb.append("MetaDataColumnName: ").append("***Sensitive Data Redacted***").append(","); if (getContentColumnName() != null) sb.append("ContentColumnName: ").append("***Sensitive Data Redacted***").append(","); if (getSnowflakeVpcConfiguration() != null) sb.append("SnowflakeVpcConfiguration: ").append(getSnowflakeVpcConfiguration()).append(","); if (getCloudWatchLoggingOptions() != null) sb.append("CloudWatchLoggingOptions: ").append(getCloudWatchLoggingOptions()).append(","); if (getProcessingConfiguration() != null) sb.append("ProcessingConfiguration: ").append(getProcessingConfiguration()).append(","); if (getRoleARN() != null) sb.append("RoleARN: ").append(getRoleARN()).append(","); if (getRetryOptions() != null) sb.append("RetryOptions: ").append(getRetryOptions()).append(","); if (getS3BackupMode() != null) sb.append("S3BackupMode: ").append(getS3BackupMode()).append(","); if (getS3Configuration() != null) sb.append("S3Configuration: ").append(getS3Configuration()).append(","); if (getSecretsManagerConfiguration() != null) sb.append("SecretsManagerConfiguration: ").append(getSecretsManagerConfiguration()).append(","); if (getBufferingHints() != null) sb.append("BufferingHints: ").append(getBufferingHints()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SnowflakeDestinationConfiguration == false) return false; SnowflakeDestinationConfiguration other = (SnowflakeDestinationConfiguration) obj; if (other.getAccountUrl() == null ^ this.getAccountUrl() == null) return false; if (other.getAccountUrl() != null && other.getAccountUrl().equals(this.getAccountUrl()) == false) return false; if (other.getPrivateKey() == null ^ this.getPrivateKey() == null) return false; if (other.getPrivateKey() != null && other.getPrivateKey().equals(this.getPrivateKey()) == false) return false; if (other.getKeyPassphrase() == null ^ this.getKeyPassphrase() == null) return false; if (other.getKeyPassphrase() != null && other.getKeyPassphrase().equals(this.getKeyPassphrase()) == false) return false; if (other.getUser() == null ^ this.getUser() == null) return false; if (other.getUser() != null && other.getUser().equals(this.getUser()) == false) return false; if (other.getDatabase() == null ^ this.getDatabase() == null) return false; if (other.getDatabase() != null && other.getDatabase().equals(this.getDatabase()) == false) return false; if (other.getSchema() == null ^ this.getSchema() == null) return false; if (other.getSchema() != null && other.getSchema().equals(this.getSchema()) == false) return false; if (other.getTable() == null ^ this.getTable() == null) return false; if (other.getTable() != null && other.getTable().equals(this.getTable()) == false) return false; if (other.getSnowflakeRoleConfiguration() == null ^ this.getSnowflakeRoleConfiguration() == null) return false; if (other.getSnowflakeRoleConfiguration() != null && other.getSnowflakeRoleConfiguration().equals(this.getSnowflakeRoleConfiguration()) == false) return false; if (other.getDataLoadingOption() == null ^ this.getDataLoadingOption() == null) return false; if (other.getDataLoadingOption() != null && other.getDataLoadingOption().equals(this.getDataLoadingOption()) == false) return false; if (other.getMetaDataColumnName() == null ^ this.getMetaDataColumnName() == null) return false; if (other.getMetaDataColumnName() != null && other.getMetaDataColumnName().equals(this.getMetaDataColumnName()) == false) return false; if (other.getContentColumnName() == null ^ this.getContentColumnName() == null) return false; if (other.getContentColumnName() != null && other.getContentColumnName().equals(this.getContentColumnName()) == false) return false; if (other.getSnowflakeVpcConfiguration() == null ^ this.getSnowflakeVpcConfiguration() == null) return false; if (other.getSnowflakeVpcConfiguration() != null && other.getSnowflakeVpcConfiguration().equals(this.getSnowflakeVpcConfiguration()) == false) return false; if (other.getCloudWatchLoggingOptions() == null ^ this.getCloudWatchLoggingOptions() == null) return false; if (other.getCloudWatchLoggingOptions() != null && other.getCloudWatchLoggingOptions().equals(this.getCloudWatchLoggingOptions()) == false) return false; if (other.getProcessingConfiguration() == null ^ this.getProcessingConfiguration() == null) return false; if (other.getProcessingConfiguration() != null && other.getProcessingConfiguration().equals(this.getProcessingConfiguration()) == false) return false; if (other.getRoleARN() == null ^ this.getRoleARN() == null) return false; if (other.getRoleARN() != null && other.getRoleARN().equals(this.getRoleARN()) == false) return false; if (other.getRetryOptions() == null ^ this.getRetryOptions() == null) return false; if (other.getRetryOptions() != null && other.getRetryOptions().equals(this.getRetryOptions()) == false) return false; if (other.getS3BackupMode() == null ^ this.getS3BackupMode() == null) return false; if (other.getS3BackupMode() != null && other.getS3BackupMode().equals(this.getS3BackupMode()) == false) return false; if (other.getS3Configuration() == null ^ this.getS3Configuration() == null) return false; if (other.getS3Configuration() != null && other.getS3Configuration().equals(this.getS3Configuration()) == false) return false; if (other.getSecretsManagerConfiguration() == null ^ this.getSecretsManagerConfiguration() == null) return false; if (other.getSecretsManagerConfiguration() != null && other.getSecretsManagerConfiguration().equals(this.getSecretsManagerConfiguration()) == false) return false; if (other.getBufferingHints() == null ^ this.getBufferingHints() == null) return false; if (other.getBufferingHints() != null && other.getBufferingHints().equals(this.getBufferingHints()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAccountUrl() == null) ? 0 : getAccountUrl().hashCode()); hashCode = prime * hashCode + ((getPrivateKey() == null) ? 0 : getPrivateKey().hashCode()); hashCode = prime * hashCode + ((getKeyPassphrase() == null) ? 0 : getKeyPassphrase().hashCode()); hashCode = prime * hashCode + ((getUser() == null) ? 0 : getUser().hashCode()); hashCode = prime * hashCode + ((getDatabase() == null) ? 0 : getDatabase().hashCode()); hashCode = prime * hashCode + ((getSchema() == null) ? 0 : getSchema().hashCode()); hashCode = prime * hashCode + ((getTable() == null) ? 0 : getTable().hashCode()); hashCode = prime * hashCode + ((getSnowflakeRoleConfiguration() == null) ? 0 : getSnowflakeRoleConfiguration().hashCode()); hashCode = prime * hashCode + ((getDataLoadingOption() == null) ? 0 : getDataLoadingOption().hashCode()); hashCode = prime * hashCode + ((getMetaDataColumnName() == null) ? 0 : getMetaDataColumnName().hashCode()); hashCode = prime * hashCode + ((getContentColumnName() == null) ? 0 : getContentColumnName().hashCode()); hashCode = prime * hashCode + ((getSnowflakeVpcConfiguration() == null) ? 0 : getSnowflakeVpcConfiguration().hashCode()); hashCode = prime * hashCode + ((getCloudWatchLoggingOptions() == null) ? 0 : getCloudWatchLoggingOptions().hashCode()); hashCode = prime * hashCode + ((getProcessingConfiguration() == null) ? 0 : getProcessingConfiguration().hashCode()); hashCode = prime * hashCode + ((getRoleARN() == null) ? 0 : getRoleARN().hashCode()); hashCode = prime * hashCode + ((getRetryOptions() == null) ? 0 : getRetryOptions().hashCode()); hashCode = prime * hashCode + ((getS3BackupMode() == null) ? 0 : getS3BackupMode().hashCode()); hashCode = prime * hashCode + ((getS3Configuration() == null) ? 0 : getS3Configuration().hashCode()); hashCode = prime * hashCode + ((getSecretsManagerConfiguration() == null) ? 0 : getSecretsManagerConfiguration().hashCode()); hashCode = prime * hashCode + ((getBufferingHints() == null) ? 0 : getBufferingHints().hashCode()); return hashCode; } @Override public SnowflakeDestinationConfiguration clone() { try { return (SnowflakeDestinationConfiguration) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.kinesisfirehose.model.transform.SnowflakeDestinationConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy