1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
8 #include <aws/iot1click-projects/IoT1ClickProjectsRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/iot1click-projects/model/PlacementTemplate.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IoT1ClickProjects
16 {
17 namespace Model
18 {
19 
20   /**
21    */
22   class AWS_IOT1CLICKPROJECTS_API UpdateProjectRequest : public IoT1ClickProjectsRequest
23   {
24   public:
25     UpdateProjectRequest();
26 
27     // Service request name is the Operation name which will send this request out,
28     // each operation should has unique request name, so that we can get operation's name from this request.
29     // Note: this is not true for response, multiple operations may have the same response name,
30     // so we can not get operation's name from response.
GetServiceRequestName()31     inline virtual const char* GetServiceRequestName() const override { return "UpdateProject"; }
32 
33     Aws::String SerializePayload() const override;
34 
35 
36     /**
37      * <p>The name of the project to be updated.</p>
38      */
GetProjectName()39     inline const Aws::String& GetProjectName() const{ return m_projectName; }
40 
41     /**
42      * <p>The name of the project to be updated.</p>
43      */
ProjectNameHasBeenSet()44     inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
45 
46     /**
47      * <p>The name of the project to be updated.</p>
48      */
SetProjectName(const Aws::String & value)49     inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
50 
51     /**
52      * <p>The name of the project to be updated.</p>
53      */
SetProjectName(Aws::String && value)54     inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
55 
56     /**
57      * <p>The name of the project to be updated.</p>
58      */
SetProjectName(const char * value)59     inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
60 
61     /**
62      * <p>The name of the project to be updated.</p>
63      */
WithProjectName(const Aws::String & value)64     inline UpdateProjectRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
65 
66     /**
67      * <p>The name of the project to be updated.</p>
68      */
WithProjectName(Aws::String && value)69     inline UpdateProjectRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
70 
71     /**
72      * <p>The name of the project to be updated.</p>
73      */
WithProjectName(const char * value)74     inline UpdateProjectRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
75 
76 
77     /**
78      * <p>An optional user-defined description for the project.</p>
79      */
GetDescription()80     inline const Aws::String& GetDescription() const{ return m_description; }
81 
82     /**
83      * <p>An optional user-defined description for the project.</p>
84      */
DescriptionHasBeenSet()85     inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 
87     /**
88      * <p>An optional user-defined description for the project.</p>
89      */
SetDescription(const Aws::String & value)90     inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
91 
92     /**
93      * <p>An optional user-defined description for the project.</p>
94      */
SetDescription(Aws::String && value)95     inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
96 
97     /**
98      * <p>An optional user-defined description for the project.</p>
99      */
SetDescription(const char * value)100     inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
101 
102     /**
103      * <p>An optional user-defined description for the project.</p>
104      */
WithDescription(const Aws::String & value)105     inline UpdateProjectRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
106 
107     /**
108      * <p>An optional user-defined description for the project.</p>
109      */
WithDescription(Aws::String && value)110     inline UpdateProjectRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
111 
112     /**
113      * <p>An optional user-defined description for the project.</p>
114      */
WithDescription(const char * value)115     inline UpdateProjectRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
116 
117 
118     /**
119      * <p>An object defining the project update. Once a project has been created, you
120      * cannot add device template names to the project. However, for a given
121      * <code>placementTemplate</code>, you can update the associated
122      * <code>callbackOverrides</code> for the device definition using this API.</p>
123      */
GetPlacementTemplate()124     inline const PlacementTemplate& GetPlacementTemplate() const{ return m_placementTemplate; }
125 
126     /**
127      * <p>An object defining the project update. Once a project has been created, you
128      * cannot add device template names to the project. However, for a given
129      * <code>placementTemplate</code>, you can update the associated
130      * <code>callbackOverrides</code> for the device definition using this API.</p>
131      */
PlacementTemplateHasBeenSet()132     inline bool PlacementTemplateHasBeenSet() const { return m_placementTemplateHasBeenSet; }
133 
134     /**
135      * <p>An object defining the project update. Once a project has been created, you
136      * cannot add device template names to the project. However, for a given
137      * <code>placementTemplate</code>, you can update the associated
138      * <code>callbackOverrides</code> for the device definition using this API.</p>
139      */
SetPlacementTemplate(const PlacementTemplate & value)140     inline void SetPlacementTemplate(const PlacementTemplate& value) { m_placementTemplateHasBeenSet = true; m_placementTemplate = value; }
141 
142     /**
143      * <p>An object defining the project update. Once a project has been created, you
144      * cannot add device template names to the project. However, for a given
145      * <code>placementTemplate</code>, you can update the associated
146      * <code>callbackOverrides</code> for the device definition using this API.</p>
147      */
SetPlacementTemplate(PlacementTemplate && value)148     inline void SetPlacementTemplate(PlacementTemplate&& value) { m_placementTemplateHasBeenSet = true; m_placementTemplate = std::move(value); }
149 
150     /**
151      * <p>An object defining the project update. Once a project has been created, you
152      * cannot add device template names to the project. However, for a given
153      * <code>placementTemplate</code>, you can update the associated
154      * <code>callbackOverrides</code> for the device definition using this API.</p>
155      */
WithPlacementTemplate(const PlacementTemplate & value)156     inline UpdateProjectRequest& WithPlacementTemplate(const PlacementTemplate& value) { SetPlacementTemplate(value); return *this;}
157 
158     /**
159      * <p>An object defining the project update. Once a project has been created, you
160      * cannot add device template names to the project. However, for a given
161      * <code>placementTemplate</code>, you can update the associated
162      * <code>callbackOverrides</code> for the device definition using this API.</p>
163      */
WithPlacementTemplate(PlacementTemplate && value)164     inline UpdateProjectRequest& WithPlacementTemplate(PlacementTemplate&& value) { SetPlacementTemplate(std::move(value)); return *this;}
165 
166   private:
167 
168     Aws::String m_projectName;
169     bool m_projectNameHasBeenSet;
170 
171     Aws::String m_description;
172     bool m_descriptionHasBeenSet;
173 
174     PlacementTemplate m_placementTemplate;
175     bool m_placementTemplateHasBeenSet;
176   };
177 
178 } // namespace Model
179 } // namespace IoT1ClickProjects
180 } // namespace Aws
181