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

Contains asset property information.

See Also:

AWS * API Reference

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

The ID of the asset property.

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

The ID of the asset property.

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

The ID of the asset property.

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

The ID of the asset property.

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

The ID of the asset property.

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

The ID of the asset property.

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

The ID of the asset property.

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

The ID of the asset property.

*/ inline Property& WithId(const char* value) { SetId(value); return *this;} /** *

The name of the property.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the property.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the property.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the property.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the property.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the property.

*/ inline Property& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the property.

*/ inline Property& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the property.

*/ inline Property& WithName(const char* value) { SetName(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 Property& 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 Property& 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 Property& WithAlias(const char* value) { SetAlias(value); return *this;} /** *

The asset property's notification topic and state. For more information, see * UpdateAssetProperty.

*/ inline const PropertyNotification& GetNotification() const{ return m_notification; } /** *

The asset property's notification topic and state. For more information, see * UpdateAssetProperty.

*/ inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; } /** *

The asset property's notification topic and state. For more information, see * UpdateAssetProperty.

*/ inline void SetNotification(const PropertyNotification& value) { m_notificationHasBeenSet = true; m_notification = value; } /** *

The asset property's notification topic and state. For more information, see * UpdateAssetProperty.

*/ inline void SetNotification(PropertyNotification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); } /** *

The asset property's notification topic and state. For more information, see * UpdateAssetProperty.

*/ inline Property& WithNotification(const PropertyNotification& value) { SetNotification(value); return *this;} /** *

The asset property's notification topic and state. For more information, see * UpdateAssetProperty.

*/ inline Property& WithNotification(PropertyNotification&& value) { SetNotification(std::move(value)); return *this;} /** *

The property data type.

*/ inline const PropertyDataType& GetDataType() const{ return m_dataType; } /** *

The property data type.

*/ inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; } /** *

The property data type.

*/ inline void SetDataType(const PropertyDataType& value) { m_dataTypeHasBeenSet = true; m_dataType = value; } /** *

The property data type.

*/ inline void SetDataType(PropertyDataType&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); } /** *

The property data type.

*/ inline Property& WithDataType(const PropertyDataType& value) { SetDataType(value); return *this;} /** *

The property data type.

*/ inline Property& WithDataType(PropertyDataType&& value) { SetDataType(std::move(value)); return *this;} /** *

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

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

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

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

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

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

The unit (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 (such as Newtons or RPM) of the asset * property.

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

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

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

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

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

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

*/ inline Property& WithUnit(const char* value) { SetUnit(value); return *this;} /** *

The property type (see PropertyType). A property contains one * type.

*/ inline const PropertyType& GetType() const{ return m_type; } /** *

The property type (see PropertyType). A property contains one * type.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The property type (see PropertyType). A property contains one * type.

*/ inline void SetType(const PropertyType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The property type (see PropertyType). A property contains one * type.

*/ inline void SetType(PropertyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The property type (see PropertyType). A property contains one * type.

*/ inline Property& WithType(const PropertyType& value) { SetType(value); return *this;} /** *

The property type (see PropertyType). A property contains one * type.

*/ inline Property& WithType(PropertyType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_alias; bool m_aliasHasBeenSet = false; PropertyNotification m_notification; bool m_notificationHasBeenSet = false; PropertyDataType m_dataType; bool m_dataTypeHasBeenSet = false; Aws::String m_unit; bool m_unitHasBeenSet = false; PropertyType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws