/** * 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 IoTSiteWise { namespace Model { /** *

Contains a summary of a property associated with a model.

See * Also:

AWS * API Reference

*/ class AssetModelPropertySummary { public: AWS_IOTSITEWISE_API AssetModelPropertySummary(); AWS_IOTSITEWISE_API AssetModelPropertySummary(Aws::Utils::Json::JsonView jsonValue); AWS_IOTSITEWISE_API AssetModelPropertySummary& 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 AssetModelPropertySummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the property.

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

The ID of the property.

*/ inline AssetModelPropertySummary& 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 AssetModelPropertySummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the property.

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

The name of the property.

*/ inline AssetModelPropertySummary& WithName(const char* value) { SetName(value); return *this;} /** *

The data type of the property.

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

The data type of the property.

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

The data type of the property.

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

The data type of the property.

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

The data type of the property.

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

The data type of the property.

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

The data type of the structure for this property. This parameter exists on * properties that have the STRUCT data type.

*/ inline const Aws::String& GetDataTypeSpec() const{ return m_dataTypeSpec; } /** *

The data type of the structure for this property. This parameter exists on * properties that have the STRUCT data type.

*/ inline bool DataTypeSpecHasBeenSet() const { return m_dataTypeSpecHasBeenSet; } /** *

The data type of the structure for this property. This parameter exists on * properties that have the STRUCT data type.

*/ inline void SetDataTypeSpec(const Aws::String& value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec = value; } /** *

The data type of the structure for this property. This parameter exists on * properties that have the STRUCT data type.

*/ inline void SetDataTypeSpec(Aws::String&& value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec = std::move(value); } /** *

The data type of the structure for this property. This parameter exists on * properties that have the STRUCT data type.

*/ inline void SetDataTypeSpec(const char* value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec.assign(value); } /** *

The data type of the structure for this property. This parameter exists on * properties that have the STRUCT data type.

*/ inline AssetModelPropertySummary& WithDataTypeSpec(const Aws::String& value) { SetDataTypeSpec(value); return *this;} /** *

The data type of the structure for this property. This parameter exists on * properties that have the STRUCT data type.

*/ inline AssetModelPropertySummary& WithDataTypeSpec(Aws::String&& value) { SetDataTypeSpec(std::move(value)); return *this;} /** *

The data type of the structure for this property. This parameter exists on * properties that have the STRUCT data type.

*/ inline AssetModelPropertySummary& WithDataTypeSpec(const char* value) { SetDataTypeSpec(value); return *this;} /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline AssetModelPropertySummary& WithUnit(const char* value) { SetUnit(value); return *this;} inline const PropertyType& GetType() const{ return m_type; } inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } inline void SetType(const PropertyType& value) { m_typeHasBeenSet = true; m_type = value; } inline void SetType(PropertyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } inline AssetModelPropertySummary& WithType(const PropertyType& value) { SetType(value); return *this;} inline AssetModelPropertySummary& WithType(PropertyType&& value) { SetType(std::move(value)); return *this;} /** *

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

*/ inline const Aws::String& GetAssetModelCompositeModelId() const{ return m_assetModelCompositeModelId; } /** *

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

*/ inline bool AssetModelCompositeModelIdHasBeenSet() const { return m_assetModelCompositeModelIdHasBeenSet; } /** *

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

*/ inline void SetAssetModelCompositeModelId(const Aws::String& value) { m_assetModelCompositeModelIdHasBeenSet = true; m_assetModelCompositeModelId = value; } /** *

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

*/ inline void SetAssetModelCompositeModelId(Aws::String&& value) { m_assetModelCompositeModelIdHasBeenSet = true; m_assetModelCompositeModelId = std::move(value); } /** *

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

*/ inline void SetAssetModelCompositeModelId(const char* value) { m_assetModelCompositeModelIdHasBeenSet = true; m_assetModelCompositeModelId.assign(value); } /** *

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

*/ inline AssetModelPropertySummary& WithAssetModelCompositeModelId(const Aws::String& value) { SetAssetModelCompositeModelId(value); return *this;} /** *

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

*/ inline AssetModelPropertySummary& WithAssetModelCompositeModelId(Aws::String&& value) { SetAssetModelCompositeModelId(std::move(value)); return *this;} /** *

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

*/ inline AssetModelPropertySummary& WithAssetModelCompositeModelId(const char* value) { SetAssetModelCompositeModelId(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; PropertyDataType m_dataType; bool m_dataTypeHasBeenSet = false; Aws::String m_dataTypeSpec; bool m_dataTypeSpecHasBeenSet = false; Aws::String m_unit; bool m_unitHasBeenSet = false; PropertyType m_type; bool m_typeHasBeenSet = false; Aws::String m_assetModelCompositeModelId; bool m_assetModelCompositeModelIdHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws