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-iotsitewise/include/aws/iotsitewise/model/PutAssetPropertyValueEntry.h

334 lines
13 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotsitewise/model/AssetPropertyValue.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTSiteWise
{
namespace Model
{
/**
* <p>Contains a list of value updates for an asset property in the list of asset
* entries consumed by the <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchPutAssetPropertyValue.html">BatchPutAssetPropertyValue</a>
* API.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/PutAssetPropertyValueEntry">AWS
* API Reference</a></p>
*/
class AWS_IOTSITEWISE_API PutAssetPropertyValueEntry
{
public:
PutAssetPropertyValueEntry();
PutAssetPropertyValueEntry(Aws::Utils::Json::JsonView jsonValue);
PutAssetPropertyValueEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The user specified ID for the entry. You can use this ID to identify which
* entries failed.</p>
*/
inline const Aws::String& GetEntryId() const{ return m_entryId; }
/**
* <p>The user specified ID for the entry. You can use this ID to identify which
* entries failed.</p>
*/
inline bool EntryIdHasBeenSet() const { return m_entryIdHasBeenSet; }
/**
* <p>The user specified ID for the entry. You can use this ID to identify which
* entries failed.</p>
*/
inline void SetEntryId(const Aws::String& value) { m_entryIdHasBeenSet = true; m_entryId = value; }
/**
* <p>The user specified ID for the entry. You can use this ID to identify which
* entries failed.</p>
*/
inline void SetEntryId(Aws::String&& value) { m_entryIdHasBeenSet = true; m_entryId = std::move(value); }
/**
* <p>The user specified ID for the entry. You can use this ID to identify which
* entries failed.</p>
*/
inline void SetEntryId(const char* value) { m_entryIdHasBeenSet = true; m_entryId.assign(value); }
/**
* <p>The user specified ID for the entry. You can use this ID to identify which
* entries failed.</p>
*/
inline PutAssetPropertyValueEntry& WithEntryId(const Aws::String& value) { SetEntryId(value); return *this;}
/**
* <p>The user specified ID for the entry. You can use this ID to identify which
* entries failed.</p>
*/
inline PutAssetPropertyValueEntry& WithEntryId(Aws::String&& value) { SetEntryId(std::move(value)); return *this;}
/**
* <p>The user specified ID for the entry. You can use this ID to identify which
* entries failed.</p>
*/
inline PutAssetPropertyValueEntry& WithEntryId(const char* value) { SetEntryId(value); return *this;}
/**
* <p>The ID of the asset to update.</p>
*/
inline const Aws::String& GetAssetId() const{ return m_assetId; }
/**
* <p>The ID of the asset to update.</p>
*/
inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
/**
* <p>The ID of the asset to update.</p>
*/
inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
/**
* <p>The ID of the asset to update.</p>
*/
inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
/**
* <p>The ID of the asset to update.</p>
*/
inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
/**
* <p>The ID of the asset to update.</p>
*/
inline PutAssetPropertyValueEntry& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
/**
* <p>The ID of the asset to update.</p>
*/
inline PutAssetPropertyValueEntry& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
/**
* <p>The ID of the asset to update.</p>
*/
inline PutAssetPropertyValueEntry& WithAssetId(const char* value) { SetAssetId(value); return *this;}
/**
* <p>The ID of the asset property for this entry.</p>
*/
inline const Aws::String& GetPropertyId() const{ return m_propertyId; }
/**
* <p>The ID of the asset property for this entry.</p>
*/
inline bool PropertyIdHasBeenSet() const { return m_propertyIdHasBeenSet; }
/**
* <p>The ID of the asset property for this entry.</p>
*/
inline void SetPropertyId(const Aws::String& value) { m_propertyIdHasBeenSet = true; m_propertyId = value; }
/**
* <p>The ID of the asset property for this entry.</p>
*/
inline void SetPropertyId(Aws::String&& value) { m_propertyIdHasBeenSet = true; m_propertyId = std::move(value); }
/**
* <p>The ID of the asset property for this entry.</p>
*/
inline void SetPropertyId(const char* value) { m_propertyIdHasBeenSet = true; m_propertyId.assign(value); }
/**
* <p>The ID of the asset property for this entry.</p>
*/
inline PutAssetPropertyValueEntry& WithPropertyId(const Aws::String& value) { SetPropertyId(value); return *this;}
/**
* <p>The ID of the asset property for this entry.</p>
*/
inline PutAssetPropertyValueEntry& WithPropertyId(Aws::String&& value) { SetPropertyId(std::move(value)); return *this;}
/**
* <p>The ID of the asset property for this entry.</p>
*/
inline PutAssetPropertyValueEntry& WithPropertyId(const char* value) { SetPropertyId(value); return *this;}
/**
* <p>The property alias that identifies the property, such as an OPC-UA server
* data stream path (for example,
* <code>/company/windfarm/3/turbine/7/temperature</code>). For more information,
* see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html">Mapping
* industrial data streams to asset properties</a> in the <i>AWS IoT SiteWise User
* Guide</i>.</p>
*/
inline const Aws::String& GetPropertyAlias() const{ return m_propertyAlias; }
/**
* <p>The property alias that identifies the property, such as an OPC-UA server
* data stream path (for example,
* <code>/company/windfarm/3/turbine/7/temperature</code>). For more information,
* see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html">Mapping
* industrial data streams to asset properties</a> in the <i>AWS IoT SiteWise User
* Guide</i>.</p>
*/
inline bool PropertyAliasHasBeenSet() const { return m_propertyAliasHasBeenSet; }
/**
* <p>The property alias that identifies the property, such as an OPC-UA server
* data stream path (for example,
* <code>/company/windfarm/3/turbine/7/temperature</code>). For more information,
* see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html">Mapping
* industrial data streams to asset properties</a> in the <i>AWS IoT SiteWise User
* Guide</i>.</p>
*/
inline void SetPropertyAlias(const Aws::String& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = value; }
/**
* <p>The property alias that identifies the property, such as an OPC-UA server
* data stream path (for example,
* <code>/company/windfarm/3/turbine/7/temperature</code>). For more information,
* see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html">Mapping
* industrial data streams to asset properties</a> in the <i>AWS IoT SiteWise User
* Guide</i>.</p>
*/
inline void SetPropertyAlias(Aws::String&& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = std::move(value); }
/**
* <p>The property alias that identifies the property, such as an OPC-UA server
* data stream path (for example,
* <code>/company/windfarm/3/turbine/7/temperature</code>). For more information,
* see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html">Mapping
* industrial data streams to asset properties</a> in the <i>AWS IoT SiteWise User
* Guide</i>.</p>
*/
inline void SetPropertyAlias(const char* value) { m_propertyAliasHasBeenSet = true; m_propertyAlias.assign(value); }
/**
* <p>The property alias that identifies the property, such as an OPC-UA server
* data stream path (for example,
* <code>/company/windfarm/3/turbine/7/temperature</code>). For more information,
* see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html">Mapping
* industrial data streams to asset properties</a> in the <i>AWS IoT SiteWise User
* Guide</i>.</p>
*/
inline PutAssetPropertyValueEntry& WithPropertyAlias(const Aws::String& value) { SetPropertyAlias(value); return *this;}
/**
* <p>The property alias that identifies the property, such as an OPC-UA server
* data stream path (for example,
* <code>/company/windfarm/3/turbine/7/temperature</code>). For more information,
* see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html">Mapping
* industrial data streams to asset properties</a> in the <i>AWS IoT SiteWise User
* Guide</i>.</p>
*/
inline PutAssetPropertyValueEntry& WithPropertyAlias(Aws::String&& value) { SetPropertyAlias(std::move(value)); return *this;}
/**
* <p>The property alias that identifies the property, such as an OPC-UA server
* data stream path (for example,
* <code>/company/windfarm/3/turbine/7/temperature</code>). For more information,
* see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html">Mapping
* industrial data streams to asset properties</a> in the <i>AWS IoT SiteWise User
* Guide</i>.</p>
*/
inline PutAssetPropertyValueEntry& WithPropertyAlias(const char* value) { SetPropertyAlias(value); return *this;}
/**
* <p>The list of property values to upload. You can specify up to 10
* <code>propertyValues</code> array elements. </p>
*/
inline const Aws::Vector<AssetPropertyValue>& GetPropertyValues() const{ return m_propertyValues; }
/**
* <p>The list of property values to upload. You can specify up to 10
* <code>propertyValues</code> array elements. </p>
*/
inline bool PropertyValuesHasBeenSet() const { return m_propertyValuesHasBeenSet; }
/**
* <p>The list of property values to upload. You can specify up to 10
* <code>propertyValues</code> array elements. </p>
*/
inline void SetPropertyValues(const Aws::Vector<AssetPropertyValue>& value) { m_propertyValuesHasBeenSet = true; m_propertyValues = value; }
/**
* <p>The list of property values to upload. You can specify up to 10
* <code>propertyValues</code> array elements. </p>
*/
inline void SetPropertyValues(Aws::Vector<AssetPropertyValue>&& value) { m_propertyValuesHasBeenSet = true; m_propertyValues = std::move(value); }
/**
* <p>The list of property values to upload. You can specify up to 10
* <code>propertyValues</code> array elements. </p>
*/
inline PutAssetPropertyValueEntry& WithPropertyValues(const Aws::Vector<AssetPropertyValue>& value) { SetPropertyValues(value); return *this;}
/**
* <p>The list of property values to upload. You can specify up to 10
* <code>propertyValues</code> array elements. </p>
*/
inline PutAssetPropertyValueEntry& WithPropertyValues(Aws::Vector<AssetPropertyValue>&& value) { SetPropertyValues(std::move(value)); return *this;}
/**
* <p>The list of property values to upload. You can specify up to 10
* <code>propertyValues</code> array elements. </p>
*/
inline PutAssetPropertyValueEntry& AddPropertyValues(const AssetPropertyValue& value) { m_propertyValuesHasBeenSet = true; m_propertyValues.push_back(value); return *this; }
/**
* <p>The list of property values to upload. You can specify up to 10
* <code>propertyValues</code> array elements. </p>
*/
inline PutAssetPropertyValueEntry& AddPropertyValues(AssetPropertyValue&& value) { m_propertyValuesHasBeenSet = true; m_propertyValues.push_back(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;
Aws::Vector<AssetPropertyValue> m_propertyValues;
bool m_propertyValuesHasBeenSet;
};
} // namespace Model
} // namespace IoTSiteWise
} // namespace Aws