AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateProjectRequest.h
1
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 <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IoT1ClickProjects
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOT1CLICKPROJECTS_API CreateProjectRequest();
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_IOT1CLICKPROJECTS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetProjectName() const{ return m_projectName; }
42 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
43 inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
44 inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
45 inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
46 inline CreateProjectRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
47 inline CreateProjectRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
48 inline CreateProjectRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
50
52
55 inline const Aws::String& GetDescription() const{ return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
58 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
59 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
60 inline CreateProjectRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
61 inline CreateProjectRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
62 inline CreateProjectRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
64
66
73 inline const PlacementTemplate& GetPlacementTemplate() const{ return m_placementTemplate; }
74 inline bool PlacementTemplateHasBeenSet() const { return m_placementTemplateHasBeenSet; }
75 inline void SetPlacementTemplate(const PlacementTemplate& value) { m_placementTemplateHasBeenSet = true; m_placementTemplate = value; }
76 inline void SetPlacementTemplate(PlacementTemplate&& value) { m_placementTemplateHasBeenSet = true; m_placementTemplate = std::move(value); }
78 inline CreateProjectRequest& WithPlacementTemplate(PlacementTemplate&& value) { SetPlacementTemplate(std::move(value)); return *this;}
80
82
89 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
90 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
91 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
92 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
93 inline CreateProjectRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
94 inline CreateProjectRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
95 inline CreateProjectRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
96 inline CreateProjectRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
97 inline CreateProjectRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
98 inline CreateProjectRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
99 inline CreateProjectRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
100 inline CreateProjectRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
101 inline CreateProjectRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
103 private:
104
105 Aws::String m_projectName;
106 bool m_projectNameHasBeenSet = false;
107
108 Aws::String m_description;
109 bool m_descriptionHasBeenSet = false;
110
111 PlacementTemplate m_placementTemplate;
112 bool m_placementTemplateHasBeenSet = false;
113
115 bool m_tagsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace IoT1ClickProjects
120} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateProjectRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateProjectRequest & WithPlacementTemplate(PlacementTemplate &&value)
CreateProjectRequest & AddTags(const char *key, Aws::String &&value)
AWS_IOT1CLICKPROJECTS_API Aws::String SerializePayload() const override
void SetPlacementTemplate(const PlacementTemplate &value)
CreateProjectRequest & WithDescription(const char *value)
CreateProjectRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateProjectRequest & AddTags(Aws::String &&key, const char *value)
virtual const char * GetServiceRequestName() const override
CreateProjectRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateProjectRequest & WithProjectName(const Aws::String &value)
CreateProjectRequest & AddTags(const char *key, const char *value)
CreateProjectRequest & WithPlacementTemplate(const PlacementTemplate &value)
CreateProjectRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateProjectRequest & WithDescription(const Aws::String &value)
CreateProjectRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateProjectRequest & WithProjectName(Aws::String &&value)
CreateProjectRequest & WithProjectName(const char *value)
CreateProjectRequest & WithDescription(Aws::String &&value)
CreateProjectRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String