311 lines
13 KiB
C++
311 lines
13 KiB
C++
/**
|
|
* 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/AWSMap.h>
|
|
#include <utility>
|
|
#include <aws/core/utils/UUID.h>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace IoTSiteWise
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_IOTSITEWISE_API CreateAssetRequest : public IoTSiteWiseRequest
|
|
{
|
|
public:
|
|
CreateAssetRequest();
|
|
|
|
// 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 "CreateAsset"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
|
|
/**
|
|
* <p>A unique, friendly name for the asset.</p>
|
|
*/
|
|
inline const Aws::String& GetAssetName() const{ return m_assetName; }
|
|
|
|
/**
|
|
* <p>A unique, friendly name for the asset.</p>
|
|
*/
|
|
inline bool AssetNameHasBeenSet() const { return m_assetNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A unique, friendly name for the asset.</p>
|
|
*/
|
|
inline void SetAssetName(const Aws::String& value) { m_assetNameHasBeenSet = true; m_assetName = value; }
|
|
|
|
/**
|
|
* <p>A unique, friendly name for the asset.</p>
|
|
*/
|
|
inline void SetAssetName(Aws::String&& value) { m_assetNameHasBeenSet = true; m_assetName = std::move(value); }
|
|
|
|
/**
|
|
* <p>A unique, friendly name for the asset.</p>
|
|
*/
|
|
inline void SetAssetName(const char* value) { m_assetNameHasBeenSet = true; m_assetName.assign(value); }
|
|
|
|
/**
|
|
* <p>A unique, friendly name for the asset.</p>
|
|
*/
|
|
inline CreateAssetRequest& WithAssetName(const Aws::String& value) { SetAssetName(value); return *this;}
|
|
|
|
/**
|
|
* <p>A unique, friendly name for the asset.</p>
|
|
*/
|
|
inline CreateAssetRequest& WithAssetName(Aws::String&& value) { SetAssetName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A unique, friendly name for the asset.</p>
|
|
*/
|
|
inline CreateAssetRequest& WithAssetName(const char* value) { SetAssetName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ID of the asset model from which to create the asset.</p>
|
|
*/
|
|
inline const Aws::String& GetAssetModelId() const{ return m_assetModelId; }
|
|
|
|
/**
|
|
* <p>The ID of the asset model from which to create the asset.</p>
|
|
*/
|
|
inline bool AssetModelIdHasBeenSet() const { return m_assetModelIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the asset model from which to create the asset.</p>
|
|
*/
|
|
inline void SetAssetModelId(const Aws::String& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the asset model from which to create the asset.</p>
|
|
*/
|
|
inline void SetAssetModelId(Aws::String&& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the asset model from which to create the asset.</p>
|
|
*/
|
|
inline void SetAssetModelId(const char* value) { m_assetModelIdHasBeenSet = true; m_assetModelId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the asset model from which to create the asset.</p>
|
|
*/
|
|
inline CreateAssetRequest& WithAssetModelId(const Aws::String& value) { SetAssetModelId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the asset model from which to create the asset.</p>
|
|
*/
|
|
inline CreateAssetRequest& WithAssetModelId(Aws::String&& value) { SetAssetModelId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the asset model from which to create the asset.</p>
|
|
*/
|
|
inline CreateAssetRequest& WithAssetModelId(const char* value) { SetAssetModelId(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 CreateAssetRequest& 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 CreateAssetRequest& 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 CreateAssetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A list of key-value pairs that contain metadata for the asset. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html">Tagging
|
|
* your AWS IoT SiteWise resources</a> in the <i>AWS IoT SiteWise User
|
|
* Guide</i>.</p>
|
|
*/
|
|
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
|
|
|
|
/**
|
|
* <p>A list of key-value pairs that contain metadata for the asset. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html">Tagging
|
|
* your AWS IoT SiteWise resources</a> in the <i>AWS IoT SiteWise User
|
|
* Guide</i>.</p>
|
|
*/
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A list of key-value pairs that contain metadata for the asset. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html">Tagging
|
|
* your AWS IoT SiteWise resources</a> in the <i>AWS IoT SiteWise User
|
|
* Guide</i>.</p>
|
|
*/
|
|
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|
|
|
/**
|
|
* <p>A list of key-value pairs that contain metadata for the asset. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html">Tagging
|
|
* your AWS IoT SiteWise resources</a> in the <i>AWS IoT SiteWise User
|
|
* Guide</i>.</p>
|
|
*/
|
|
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of key-value pairs that contain metadata for the asset. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html">Tagging
|
|
* your AWS IoT SiteWise resources</a> in the <i>AWS IoT SiteWise User
|
|
* Guide</i>.</p>
|
|
*/
|
|
inline CreateAssetRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of key-value pairs that contain metadata for the asset. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html">Tagging
|
|
* your AWS IoT SiteWise resources</a> in the <i>AWS IoT SiteWise User
|
|
* Guide</i>.</p>
|
|
*/
|
|
inline CreateAssetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of key-value pairs that contain metadata for the asset. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html">Tagging
|
|
* your AWS IoT SiteWise resources</a> in the <i>AWS IoT SiteWise User
|
|
* Guide</i>.</p>
|
|
*/
|
|
inline CreateAssetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of key-value pairs that contain metadata for the asset. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html">Tagging
|
|
* your AWS IoT SiteWise resources</a> in the <i>AWS IoT SiteWise User
|
|
* Guide</i>.</p>
|
|
*/
|
|
inline CreateAssetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of key-value pairs that contain metadata for the asset. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html">Tagging
|
|
* your AWS IoT SiteWise resources</a> in the <i>AWS IoT SiteWise User
|
|
* Guide</i>.</p>
|
|
*/
|
|
inline CreateAssetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>A list of key-value pairs that contain metadata for the asset. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html">Tagging
|
|
* your AWS IoT SiteWise resources</a> in the <i>AWS IoT SiteWise User
|
|
* Guide</i>.</p>
|
|
*/
|
|
inline CreateAssetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>A list of key-value pairs that contain metadata for the asset. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html">Tagging
|
|
* your AWS IoT SiteWise resources</a> in the <i>AWS IoT SiteWise User
|
|
* Guide</i>.</p>
|
|
*/
|
|
inline CreateAssetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>A list of key-value pairs that contain metadata for the asset. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html">Tagging
|
|
* your AWS IoT SiteWise resources</a> in the <i>AWS IoT SiteWise User
|
|
* Guide</i>.</p>
|
|
*/
|
|
inline CreateAssetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of key-value pairs that contain metadata for the asset. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html">Tagging
|
|
* your AWS IoT SiteWise resources</a> in the <i>AWS IoT SiteWise User
|
|
* Guide</i>.</p>
|
|
*/
|
|
inline CreateAssetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::String m_assetName;
|
|
bool m_assetNameHasBeenSet;
|
|
|
|
Aws::String m_assetModelId;
|
|
bool m_assetModelIdHasBeenSet;
|
|
|
|
Aws::String m_clientToken;
|
|
bool m_clientTokenHasBeenSet;
|
|
|
|
Aws::Map<Aws::String, Aws::String> m_tags;
|
|
bool m_tagsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace IoTSiteWise
|
|
} // namespace Aws
|