/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace IoT1ClickProjects { namespace Model { /** */ class UpdateProjectRequest : public IoT1ClickProjectsRequest { public: AWS_IOT1CLICKPROJECTS_API UpdateProjectRequest(); // 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 "UpdateProject"; } AWS_IOT1CLICKPROJECTS_API Aws::String SerializePayload() const override; /** *

The name of the project to be updated.

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

The name of the project to be updated.

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

The name of the project to be updated.

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

The name of the project to be updated.

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

The name of the project to be updated.

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

The name of the project to be updated.

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

The name of the project to be updated.

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

The name of the project to be updated.

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

An optional user-defined description for the project.

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

An optional user-defined description for the project.

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

An optional user-defined description for the project.

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

An optional user-defined description for the project.

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

An optional user-defined description for the project.

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

An optional user-defined description for the project.

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

An optional user-defined description for the project.

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

An optional user-defined description for the project.

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

An object defining the project update. Once a project has been created, you * cannot add device template names to the project. However, for a given * placementTemplate, you can update the associated * callbackOverrides for the device definition using this API.

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

An object defining the project update. Once a project has been created, you * cannot add device template names to the project. However, for a given * placementTemplate, you can update the associated * callbackOverrides for the device definition using this API.

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

An object defining the project update. Once a project has been created, you * cannot add device template names to the project. However, for a given * placementTemplate, you can update the associated * callbackOverrides for the device definition using this API.

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

An object defining the project update. Once a project has been created, you * cannot add device template names to the project. However, for a given * placementTemplate, you can update the associated * callbackOverrides for the device definition using this API.

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

An object defining the project update. Once a project has been created, you * cannot add device template names to the project. However, for a given * placementTemplate, you can update the associated * callbackOverrides for the device definition using this API.

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

An object defining the project update. Once a project has been created, you * cannot add device template names to the project. However, for a given * placementTemplate, you can update the associated * callbackOverrides for the device definition using this API.

*/ inline UpdateProjectRequest& WithPlacementTemplate(PlacementTemplate&& value) { SetPlacementTemplate(std::move(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; }; } // namespace Model } // namespace IoT1ClickProjects } // namespace Aws