/** * 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 AWS_IOT_API FirehoseAction { public: FirehoseAction(); FirehoseAction(Aws::Utils::Json::JsonView jsonValue); FirehoseAction& operator=(Aws::Utils::Json::JsonView jsonValue); 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;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet; Aws::String m_deliveryStreamName; bool m_deliveryStreamNameHasBeenSet; Aws::String m_separator; bool m_separatorHasBeenSet; }; } // namespace Model } // namespace IoT } // namespace Aws