400 lines
14 KiB
C
400 lines
14 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/iotsitewise/model/PropertyNotification.h>
|
|||
|
|
#include <aws/iotsitewise/model/PropertyDataType.h>
|
|||
|
|
#include <aws/iotsitewise/model/PropertyType.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace IoTSiteWise
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Contains asset property information.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/Property">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_IOTSITEWISE_API Property
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
Property();
|
|||
|
|
Property(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Property& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the asset property.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetId() const{ return m_id; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the asset property.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the asset property.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the asset property.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the asset property.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the asset property.</p>
|
|||
|
|
*/
|
|||
|
|
inline Property& WithId(const Aws::String& value) { SetId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the asset property.</p>
|
|||
|
|
*/
|
|||
|
|
inline Property& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the asset property.</p>
|
|||
|
|
*/
|
|||
|
|
inline Property& WithId(const char* value) { SetId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the property.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the property.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the property.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the property.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the property.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the property.</p>
|
|||
|
|
*/
|
|||
|
|
inline Property& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the property.</p>
|
|||
|
|
*/
|
|||
|
|
inline Property& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the property.</p>
|
|||
|
|
*/
|
|||
|
|
inline Property& WithName(const char* value) { SetName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property alias that identifies the property, such as an OPC-UA server
|
|||
|
|
* data stream path (for example,
|
|||
|
|
* <code>/company/windfarm/3/turbine/7/temperature</code>). For more information,
|
|||
|
|
* see <a
|
|||
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html">Mapping
|
|||
|
|
* industrial data streams to asset properties</a> in the <i>AWS IoT SiteWise User
|
|||
|
|
* Guide</i>.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetAlias() const{ return m_alias; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property alias that identifies the property, such as an OPC-UA server
|
|||
|
|
* data stream path (for example,
|
|||
|
|
* <code>/company/windfarm/3/turbine/7/temperature</code>). For more information,
|
|||
|
|
* see <a
|
|||
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html">Mapping
|
|||
|
|
* industrial data streams to asset properties</a> in the <i>AWS IoT SiteWise User
|
|||
|
|
* Guide</i>.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property alias that identifies the property, such as an OPC-UA server
|
|||
|
|
* data stream path (for example,
|
|||
|
|
* <code>/company/windfarm/3/turbine/7/temperature</code>). For more information,
|
|||
|
|
* see <a
|
|||
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html">Mapping
|
|||
|
|
* industrial data streams to asset properties</a> in the <i>AWS IoT SiteWise User
|
|||
|
|
* Guide</i>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property alias that identifies the property, such as an OPC-UA server
|
|||
|
|
* data stream path (for example,
|
|||
|
|
* <code>/company/windfarm/3/turbine/7/temperature</code>). For more information,
|
|||
|
|
* see <a
|
|||
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html">Mapping
|
|||
|
|
* industrial data streams to asset properties</a> in the <i>AWS IoT SiteWise User
|
|||
|
|
* Guide</i>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property alias that identifies the property, such as an OPC-UA server
|
|||
|
|
* data stream path (for example,
|
|||
|
|
* <code>/company/windfarm/3/turbine/7/temperature</code>). For more information,
|
|||
|
|
* see <a
|
|||
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html">Mapping
|
|||
|
|
* industrial data streams to asset properties</a> in the <i>AWS IoT SiteWise User
|
|||
|
|
* Guide</i>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property alias that identifies the property, such as an OPC-UA server
|
|||
|
|
* data stream path (for example,
|
|||
|
|
* <code>/company/windfarm/3/turbine/7/temperature</code>). For more information,
|
|||
|
|
* see <a
|
|||
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html">Mapping
|
|||
|
|
* industrial data streams to asset properties</a> in the <i>AWS IoT SiteWise User
|
|||
|
|
* Guide</i>.</p>
|
|||
|
|
*/
|
|||
|
|
inline Property& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property alias that identifies the property, such as an OPC-UA server
|
|||
|
|
* data stream path (for example,
|
|||
|
|
* <code>/company/windfarm/3/turbine/7/temperature</code>). For more information,
|
|||
|
|
* see <a
|
|||
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html">Mapping
|
|||
|
|
* industrial data streams to asset properties</a> in the <i>AWS IoT SiteWise User
|
|||
|
|
* Guide</i>.</p>
|
|||
|
|
*/
|
|||
|
|
inline Property& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property alias that identifies the property, such as an OPC-UA server
|
|||
|
|
* data stream path (for example,
|
|||
|
|
* <code>/company/windfarm/3/turbine/7/temperature</code>). For more information,
|
|||
|
|
* see <a
|
|||
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html">Mapping
|
|||
|
|
* industrial data streams to asset properties</a> in the <i>AWS IoT SiteWise User
|
|||
|
|
* Guide</i>.</p>
|
|||
|
|
*/
|
|||
|
|
inline Property& WithAlias(const char* value) { SetAlias(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The asset property's notification topic and state. For more information, see
|
|||
|
|
* <a
|
|||
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html">UpdateAssetProperty</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline const PropertyNotification& GetNotification() const{ return m_notification; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The asset property's notification topic and state. For more information, see
|
|||
|
|
* <a
|
|||
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html">UpdateAssetProperty</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The asset property's notification topic and state. For more information, see
|
|||
|
|
* <a
|
|||
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html">UpdateAssetProperty</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNotification(const PropertyNotification& value) { m_notificationHasBeenSet = true; m_notification = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The asset property's notification topic and state. For more information, see
|
|||
|
|
* <a
|
|||
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html">UpdateAssetProperty</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNotification(PropertyNotification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The asset property's notification topic and state. For more information, see
|
|||
|
|
* <a
|
|||
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html">UpdateAssetProperty</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline Property& WithNotification(const PropertyNotification& value) { SetNotification(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The asset property's notification topic and state. For more information, see
|
|||
|
|
* <a
|
|||
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html">UpdateAssetProperty</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline Property& WithNotification(PropertyNotification&& value) { SetNotification(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property data type.</p>
|
|||
|
|
*/
|
|||
|
|
inline const PropertyDataType& GetDataType() const{ return m_dataType; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property data type.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property data type.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDataType(const PropertyDataType& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property data type.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDataType(PropertyDataType&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property data type.</p>
|
|||
|
|
*/
|
|||
|
|
inline Property& WithDataType(const PropertyDataType& value) { SetDataType(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property data type.</p>
|
|||
|
|
*/
|
|||
|
|
inline Property& WithDataType(PropertyDataType&& value) { SetDataType(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unit (such as <code>Newtons</code> or <code>RPM</code>) of the asset
|
|||
|
|
* property.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetUnit() const{ return m_unit; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unit (such as <code>Newtons</code> or <code>RPM</code>) of the asset
|
|||
|
|
* property.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unit (such as <code>Newtons</code> or <code>RPM</code>) of the asset
|
|||
|
|
* property.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unit (such as <code>Newtons</code> or <code>RPM</code>) of the asset
|
|||
|
|
* property.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unit (such as <code>Newtons</code> or <code>RPM</code>) of the asset
|
|||
|
|
* property.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unit (such as <code>Newtons</code> or <code>RPM</code>) of the asset
|
|||
|
|
* property.</p>
|
|||
|
|
*/
|
|||
|
|
inline Property& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unit (such as <code>Newtons</code> or <code>RPM</code>) of the asset
|
|||
|
|
* property.</p>
|
|||
|
|
*/
|
|||
|
|
inline Property& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unit (such as <code>Newtons</code> or <code>RPM</code>) of the asset
|
|||
|
|
* property.</p>
|
|||
|
|
*/
|
|||
|
|
inline Property& WithUnit(const char* value) { SetUnit(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property type (see <code>PropertyType</code>). A property contains one
|
|||
|
|
* type.</p>
|
|||
|
|
*/
|
|||
|
|
inline const PropertyType& GetType() const{ return m_type; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property type (see <code>PropertyType</code>). A property contains one
|
|||
|
|
* type.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property type (see <code>PropertyType</code>). A property contains one
|
|||
|
|
* type.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetType(const PropertyType& value) { m_typeHasBeenSet = true; m_type = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property type (see <code>PropertyType</code>). A property contains one
|
|||
|
|
* type.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetType(PropertyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property type (see <code>PropertyType</code>). A property contains one
|
|||
|
|
* type.</p>
|
|||
|
|
*/
|
|||
|
|
inline Property& WithType(const PropertyType& value) { SetType(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The property type (see <code>PropertyType</code>). A property contains one
|
|||
|
|
* type.</p>
|
|||
|
|
*/
|
|||
|
|
inline Property& WithType(PropertyType&& value) { SetType(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_id;
|
|||
|
|
bool m_idHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_name;
|
|||
|
|
bool m_nameHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_alias;
|
|||
|
|
bool m_aliasHasBeenSet;
|
|||
|
|
|
|||
|
|
PropertyNotification m_notification;
|
|||
|
|
bool m_notificationHasBeenSet;
|
|||
|
|
|
|||
|
|
PropertyDataType m_dataType;
|
|||
|
|
bool m_dataTypeHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_unit;
|
|||
|
|
bool m_unitHasBeenSet;
|
|||
|
|
|
|||
|
|
PropertyType m_type;
|
|||
|
|
bool m_typeHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace IoTSiteWise
|
|||
|
|
} // namespace Aws
|