/** * 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 IoTSiteWise { namespace Model { /** *

Contains a list of value updates for an asset property in the list of asset * entries consumed by the BatchPutAssetPropertyValue * API operation.

See Also:

AWS * API Reference

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

The user specified ID for the entry. You can use this ID to identify which * entries failed.

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

The user specified ID for the entry. You can use this ID to identify which * entries failed.

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

The user specified ID for the entry. You can use this ID to identify which * entries failed.

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

The user specified ID for the entry. You can use this ID to identify which * entries failed.

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

The user specified ID for the entry. You can use this ID to identify which * entries failed.

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

The user specified ID for the entry. You can use this ID to identify which * entries failed.

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

The user specified ID for the entry. You can use this ID to identify which * entries failed.

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

The user specified ID for the entry. You can use this ID to identify which * entries failed.

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

The ID of the asset to update.

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

The ID of the asset to update.

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

The ID of the asset to update.

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

The ID of the asset to update.

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

The ID of the asset to update.

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

The ID of the asset to update.

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

The ID of the asset to update.

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

The ID of the asset to update.

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

The ID of the asset property for this entry.

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

The ID of the asset property for this entry.

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

The ID of the asset property for this entry.

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

The ID of the asset property for this entry.

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

The ID of the asset property for this entry.

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

The ID of the asset property for this entry.

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

The ID of the asset property for this entry.

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

The ID of the asset property for this entry.

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

The alias that identifies the property, such as an OPC-UA server data stream * path (for example, /company/windfarm/3/turbine/7/temperature). For * more information, see Mapping * industrial data streams to asset properties in the IoT SiteWise User * Guide.

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

The alias that identifies the property, such as an OPC-UA server data stream * path (for example, /company/windfarm/3/turbine/7/temperature). For * more information, see Mapping * industrial data streams to asset properties in the IoT SiteWise User * Guide.

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

The alias that identifies the property, such as an OPC-UA server data stream * path (for example, /company/windfarm/3/turbine/7/temperature). For * more information, see Mapping * industrial data streams to asset properties in the IoT SiteWise User * Guide.

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

The alias that identifies the property, such as an OPC-UA server data stream * path (for example, /company/windfarm/3/turbine/7/temperature). For * more information, see Mapping * industrial data streams to asset properties in the IoT SiteWise User * Guide.

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

The alias that identifies the property, such as an OPC-UA server data stream * path (for example, /company/windfarm/3/turbine/7/temperature). For * more information, see Mapping * industrial data streams to asset properties in the IoT SiteWise User * Guide.

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

The alias that identifies the property, such as an OPC-UA server data stream * path (for example, /company/windfarm/3/turbine/7/temperature). For * more information, see Mapping * industrial data streams to asset properties in the IoT SiteWise User * Guide.

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

The alias that identifies the property, such as an OPC-UA server data stream * path (for example, /company/windfarm/3/turbine/7/temperature). For * more information, see Mapping * industrial data streams to asset properties in the IoT SiteWise User * Guide.

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

The alias that identifies the property, such as an OPC-UA server data stream * path (for example, /company/windfarm/3/turbine/7/temperature). For * more information, see Mapping * industrial data streams to asset properties in the IoT SiteWise User * Guide.

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

The list of property values to upload. You can specify up to 10 * propertyValues array elements.

*/ inline const Aws::Vector& GetPropertyValues() const{ return m_propertyValues; } /** *

The list of property values to upload. You can specify up to 10 * propertyValues array elements.

*/ inline bool PropertyValuesHasBeenSet() const { return m_propertyValuesHasBeenSet; } /** *

The list of property values to upload. You can specify up to 10 * propertyValues array elements.

*/ inline void SetPropertyValues(const Aws::Vector& value) { m_propertyValuesHasBeenSet = true; m_propertyValues = value; } /** *

The list of property values to upload. You can specify up to 10 * propertyValues array elements.

*/ inline void SetPropertyValues(Aws::Vector&& value) { m_propertyValuesHasBeenSet = true; m_propertyValues = std::move(value); } /** *

The list of property values to upload. You can specify up to 10 * propertyValues array elements.

*/ inline PutAssetPropertyValueEntry& WithPropertyValues(const Aws::Vector& value) { SetPropertyValues(value); return *this;} /** *

The list of property values to upload. You can specify up to 10 * propertyValues array elements.

*/ inline PutAssetPropertyValueEntry& WithPropertyValues(Aws::Vector&& value) { SetPropertyValues(std::move(value)); return *this;} /** *

The list of property values to upload. You can specify up to 10 * propertyValues array elements.

*/ inline PutAssetPropertyValueEntry& AddPropertyValues(const AssetPropertyValue& value) { m_propertyValuesHasBeenSet = true; m_propertyValues.push_back(value); return *this; } /** *

The list of property values to upload. You can specify up to 10 * propertyValues array elements.

*/ 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 = false; Aws::String m_assetId; bool m_assetIdHasBeenSet = false; Aws::String m_propertyId; bool m_propertyIdHasBeenSet = false; Aws::String m_propertyAlias; bool m_propertyAliasHasBeenSet = false; Aws::Vector m_propertyValues; bool m_propertyValuesHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws