/** * 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 namespace Aws { namespace IoTSiteWise { namespace Model { /** */ class UpdateAssetModelRequest : public IoTSiteWiseRequest { public: AWS_IOTSITEWISE_API UpdateAssetModelRequest(); // 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 "UpdateAssetModel"; } AWS_IOTSITEWISE_API Aws::String SerializePayload() const override; /** *

The ID of the asset model to update.

*/ inline const Aws::String& GetAssetModelId() const{ return m_assetModelId; } /** *

The ID of the asset model to update.

*/ inline bool AssetModelIdHasBeenSet() const { return m_assetModelIdHasBeenSet; } /** *

The ID of the asset model to update.

*/ inline void SetAssetModelId(const Aws::String& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = value; } /** *

The ID of the asset model to update.

*/ inline void SetAssetModelId(Aws::String&& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = std::move(value); } /** *

The ID of the asset model to update.

*/ inline void SetAssetModelId(const char* value) { m_assetModelIdHasBeenSet = true; m_assetModelId.assign(value); } /** *

The ID of the asset model to update.

*/ inline UpdateAssetModelRequest& WithAssetModelId(const Aws::String& value) { SetAssetModelId(value); return *this;} /** *

The ID of the asset model to update.

*/ inline UpdateAssetModelRequest& WithAssetModelId(Aws::String&& value) { SetAssetModelId(std::move(value)); return *this;} /** *

The ID of the asset model to update.

*/ inline UpdateAssetModelRequest& WithAssetModelId(const char* value) { SetAssetModelId(value); return *this;} /** *

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 UpdateAssetModelRequest& WithAssetModelName(const Aws::String& value) { SetAssetModelName(value); return *this;} /** *

A unique, friendly name for the asset model.

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

A unique, friendly name for the asset model.

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

A description for the asset model.

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

A description for the asset model.

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

The updated 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 updated 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 updated 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 updated 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 updated 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 UpdateAssetModelRequest& WithAssetModelProperties(const Aws::Vector& value) { SetAssetModelProperties(value); return *this;} /** *

The updated 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 UpdateAssetModelRequest& WithAssetModelProperties(Aws::Vector&& value) { SetAssetModelProperties(std::move(value)); return *this;} /** *

The updated 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 UpdateAssetModelRequest& AddAssetModelProperties(const AssetModelProperty& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties.push_back(value); return *this; } /** *

The updated 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 UpdateAssetModelRequest& AddAssetModelProperties(AssetModelProperty&& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties.push_back(std::move(value)); return *this; } /** *

The updated 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 updated 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 updated 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 updated 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 updated 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 UpdateAssetModelRequest& WithAssetModelHierarchies(const Aws::Vector& value) { SetAssetModelHierarchies(value); return *this;} /** *

The updated 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 UpdateAssetModelRequest& WithAssetModelHierarchies(Aws::Vector&& value) { SetAssetModelHierarchies(std::move(value)); return *this;} /** *

The updated 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 UpdateAssetModelRequest& AddAssetModelHierarchies(const AssetModelHierarchy& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies.push_back(value); return *this; } /** *

The updated 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 UpdateAssetModelRequest& AddAssetModelHierarchies(AssetModelHierarchy&& 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 UpdateAssetModelRequest& 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 UpdateAssetModelRequest& 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 UpdateAssetModelRequest& AddAssetModelCompositeModels(const AssetModelCompositeModel& 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 UpdateAssetModelRequest& AddAssetModelCompositeModels(AssetModelCompositeModel&& 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 UpdateAssetModelRequest& 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 UpdateAssetModelRequest& 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 UpdateAssetModelRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_assetModelId; bool m_assetModelIdHasBeenSet = false; 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; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws