/** * 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 IoT1ClickProjects { namespace Model { /** */ class CreateProjectRequest : public IoT1ClickProjectsRequest { public: AWS_IOT1CLICKPROJECTS_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_IOT1CLICKPROJECTS_API Aws::String SerializePayload() const override; /** *

The name of the project to create.

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

The name of the project to create.

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

The name of the project to create.

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

The name of the project to create.

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

The name of the project to create.

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

The name of the project to create.

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

The name of the project to create.

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

The name of the project to create.

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

An optional description for the project.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

An optional description for the project.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

An optional description for the project.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

An optional description for the project.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

An optional description for the project.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

An optional description for the project.

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

An optional description for the project.

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

An optional description for the project.

*/ inline CreateProjectRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The schema defining the placement to be created. A placement template defines * placement default attributes and device templates. You cannot add or remove * device templates after the project has been created. However, you can update * callbackOverrides for the device templates using the * UpdateProject API.

*/ inline const PlacementTemplate& GetPlacementTemplate() const{ return m_placementTemplate; } /** *

The schema defining the placement to be created. A placement template defines * placement default attributes and device templates. You cannot add or remove * device templates after the project has been created. However, you can update * callbackOverrides for the device templates using the * UpdateProject API.

*/ inline bool PlacementTemplateHasBeenSet() const { return m_placementTemplateHasBeenSet; } /** *

The schema defining the placement to be created. A placement template defines * placement default attributes and device templates. You cannot add or remove * device templates after the project has been created. However, you can update * callbackOverrides for the device templates using the * UpdateProject API.

*/ inline void SetPlacementTemplate(const PlacementTemplate& value) { m_placementTemplateHasBeenSet = true; m_placementTemplate = value; } /** *

The schema defining the placement to be created. A placement template defines * placement default attributes and device templates. You cannot add or remove * device templates after the project has been created. However, you can update * callbackOverrides for the device templates using the * UpdateProject API.

*/ inline void SetPlacementTemplate(PlacementTemplate&& value) { m_placementTemplateHasBeenSet = true; m_placementTemplate = std::move(value); } /** *

The schema defining the placement to be created. A placement template defines * placement default attributes and device templates. You cannot add or remove * device templates after the project has been created. However, you can update * callbackOverrides for the device templates using the * UpdateProject API.

*/ inline CreateProjectRequest& WithPlacementTemplate(const PlacementTemplate& value) { SetPlacementTemplate(value); return *this;} /** *

The schema defining the placement to be created. A placement template defines * placement default attributes and device templates. You cannot add or remove * device templates after the project has been created. However, you can update * callbackOverrides for the device templates using the * UpdateProject API.

*/ inline CreateProjectRequest& WithPlacementTemplate(PlacementTemplate&& value) { SetPlacementTemplate(std::move(value)); return *this;} /** *

Optional tags (metadata key/value pairs) to be associated with the project. * For example, { {"key1": "value1", "key2": "value2"} }. For more * information, see AWS * Tagging Strategies.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

Optional tags (metadata key/value pairs) to be associated with the project. * For example, { {"key1": "value1", "key2": "value2"} }. For more * information, see AWS * Tagging Strategies.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Optional tags (metadata key/value pairs) to be associated with the project. * For example, { {"key1": "value1", "key2": "value2"} }. For more * information, see AWS * Tagging Strategies.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Optional tags (metadata key/value pairs) to be associated with the project. * For example, { {"key1": "value1", "key2": "value2"} }. For more * information, see AWS * Tagging Strategies.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Optional tags (metadata key/value pairs) to be associated with the project. * For example, { {"key1": "value1", "key2": "value2"} }. For more * information, see AWS * Tagging Strategies.

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

Optional tags (metadata key/value pairs) to be associated with the project. * For example, { {"key1": "value1", "key2": "value2"} }. For more * information, see AWS * Tagging Strategies.

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

Optional tags (metadata key/value pairs) to be associated with the project. * For example, { {"key1": "value1", "key2": "value2"} }. For more * information, see AWS * Tagging Strategies.

*/ inline CreateProjectRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Optional tags (metadata key/value pairs) to be associated with the project. * For example, { {"key1": "value1", "key2": "value2"} }. For more * information, see AWS * Tagging Strategies.

*/ inline CreateProjectRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Optional tags (metadata key/value pairs) to be associated with the project. * For example, { {"key1": "value1", "key2": "value2"} }. For more * information, see AWS * Tagging Strategies.

*/ inline CreateProjectRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Optional tags (metadata key/value pairs) to be associated with the project. * For example, { {"key1": "value1", "key2": "value2"} }. For more * information, see AWS * Tagging Strategies.

*/ inline CreateProjectRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Optional tags (metadata key/value pairs) to be associated with the project. * For example, { {"key1": "value1", "key2": "value2"} }. For more * information, see AWS * Tagging Strategies.

*/ inline CreateProjectRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Optional tags (metadata key/value pairs) to be associated with the project. * For example, { {"key1": "value1", "key2": "value2"} }. For more * information, see AWS * Tagging Strategies.

*/ inline CreateProjectRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Optional tags (metadata key/value pairs) to be associated with the project. * For example, { {"key1": "value1", "key2": "value2"} }. For more * information, see AWS * Tagging Strategies.

*/ inline CreateProjectRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_projectName; bool m_projectNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; PlacementTemplate m_placementTemplate; bool m_placementTemplateHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace IoT1ClickProjects } // namespace Aws