/** * 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 information about a composite model in an asset model. This object * contains the asset property definitions that you define in the composite * model.

See Also:

AWS * API Reference

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

The name of the composite model.

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

The name of the composite model.

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

The name of the composite model.

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

The name of the composite model.

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

The name of the composite model.

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

The name of the composite model.

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

The name of the composite model.

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

The name of the composite model.

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

The description of the composite model.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the composite model.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the composite model.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the composite model.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the composite model.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the composite model.

*/ inline AssetModelCompositeModel& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the composite model.

*/ inline AssetModelCompositeModel& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the composite model.

*/ inline AssetModelCompositeModel& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The type of the composite model. For alarm composite models, this type is * AWS/ALARM.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of the composite model. For alarm composite models, this type is * AWS/ALARM.

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

The type of the composite model. For alarm composite models, this type is * AWS/ALARM.

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

The type of the composite model. For alarm composite models, this type is * AWS/ALARM.

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

The type of the composite model. For alarm composite models, this type is * AWS/ALARM.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of the composite model. For alarm composite models, this type is * AWS/ALARM.

*/ inline AssetModelCompositeModel& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of the composite model. For alarm composite models, this type is * AWS/ALARM.

*/ inline AssetModelCompositeModel& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of the composite model. For alarm composite models, this type is * AWS/ALARM.

*/ inline AssetModelCompositeModel& WithType(const char* value) { SetType(value); return *this;} /** *

The asset property definitions for this composite model.

*/ inline const Aws::Vector& GetProperties() const{ return m_properties; } /** *

The asset property definitions for this composite model.

*/ inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; } /** *

The asset property definitions for this composite model.

*/ inline void SetProperties(const Aws::Vector& value) { m_propertiesHasBeenSet = true; m_properties = value; } /** *

The asset property definitions for this composite model.

*/ inline void SetProperties(Aws::Vector&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); } /** *

The asset property definitions for this composite model.

*/ inline AssetModelCompositeModel& WithProperties(const Aws::Vector& value) { SetProperties(value); return *this;} /** *

The asset property definitions for this composite model.

*/ inline AssetModelCompositeModel& WithProperties(Aws::Vector&& value) { SetProperties(std::move(value)); return *this;} /** *

The asset property definitions for this composite model.

*/ inline AssetModelCompositeModel& AddProperties(const AssetModelProperty& value) { m_propertiesHasBeenSet = true; m_properties.push_back(value); return *this; } /** *

The asset property definitions for this composite model.

*/ inline AssetModelCompositeModel& AddProperties(AssetModelProperty&& value) { m_propertiesHasBeenSet = true; m_properties.push_back(std::move(value)); return *this; } /** *

The ID of the asset model composite model.

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

The ID of the asset model composite model.

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

The ID of the asset model composite model.

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

The ID of the asset model composite model.

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

The ID of the asset model composite model.

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

The ID of the asset model composite model.

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

The ID of the asset model composite model.

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

The ID of the asset model composite model.

*/ inline AssetModelCompositeModel& WithId(const char* value) { SetId(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::Vector m_properties; bool m_propertiesHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws