/** * 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 a specified asset property in AWS IoT SiteWise.

*

You must specify either propertyAlias or both * assetId and propertyId to identify the target asset * property in AWS IoT SiteWise.

For parameters that are string * data type, you can specify the following options:

  • Use a * string. For example, the propertyAlias value can be * '/company/windfarm/3/turbine/7/temperature'.

  • Use * an expression. For example, the propertyAlias value can be * 'company/windfarm/${$input.TemperatureInput.sensorData.windfarmID}/turbine/${$input.TemperatureInput.sensorData.turbineID}/temperature'.

    *

    For more information, see Expressions * in the AWS IoT Events Developer Guide.

See * Also:

AWS * API Reference

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

A unique identifier for this entry. You can use the entry ID to track which * data entry causes an error in case of failure. The default is a new unique * identifier. You can also specify an expression.

*/ inline const Aws::String& GetEntryId() const{ return m_entryId; } /** *

A unique identifier for this entry. You can use the entry ID to track which * data entry causes an error in case of failure. The default is a new unique * identifier. You can also specify an expression.

*/ inline bool EntryIdHasBeenSet() const { return m_entryIdHasBeenSet; } /** *

A unique identifier for this entry. You can use the entry ID to track which * data entry causes an error in case of failure. The default is a new unique * identifier. You can also specify an expression.

*/ inline void SetEntryId(const Aws::String& value) { m_entryIdHasBeenSet = true; m_entryId = value; } /** *

A unique identifier for this entry. You can use the entry ID to track which * data entry causes an error in case of failure. The default is a new unique * identifier. You can also specify an expression.

*/ inline void SetEntryId(Aws::String&& value) { m_entryIdHasBeenSet = true; m_entryId = std::move(value); } /** *

A unique identifier for this entry. You can use the entry ID to track which * data entry causes an error in case of failure. The default is a new unique * identifier. You can also specify an expression.

*/ inline void SetEntryId(const char* value) { m_entryIdHasBeenSet = true; m_entryId.assign(value); } /** *

A unique identifier for this entry. You can use the entry ID to track which * data entry causes an error in case of failure. The default is a new unique * identifier. You can also specify an expression.

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

A unique identifier for this entry. You can use the entry ID to track which * data entry causes an error in case of failure. The default is a new unique * identifier. You can also specify an expression.

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

A unique identifier for this entry. You can use the entry ID to track which * data entry causes an error in case of failure. The default is a new unique * identifier. You can also specify an expression.

*/ inline IotSiteWiseAction& WithEntryId(const char* value) { SetEntryId(value); return *this;} /** *

The ID of the asset that has the specified property. You can specify an * expression.

*/ inline const Aws::String& GetAssetId() const{ return m_assetId; } /** *

The ID of the asset that has the specified property. You can specify an * expression.

*/ inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; } /** *

The ID of the asset that has the specified property. You can specify an * expression.

*/ inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; } /** *

The ID of the asset that has the specified property. You can specify an * expression.

*/ inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); } /** *

The ID of the asset that has the specified property. You can specify an * expression.

*/ inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); } /** *

The ID of the asset that has the specified property. You can specify an * expression.

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

The ID of the asset that has the specified property. You can specify an * expression.

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

The ID of the asset that has the specified property. You can specify an * expression.

*/ inline IotSiteWiseAction& WithAssetId(const char* value) { SetAssetId(value); return *this;} /** *

The ID of the asset property. You can specify an expression.

*/ inline const Aws::String& GetPropertyId() const{ return m_propertyId; } /** *

The ID of the asset property. You can specify an expression.

*/ inline bool PropertyIdHasBeenSet() const { return m_propertyIdHasBeenSet; } /** *

The ID of the asset property. You can specify an expression.

*/ inline void SetPropertyId(const Aws::String& value) { m_propertyIdHasBeenSet = true; m_propertyId = value; } /** *

The ID of the asset property. You can specify an expression.

*/ inline void SetPropertyId(Aws::String&& value) { m_propertyIdHasBeenSet = true; m_propertyId = std::move(value); } /** *

The ID of the asset property. You can specify an expression.

*/ inline void SetPropertyId(const char* value) { m_propertyIdHasBeenSet = true; m_propertyId.assign(value); } /** *

The ID of the asset property. You can specify an expression.

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

The ID of the asset property. You can specify an expression.

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

The ID of the asset property. You can specify an expression.

*/ inline IotSiteWiseAction& WithPropertyId(const char* value) { SetPropertyId(value); return *this;} /** *

The alias of the asset property. You can also specify an expression.

*/ inline const Aws::String& GetPropertyAlias() const{ return m_propertyAlias; } /** *

The alias of the asset property. You can also specify an expression.

*/ inline bool PropertyAliasHasBeenSet() const { return m_propertyAliasHasBeenSet; } /** *

The alias of the asset property. You can also specify an expression.

*/ inline void SetPropertyAlias(const Aws::String& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = value; } /** *

The alias of the asset property. You can also specify an expression.

*/ inline void SetPropertyAlias(Aws::String&& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = std::move(value); } /** *

The alias of the asset property. You can also specify an expression.

*/ inline void SetPropertyAlias(const char* value) { m_propertyAliasHasBeenSet = true; m_propertyAlias.assign(value); } /** *

The alias of the asset property. You can also specify an expression.

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

The alias of the asset property. You can also specify an expression.

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

The alias of the asset property. You can also specify an expression.

*/ inline IotSiteWiseAction& WithPropertyAlias(const char* value) { SetPropertyAlias(value); return *this;} /** *

The value to send to the asset property. This value contains timestamp, * quality, and value (TQV) information.

*/ inline const AssetPropertyValue& GetPropertyValue() const{ return m_propertyValue; } /** *

The value to send to the asset property. This value contains timestamp, * quality, and value (TQV) information.

*/ inline bool PropertyValueHasBeenSet() const { return m_propertyValueHasBeenSet; } /** *

The value to send to the asset property. This value contains timestamp, * quality, and value (TQV) information.

*/ inline void SetPropertyValue(const AssetPropertyValue& value) { m_propertyValueHasBeenSet = true; m_propertyValue = value; } /** *

The value to send to the asset property. This value contains timestamp, * quality, and value (TQV) information.

*/ inline void SetPropertyValue(AssetPropertyValue&& value) { m_propertyValueHasBeenSet = true; m_propertyValue = std::move(value); } /** *

The value to send to the asset property. This value contains timestamp, * quality, and value (TQV) information.

*/ inline IotSiteWiseAction& WithPropertyValue(const AssetPropertyValue& value) { SetPropertyValue(value); return *this;} /** *

The value to send to the asset property. This value contains timestamp, * quality, and value (TQV) information.

*/ inline IotSiteWiseAction& WithPropertyValue(AssetPropertyValue&& value) { SetPropertyValue(std::move(value)); return *this;} private: Aws::String m_entryId; bool m_entryIdHasBeenSet; Aws::String m_assetId; bool m_assetIdHasBeenSet; Aws::String m_propertyId; bool m_propertyIdHasBeenSet; Aws::String m_propertyAlias; bool m_propertyAliasHasBeenSet; AssetPropertyValue m_propertyValue; bool m_propertyValueHasBeenSet; }; } // namespace Model } // namespace IoTEvents } // namespace Aws