/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoTSiteWise { namespace Model { /** *

Identifies a property value used in an expression.

See Also:

* AWS * API Reference

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

The ID of the property to use as the variable. You can use the property * name if it's from the same asset model.

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

The ID of the property to use as the variable. You can use the property * name if it's from the same asset model.

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

The ID of the property to use as the variable. You can use the property * name if it's from the same asset model.

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

The ID of the property to use as the variable. You can use the property * name if it's from the same asset model.

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

The ID of the property to use as the variable. You can use the property * name if it's from the same asset model.

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

The ID of the property to use as the variable. You can use the property * name if it's from the same asset model.

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

The ID of the property to use as the variable. You can use the property * name if it's from the same asset model.

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

The ID of the property to use as the variable. You can use the property * name if it's from the same asset model.

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

The ID of the hierarchy to query for the property ID. You can use the * hierarchy's name instead of the hierarchy's ID.

You use a hierarchy ID * instead of a model ID because you can have several hierarchies using the same * model and therefore the same propertyId. For example, you might * have separately grouped assets that come from the same asset model. For more * information, see Asset * hierarchies in the IoT SiteWise User Guide.

*/ inline const Aws::String& GetHierarchyId() const{ return m_hierarchyId; } /** *

The ID of the hierarchy to query for the property ID. You can use the * hierarchy's name instead of the hierarchy's ID.

You use a hierarchy ID * instead of a model ID because you can have several hierarchies using the same * model and therefore the same propertyId. For example, you might * have separately grouped assets that come from the same asset model. For more * information, see Asset * hierarchies in the IoT SiteWise User Guide.

*/ inline bool HierarchyIdHasBeenSet() const { return m_hierarchyIdHasBeenSet; } /** *

The ID of the hierarchy to query for the property ID. You can use the * hierarchy's name instead of the hierarchy's ID.

You use a hierarchy ID * instead of a model ID because you can have several hierarchies using the same * model and therefore the same propertyId. For example, you might * have separately grouped assets that come from the same asset model. For more * information, see Asset * hierarchies in the IoT SiteWise User Guide.

*/ inline void SetHierarchyId(const Aws::String& value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId = value; } /** *

The ID of the hierarchy to query for the property ID. You can use the * hierarchy's name instead of the hierarchy's ID.

You use a hierarchy ID * instead of a model ID because you can have several hierarchies using the same * model and therefore the same propertyId. For example, you might * have separately grouped assets that come from the same asset model. For more * information, see Asset * hierarchies in the IoT SiteWise User Guide.

*/ inline void SetHierarchyId(Aws::String&& value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId = std::move(value); } /** *

The ID of the hierarchy to query for the property ID. You can use the * hierarchy's name instead of the hierarchy's ID.

You use a hierarchy ID * instead of a model ID because you can have several hierarchies using the same * model and therefore the same propertyId. For example, you might * have separately grouped assets that come from the same asset model. For more * information, see Asset * hierarchies in the IoT SiteWise User Guide.

*/ inline void SetHierarchyId(const char* value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId.assign(value); } /** *

The ID of the hierarchy to query for the property ID. You can use the * hierarchy's name instead of the hierarchy's ID.

You use a hierarchy ID * instead of a model ID because you can have several hierarchies using the same * model and therefore the same propertyId. For example, you might * have separately grouped assets that come from the same asset model. For more * information, see Asset * hierarchies in the IoT SiteWise User Guide.

*/ inline VariableValue& WithHierarchyId(const Aws::String& value) { SetHierarchyId(value); return *this;} /** *

The ID of the hierarchy to query for the property ID. You can use the * hierarchy's name instead of the hierarchy's ID.

You use a hierarchy ID * instead of a model ID because you can have several hierarchies using the same * model and therefore the same propertyId. For example, you might * have separately grouped assets that come from the same asset model. For more * information, see Asset * hierarchies in the IoT SiteWise User Guide.

*/ inline VariableValue& WithHierarchyId(Aws::String&& value) { SetHierarchyId(std::move(value)); return *this;} /** *

The ID of the hierarchy to query for the property ID. You can use the * hierarchy's name instead of the hierarchy's ID.

You use a hierarchy ID * instead of a model ID because you can have several hierarchies using the same * model and therefore the same propertyId. For example, you might * have separately grouped assets that come from the same asset model. For more * information, see Asset * hierarchies in the IoT SiteWise User Guide.

*/ inline VariableValue& WithHierarchyId(const char* value) { SetHierarchyId(value); return *this;} private: Aws::String m_propertyId; bool m_propertyIdHasBeenSet = false; Aws::String m_hierarchyId; bool m_hierarchyIdHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws