This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-iotevents/include/aws/iotevents/model/IotSiteWiseAction.h

299 lines
11 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/AssetPropertyValue.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to a specified asset property in AWS IoT SiteWise.</p>
* <p>You must specify either <code>propertyAlias</code> or both
* <code>assetId</code> and <code>propertyId</code> to identify the target asset
* property in AWS IoT SiteWise.</p> <p>For parameters that are string
* data type, you can specify the following options: </p> <ul> <li> <p>Use a
* string. For example, the <code>propertyAlias</code> value can be
* <code>'/company/windfarm/3/turbine/7/temperature'</code>.</p> </li> <li> <p>Use
* an expression. For example, the <code>propertyAlias</code> value can be
* <code>'company/windfarm/${$input.TemperatureInput.sensorData.windfarmID}/turbine/${$input.TemperatureInput.sensorData.turbineID}/temperature'</code>.</p>
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html">Expressions</a>
* in the <i>AWS IoT Events Developer Guide</i>.</p> </li> </ul><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/IotSiteWiseAction">AWS
* API Reference</a></p>
*/
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;
/**
* <p>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.</p>
*/
inline const Aws::String& GetEntryId() const{ return m_entryId; }
/**
* <p>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.</p>
*/
inline bool EntryIdHasBeenSet() const { return m_entryIdHasBeenSet; }
/**
* <p>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.</p>
*/
inline void SetEntryId(const Aws::String& value) { m_entryIdHasBeenSet = true; m_entryId = value; }
/**
* <p>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.</p>
*/
inline void SetEntryId(Aws::String&& value) { m_entryIdHasBeenSet = true; m_entryId = std::move(value); }
/**
* <p>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.</p>
*/
inline void SetEntryId(const char* value) { m_entryIdHasBeenSet = true; m_entryId.assign(value); }
/**
* <p>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.</p>
*/
inline IotSiteWiseAction& WithEntryId(const Aws::String& value) { SetEntryId(value); return *this;}
/**
* <p>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.</p>
*/
inline IotSiteWiseAction& WithEntryId(Aws::String&& value) { SetEntryId(std::move(value)); return *this;}
/**
* <p>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.</p>
*/
inline IotSiteWiseAction& WithEntryId(const char* value) { SetEntryId(value); return *this;}
/**
* <p>The ID of the asset that has the specified property. You can specify an
* expression.</p>
*/
inline const Aws::String& GetAssetId() const{ return m_assetId; }
/**
* <p>The ID of the asset that has the specified property. You can specify an
* expression.</p>
*/
inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
/**
* <p>The ID of the asset that has the specified property. You can specify an
* expression.</p>
*/
inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
/**
* <p>The ID of the asset that has the specified property. You can specify an
* expression.</p>
*/
inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
/**
* <p>The ID of the asset that has the specified property. You can specify an
* expression.</p>
*/
inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
/**
* <p>The ID of the asset that has the specified property. You can specify an
* expression.</p>
*/
inline IotSiteWiseAction& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
/**
* <p>The ID of the asset that has the specified property. You can specify an
* expression.</p>
*/
inline IotSiteWiseAction& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
/**
* <p>The ID of the asset that has the specified property. You can specify an
* expression.</p>
*/
inline IotSiteWiseAction& WithAssetId(const char* value) { SetAssetId(value); return *this;}
/**
* <p>The ID of the asset property. You can specify an expression.</p>
*/
inline const Aws::String& GetPropertyId() const{ return m_propertyId; }
/**
* <p>The ID of the asset property. You can specify an expression.</p>
*/
inline bool PropertyIdHasBeenSet() const { return m_propertyIdHasBeenSet; }
/**
* <p>The ID of the asset property. You can specify an expression.</p>
*/
inline void SetPropertyId(const Aws::String& value) { m_propertyIdHasBeenSet = true; m_propertyId = value; }
/**
* <p>The ID of the asset property. You can specify an expression.</p>
*/
inline void SetPropertyId(Aws::String&& value) { m_propertyIdHasBeenSet = true; m_propertyId = std::move(value); }
/**
* <p>The ID of the asset property. You can specify an expression.</p>
*/
inline void SetPropertyId(const char* value) { m_propertyIdHasBeenSet = true; m_propertyId.assign(value); }
/**
* <p>The ID of the asset property. You can specify an expression.</p>
*/
inline IotSiteWiseAction& WithPropertyId(const Aws::String& value) { SetPropertyId(value); return *this;}
/**
* <p>The ID of the asset property. You can specify an expression.</p>
*/
inline IotSiteWiseAction& WithPropertyId(Aws::String&& value) { SetPropertyId(std::move(value)); return *this;}
/**
* <p>The ID of the asset property. You can specify an expression.</p>
*/
inline IotSiteWiseAction& WithPropertyId(const char* value) { SetPropertyId(value); return *this;}
/**
* <p>The alias of the asset property. You can also specify an expression.</p>
*/
inline const Aws::String& GetPropertyAlias() const{ return m_propertyAlias; }
/**
* <p>The alias of the asset property. You can also specify an expression.</p>
*/
inline bool PropertyAliasHasBeenSet() const { return m_propertyAliasHasBeenSet; }
/**
* <p>The alias of the asset property. You can also specify an expression.</p>
*/
inline void SetPropertyAlias(const Aws::String& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = value; }
/**
* <p>The alias of the asset property. You can also specify an expression.</p>
*/
inline void SetPropertyAlias(Aws::String&& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = std::move(value); }
/**
* <p>The alias of the asset property. You can also specify an expression.</p>
*/
inline void SetPropertyAlias(const char* value) { m_propertyAliasHasBeenSet = true; m_propertyAlias.assign(value); }
/**
* <p>The alias of the asset property. You can also specify an expression.</p>
*/
inline IotSiteWiseAction& WithPropertyAlias(const Aws::String& value) { SetPropertyAlias(value); return *this;}
/**
* <p>The alias of the asset property. You can also specify an expression.</p>
*/
inline IotSiteWiseAction& WithPropertyAlias(Aws::String&& value) { SetPropertyAlias(std::move(value)); return *this;}
/**
* <p>The alias of the asset property. You can also specify an expression.</p>
*/
inline IotSiteWiseAction& WithPropertyAlias(const char* value) { SetPropertyAlias(value); return *this;}
/**
* <p>The value to send to the asset property. This value contains timestamp,
* quality, and value (TQV) information. </p>
*/
inline const AssetPropertyValue& GetPropertyValue() const{ return m_propertyValue; }
/**
* <p>The value to send to the asset property. This value contains timestamp,
* quality, and value (TQV) information. </p>
*/
inline bool PropertyValueHasBeenSet() const { return m_propertyValueHasBeenSet; }
/**
* <p>The value to send to the asset property. This value contains timestamp,
* quality, and value (TQV) information. </p>
*/
inline void SetPropertyValue(const AssetPropertyValue& value) { m_propertyValueHasBeenSet = true; m_propertyValue = value; }
/**
* <p>The value to send to the asset property. This value contains timestamp,
* quality, and value (TQV) information. </p>
*/
inline void SetPropertyValue(AssetPropertyValue&& value) { m_propertyValueHasBeenSet = true; m_propertyValue = std::move(value); }
/**
* <p>The value to send to the asset property. This value contains timestamp,
* quality, and value (TQV) information. </p>
*/
inline IotSiteWiseAction& WithPropertyValue(const AssetPropertyValue& value) { SetPropertyValue(value); return *this;}
/**
* <p>The value to send to the asset property. This value contains timestamp,
* quality, and value (TQV) information. </p>
*/
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