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

Contains a summary of a property associated with an asset.

See * Also:

AWS * API Reference

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

The ID of the property.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID of the property.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of the property.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of the property.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID of the property.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID of the property.

*/ inline AssetPropertySummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the property.

*/ inline AssetPropertySummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of the property.

*/ inline AssetPropertySummary& WithId(const char* value) { SetId(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& GetAlias() const{ return m_alias; } /** *

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 AliasHasBeenSet() const { return m_aliasHasBeenSet; } /** *

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 SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = 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 SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = 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 SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.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 AssetPropertySummary& WithAlias(const Aws::String& value) { SetAlias(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 AssetPropertySummary& WithAlias(Aws::String&& value) { SetAlias(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 AssetPropertySummary& WithAlias(const char* value) { SetAlias(value); return *this;} /** *

The unit of measure (such as Newtons or RPM) of the asset property.

*/ inline const Aws::String& GetUnit() const{ return m_unit; } /** *

The unit of measure (such as Newtons or RPM) of the asset property.

*/ inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; } /** *

The unit of measure (such as Newtons or RPM) of the asset property.

*/ inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; } /** *

The unit of measure (such as Newtons or RPM) of the asset property.

*/ inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); } /** *

The unit of measure (such as Newtons or RPM) of the asset property.

*/ inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); } /** *

The unit of measure (such as Newtons or RPM) of the asset property.

*/ inline AssetPropertySummary& WithUnit(const Aws::String& value) { SetUnit(value); return *this;} /** *

The unit of measure (such as Newtons or RPM) of the asset property.

*/ inline AssetPropertySummary& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;} /** *

The unit of measure (such as Newtons or RPM) of the asset property.

*/ inline AssetPropertySummary& WithUnit(const char* value) { SetUnit(value); return *this;} inline const PropertyNotification& GetNotification() const{ return m_notification; } inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; } inline void SetNotification(const PropertyNotification& value) { m_notificationHasBeenSet = true; m_notification = value; } inline void SetNotification(PropertyNotification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); } inline AssetPropertySummary& WithNotification(const PropertyNotification& value) { SetNotification(value); return *this;} inline AssetPropertySummary& WithNotification(PropertyNotification&& value) { SetNotification(std::move(value)); return *this;} /** *

The ID of the composite model that contains the asset property.

*/ inline const Aws::String& GetAssetCompositeModelId() const{ return m_assetCompositeModelId; } /** *

The ID of the composite model that contains the asset property.

*/ inline bool AssetCompositeModelIdHasBeenSet() const { return m_assetCompositeModelIdHasBeenSet; } /** *

The ID of the composite model that contains the asset property.

*/ inline void SetAssetCompositeModelId(const Aws::String& value) { m_assetCompositeModelIdHasBeenSet = true; m_assetCompositeModelId = value; } /** *

The ID of the composite model that contains the asset property.

*/ inline void SetAssetCompositeModelId(Aws::String&& value) { m_assetCompositeModelIdHasBeenSet = true; m_assetCompositeModelId = std::move(value); } /** *

The ID of the composite model that contains the asset property.

*/ inline void SetAssetCompositeModelId(const char* value) { m_assetCompositeModelIdHasBeenSet = true; m_assetCompositeModelId.assign(value); } /** *

The ID of the composite model that contains the asset property.

*/ inline AssetPropertySummary& WithAssetCompositeModelId(const Aws::String& value) { SetAssetCompositeModelId(value); return *this;} /** *

The ID of the composite model that contains the asset property.

*/ inline AssetPropertySummary& WithAssetCompositeModelId(Aws::String&& value) { SetAssetCompositeModelId(std::move(value)); return *this;} /** *

The ID of the composite model that contains the asset property.

*/ inline AssetPropertySummary& WithAssetCompositeModelId(const char* value) { SetAssetCompositeModelId(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_alias; bool m_aliasHasBeenSet = false; Aws::String m_unit; bool m_unitHasBeenSet = false; PropertyNotification m_notification; bool m_notificationHasBeenSet = false; Aws::String m_assetCompositeModelId; bool m_assetCompositeModelIdHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws