/** * 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 #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Firehose { namespace Model { /** *

Describes the configuration of the HTTP endpoint destination.

See * Also:

AWS * API Reference

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

The configuration of the HTTP endpoint selected as the destination.

*/ inline const HttpEndpointConfiguration& GetEndpointConfiguration() const{ return m_endpointConfiguration; } /** *

The configuration of the HTTP endpoint selected as the destination.

*/ inline bool EndpointConfigurationHasBeenSet() const { return m_endpointConfigurationHasBeenSet; } /** *

The configuration of the HTTP endpoint selected as the destination.

*/ inline void SetEndpointConfiguration(const HttpEndpointConfiguration& value) { m_endpointConfigurationHasBeenSet = true; m_endpointConfiguration = value; } /** *

The configuration of the HTTP endpoint selected as the destination.

*/ inline void SetEndpointConfiguration(HttpEndpointConfiguration&& value) { m_endpointConfigurationHasBeenSet = true; m_endpointConfiguration = std::move(value); } /** *

The configuration of the HTTP endpoint selected as the destination.

*/ inline HttpEndpointDestinationConfiguration& WithEndpointConfiguration(const HttpEndpointConfiguration& value) { SetEndpointConfiguration(value); return *this;} /** *

The configuration of the HTTP endpoint selected as the destination.

*/ inline HttpEndpointDestinationConfiguration& WithEndpointConfiguration(HttpEndpointConfiguration&& value) { SetEndpointConfiguration(std::move(value)); return *this;} /** *

The buffering options that can be used before data is delivered to the * specified destination. Kinesis Data Firehose treats these options as hints, and * it might choose to use more optimal values. The SizeInMBs and * IntervalInSeconds parameters are optional. However, if you specify * a value for one of them, you must also provide a value for the other.

*/ inline const HttpEndpointBufferingHints& GetBufferingHints() const{ return m_bufferingHints; } /** *

The buffering options that can be used before data is delivered to the * specified destination. Kinesis Data Firehose treats these options as hints, and * it might choose to use more optimal values. The SizeInMBs and * IntervalInSeconds parameters are optional. However, if you specify * a value for one of them, you must also provide a value for the other.

*/ inline bool BufferingHintsHasBeenSet() const { return m_bufferingHintsHasBeenSet; } /** *

The buffering options that can be used before data is delivered to the * specified destination. Kinesis Data Firehose treats these options as hints, and * it might choose to use more optimal values. The SizeInMBs and * IntervalInSeconds parameters are optional. However, if you specify * a value for one of them, you must also provide a value for the other.

*/ inline void SetBufferingHints(const HttpEndpointBufferingHints& value) { m_bufferingHintsHasBeenSet = true; m_bufferingHints = value; } /** *

The buffering options that can be used before data is delivered to the * specified destination. Kinesis Data Firehose treats these options as hints, and * it might choose to use more optimal values. The SizeInMBs and * IntervalInSeconds parameters are optional. However, if you specify * a value for one of them, you must also provide a value for the other.

*/ inline void SetBufferingHints(HttpEndpointBufferingHints&& value) { m_bufferingHintsHasBeenSet = true; m_bufferingHints = std::move(value); } /** *

The buffering options that can be used before data is delivered to the * specified destination. Kinesis Data Firehose treats these options as hints, and * it might choose to use more optimal values. The SizeInMBs and * IntervalInSeconds parameters are optional. However, if you specify * a value for one of them, you must also provide a value for the other.

*/ inline HttpEndpointDestinationConfiguration& WithBufferingHints(const HttpEndpointBufferingHints& value) { SetBufferingHints(value); return *this;} /** *

The buffering options that can be used before data is delivered to the * specified destination. Kinesis Data Firehose treats these options as hints, and * it might choose to use more optimal values. The SizeInMBs and * IntervalInSeconds parameters are optional. However, if you specify * a value for one of them, you must also provide a value for the other.

*/ inline HttpEndpointDestinationConfiguration& WithBufferingHints(HttpEndpointBufferingHints&& value) { SetBufferingHints(std::move(value)); return *this;} inline const CloudWatchLoggingOptions& GetCloudWatchLoggingOptions() const{ return m_cloudWatchLoggingOptions; } inline bool CloudWatchLoggingOptionsHasBeenSet() const { return m_cloudWatchLoggingOptionsHasBeenSet; } inline void SetCloudWatchLoggingOptions(const CloudWatchLoggingOptions& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = value; } inline void SetCloudWatchLoggingOptions(CloudWatchLoggingOptions&& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = std::move(value); } inline HttpEndpointDestinationConfiguration& WithCloudWatchLoggingOptions(const CloudWatchLoggingOptions& value) { SetCloudWatchLoggingOptions(value); return *this;} inline HttpEndpointDestinationConfiguration& WithCloudWatchLoggingOptions(CloudWatchLoggingOptions&& value) { SetCloudWatchLoggingOptions(std::move(value)); return *this;} /** *

The configuration of the requeste sent to the HTTP endpoint specified as the * destination.

*/ inline const HttpEndpointRequestConfiguration& GetRequestConfiguration() const{ return m_requestConfiguration; } /** *

The configuration of the requeste sent to the HTTP endpoint specified as the * destination.

*/ inline bool RequestConfigurationHasBeenSet() const { return m_requestConfigurationHasBeenSet; } /** *

The configuration of the requeste sent to the HTTP endpoint specified as the * destination.

*/ inline void SetRequestConfiguration(const HttpEndpointRequestConfiguration& value) { m_requestConfigurationHasBeenSet = true; m_requestConfiguration = value; } /** *

The configuration of the requeste sent to the HTTP endpoint specified as the * destination.

*/ inline void SetRequestConfiguration(HttpEndpointRequestConfiguration&& value) { m_requestConfigurationHasBeenSet = true; m_requestConfiguration = std::move(value); } /** *

The configuration of the requeste sent to the HTTP endpoint specified as the * destination.

*/ inline HttpEndpointDestinationConfiguration& WithRequestConfiguration(const HttpEndpointRequestConfiguration& value) { SetRequestConfiguration(value); return *this;} /** *

The configuration of the requeste sent to the HTTP endpoint specified as the * destination.

*/ inline HttpEndpointDestinationConfiguration& WithRequestConfiguration(HttpEndpointRequestConfiguration&& value) { SetRequestConfiguration(std::move(value)); return *this;} inline const ProcessingConfiguration& GetProcessingConfiguration() const{ return m_processingConfiguration; } inline bool ProcessingConfigurationHasBeenSet() const { return m_processingConfigurationHasBeenSet; } inline void SetProcessingConfiguration(const ProcessingConfiguration& value) { m_processingConfigurationHasBeenSet = true; m_processingConfiguration = value; } inline void SetProcessingConfiguration(ProcessingConfiguration&& value) { m_processingConfigurationHasBeenSet = true; m_processingConfiguration = std::move(value); } inline HttpEndpointDestinationConfiguration& WithProcessingConfiguration(const ProcessingConfiguration& value) { SetProcessingConfiguration(value); return *this;} inline HttpEndpointDestinationConfiguration& WithProcessingConfiguration(ProcessingConfiguration&& value) { SetProcessingConfiguration(std::move(value)); return *this;} /** *

Kinesis Data Firehose uses this IAM role for all the permissions that the * delivery stream needs.

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

Kinesis Data Firehose uses this IAM role for all the permissions that the * delivery stream needs.

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

Kinesis Data Firehose uses this IAM role for all the permissions that the * delivery stream needs.

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

Kinesis Data Firehose uses this IAM role for all the permissions that the * delivery stream needs.

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

Kinesis Data Firehose uses this IAM role for all the permissions that the * delivery stream needs.

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

Kinesis Data Firehose uses this IAM role for all the permissions that the * delivery stream needs.

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

Kinesis Data Firehose uses this IAM role for all the permissions that the * delivery stream needs.

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

Kinesis Data Firehose uses this IAM role for all the permissions that the * delivery stream needs.

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

Describes the retry behavior in case Kinesis Data Firehose is unable to * deliver data to the specified HTTP endpoint destination, or if it doesn't * receive a valid acknowledgment of receipt from the specified HTTP endpoint * destination.

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

Describes the retry behavior in case Kinesis Data Firehose is unable to * deliver data to the specified HTTP endpoint destination, or if it doesn't * receive a valid acknowledgment of receipt from the specified HTTP endpoint * destination.

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

Describes the retry behavior in case Kinesis Data Firehose is unable to * deliver data to the specified HTTP endpoint destination, or if it doesn't * receive a valid acknowledgment of receipt from the specified HTTP endpoint * destination.

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

Describes the retry behavior in case Kinesis Data Firehose is unable to * deliver data to the specified HTTP endpoint destination, or if it doesn't * receive a valid acknowledgment of receipt from the specified HTTP endpoint * destination.

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

Describes the retry behavior in case Kinesis Data Firehose is unable to * deliver data to the specified HTTP endpoint destination, or if it doesn't * receive a valid acknowledgment of receipt from the specified HTTP endpoint * destination.

*/ inline HttpEndpointDestinationConfiguration& WithRetryOptions(const HttpEndpointRetryOptions& value) { SetRetryOptions(value); return *this;} /** *

Describes the retry behavior in case Kinesis Data Firehose is unable to * deliver data to the specified HTTP endpoint destination, or if it doesn't * receive a valid acknowledgment of receipt from the specified HTTP endpoint * destination.

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

Describes the S3 bucket backup options for the data that Kinesis Data * Firehose delivers to the HTTP endpoint destination. You can back up all * documents (AllData) or only the documents that Kinesis Data * Firehose could not deliver to the specified HTTP endpoint destination * (FailedDataOnly).

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

Describes the S3 bucket backup options for the data that Kinesis Data * Firehose delivers to the HTTP endpoint destination. You can back up all * documents (AllData) or only the documents that Kinesis Data * Firehose could not deliver to the specified HTTP endpoint destination * (FailedDataOnly).

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

Describes the S3 bucket backup options for the data that Kinesis Data * Firehose delivers to the HTTP endpoint destination. You can back up all * documents (AllData) or only the documents that Kinesis Data * Firehose could not deliver to the specified HTTP endpoint destination * (FailedDataOnly).

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

Describes the S3 bucket backup options for the data that Kinesis Data * Firehose delivers to the HTTP endpoint destination. You can back up all * documents (AllData) or only the documents that Kinesis Data * Firehose could not deliver to the specified HTTP endpoint destination * (FailedDataOnly).

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

Describes the S3 bucket backup options for the data that Kinesis Data * Firehose delivers to the HTTP endpoint destination. You can back up all * documents (AllData) or only the documents that Kinesis Data * Firehose could not deliver to the specified HTTP endpoint destination * (FailedDataOnly).

*/ inline HttpEndpointDestinationConfiguration& WithS3BackupMode(const HttpEndpointS3BackupMode& value) { SetS3BackupMode(value); return *this;} /** *

Describes the S3 bucket backup options for the data that Kinesis Data * Firehose delivers to the HTTP endpoint destination. You can back up all * documents (AllData) or only the documents that Kinesis Data * Firehose could not deliver to the specified HTTP endpoint destination * (FailedDataOnly).

*/ inline HttpEndpointDestinationConfiguration& WithS3BackupMode(HttpEndpointS3BackupMode&& value) { SetS3BackupMode(std::move(value)); return *this;} inline const S3DestinationConfiguration& GetS3Configuration() const{ return m_s3Configuration; } inline bool S3ConfigurationHasBeenSet() const { return m_s3ConfigurationHasBeenSet; } inline void SetS3Configuration(const S3DestinationConfiguration& value) { m_s3ConfigurationHasBeenSet = true; m_s3Configuration = value; } inline void SetS3Configuration(S3DestinationConfiguration&& value) { m_s3ConfigurationHasBeenSet = true; m_s3Configuration = std::move(value); } inline HttpEndpointDestinationConfiguration& WithS3Configuration(const S3DestinationConfiguration& value) { SetS3Configuration(value); return *this;} inline HttpEndpointDestinationConfiguration& WithS3Configuration(S3DestinationConfiguration&& value) { SetS3Configuration(std::move(value)); return *this;} private: HttpEndpointConfiguration m_endpointConfiguration; bool m_endpointConfigurationHasBeenSet; HttpEndpointBufferingHints m_bufferingHints; bool m_bufferingHintsHasBeenSet; CloudWatchLoggingOptions m_cloudWatchLoggingOptions; bool m_cloudWatchLoggingOptionsHasBeenSet; HttpEndpointRequestConfiguration m_requestConfiguration; bool m_requestConfigurationHasBeenSet; ProcessingConfiguration m_processingConfiguration; bool m_processingConfigurationHasBeenSet; Aws::String m_roleARN; bool m_roleARNHasBeenSet; HttpEndpointRetryOptions m_retryOptions; bool m_retryOptionsHasBeenSet; HttpEndpointS3BackupMode m_s3BackupMode; bool m_s3BackupModeHasBeenSet; S3DestinationConfiguration m_s3Configuration; bool m_s3ConfigurationHasBeenSet; }; } // namespace Model } // namespace Firehose } // namespace Aws