AWS SDK for C++  1.9.126
AWS SDK for C++
CreateProjectRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 #include <aws/core/utils/UUID.h>
13 
14 namespace Aws
15 {
16 namespace IoTSiteWise
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateProject"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetPortalId() const{ return m_portalId; }
41 
45  inline bool PortalIdHasBeenSet() const { return m_portalIdHasBeenSet; }
46 
50  inline void SetPortalId(const Aws::String& value) { m_portalIdHasBeenSet = true; m_portalId = value; }
51 
55  inline void SetPortalId(Aws::String&& value) { m_portalIdHasBeenSet = true; m_portalId = std::move(value); }
56 
60  inline void SetPortalId(const char* value) { m_portalIdHasBeenSet = true; m_portalId.assign(value); }
61 
65  inline CreateProjectRequest& WithPortalId(const Aws::String& value) { SetPortalId(value); return *this;}
66 
70  inline CreateProjectRequest& WithPortalId(Aws::String&& value) { SetPortalId(std::move(value)); return *this;}
71 
75  inline CreateProjectRequest& WithPortalId(const char* value) { SetPortalId(value); return *this;}
76 
77 
81  inline const Aws::String& GetProjectName() const{ return m_projectName; }
82 
86  inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
87 
91  inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
92 
96  inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
97 
101  inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
102 
106  inline CreateProjectRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
107 
111  inline CreateProjectRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
112 
116  inline CreateProjectRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
117 
118 
122  inline const Aws::String& GetProjectDescription() const{ return m_projectDescription; }
123 
127  inline bool ProjectDescriptionHasBeenSet() const { return m_projectDescriptionHasBeenSet; }
128 
132  inline void SetProjectDescription(const Aws::String& value) { m_projectDescriptionHasBeenSet = true; m_projectDescription = value; }
133 
137  inline void SetProjectDescription(Aws::String&& value) { m_projectDescriptionHasBeenSet = true; m_projectDescription = std::move(value); }
138 
142  inline void SetProjectDescription(const char* value) { m_projectDescriptionHasBeenSet = true; m_projectDescription.assign(value); }
143 
147  inline CreateProjectRequest& WithProjectDescription(const Aws::String& value) { SetProjectDescription(value); return *this;}
148 
152  inline CreateProjectRequest& WithProjectDescription(Aws::String&& value) { SetProjectDescription(std::move(value)); return *this;}
153 
157  inline CreateProjectRequest& WithProjectDescription(const char* value) { SetProjectDescription(value); return *this;}
158 
159 
165  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
166 
172  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
173 
179  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
180 
186  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
187 
193  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
194 
200  inline CreateProjectRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
201 
207  inline CreateProjectRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
208 
214  inline CreateProjectRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
215 
216 
223  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
224 
231  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
232 
239  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
240 
247  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
248 
255  inline CreateProjectRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
256 
263  inline CreateProjectRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
264 
271  inline CreateProjectRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
272 
279  inline CreateProjectRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
280 
287  inline CreateProjectRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
288 
295  inline CreateProjectRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
296 
303  inline CreateProjectRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
304 
311  inline CreateProjectRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
312 
319  inline CreateProjectRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
320 
321  private:
322 
323  Aws::String m_portalId;
324  bool m_portalIdHasBeenSet;
325 
326  Aws::String m_projectName;
327  bool m_projectNameHasBeenSet;
328 
329  Aws::String m_projectDescription;
330  bool m_projectDescriptionHasBeenSet;
331 
332  Aws::String m_clientToken;
333  bool m_clientTokenHasBeenSet;
334 
336  bool m_tagsHasBeenSet;
337  };
338 
339 } // namespace Model
340 } // namespace IoTSiteWise
341 } // namespace Aws
Aws::IoTSiteWise::Model::CreateProjectRequest::ProjectNameHasBeenSet
bool ProjectNameHasBeenSet() const
Definition: CreateProjectRequest.h:86
Aws::IoTSiteWise::Model::CreateProjectRequest
Definition: CreateProjectRequest.h:24
Aws::IoTSiteWise::Model::CreateProjectRequest::AddTags
CreateProjectRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateProjectRequest.h:311
Aws::IoTSiteWise::Model::CreateProjectRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateProjectRequest.h:172
Aws::IoTSiteWise::Model::CreateProjectRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoTSiteWise::Model::CreateProjectRequest::WithClientToken
CreateProjectRequest & WithClientToken(const Aws::String &value)
Definition: CreateProjectRequest.h:200
Aws::IoTSiteWise::Model::CreateProjectRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateProjectRequest.h:231
Aws::IoTSiteWise::Model::CreateProjectRequest::AddTags
CreateProjectRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateProjectRequest.h:271
Aws::IoTSiteWise::Model::CreateProjectRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateProjectRequest.h:186
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::CreateProjectRequest::WithPortalId
CreateProjectRequest & WithPortalId(const char *value)
Definition: CreateProjectRequest.h:75
Aws::IoTSiteWise::Model::CreateProjectRequest::SetPortalId
void SetPortalId(const Aws::String &value)
Definition: CreateProjectRequest.h:50
Aws::IoTSiteWise::Model::CreateProjectRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateProjectRequest.h:239
Aws::IoTSiteWise::Model::CreateProjectRequest::SetProjectDescription
void SetProjectDescription(const Aws::String &value)
Definition: CreateProjectRequest.h:132
Aws::IoTSiteWise::Model::CreateProjectRequest::WithProjectName
CreateProjectRequest & WithProjectName(const Aws::String &value)
Definition: CreateProjectRequest.h:106
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::CreateProjectRequest::SetPortalId
void SetPortalId(Aws::String &&value)
Definition: CreateProjectRequest.h:55
Aws::IoTSiteWise::Model::CreateProjectRequest::WithProjectDescription
CreateProjectRequest & WithProjectDescription(Aws::String &&value)
Definition: CreateProjectRequest.h:152
Aws::IoTSiteWise::Model::CreateProjectRequest::AddTags
CreateProjectRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateProjectRequest.h:279
Aws::IoTSiteWise::Model::CreateProjectRequest::WithTags
CreateProjectRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateProjectRequest.h:263
Aws::IoTSiteWise::Model::CreateProjectRequest::AddTags
CreateProjectRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateProjectRequest.h:295
Aws::IoTSiteWise::Model::CreateProjectRequest::GetPortalId
const Aws::String & GetPortalId() const
Definition: CreateProjectRequest.h:40
Aws::IoTSiteWise::Model::CreateProjectRequest::AddTags
CreateProjectRequest & AddTags(const char *key, const char *value)
Definition: CreateProjectRequest.h:319
Aws::IoTSiteWise::Model::CreateProjectRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateProjectRequest.h:193
Aws::IoTSiteWise::Model::CreateProjectRequest::WithPortalId
CreateProjectRequest & WithPortalId(Aws::String &&value)
Definition: CreateProjectRequest.h:70
Aws::IoTSiteWise::Model::CreateProjectRequest::WithClientToken
CreateProjectRequest & WithClientToken(Aws::String &&value)
Definition: CreateProjectRequest.h:207
Aws::IoTSiteWise::Model::CreateProjectRequest::SetPortalId
void SetPortalId(const char *value)
Definition: CreateProjectRequest.h:60
Aws::IoTSiteWise::Model::CreateProjectRequest::SetProjectDescription
void SetProjectDescription(Aws::String &&value)
Definition: CreateProjectRequest.h:137
Aws::IoTSiteWise::Model::CreateProjectRequest::WithProjectDescription
CreateProjectRequest & WithProjectDescription(const Aws::String &value)
Definition: CreateProjectRequest.h:147
Aws::IoTSiteWise::Model::CreateProjectRequest::CreateProjectRequest
CreateProjectRequest()
Aws::IoTSiteWise::Model::CreateProjectRequest::WithPortalId
CreateProjectRequest & WithPortalId(const Aws::String &value)
Definition: CreateProjectRequest.h:65
AWSString.h
Aws::IoTSiteWise::Model::CreateProjectRequest::WithProjectDescription
CreateProjectRequest & WithProjectDescription(const char *value)
Definition: CreateProjectRequest.h:157
Aws::IoTSiteWise::Model::CreateProjectRequest::AddTags
CreateProjectRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateProjectRequest.h:303
Aws::IoTSiteWise::Model::CreateProjectRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateProjectRequest.h:165
Aws::IoTSiteWise::Model::CreateProjectRequest::AddTags
CreateProjectRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateProjectRequest.h:287
Aws::IoTSiteWise::Model::CreateProjectRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateProjectRequest.h:179
Aws::IoTSiteWise::Model::CreateProjectRequest::WithProjectName
CreateProjectRequest & WithProjectName(const char *value)
Definition: CreateProjectRequest.h:116
Aws
Definition: AccessManagementClient.h:15
IoTSiteWiseRequest.h
Aws::IoTSiteWise::Model::CreateProjectRequest::SetProjectName
void SetProjectName(const char *value)
Definition: CreateProjectRequest.h:101
Aws::IoTSiteWise::Model::CreateProjectRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateProjectRequest.h:247
Aws::IoTSiteWise::Model::CreateProjectRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateProjectRequest.h:223
Aws::IoTSiteWise::Model::CreateProjectRequest::WithProjectName
CreateProjectRequest & WithProjectName(Aws::String &&value)
Definition: CreateProjectRequest.h:111
Aws::IoTSiteWise::Model::CreateProjectRequest::SetProjectDescription
void SetProjectDescription(const char *value)
Definition: CreateProjectRequest.h:142
Aws::IoTSiteWise::Model::CreateProjectRequest::PortalIdHasBeenSet
bool PortalIdHasBeenSet() const
Definition: CreateProjectRequest.h:45
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::CreateProjectRequest::GetProjectName
const Aws::String & GetProjectName() const
Definition: CreateProjectRequest.h:81
Aws::IoTSiteWise::Model::CreateProjectRequest::GetProjectDescription
const Aws::String & GetProjectDescription() const
Definition: CreateProjectRequest.h:122
Aws::IoTSiteWise::Model::CreateProjectRequest::ProjectDescriptionHasBeenSet
bool ProjectDescriptionHasBeenSet() const
Definition: CreateProjectRequest.h:127
Aws::IoTSiteWise::Model::CreateProjectRequest::SetProjectName
void SetProjectName(Aws::String &&value)
Definition: CreateProjectRequest.h:96
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
UUID.h
Aws::IoTSiteWise::Model::CreateProjectRequest::WithClientToken
CreateProjectRequest & WithClientToken(const char *value)
Definition: CreateProjectRequest.h:214
Aws::IoTSiteWise::Model::CreateProjectRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateProjectRequest.h:32
AWSMap.h
Aws::IoTSiteWise::Model::CreateProjectRequest::SetProjectName
void SetProjectName(const Aws::String &value)
Definition: CreateProjectRequest.h:91
Aws::IoTSiteWise::Model::CreateProjectRequest::WithTags
CreateProjectRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateProjectRequest.h:255
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19