355 lines
14 KiB
C
355 lines
14 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 CreateProjectRequest : public IoTSiteWiseRequest
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
CreateProjectRequest();
|
|||
|
|
|
|||
|
|
// 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 "CreateProject"; }
|
|||
|
|
|
|||
|
|
Aws::String SerializePayload() const override;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the portal in which to create the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetPortalId() const{ return m_portalId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the portal in which to create the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool PortalIdHasBeenSet() const { return m_portalIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the portal in which to create the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPortalId(const Aws::String& value) { m_portalIdHasBeenSet = true; m_portalId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the portal in which to create the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPortalId(Aws::String&& value) { m_portalIdHasBeenSet = true; m_portalId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the portal in which to create the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPortalId(const char* value) { m_portalIdHasBeenSet = true; m_portalId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the portal in which to create the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateProjectRequest& WithPortalId(const Aws::String& value) { SetPortalId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the portal in which to create the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateProjectRequest& WithPortalId(Aws::String&& value) { SetPortalId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the portal in which to create the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateProjectRequest& WithPortalId(const char* value) { SetPortalId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A friendly name for the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetProjectName() const{ return m_projectName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A friendly name for the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A friendly name for the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A friendly name for the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A friendly name for the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A friendly name for the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateProjectRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A friendly name for the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateProjectRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A friendly name for the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateProjectRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A description for the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetProjectDescription() const{ return m_projectDescription; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A description for the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ProjectDescriptionHasBeenSet() const { return m_projectDescriptionHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A description for the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetProjectDescription(const Aws::String& value) { m_projectDescriptionHasBeenSet = true; m_projectDescription = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A description for the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetProjectDescription(Aws::String&& value) { m_projectDescriptionHasBeenSet = true; m_projectDescription = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A description for the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetProjectDescription(const char* value) { m_projectDescriptionHasBeenSet = true; m_projectDescription.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A description for the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateProjectRequest& WithProjectDescription(const Aws::String& value) { SetProjectDescription(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A description for the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateProjectRequest& WithProjectDescription(Aws::String&& value) { SetProjectDescription(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A description for the project.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateProjectRequest& WithProjectDescription(const char* value) { SetProjectDescription(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 CreateProjectRequest& 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 CreateProjectRequest& 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 CreateProjectRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of key-value pairs that contain metadata for the project. 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 project. 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 project. 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 project. 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 project. 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 CreateProjectRequest& 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 project. 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 CreateProjectRequest& 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 project. 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 CreateProjectRequest& 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 project. 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 CreateProjectRequest& 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 project. 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 CreateProjectRequest& 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 project. 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 CreateProjectRequest& 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 project. 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 CreateProjectRequest& 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 project. 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 CreateProjectRequest& 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 project. 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 CreateProjectRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_portalId;
|
|||
|
|
bool m_portalIdHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_projectName;
|
|||
|
|
bool m_projectNameHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_projectDescription;
|
|||
|
|
bool m_projectDescriptionHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_clientToken;
|
|||
|
|
bool m_clientTokenHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Map<Aws::String, Aws::String> m_tags;
|
|||
|
|
bool m_tagsHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace IoTSiteWise
|
|||
|
|
} // namespace Aws
|