AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ProjectNameT = Aws::String>
44 void SetProjectName(ProjectNameT&& value) { m_projectNameHasBeenSet = true; m_projectName = std::forward<ProjectNameT>(value); }
45 template<typename ProjectNameT = Aws::String>
46 CreateProjectRequest& WithProjectName(ProjectNameT&& value) { SetProjectName(std::forward<ProjectNameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetDescription() const { return m_description; }
54 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
55 template<typename DescriptionT = Aws::String>
56 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
57 template<typename DescriptionT = Aws::String>
58 CreateProjectRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
60
62
69 inline const PlacementTemplate& GetPlacementTemplate() const { return m_placementTemplate; }
70 inline bool PlacementTemplateHasBeenSet() const { return m_placementTemplateHasBeenSet; }
71 template<typename PlacementTemplateT = PlacementTemplate>
72 void SetPlacementTemplate(PlacementTemplateT&& value) { m_placementTemplateHasBeenSet = true; m_placementTemplate = std::forward<PlacementTemplateT>(value); }
73 template<typename PlacementTemplateT = PlacementTemplate>
74 CreateProjectRequest& WithPlacementTemplate(PlacementTemplateT&& value) { SetPlacementTemplate(std::forward<PlacementTemplateT>(value)); return *this;}
76
78
85 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
88 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
89 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
90 CreateProjectRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
91 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
92 CreateProjectRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
93 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
94 }
96 private:
97
98 Aws::String m_projectName;
99 bool m_projectNameHasBeenSet = false;
100
101 Aws::String m_description;
102 bool m_descriptionHasBeenSet = false;
103
104 PlacementTemplate m_placementTemplate;
105 bool m_placementTemplateHasBeenSet = false;
106
108 bool m_tagsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace IoT1ClickProjects
113} // namespace Aws
CreateProjectRequest & WithPlacementTemplate(PlacementTemplateT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_IOT1CLICKPROJECTS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateProjectRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_IOT1CLICKPROJECTS_API CreateProjectRequest()=default
CreateProjectRequest & WithDescription(DescriptionT &&value)
CreateProjectRequest & WithProjectName(ProjectNameT &&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