/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Firehose { namespace Model { /** *

Describes an update for a destination in Amazon Redshift.

See * Also:

AWS * API Reference

*/ class AWS_FIREHOSE_API RedshiftDestinationUpdate { public: RedshiftDestinationUpdate(); RedshiftDestinationUpdate(Aws::Utils::Json::JsonView jsonValue); RedshiftDestinationUpdate& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the AWS credentials. For more information, * see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline const Aws::String& GetRoleARN() const{ return m_roleARN; } /** *

The Amazon Resource Name (ARN) of the AWS credentials. For more information, * see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the AWS credentials. For more information, * see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; } /** *

The Amazon Resource Name (ARN) of the AWS credentials. For more information, * see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the AWS credentials. For more information, * see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the AWS credentials. For more information, * see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline RedshiftDestinationUpdate& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the AWS credentials. For more information, * see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline RedshiftDestinationUpdate& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the AWS credentials. For more information, * see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline RedshiftDestinationUpdate& WithRoleARN(const char* value) { SetRoleARN(value); return *this;} /** *

The database connection string.

*/ inline const Aws::String& GetClusterJDBCURL() const{ return m_clusterJDBCURL; } /** *

The database connection string.

*/ inline bool ClusterJDBCURLHasBeenSet() const { return m_clusterJDBCURLHasBeenSet; } /** *

The database connection string.

*/ inline void SetClusterJDBCURL(const Aws::String& value) { m_clusterJDBCURLHasBeenSet = true; m_clusterJDBCURL = value; } /** *

The database connection string.

*/ inline void SetClusterJDBCURL(Aws::String&& value) { m_clusterJDBCURLHasBeenSet = true; m_clusterJDBCURL = std::move(value); } /** *

The database connection string.

*/ inline void SetClusterJDBCURL(const char* value) { m_clusterJDBCURLHasBeenSet = true; m_clusterJDBCURL.assign(value); } /** *

The database connection string.

*/ inline RedshiftDestinationUpdate& WithClusterJDBCURL(const Aws::String& value) { SetClusterJDBCURL(value); return *this;} /** *

The database connection string.

*/ inline RedshiftDestinationUpdate& WithClusterJDBCURL(Aws::String&& value) { SetClusterJDBCURL(std::move(value)); return *this;} /** *

The database connection string.

*/ inline RedshiftDestinationUpdate& WithClusterJDBCURL(const char* value) { SetClusterJDBCURL(value); return *this;} /** *

The COPY command.

*/ inline const CopyCommand& GetCopyCommand() const{ return m_copyCommand; } /** *

The COPY command.

*/ inline bool CopyCommandHasBeenSet() const { return m_copyCommandHasBeenSet; } /** *

The COPY command.

*/ inline void SetCopyCommand(const CopyCommand& value) { m_copyCommandHasBeenSet = true; m_copyCommand = value; } /** *

The COPY command.

*/ inline void SetCopyCommand(CopyCommand&& value) { m_copyCommandHasBeenSet = true; m_copyCommand = std::move(value); } /** *

The COPY command.

*/ inline RedshiftDestinationUpdate& WithCopyCommand(const CopyCommand& value) { SetCopyCommand(value); return *this;} /** *

The COPY command.

*/ inline RedshiftDestinationUpdate& WithCopyCommand(CopyCommand&& value) { SetCopyCommand(std::move(value)); return *this;} /** *

The name of the user.

*/ inline const Aws::String& GetUsername() const{ return m_username; } /** *

The name of the user.

*/ inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; } /** *

The name of the user.

*/ inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; } /** *

The name of the user.

*/ inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); } /** *

The name of the user.

*/ inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); } /** *

The name of the user.

*/ inline RedshiftDestinationUpdate& WithUsername(const Aws::String& value) { SetUsername(value); return *this;} /** *

The name of the user.

*/ inline RedshiftDestinationUpdate& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;} /** *

The name of the user.

*/ inline RedshiftDestinationUpdate& WithUsername(const char* value) { SetUsername(value); return *this;} /** *

The user password.

*/ inline const Aws::String& GetPassword() const{ return m_password; } /** *

The user password.

*/ inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; } /** *

The user password.

*/ inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; } /** *

The user password.

*/ inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); } /** *

The user password.

*/ inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); } /** *

The user password.

*/ inline RedshiftDestinationUpdate& WithPassword(const Aws::String& value) { SetPassword(value); return *this;} /** *

The user password.

*/ inline RedshiftDestinationUpdate& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;} /** *

The user password.

*/ inline RedshiftDestinationUpdate& WithPassword(const char* value) { SetPassword(value); return *this;} /** *

The retry behavior in case Kinesis Data Firehose is unable to deliver * documents to Amazon Redshift. Default value is 3600 (60 minutes).

*/ inline const RedshiftRetryOptions& GetRetryOptions() const{ return m_retryOptions; } /** *

The retry behavior in case Kinesis Data Firehose is unable to deliver * documents to Amazon Redshift. Default value is 3600 (60 minutes).

*/ inline bool RetryOptionsHasBeenSet() const { return m_retryOptionsHasBeenSet; } /** *

The retry behavior in case Kinesis Data Firehose is unable to deliver * documents to Amazon Redshift. Default value is 3600 (60 minutes).

*/ inline void SetRetryOptions(const RedshiftRetryOptions& value) { m_retryOptionsHasBeenSet = true; m_retryOptions = value; } /** *

The retry behavior in case Kinesis Data Firehose is unable to deliver * documents to Amazon Redshift. Default value is 3600 (60 minutes).

*/ inline void SetRetryOptions(RedshiftRetryOptions&& value) { m_retryOptionsHasBeenSet = true; m_retryOptions = std::move(value); } /** *

The retry behavior in case Kinesis Data Firehose is unable to deliver * documents to Amazon Redshift. Default value is 3600 (60 minutes).

*/ inline RedshiftDestinationUpdate& WithRetryOptions(const RedshiftRetryOptions& value) { SetRetryOptions(value); return *this;} /** *

The retry behavior in case Kinesis Data Firehose is unable to deliver * documents to Amazon Redshift. Default value is 3600 (60 minutes).

*/ inline RedshiftDestinationUpdate& WithRetryOptions(RedshiftRetryOptions&& value) { SetRetryOptions(std::move(value)); return *this;} /** *

The Amazon S3 destination.

The compression formats SNAPPY * or ZIP cannot be specified in * RedshiftDestinationUpdate.S3Update because the Amazon Redshift * COPY operation that reads from the S3 bucket doesn't support these * compression formats.

*/ inline const S3DestinationUpdate& GetS3Update() const{ return m_s3Update; } /** *

The Amazon S3 destination.

The compression formats SNAPPY * or ZIP cannot be specified in * RedshiftDestinationUpdate.S3Update because the Amazon Redshift * COPY operation that reads from the S3 bucket doesn't support these * compression formats.

*/ inline bool S3UpdateHasBeenSet() const { return m_s3UpdateHasBeenSet; } /** *

The Amazon S3 destination.

The compression formats SNAPPY * or ZIP cannot be specified in * RedshiftDestinationUpdate.S3Update because the Amazon Redshift * COPY operation that reads from the S3 bucket doesn't support these * compression formats.

*/ inline void SetS3Update(const S3DestinationUpdate& value) { m_s3UpdateHasBeenSet = true; m_s3Update = value; } /** *

The Amazon S3 destination.

The compression formats SNAPPY * or ZIP cannot be specified in * RedshiftDestinationUpdate.S3Update because the Amazon Redshift * COPY operation that reads from the S3 bucket doesn't support these * compression formats.

*/ inline void SetS3Update(S3DestinationUpdate&& value) { m_s3UpdateHasBeenSet = true; m_s3Update = std::move(value); } /** *

The Amazon S3 destination.

The compression formats SNAPPY * or ZIP cannot be specified in * RedshiftDestinationUpdate.S3Update because the Amazon Redshift * COPY operation that reads from the S3 bucket doesn't support these * compression formats.

*/ inline RedshiftDestinationUpdate& WithS3Update(const S3DestinationUpdate& value) { SetS3Update(value); return *this;} /** *

The Amazon S3 destination.

The compression formats SNAPPY * or ZIP cannot be specified in * RedshiftDestinationUpdate.S3Update because the Amazon Redshift * COPY operation that reads from the S3 bucket doesn't support these * compression formats.

*/ inline RedshiftDestinationUpdate& WithS3Update(S3DestinationUpdate&& value) { SetS3Update(std::move(value)); return *this;} /** *

The data processing configuration.

*/ inline const ProcessingConfiguration& GetProcessingConfiguration() const{ return m_processingConfiguration; } /** *

The data processing configuration.

*/ inline bool ProcessingConfigurationHasBeenSet() const { return m_processingConfigurationHasBeenSet; } /** *

The data processing configuration.

*/ inline void SetProcessingConfiguration(const ProcessingConfiguration& value) { m_processingConfigurationHasBeenSet = true; m_processingConfiguration = value; } /** *

The data processing configuration.

*/ inline void SetProcessingConfiguration(ProcessingConfiguration&& value) { m_processingConfigurationHasBeenSet = true; m_processingConfiguration = std::move(value); } /** *

The data processing configuration.

*/ inline RedshiftDestinationUpdate& WithProcessingConfiguration(const ProcessingConfiguration& value) { SetProcessingConfiguration(value); return *this;} /** *

The data processing configuration.

*/ inline RedshiftDestinationUpdate& WithProcessingConfiguration(ProcessingConfiguration&& value) { SetProcessingConfiguration(std::move(value)); return *this;} /** *

You can update a delivery stream to enable Amazon S3 backup if it is * disabled. If backup is enabled, you can't update the delivery stream to disable * it.

*/ inline const RedshiftS3BackupMode& GetS3BackupMode() const{ return m_s3BackupMode; } /** *

You can update a delivery stream to enable Amazon S3 backup if it is * disabled. If backup is enabled, you can't update the delivery stream to disable * it.

*/ inline bool S3BackupModeHasBeenSet() const { return m_s3BackupModeHasBeenSet; } /** *

You can update a delivery stream to enable Amazon S3 backup if it is * disabled. If backup is enabled, you can't update the delivery stream to disable * it.

*/ inline void SetS3BackupMode(const RedshiftS3BackupMode& value) { m_s3BackupModeHasBeenSet = true; m_s3BackupMode = value; } /** *

You can update a delivery stream to enable Amazon S3 backup if it is * disabled. If backup is enabled, you can't update the delivery stream to disable * it.

*/ inline void SetS3BackupMode(RedshiftS3BackupMode&& value) { m_s3BackupModeHasBeenSet = true; m_s3BackupMode = std::move(value); } /** *

You can update a delivery stream to enable Amazon S3 backup if it is * disabled. If backup is enabled, you can't update the delivery stream to disable * it.

*/ inline RedshiftDestinationUpdate& WithS3BackupMode(const RedshiftS3BackupMode& value) { SetS3BackupMode(value); return *this;} /** *

You can update a delivery stream to enable Amazon S3 backup if it is * disabled. If backup is enabled, you can't update the delivery stream to disable * it.

*/ inline RedshiftDestinationUpdate& WithS3BackupMode(RedshiftS3BackupMode&& value) { SetS3BackupMode(std::move(value)); return *this;} /** *

The Amazon S3 destination for backup.

*/ inline const S3DestinationUpdate& GetS3BackupUpdate() const{ return m_s3BackupUpdate; } /** *

The Amazon S3 destination for backup.

*/ inline bool S3BackupUpdateHasBeenSet() const { return m_s3BackupUpdateHasBeenSet; } /** *

The Amazon S3 destination for backup.

*/ inline void SetS3BackupUpdate(const S3DestinationUpdate& value) { m_s3BackupUpdateHasBeenSet = true; m_s3BackupUpdate = value; } /** *

The Amazon S3 destination for backup.

*/ inline void SetS3BackupUpdate(S3DestinationUpdate&& value) { m_s3BackupUpdateHasBeenSet = true; m_s3BackupUpdate = std::move(value); } /** *

The Amazon S3 destination for backup.

*/ inline RedshiftDestinationUpdate& WithS3BackupUpdate(const S3DestinationUpdate& value) { SetS3BackupUpdate(value); return *this;} /** *

The Amazon S3 destination for backup.

*/ inline RedshiftDestinationUpdate& WithS3BackupUpdate(S3DestinationUpdate&& value) { SetS3BackupUpdate(std::move(value)); return *this;} /** *

The Amazon CloudWatch logging options for your delivery stream.

*/ inline const CloudWatchLoggingOptions& GetCloudWatchLoggingOptions() const{ return m_cloudWatchLoggingOptions; } /** *

The Amazon CloudWatch logging options for your delivery stream.

*/ inline bool CloudWatchLoggingOptionsHasBeenSet() const { return m_cloudWatchLoggingOptionsHasBeenSet; } /** *

The Amazon CloudWatch logging options for your delivery stream.

*/ inline void SetCloudWatchLoggingOptions(const CloudWatchLoggingOptions& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = value; } /** *

The Amazon CloudWatch logging options for your delivery stream.

*/ inline void SetCloudWatchLoggingOptions(CloudWatchLoggingOptions&& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = std::move(value); } /** *

The Amazon CloudWatch logging options for your delivery stream.

*/ inline RedshiftDestinationUpdate& WithCloudWatchLoggingOptions(const CloudWatchLoggingOptions& value) { SetCloudWatchLoggingOptions(value); return *this;} /** *

The Amazon CloudWatch logging options for your delivery stream.

*/ inline RedshiftDestinationUpdate& WithCloudWatchLoggingOptions(CloudWatchLoggingOptions&& value) { SetCloudWatchLoggingOptions(std::move(value)); return *this;} private: Aws::String m_roleARN; bool m_roleARNHasBeenSet; Aws::String m_clusterJDBCURL; bool m_clusterJDBCURLHasBeenSet; CopyCommand m_copyCommand; bool m_copyCommandHasBeenSet; Aws::String m_username; bool m_usernameHasBeenSet; Aws::String m_password; bool m_passwordHasBeenSet; RedshiftRetryOptions m_retryOptions; bool m_retryOptionsHasBeenSet; S3DestinationUpdate m_s3Update; bool m_s3UpdateHasBeenSet; ProcessingConfiguration m_processingConfiguration; bool m_processingConfigurationHasBeenSet; RedshiftS3BackupMode m_s3BackupMode; bool m_s3BackupModeHasBeenSet; S3DestinationUpdate m_s3BackupUpdate; bool m_s3BackupUpdateHasBeenSet; CloudWatchLoggingOptions m_cloudWatchLoggingOptions; bool m_cloudWatchLoggingOptionsHasBeenSet; }; } // namespace Model } // namespace Firehose } // namespace Aws