/** * 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 { /** *

Sends message data to an AWS IoT Analytics channel.

See Also:

* AWS * API Reference

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

(deprecated) The ARN of the IoT Analytics channel to which message data will * be sent.

*/ inline const Aws::String& GetChannelArn() const{ return m_channelArn; } /** *

(deprecated) The ARN of the IoT Analytics channel to which message data will * be sent.

*/ inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; } /** *

(deprecated) The ARN of the IoT Analytics channel to which message data will * be sent.

*/ inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; } /** *

(deprecated) The ARN of the IoT Analytics channel to which message data will * be sent.

*/ inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); } /** *

(deprecated) The ARN of the IoT Analytics channel to which message data will * be sent.

*/ inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); } /** *

(deprecated) The ARN of the IoT Analytics channel to which message data will * be sent.

*/ inline IotAnalyticsAction& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;} /** *

(deprecated) The ARN of the IoT Analytics channel to which message data will * be sent.

*/ inline IotAnalyticsAction& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;} /** *

(deprecated) The ARN of the IoT Analytics channel to which message data will * be sent.

*/ inline IotAnalyticsAction& WithChannelArn(const char* value) { SetChannelArn(value); return *this;} /** *

The name of the IoT Analytics channel to which message data will be sent.

*/ inline const Aws::String& GetChannelName() const{ return m_channelName; } /** *

The name of the IoT Analytics channel to which message data will be sent.

*/ inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; } /** *

The name of the IoT Analytics channel to which message data will be sent.

*/ inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; } /** *

The name of the IoT Analytics channel to which message data will be sent.

*/ inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); } /** *

The name of the IoT Analytics channel to which message data will be sent.

*/ inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); } /** *

The name of the IoT Analytics channel to which message data will be sent.

*/ inline IotAnalyticsAction& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;} /** *

The name of the IoT Analytics channel to which message data will be sent.

*/ inline IotAnalyticsAction& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;} /** *

The name of the IoT Analytics channel to which message data will be sent.

*/ inline IotAnalyticsAction& WithChannelName(const char* value) { SetChannelName(value); return *this;} /** *

The ARN of the role which has a policy that grants IoT Analytics permission * to send message data via IoT Analytics (iotanalytics:BatchPutMessage).

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

The ARN of the role which has a policy that grants IoT Analytics permission * to send message data via IoT Analytics (iotanalytics:BatchPutMessage).

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

The ARN of the role which has a policy that grants IoT Analytics permission * to send message data via IoT Analytics (iotanalytics:BatchPutMessage).

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

The ARN of the role which has a policy that grants IoT Analytics permission * to send message data via IoT Analytics (iotanalytics:BatchPutMessage).

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

The ARN of the role which has a policy that grants IoT Analytics permission * to send message data via IoT Analytics (iotanalytics:BatchPutMessage).

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

The ARN of the role which has a policy that grants IoT Analytics permission * to send message data via IoT Analytics (iotanalytics:BatchPutMessage).

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

The ARN of the role which has a policy that grants IoT Analytics permission * to send message data via IoT Analytics (iotanalytics:BatchPutMessage).

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

The ARN of the role which has a policy that grants IoT Analytics permission * to send message data via IoT Analytics (iotanalytics:BatchPutMessage).

*/ inline IotAnalyticsAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: Aws::String m_channelArn; bool m_channelArnHasBeenSet; Aws::String m_channelName; bool m_channelNameHasBeenSet; Aws::String m_roleArn; bool m_roleArnHasBeenSet; }; } // namespace Model } // namespace IoT } // namespace Aws