/** * 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 information about a composite model property on an * asset.

See Also:

AWS * API Reference

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

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

The name of the property.

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

The name of the property.

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

The type of the composite model that defines this property.

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

The type of the composite model that defines this property.

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

The type of the composite model that defines this property.

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

The type of the composite model that defines this property.

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

The type of the composite model that defines this property.

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

The type of the composite model that defines this property.

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

The type of the composite model that defines this property.

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

The type of the composite model that defines this property.

*/ inline CompositeModelProperty& WithType(const char* value) { SetType(value); return *this;} inline const Property& GetAssetProperty() const{ return m_assetProperty; } inline bool AssetPropertyHasBeenSet() const { return m_assetPropertyHasBeenSet; } inline void SetAssetProperty(const Property& value) { m_assetPropertyHasBeenSet = true; m_assetProperty = value; } inline void SetAssetProperty(Property&& value) { m_assetPropertyHasBeenSet = true; m_assetProperty = std::move(value); } inline CompositeModelProperty& WithAssetProperty(const Property& value) { SetAssetProperty(value); return *this;} inline CompositeModelProperty& WithAssetProperty(Property&& value) { SetAssetProperty(std::move(value)); return *this;} /** *

The ID of the composite model that contains the property.

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

The ID of the composite model that contains the property.

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

The ID of the composite model that contains the property.

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

The ID of the composite model that contains the property.

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

The ID of the composite model that contains the property.

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

The ID of the composite model that contains the property.

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

The ID of the composite model that contains the property.

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

The ID of the composite model that contains the property.

*/ inline CompositeModelProperty& WithId(const char* value) { SetId(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Property m_assetProperty; bool m_assetPropertyHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws