/** * 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 { /** *

An asset property value entry containing the following * information.

See Also:

AWS * API Reference

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

Optional. A unique identifier for this entry that you can define to better * track which message caused an error in case of failure. Accepts substitution * templates. Defaults to a new UUID.

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

Optional. A unique identifier for this entry that you can define to better * track which message caused an error in case of failure. Accepts substitution * templates. Defaults to a new UUID.

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

Optional. A unique identifier for this entry that you can define to better * track which message caused an error in case of failure. Accepts substitution * templates. Defaults to a new UUID.

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

Optional. A unique identifier for this entry that you can define to better * track which message caused an error in case of failure. Accepts substitution * templates. Defaults to a new UUID.

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

Optional. A unique identifier for this entry that you can define to better * track which message caused an error in case of failure. Accepts substitution * templates. Defaults to a new UUID.

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

Optional. A unique identifier for this entry that you can define to better * track which message caused an error in case of failure. Accepts substitution * templates. Defaults to a new UUID.

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

Optional. A unique identifier for this entry that you can define to better * track which message caused an error in case of failure. Accepts substitution * templates. Defaults to a new UUID.

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

Optional. A unique identifier for this entry that you can define to better * track which message caused an error in case of failure. Accepts substitution * templates. Defaults to a new UUID.

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

The ID of the IoT SiteWise asset. You must specify either a * propertyAlias or both an aliasId and a * propertyId. Accepts substitution templates.

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

The ID of the IoT SiteWise asset. You must specify either a * propertyAlias or both an aliasId and a * propertyId. Accepts substitution templates.

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

The ID of the IoT SiteWise asset. You must specify either a * propertyAlias or both an aliasId and a * propertyId. Accepts substitution templates.

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

The ID of the IoT SiteWise asset. You must specify either a * propertyAlias or both an aliasId and a * propertyId. Accepts substitution templates.

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

The ID of the IoT SiteWise asset. You must specify either a * propertyAlias or both an aliasId and a * propertyId. Accepts substitution templates.

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

The ID of the IoT SiteWise asset. You must specify either a * propertyAlias or both an aliasId and a * propertyId. Accepts substitution templates.

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

The ID of the IoT SiteWise asset. You must specify either a * propertyAlias or both an aliasId and a * propertyId. Accepts substitution templates.

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

The ID of the IoT SiteWise asset. You must specify either a * propertyAlias or both an aliasId and a * propertyId. Accepts substitution templates.

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

The ID of the asset's property. You must specify either a * propertyAlias or both an aliasId and a * propertyId. Accepts substitution templates.

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

The ID of the asset's property. You must specify either a * propertyAlias or both an aliasId and a * propertyId. Accepts substitution templates.

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

The ID of the asset's property. You must specify either a * propertyAlias or both an aliasId and a * propertyId. Accepts substitution templates.

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

The ID of the asset's property. You must specify either a * propertyAlias or both an aliasId and a * propertyId. Accepts substitution templates.

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

The ID of the asset's property. You must specify either a * propertyAlias or both an aliasId and a * propertyId. Accepts substitution templates.

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

The ID of the asset's property. You must specify either a * propertyAlias or both an aliasId and a * propertyId. Accepts substitution templates.

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

The ID of the asset's property. You must specify either a * propertyAlias or both an aliasId and a * propertyId. Accepts substitution templates.

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

The ID of the asset's property. You must specify either a * propertyAlias or both an aliasId and a * propertyId. Accepts substitution templates.

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

The name of the property alias associated with your asset property. You must * specify either a propertyAlias or both an aliasId and * a propertyId. Accepts substitution templates.

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

The name of the property alias associated with your asset property. You must * specify either a propertyAlias or both an aliasId and * a propertyId. Accepts substitution templates.

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

The name of the property alias associated with your asset property. You must * specify either a propertyAlias or both an aliasId and * a propertyId. Accepts substitution templates.

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

The name of the property alias associated with your asset property. You must * specify either a propertyAlias or both an aliasId and * a propertyId. Accepts substitution templates.

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

The name of the property alias associated with your asset property. You must * specify either a propertyAlias or both an aliasId and * a propertyId. Accepts substitution templates.

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

The name of the property alias associated with your asset property. You must * specify either a propertyAlias or both an aliasId and * a propertyId. Accepts substitution templates.

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

The name of the property alias associated with your asset property. You must * specify either a propertyAlias or both an aliasId and * a propertyId. Accepts substitution templates.

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

The name of the property alias associated with your asset property. You must * specify either a propertyAlias or both an aliasId and * a propertyId. Accepts substitution templates.

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

A list of property values to insert that each contain timestamp, quality, and * value (TQV) information.

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

A list of property values to insert that each contain timestamp, quality, and * value (TQV) information.

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

A list of property values to insert that each contain timestamp, quality, and * value (TQV) information.

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

A list of property values to insert that each contain timestamp, quality, and * value (TQV) information.

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

A list of property values to insert that each contain timestamp, quality, and * value (TQV) information.

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

A list of property values to insert that each contain timestamp, quality, and * value (TQV) information.

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

A list of property values to insert that each contain timestamp, quality, and * value (TQV) information.

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

A list of property values to insert that each contain timestamp, quality, and * value (TQV) information.

*/ 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 IoT } // namespace Aws