AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CreateProjectRequest.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/IoTSiteWiseRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace IoTSiteWise
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOTSITEWISE_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_IOTSITEWISE_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetPortalId() const { return m_portalId; }
42 inline bool PortalIdHasBeenSet() const { return m_portalIdHasBeenSet; }
43 template<typename PortalIdT = Aws::String>
44 void SetPortalId(PortalIdT&& value) { m_portalIdHasBeenSet = true; m_portalId = std::forward<PortalIdT>(value); }
45 template<typename PortalIdT = Aws::String>
46 CreateProjectRequest& WithPortalId(PortalIdT&& value) { SetPortalId(std::forward<PortalIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetProjectName() const { return m_projectName; }
54 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
55 template<typename ProjectNameT = Aws::String>
56 void SetProjectName(ProjectNameT&& value) { m_projectNameHasBeenSet = true; m_projectName = std::forward<ProjectNameT>(value); }
57 template<typename ProjectNameT = Aws::String>
58 CreateProjectRequest& WithProjectName(ProjectNameT&& value) { SetProjectName(std::forward<ProjectNameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetProjectDescription() const { return m_projectDescription; }
66 inline bool ProjectDescriptionHasBeenSet() const { return m_projectDescriptionHasBeenSet; }
67 template<typename ProjectDescriptionT = Aws::String>
68 void SetProjectDescription(ProjectDescriptionT&& value) { m_projectDescriptionHasBeenSet = true; m_projectDescription = std::forward<ProjectDescriptionT>(value); }
69 template<typename ProjectDescriptionT = Aws::String>
70 CreateProjectRequest& WithProjectDescription(ProjectDescriptionT&& value) { SetProjectDescription(std::forward<ProjectDescriptionT>(value)); return *this;}
72
74
79 inline const Aws::String& GetClientToken() const { return m_clientToken; }
80 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
81 template<typename ClientTokenT = Aws::String>
82 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
83 template<typename ClientTokenT = Aws::String>
84 CreateProjectRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
86
88
94 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
97 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
98 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
99 CreateProjectRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
100 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
101 CreateProjectRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
102 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
103 }
105 private:
106
107 Aws::String m_portalId;
108 bool m_portalIdHasBeenSet = false;
109
110 Aws::String m_projectName;
111 bool m_projectNameHasBeenSet = false;
112
113 Aws::String m_projectDescription;
114 bool m_projectDescriptionHasBeenSet = false;
115
117 bool m_clientTokenHasBeenSet = true;
118
120 bool m_tagsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace IoTSiteWise
125} // namespace Aws
AWS_IOTSITEWISE_API CreateProjectRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateProjectRequest & WithClientToken(ClientTokenT &&value)
CreateProjectRequest & WithPortalId(PortalIdT &&value)
void SetProjectDescription(ProjectDescriptionT &&value)
CreateProjectRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateProjectRequest & WithProjectDescription(ProjectDescriptionT &&value)
CreateProjectRequest & WithProjectName(ProjectNameT &&value)
CreateProjectRequest & WithTags(TagsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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