/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace IoTSiteWise { namespace Model { /** */ class CreateProjectRequest : public IoTSiteWiseRequest { public: AWS_IOTSITEWISE_API 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_IOTSITEWISE_API Aws::String SerializePayload() const override; /** *

The ID of the portal in which to create the project.

*/ inline const Aws::String& GetPortalId() const{ return m_portalId; } /** *

The ID of the portal in which to create the project.

*/ inline bool PortalIdHasBeenSet() const { return m_portalIdHasBeenSet; } /** *

The ID of the portal in which to create the project.

*/ inline void SetPortalId(const Aws::String& value) { m_portalIdHasBeenSet = true; m_portalId = value; } /** *

The ID of the portal in which to create the project.

*/ inline void SetPortalId(Aws::String&& value) { m_portalIdHasBeenSet = true; m_portalId = std::move(value); } /** *

The ID of the portal in which to create the project.

*/ inline void SetPortalId(const char* value) { m_portalIdHasBeenSet = true; m_portalId.assign(value); } /** *

The ID of the portal in which to create the project.

*/ inline CreateProjectRequest& WithPortalId(const Aws::String& value) { SetPortalId(value); return *this;} /** *

The ID of the portal in which to create the project.

*/ inline CreateProjectRequest& WithPortalId(Aws::String&& value) { SetPortalId(std::move(value)); return *this;} /** *

The ID of the portal in which to create the project.

*/ inline CreateProjectRequest& WithPortalId(const char* value) { SetPortalId(value); return *this;} /** *

A friendly name for the project.

*/ inline const Aws::String& GetProjectName() const{ return m_projectName; } /** *

A friendly name for the project.

*/ inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; } /** *

A friendly name for the project.

*/ inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; } /** *

A friendly name for the project.

*/ inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); } /** *

A friendly name for the project.

*/ inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); } /** *

A friendly name for the project.

*/ inline CreateProjectRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;} /** *

A friendly name for the project.

*/ inline CreateProjectRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;} /** *

A friendly name for the project.

*/ inline CreateProjectRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;} /** *

A description for the project.

*/ inline const Aws::String& GetProjectDescription() const{ return m_projectDescription; } /** *

A description for the project.

*/ inline bool ProjectDescriptionHasBeenSet() const { return m_projectDescriptionHasBeenSet; } /** *

A description for the project.

*/ inline void SetProjectDescription(const Aws::String& value) { m_projectDescriptionHasBeenSet = true; m_projectDescription = value; } /** *

A description for the project.

*/ inline void SetProjectDescription(Aws::String&& value) { m_projectDescriptionHasBeenSet = true; m_projectDescription = std::move(value); } /** *

A description for the project.

*/ inline void SetProjectDescription(const char* value) { m_projectDescriptionHasBeenSet = true; m_projectDescription.assign(value); } /** *

A description for the project.

*/ inline CreateProjectRequest& WithProjectDescription(const Aws::String& value) { SetProjectDescription(value); return *this;} /** *

A description for the project.

*/ inline CreateProjectRequest& WithProjectDescription(Aws::String&& value) { SetProjectDescription(std::move(value)); return *this;} /** *

A description for the project.

*/ inline CreateProjectRequest& WithProjectDescription(const char* value) { SetProjectDescription(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 CreateProjectRequest& 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 CreateProjectRequest& 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 CreateProjectRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

A list of key-value pairs that contain metadata for the project. 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 project. 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 project. 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 project. 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 project. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

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

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

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

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

*/ inline CreateProjectRequest& 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 project. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateProjectRequest& 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 project. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateProjectRequest& 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 project. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateProjectRequest& 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 project. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateProjectRequest& 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 project. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateProjectRequest& 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 project. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ 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 = false; Aws::String m_projectName; bool m_projectNameHasBeenSet = false; Aws::String m_projectDescription; bool m_projectDescriptionHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws