/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace IoTSiteWise { namespace Model { /** */ class CreateAssetModelRequest : public IoTSiteWiseRequest { public: AWS_IOTSITEWISE_API CreateAssetModelRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateAssetModel"; } AWS_IOTSITEWISE_API Aws::String SerializePayload() const override; /** *

A unique, friendly name for the asset model.

*/ inline const Aws::String& GetAssetModelName() const{ return m_assetModelName; } /** *

A unique, friendly name for the asset model.

*/ inline bool AssetModelNameHasBeenSet() const { return m_assetModelNameHasBeenSet; } /** *

A unique, friendly name for the asset model.

*/ inline void SetAssetModelName(const Aws::String& value) { m_assetModelNameHasBeenSet = true; m_assetModelName = value; } /** *

A unique, friendly name for the asset model.

*/ inline void SetAssetModelName(Aws::String&& value) { m_assetModelNameHasBeenSet = true; m_assetModelName = std::move(value); } /** *

A unique, friendly name for the asset model.

*/ inline void SetAssetModelName(const char* value) { m_assetModelNameHasBeenSet = true; m_assetModelName.assign(value); } /** *

A unique, friendly name for the asset model.

*/ inline CreateAssetModelRequest& WithAssetModelName(const Aws::String& value) { SetAssetModelName(value); return *this;} /** *

A unique, friendly name for the asset model.

*/ inline CreateAssetModelRequest& WithAssetModelName(Aws::String&& value) { SetAssetModelName(std::move(value)); return *this;} /** *

A unique, friendly name for the asset model.

*/ inline CreateAssetModelRequest& WithAssetModelName(const char* value) { SetAssetModelName(value); return *this;} /** *

A description for the asset model.

*/ inline const Aws::String& GetAssetModelDescription() const{ return m_assetModelDescription; } /** *

A description for the asset model.

*/ inline bool AssetModelDescriptionHasBeenSet() const { return m_assetModelDescriptionHasBeenSet; } /** *

A description for the asset model.

*/ inline void SetAssetModelDescription(const Aws::String& value) { m_assetModelDescriptionHasBeenSet = true; m_assetModelDescription = value; } /** *

A description for the asset model.

*/ inline void SetAssetModelDescription(Aws::String&& value) { m_assetModelDescriptionHasBeenSet = true; m_assetModelDescription = std::move(value); } /** *

A description for the asset model.

*/ inline void SetAssetModelDescription(const char* value) { m_assetModelDescriptionHasBeenSet = true; m_assetModelDescription.assign(value); } /** *

A description for the asset model.

*/ inline CreateAssetModelRequest& WithAssetModelDescription(const Aws::String& value) { SetAssetModelDescription(value); return *this;} /** *

A description for the asset model.

*/ inline CreateAssetModelRequest& WithAssetModelDescription(Aws::String&& value) { SetAssetModelDescription(std::move(value)); return *this;} /** *

A description for the asset model.

*/ inline CreateAssetModelRequest& WithAssetModelDescription(const char* value) { SetAssetModelDescription(value); return *this;} /** *

The property definitions of the asset model. For more information, see Asset * properties in the IoT SiteWise User Guide.

You can specify up * to 200 properties per asset model. For more information, see Quotas * in the IoT SiteWise User Guide.

*/ inline const Aws::Vector& GetAssetModelProperties() const{ return m_assetModelProperties; } /** *

The property definitions of the asset model. For more information, see Asset * properties in the IoT SiteWise User Guide.

You can specify up * to 200 properties per asset model. For more information, see Quotas * in the IoT SiteWise User Guide.

*/ inline bool AssetModelPropertiesHasBeenSet() const { return m_assetModelPropertiesHasBeenSet; } /** *

The property definitions of the asset model. For more information, see Asset * properties in the IoT SiteWise User Guide.

You can specify up * to 200 properties per asset model. For more information, see Quotas * in the IoT SiteWise User Guide.

*/ inline void SetAssetModelProperties(const Aws::Vector& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties = value; } /** *

The property definitions of the asset model. For more information, see Asset * properties in the IoT SiteWise User Guide.

You can specify up * to 200 properties per asset model. For more information, see Quotas * in the IoT SiteWise User Guide.

*/ inline void SetAssetModelProperties(Aws::Vector&& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties = std::move(value); } /** *

The property definitions of the asset model. For more information, see Asset * properties in the IoT SiteWise User Guide.

You can specify up * to 200 properties per asset model. For more information, see Quotas * in the IoT SiteWise User Guide.

*/ inline CreateAssetModelRequest& WithAssetModelProperties(const Aws::Vector& value) { SetAssetModelProperties(value); return *this;} /** *

The property definitions of the asset model. For more information, see Asset * properties in the IoT SiteWise User Guide.

You can specify up * to 200 properties per asset model. For more information, see Quotas * in the IoT SiteWise User Guide.

*/ inline CreateAssetModelRequest& WithAssetModelProperties(Aws::Vector&& value) { SetAssetModelProperties(std::move(value)); return *this;} /** *

The property definitions of the asset model. For more information, see Asset * properties in the IoT SiteWise User Guide.

You can specify up * to 200 properties per asset model. For more information, see Quotas * in the IoT SiteWise User Guide.

*/ inline CreateAssetModelRequest& AddAssetModelProperties(const AssetModelPropertyDefinition& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties.push_back(value); return *this; } /** *

The property definitions of the asset model. For more information, see Asset * properties in the IoT SiteWise User Guide.

You can specify up * to 200 properties per asset model. For more information, see Quotas * in the IoT SiteWise User Guide.

*/ inline CreateAssetModelRequest& AddAssetModelProperties(AssetModelPropertyDefinition&& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties.push_back(std::move(value)); return *this; } /** *

The hierarchy definitions of the asset model. Each hierarchy specifies an * asset model whose assets can be children of any other assets created from this * asset model. For more information, see Asset * hierarchies in the IoT SiteWise User Guide.

You can specify up * to 10 hierarchies per asset model. For more information, see Quotas * in the IoT SiteWise User Guide.

*/ inline const Aws::Vector& GetAssetModelHierarchies() const{ return m_assetModelHierarchies; } /** *

The hierarchy definitions of the asset model. Each hierarchy specifies an * asset model whose assets can be children of any other assets created from this * asset model. For more information, see Asset * hierarchies in the IoT SiteWise User Guide.

You can specify up * to 10 hierarchies per asset model. For more information, see Quotas * in the IoT SiteWise User Guide.

*/ inline bool AssetModelHierarchiesHasBeenSet() const { return m_assetModelHierarchiesHasBeenSet; } /** *

The hierarchy definitions of the asset model. Each hierarchy specifies an * asset model whose assets can be children of any other assets created from this * asset model. For more information, see Asset * hierarchies in the IoT SiteWise User Guide.

You can specify up * to 10 hierarchies per asset model. For more information, see Quotas * in the IoT SiteWise User Guide.

*/ inline void SetAssetModelHierarchies(const Aws::Vector& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies = value; } /** *

The hierarchy definitions of the asset model. Each hierarchy specifies an * asset model whose assets can be children of any other assets created from this * asset model. For more information, see Asset * hierarchies in the IoT SiteWise User Guide.

You can specify up * to 10 hierarchies per asset model. For more information, see Quotas * in the IoT SiteWise User Guide.

*/ inline void SetAssetModelHierarchies(Aws::Vector&& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies = std::move(value); } /** *

The hierarchy definitions of the asset model. Each hierarchy specifies an * asset model whose assets can be children of any other assets created from this * asset model. For more information, see Asset * hierarchies in the IoT SiteWise User Guide.

You can specify up * to 10 hierarchies per asset model. For more information, see Quotas * in the IoT SiteWise User Guide.

*/ inline CreateAssetModelRequest& WithAssetModelHierarchies(const Aws::Vector& value) { SetAssetModelHierarchies(value); return *this;} /** *

The hierarchy definitions of the asset model. Each hierarchy specifies an * asset model whose assets can be children of any other assets created from this * asset model. For more information, see Asset * hierarchies in the IoT SiteWise User Guide.

You can specify up * to 10 hierarchies per asset model. For more information, see Quotas * in the IoT SiteWise User Guide.

*/ inline CreateAssetModelRequest& WithAssetModelHierarchies(Aws::Vector&& value) { SetAssetModelHierarchies(std::move(value)); return *this;} /** *

The hierarchy definitions of the asset model. Each hierarchy specifies an * asset model whose assets can be children of any other assets created from this * asset model. For more information, see Asset * hierarchies in the IoT SiteWise User Guide.

You can specify up * to 10 hierarchies per asset model. For more information, see Quotas * in the IoT SiteWise User Guide.

*/ inline CreateAssetModelRequest& AddAssetModelHierarchies(const AssetModelHierarchyDefinition& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies.push_back(value); return *this; } /** *

The hierarchy definitions of the asset model. Each hierarchy specifies an * asset model whose assets can be children of any other assets created from this * asset model. For more information, see Asset * hierarchies in the IoT SiteWise User Guide.

You can specify up * to 10 hierarchies per asset model. For more information, see Quotas * in the IoT SiteWise User Guide.

*/ inline CreateAssetModelRequest& AddAssetModelHierarchies(AssetModelHierarchyDefinition&& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies.push_back(std::move(value)); return *this; } /** *

The composite asset models that are part of this asset model. Composite asset * models are asset models that contain specific properties. Each composite model * has a type that defines the properties that the composite model supports. Use * composite asset models to define alarms on this asset model.

*/ inline const Aws::Vector& GetAssetModelCompositeModels() const{ return m_assetModelCompositeModels; } /** *

The composite asset models that are part of this asset model. Composite asset * models are asset models that contain specific properties. Each composite model * has a type that defines the properties that the composite model supports. Use * composite asset models to define alarms on this asset model.

*/ inline bool AssetModelCompositeModelsHasBeenSet() const { return m_assetModelCompositeModelsHasBeenSet; } /** *

The composite asset models that are part of this asset model. Composite asset * models are asset models that contain specific properties. Each composite model * has a type that defines the properties that the composite model supports. Use * composite asset models to define alarms on this asset model.

*/ inline void SetAssetModelCompositeModels(const Aws::Vector& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels = value; } /** *

The composite asset models that are part of this asset model. Composite asset * models are asset models that contain specific properties. Each composite model * has a type that defines the properties that the composite model supports. Use * composite asset models to define alarms on this asset model.

*/ inline void SetAssetModelCompositeModels(Aws::Vector&& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels = std::move(value); } /** *

The composite asset models that are part of this asset model. Composite asset * models are asset models that contain specific properties. Each composite model * has a type that defines the properties that the composite model supports. Use * composite asset models to define alarms on this asset model.

*/ inline CreateAssetModelRequest& WithAssetModelCompositeModels(const Aws::Vector& value) { SetAssetModelCompositeModels(value); return *this;} /** *

The composite asset models that are part of this asset model. Composite asset * models are asset models that contain specific properties. Each composite model * has a type that defines the properties that the composite model supports. Use * composite asset models to define alarms on this asset model.

*/ inline CreateAssetModelRequest& WithAssetModelCompositeModels(Aws::Vector&& value) { SetAssetModelCompositeModels(std::move(value)); return *this;} /** *

The composite asset models that are part of this asset model. Composite asset * models are asset models that contain specific properties. Each composite model * has a type that defines the properties that the composite model supports. Use * composite asset models to define alarms on this asset model.

*/ inline CreateAssetModelRequest& AddAssetModelCompositeModels(const AssetModelCompositeModelDefinition& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels.push_back(value); return *this; } /** *

The composite asset models that are part of this asset model. Composite asset * models are asset models that contain specific properties. Each composite model * has a type that defines the properties that the composite model supports. Use * composite asset models to define alarms on this asset model.

*/ inline CreateAssetModelRequest& AddAssetModelCompositeModels(AssetModelCompositeModelDefinition&& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels.push_back(std::move(value)); return *this; } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline CreateAssetModelRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline CreateAssetModelRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline CreateAssetModelRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

A list of key-value pairs that contain metadata for the asset model. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A list of key-value pairs that contain metadata for the asset model. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of key-value pairs that contain metadata for the asset model. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of key-value pairs that contain metadata for the asset model. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of key-value pairs that contain metadata for the asset model. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateAssetModelRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A list of key-value pairs that contain metadata for the asset model. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateAssetModelRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A list of key-value pairs that contain metadata for the asset model. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateAssetModelRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A list of key-value pairs that contain metadata for the asset model. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateAssetModelRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A list of key-value pairs that contain metadata for the asset model. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateAssetModelRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A list of key-value pairs that contain metadata for the asset model. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateAssetModelRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A list of key-value pairs that contain metadata for the asset model. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateAssetModelRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A list of key-value pairs that contain metadata for the asset model. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateAssetModelRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A list of key-value pairs that contain metadata for the asset model. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateAssetModelRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_assetModelName; bool m_assetModelNameHasBeenSet = false; Aws::String m_assetModelDescription; bool m_assetModelDescriptionHasBeenSet = false; Aws::Vector m_assetModelProperties; bool m_assetModelPropertiesHasBeenSet = false; Aws::Vector m_assetModelHierarchies; bool m_assetModelHierarchiesHasBeenSet = false; Aws::Vector m_assetModelCompositeModels; bool m_assetModelCompositeModelsHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws