This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-iotsitewise/include/aws/iotsitewise/model/UpdateAssetModelRequest.h

428 lines
20 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
#include <aws/iotsitewise/IoTSiteWiseRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotsitewise/model/AssetModelProperty.h>
#include <aws/iotsitewise/model/AssetModelHierarchy.h>
#include <utility>
#include <aws/core/utils/UUID.h>
namespace Aws
{
namespace IoTSiteWise
{
namespace Model
{
/**
*/
class AWS_IOTSITEWISE_API UpdateAssetModelRequest : public IoTSiteWiseRequest
{
public:
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::String SerializePayload() const override;
/**
* <p>The ID of the asset model to update.</p>
*/
inline const Aws::String& GetAssetModelId() const{ return m_assetModelId; }
/**
* <p>The ID of the asset model to update.</p>
*/
inline bool AssetModelIdHasBeenSet() const { return m_assetModelIdHasBeenSet; }
/**
* <p>The ID of the asset model to update.</p>
*/
inline void SetAssetModelId(const Aws::String& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = value; }
/**
* <p>The ID of the asset model to update.</p>
*/
inline void SetAssetModelId(Aws::String&& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = std::move(value); }
/**
* <p>The ID of the asset model to update.</p>
*/
inline void SetAssetModelId(const char* value) { m_assetModelIdHasBeenSet = true; m_assetModelId.assign(value); }
/**
* <p>The ID of the asset model to update.</p>
*/
inline UpdateAssetModelRequest& WithAssetModelId(const Aws::String& value) { SetAssetModelId(value); return *this;}
/**
* <p>The ID of the asset model to update.</p>
*/
inline UpdateAssetModelRequest& WithAssetModelId(Aws::String&& value) { SetAssetModelId(std::move(value)); return *this;}
/**
* <p>The ID of the asset model to update.</p>
*/
inline UpdateAssetModelRequest& WithAssetModelId(const char* value) { SetAssetModelId(value); return *this;}
/**
* <p>A unique, friendly name for the asset model.</p>
*/
inline const Aws::String& GetAssetModelName() const{ return m_assetModelName; }
/**
* <p>A unique, friendly name for the asset model.</p>
*/
inline bool AssetModelNameHasBeenSet() const { return m_assetModelNameHasBeenSet; }
/**
* <p>A unique, friendly name for the asset model.</p>
*/
inline void SetAssetModelName(const Aws::String& value) { m_assetModelNameHasBeenSet = true; m_assetModelName = value; }
/**
* <p>A unique, friendly name for the asset model.</p>
*/
inline void SetAssetModelName(Aws::String&& value) { m_assetModelNameHasBeenSet = true; m_assetModelName = std::move(value); }
/**
* <p>A unique, friendly name for the asset model.</p>
*/
inline void SetAssetModelName(const char* value) { m_assetModelNameHasBeenSet = true; m_assetModelName.assign(value); }
/**
* <p>A unique, friendly name for the asset model.</p>
*/
inline UpdateAssetModelRequest& WithAssetModelName(const Aws::String& value) { SetAssetModelName(value); return *this;}
/**
* <p>A unique, friendly name for the asset model.</p>
*/
inline UpdateAssetModelRequest& WithAssetModelName(Aws::String&& value) { SetAssetModelName(std::move(value)); return *this;}
/**
* <p>A unique, friendly name for the asset model.</p>
*/
inline UpdateAssetModelRequest& WithAssetModelName(const char* value) { SetAssetModelName(value); return *this;}
/**
* <p>A description for the asset model.</p>
*/
inline const Aws::String& GetAssetModelDescription() const{ return m_assetModelDescription; }
/**
* <p>A description for the asset model.</p>
*/
inline bool AssetModelDescriptionHasBeenSet() const { return m_assetModelDescriptionHasBeenSet; }
/**
* <p>A description for the asset model.</p>
*/
inline void SetAssetModelDescription(const Aws::String& value) { m_assetModelDescriptionHasBeenSet = true; m_assetModelDescription = value; }
/**
* <p>A description for the asset model.</p>
*/
inline void SetAssetModelDescription(Aws::String&& value) { m_assetModelDescriptionHasBeenSet = true; m_assetModelDescription = std::move(value); }
/**
* <p>A description for the asset model.</p>
*/
inline void SetAssetModelDescription(const char* value) { m_assetModelDescriptionHasBeenSet = true; m_assetModelDescription.assign(value); }
/**
* <p>A description for the asset model.</p>
*/
inline UpdateAssetModelRequest& WithAssetModelDescription(const Aws::String& value) { SetAssetModelDescription(value); return *this;}
/**
* <p>A description for the asset model.</p>
*/
inline UpdateAssetModelRequest& WithAssetModelDescription(Aws::String&& value) { SetAssetModelDescription(std::move(value)); return *this;}
/**
* <p>A description for the asset model.</p>
*/
inline UpdateAssetModelRequest& WithAssetModelDescription(const char* value) { SetAssetModelDescription(value); return *this;}
/**
* <p>The updated property definitions of the asset model. For more information,
* see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-properties.html">Asset
* properties</a> in the <i>AWS IoT SiteWise User Guide</i>.</p> <p>You can specify
* up to 200 properties per asset model. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a>
* in the <i>AWS IoT SiteWise User Guide</i>.</p>
*/
inline const Aws::Vector<AssetModelProperty>& GetAssetModelProperties() const{ return m_assetModelProperties; }
/**
* <p>The updated property definitions of the asset model. For more information,
* see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-properties.html">Asset
* properties</a> in the <i>AWS IoT SiteWise User Guide</i>.</p> <p>You can specify
* up to 200 properties per asset model. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a>
* in the <i>AWS IoT SiteWise User Guide</i>.</p>
*/
inline bool AssetModelPropertiesHasBeenSet() const { return m_assetModelPropertiesHasBeenSet; }
/**
* <p>The updated property definitions of the asset model. For more information,
* see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-properties.html">Asset
* properties</a> in the <i>AWS IoT SiteWise User Guide</i>.</p> <p>You can specify
* up to 200 properties per asset model. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a>
* in the <i>AWS IoT SiteWise User Guide</i>.</p>
*/
inline void SetAssetModelProperties(const Aws::Vector<AssetModelProperty>& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties = value; }
/**
* <p>The updated property definitions of the asset model. For more information,
* see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-properties.html">Asset
* properties</a> in the <i>AWS IoT SiteWise User Guide</i>.</p> <p>You can specify
* up to 200 properties per asset model. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a>
* in the <i>AWS IoT SiteWise User Guide</i>.</p>
*/
inline void SetAssetModelProperties(Aws::Vector<AssetModelProperty>&& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties = std::move(value); }
/**
* <p>The updated property definitions of the asset model. For more information,
* see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-properties.html">Asset
* properties</a> in the <i>AWS IoT SiteWise User Guide</i>.</p> <p>You can specify
* up to 200 properties per asset model. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a>
* in the <i>AWS IoT SiteWise User Guide</i>.</p>
*/
inline UpdateAssetModelRequest& WithAssetModelProperties(const Aws::Vector<AssetModelProperty>& value) { SetAssetModelProperties(value); return *this;}
/**
* <p>The updated property definitions of the asset model. For more information,
* see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-properties.html">Asset
* properties</a> in the <i>AWS IoT SiteWise User Guide</i>.</p> <p>You can specify
* up to 200 properties per asset model. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a>
* in the <i>AWS IoT SiteWise User Guide</i>.</p>
*/
inline UpdateAssetModelRequest& WithAssetModelProperties(Aws::Vector<AssetModelProperty>&& value) { SetAssetModelProperties(std::move(value)); return *this;}
/**
* <p>The updated property definitions of the asset model. For more information,
* see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-properties.html">Asset
* properties</a> in the <i>AWS IoT SiteWise User Guide</i>.</p> <p>You can specify
* up to 200 properties per asset model. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a>
* in the <i>AWS IoT SiteWise User Guide</i>.</p>
*/
inline UpdateAssetModelRequest& AddAssetModelProperties(const AssetModelProperty& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties.push_back(value); return *this; }
/**
* <p>The updated property definitions of the asset model. For more information,
* see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-properties.html">Asset
* properties</a> in the <i>AWS IoT SiteWise User Guide</i>.</p> <p>You can specify
* up to 200 properties per asset model. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a>
* in the <i>AWS IoT SiteWise User Guide</i>.</p>
*/
inline UpdateAssetModelRequest& AddAssetModelProperties(AssetModelProperty&& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties.push_back(std::move(value)); return *this; }
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-hierarchies.html">Asset
* hierarchies</a> in the <i>AWS IoT SiteWise User Guide</i>.</p> <p>You can
* specify up to 10 hierarchies per asset model. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a>
* in the <i>AWS IoT SiteWise User Guide</i>.</p>
*/
inline const Aws::Vector<AssetModelHierarchy>& GetAssetModelHierarchies() const{ return m_assetModelHierarchies; }
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-hierarchies.html">Asset
* hierarchies</a> in the <i>AWS IoT SiteWise User Guide</i>.</p> <p>You can
* specify up to 10 hierarchies per asset model. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a>
* in the <i>AWS IoT SiteWise User Guide</i>.</p>
*/
inline bool AssetModelHierarchiesHasBeenSet() const { return m_assetModelHierarchiesHasBeenSet; }
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-hierarchies.html">Asset
* hierarchies</a> in the <i>AWS IoT SiteWise User Guide</i>.</p> <p>You can
* specify up to 10 hierarchies per asset model. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a>
* in the <i>AWS IoT SiteWise User Guide</i>.</p>
*/
inline void SetAssetModelHierarchies(const Aws::Vector<AssetModelHierarchy>& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies = value; }
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-hierarchies.html">Asset
* hierarchies</a> in the <i>AWS IoT SiteWise User Guide</i>.</p> <p>You can
* specify up to 10 hierarchies per asset model. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a>
* in the <i>AWS IoT SiteWise User Guide</i>.</p>
*/
inline void SetAssetModelHierarchies(Aws::Vector<AssetModelHierarchy>&& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies = std::move(value); }
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-hierarchies.html">Asset
* hierarchies</a> in the <i>AWS IoT SiteWise User Guide</i>.</p> <p>You can
* specify up to 10 hierarchies per asset model. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a>
* in the <i>AWS IoT SiteWise User Guide</i>.</p>
*/
inline UpdateAssetModelRequest& WithAssetModelHierarchies(const Aws::Vector<AssetModelHierarchy>& value) { SetAssetModelHierarchies(value); return *this;}
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-hierarchies.html">Asset
* hierarchies</a> in the <i>AWS IoT SiteWise User Guide</i>.</p> <p>You can
* specify up to 10 hierarchies per asset model. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a>
* in the <i>AWS IoT SiteWise User Guide</i>.</p>
*/
inline UpdateAssetModelRequest& WithAssetModelHierarchies(Aws::Vector<AssetModelHierarchy>&& value) { SetAssetModelHierarchies(std::move(value)); return *this;}
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-hierarchies.html">Asset
* hierarchies</a> in the <i>AWS IoT SiteWise User Guide</i>.</p> <p>You can
* specify up to 10 hierarchies per asset model. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a>
* in the <i>AWS IoT SiteWise User Guide</i>.</p>
*/
inline UpdateAssetModelRequest& AddAssetModelHierarchies(const AssetModelHierarchy& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies.push_back(value); return *this; }
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-hierarchies.html">Asset
* hierarchies</a> in the <i>AWS IoT SiteWise User Guide</i>.</p> <p>You can
* specify up to 10 hierarchies per asset model. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a>
* in the <i>AWS IoT SiteWise User Guide</i>.</p>
*/
inline UpdateAssetModelRequest& AddAssetModelHierarchies(AssetModelHierarchy&& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies.push_back(std::move(value)); return *this; }
/**
* <p>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.</p>
*/
inline const Aws::String& GetClientToken() const{ return m_clientToken; }
/**
* <p>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.</p>
*/
inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
/**
* <p>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.</p>
*/
inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
/**
* <p>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.</p>
*/
inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
/**
* <p>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.</p>
*/
inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
/**
* <p>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.</p>
*/
inline UpdateAssetModelRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
/**
* <p>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.</p>
*/
inline UpdateAssetModelRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
/**
* <p>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.</p>
*/
inline UpdateAssetModelRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
private:
Aws::String m_assetModelId;
bool m_assetModelIdHasBeenSet;
Aws::String m_assetModelName;
bool m_assetModelNameHasBeenSet;
Aws::String m_assetModelDescription;
bool m_assetModelDescriptionHasBeenSet;
Aws::Vector<AssetModelProperty> m_assetModelProperties;
bool m_assetModelPropertiesHasBeenSet;
Aws::Vector<AssetModelHierarchy> m_assetModelHierarchies;
bool m_assetModelHierarchiesHasBeenSet;
Aws::String m_clientToken;
bool m_clientTokenHasBeenSet;
};
} // namespace Model
} // namespace IoTSiteWise
} // namespace Aws