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

Sends information about the detector model instance and the event that * triggered the action to an Amazon Kinesis Data Firehose delivery * stream.

See Also:

AWS * API Reference

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

The name of the Kinesis Data Firehose delivery stream where the data is * written.

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

The name of the Kinesis Data Firehose delivery stream where the data is * written.

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

The name of the Kinesis Data Firehose delivery stream where the data is * written.

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

The name of the Kinesis Data Firehose delivery stream where the data is * written.

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

The name of the Kinesis Data Firehose delivery stream where the data is * written.

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

The name of the Kinesis Data Firehose delivery stream where the data is * written.

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

The name of the Kinesis Data Firehose delivery stream where the data is * written.

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

The name of the Kinesis Data Firehose delivery stream where the data is * written.

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

A character separator that is used to separate records written to the Kinesis * Data Firehose delivery 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 is used to separate records written to the Kinesis * Data Firehose delivery stream. Valid values are: '\n' (newline), '\t' (tab), * '\r\n' (Windows newline), ',' (comma).

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

A character separator that is used to separate records written to the Kinesis * Data Firehose delivery 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 is used to separate records written to the Kinesis * Data Firehose delivery 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 is used to separate records written to the Kinesis * Data Firehose delivery 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 is used to separate records written to the Kinesis * Data Firehose delivery 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 is used to separate records written to the Kinesis * Data Firehose delivery 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 is used to separate records written to the Kinesis * Data Firehose delivery stream. Valid values are: '\n' (newline), '\t' (tab), * '\r\n' (Windows newline), ',' (comma).

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

You can configure the action payload when you send a message to an Amazon * Kinesis Data Firehose delivery stream.

*/ inline const Payload& GetPayload() const{ return m_payload; } /** *

You can configure the action payload when you send a message to an Amazon * Kinesis Data Firehose delivery stream.

*/ inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; } /** *

You can configure the action payload when you send a message to an Amazon * Kinesis Data Firehose delivery stream.

*/ inline void SetPayload(const Payload& value) { m_payloadHasBeenSet = true; m_payload = value; } /** *

You can configure the action payload when you send a message to an Amazon * Kinesis Data Firehose delivery stream.

*/ inline void SetPayload(Payload&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); } /** *

You can configure the action payload when you send a message to an Amazon * Kinesis Data Firehose delivery stream.

*/ inline FirehoseAction& WithPayload(const Payload& value) { SetPayload(value); return *this;} /** *

You can configure the action payload when you send a message to an Amazon * Kinesis Data Firehose delivery stream.

*/ inline FirehoseAction& WithPayload(Payload&& value) { SetPayload(std::move(value)); return *this;} private: Aws::String m_deliveryStreamName; bool m_deliveryStreamNameHasBeenSet = false; Aws::String m_separator; bool m_separatorHasBeenSet = false; Payload m_payload; bool m_payloadHasBeenSet = false; }; } // namespace Model } // namespace IoTEvents } // namespace Aws