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

Describes an action that writes data to an Amazon Kinesis Firehose * stream.

See Also:

AWS * API Reference

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

The IAM role that grants access to the Amazon Kinesis Firehose stream.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The IAM role that grants access to the Amazon Kinesis Firehose stream.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The IAM role that grants access to the Amazon Kinesis Firehose stream.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The IAM role that grants access to the Amazon Kinesis Firehose stream.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The IAM role that grants access to the Amazon Kinesis Firehose stream.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The IAM role that grants access to the Amazon Kinesis Firehose stream.

*/ inline FirehoseAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The IAM role that grants access to the Amazon Kinesis Firehose stream.

*/ inline FirehoseAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The IAM role that grants access to the Amazon Kinesis Firehose stream.

*/ inline FirehoseAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The delivery stream name.

*/ inline const Aws::String& GetDeliveryStreamName() const{ return m_deliveryStreamName; } /** *

The delivery stream name.

*/ inline bool DeliveryStreamNameHasBeenSet() const { return m_deliveryStreamNameHasBeenSet; } /** *

The delivery stream name.

*/ inline void SetDeliveryStreamName(const Aws::String& value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName = value; } /** *

The delivery stream name.

*/ inline void SetDeliveryStreamName(Aws::String&& value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName = std::move(value); } /** *

The delivery stream name.

*/ inline void SetDeliveryStreamName(const char* value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName.assign(value); } /** *

The delivery stream name.

*/ inline FirehoseAction& WithDeliveryStreamName(const Aws::String& value) { SetDeliveryStreamName(value); return *this;} /** *

The delivery stream name.

*/ inline FirehoseAction& WithDeliveryStreamName(Aws::String&& value) { SetDeliveryStreamName(std::move(value)); return *this;} /** *

The delivery stream name.

*/ inline FirehoseAction& WithDeliveryStreamName(const char* value) { SetDeliveryStreamName(value); return *this;} /** *

A character separator that will be used to separate records written to the * Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows * newline), ',' (comma).

*/ inline const Aws::String& GetSeparator() const{ return m_separator; } /** *

A character separator that will be used to separate records written to the * Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows * newline), ',' (comma).

*/ inline bool SeparatorHasBeenSet() const { return m_separatorHasBeenSet; } /** *

A character separator that will be used to separate records written to the * Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows * newline), ',' (comma).

*/ inline void SetSeparator(const Aws::String& value) { m_separatorHasBeenSet = true; m_separator = value; } /** *

A character separator that will be used to separate records written to the * Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows * newline), ',' (comma).

*/ inline void SetSeparator(Aws::String&& value) { m_separatorHasBeenSet = true; m_separator = std::move(value); } /** *

A character separator that will be used to separate records written to the * Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows * newline), ',' (comma).

*/ inline void SetSeparator(const char* value) { m_separatorHasBeenSet = true; m_separator.assign(value); } /** *

A character separator that will be used to separate records written to the * Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows * newline), ',' (comma).

*/ inline FirehoseAction& WithSeparator(const Aws::String& value) { SetSeparator(value); return *this;} /** *

A character separator that will be used to separate records written to the * Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows * newline), ',' (comma).

*/ inline FirehoseAction& WithSeparator(Aws::String&& value) { SetSeparator(std::move(value)); return *this;} /** *

A character separator that will be used to separate records written to the * Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows * newline), ',' (comma).

*/ inline FirehoseAction& WithSeparator(const char* value) { SetSeparator(value); return *this;} /** *

Whether to deliver the Kinesis Data Firehose stream as a batch by using * PutRecordBatch . The default value is false.

*

When batchMode is true and the rule's SQL statement * evaluates to an Array, each Array element forms one record in the * PutRecordBatch request. The resulting array can't have more * than 500 records.

*/ inline bool GetBatchMode() const{ return m_batchMode; } /** *

Whether to deliver the Kinesis Data Firehose stream as a batch by using * PutRecordBatch . The default value is false.

*

When batchMode is true and the rule's SQL statement * evaluates to an Array, each Array element forms one record in the * PutRecordBatch request. The resulting array can't have more * than 500 records.

*/ inline bool BatchModeHasBeenSet() const { return m_batchModeHasBeenSet; } /** *

Whether to deliver the Kinesis Data Firehose stream as a batch by using * PutRecordBatch . The default value is false.

*

When batchMode is true and the rule's SQL statement * evaluates to an Array, each Array element forms one record in the * PutRecordBatch request. The resulting array can't have more * than 500 records.

*/ inline void SetBatchMode(bool value) { m_batchModeHasBeenSet = true; m_batchMode = value; } /** *

Whether to deliver the Kinesis Data Firehose stream as a batch by using * PutRecordBatch . The default value is false.

*

When batchMode is true and the rule's SQL statement * evaluates to an Array, each Array element forms one record in the * PutRecordBatch request. The resulting array can't have more * than 500 records.

*/ inline FirehoseAction& WithBatchMode(bool value) { SetBatchMode(value); return *this;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_deliveryStreamName; bool m_deliveryStreamNameHasBeenSet = false; Aws::String m_separator; bool m_separatorHasBeenSet = false; bool m_batchMode; bool m_batchModeHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws