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

Describes an action to send data from an MQTT message that triggered the rule * to IoT SiteWise asset properties.

See Also:

AWS * API Reference

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

A list of asset property value entries.

*/ inline const Aws::Vector& GetPutAssetPropertyValueEntries() const{ return m_putAssetPropertyValueEntries; } /** *

A list of asset property value entries.

*/ inline bool PutAssetPropertyValueEntriesHasBeenSet() const { return m_putAssetPropertyValueEntriesHasBeenSet; } /** *

A list of asset property value entries.

*/ inline void SetPutAssetPropertyValueEntries(const Aws::Vector& value) { m_putAssetPropertyValueEntriesHasBeenSet = true; m_putAssetPropertyValueEntries = value; } /** *

A list of asset property value entries.

*/ inline void SetPutAssetPropertyValueEntries(Aws::Vector&& value) { m_putAssetPropertyValueEntriesHasBeenSet = true; m_putAssetPropertyValueEntries = std::move(value); } /** *

A list of asset property value entries.

*/ inline IotSiteWiseAction& WithPutAssetPropertyValueEntries(const Aws::Vector& value) { SetPutAssetPropertyValueEntries(value); return *this;} /** *

A list of asset property value entries.

*/ inline IotSiteWiseAction& WithPutAssetPropertyValueEntries(Aws::Vector&& value) { SetPutAssetPropertyValueEntries(std::move(value)); return *this;} /** *

A list of asset property value entries.

*/ inline IotSiteWiseAction& AddPutAssetPropertyValueEntries(const PutAssetPropertyValueEntry& value) { m_putAssetPropertyValueEntriesHasBeenSet = true; m_putAssetPropertyValueEntries.push_back(value); return *this; } /** *

A list of asset property value entries.

*/ inline IotSiteWiseAction& AddPutAssetPropertyValueEntries(PutAssetPropertyValueEntry&& value) { m_putAssetPropertyValueEntriesHasBeenSet = true; m_putAssetPropertyValueEntries.push_back(std::move(value)); return *this; } /** *

The ARN of the role that grants IoT permission to send an asset property * value to IoT SiteWise. ("Action": * "iotsitewise:BatchPutAssetPropertyValue"). The trust policy can restrict * access to specific asset hierarchy paths.

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

The ARN of the role that grants IoT permission to send an asset property * value to IoT SiteWise. ("Action": * "iotsitewise:BatchPutAssetPropertyValue"). The trust policy can restrict * access to specific asset hierarchy paths.

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

The ARN of the role that grants IoT permission to send an asset property * value to IoT SiteWise. ("Action": * "iotsitewise:BatchPutAssetPropertyValue"). The trust policy can restrict * access to specific asset hierarchy paths.

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

The ARN of the role that grants IoT permission to send an asset property * value to IoT SiteWise. ("Action": * "iotsitewise:BatchPutAssetPropertyValue"). The trust policy can restrict * access to specific asset hierarchy paths.

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

The ARN of the role that grants IoT permission to send an asset property * value to IoT SiteWise. ("Action": * "iotsitewise:BatchPutAssetPropertyValue"). The trust policy can restrict * access to specific asset hierarchy paths.

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

The ARN of the role that grants IoT permission to send an asset property * value to IoT SiteWise. ("Action": * "iotsitewise:BatchPutAssetPropertyValue"). The trust policy can restrict * access to specific asset hierarchy paths.

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

The ARN of the role that grants IoT permission to send an asset property * value to IoT SiteWise. ("Action": * "iotsitewise:BatchPutAssetPropertyValue"). The trust policy can restrict * access to specific asset hierarchy paths.

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

The ARN of the role that grants IoT permission to send an asset property * value to IoT SiteWise. ("Action": * "iotsitewise:BatchPutAssetPropertyValue"). The trust policy can restrict * access to specific asset hierarchy paths.

*/ inline IotSiteWiseAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: Aws::Vector m_putAssetPropertyValueEntries; bool m_putAssetPropertyValueEntriesHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws