AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateComponentRequest.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/proton/ProtonRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/proton/model/Tag.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace Proton
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_PROTON_API CreateComponentRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateComponent"; }
34
35 AWS_PROTON_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetClientToken() const { return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 template<typename ClientTokenT = Aws::String>
47 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
48 template<typename ClientTokenT = Aws::String>
49 CreateComponentRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template<typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
60 template<typename DescriptionT = Aws::String>
61 CreateComponentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
63
65
70 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
71 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
72 template<typename EnvironmentNameT = Aws::String>
73 void SetEnvironmentName(EnvironmentNameT&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::forward<EnvironmentNameT>(value); }
74 template<typename EnvironmentNameT = Aws::String>
75 CreateComponentRequest& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
77
79
84 inline const Aws::String& GetManifest() const { return m_manifest; }
85 inline bool ManifestHasBeenSet() const { return m_manifestHasBeenSet; }
86 template<typename ManifestT = Aws::String>
87 void SetManifest(ManifestT&& value) { m_manifestHasBeenSet = true; m_manifest = std::forward<ManifestT>(value); }
88 template<typename ManifestT = Aws::String>
89 CreateComponentRequest& WithManifest(ManifestT&& value) { SetManifest(std::forward<ManifestT>(value)); return *this;}
91
93
96 inline const Aws::String& GetName() const { return m_name; }
97 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 template<typename NameT = Aws::String>
99 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
100 template<typename NameT = Aws::String>
101 CreateComponentRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
103
105
111 inline const Aws::String& GetServiceInstanceName() const { return m_serviceInstanceName; }
112 inline bool ServiceInstanceNameHasBeenSet() const { return m_serviceInstanceNameHasBeenSet; }
113 template<typename ServiceInstanceNameT = Aws::String>
114 void SetServiceInstanceName(ServiceInstanceNameT&& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = std::forward<ServiceInstanceNameT>(value); }
115 template<typename ServiceInstanceNameT = Aws::String>
116 CreateComponentRequest& WithServiceInstanceName(ServiceInstanceNameT&& value) { SetServiceInstanceName(std::forward<ServiceInstanceNameT>(value)); return *this;}
118
120
126 inline const Aws::String& GetServiceName() const { return m_serviceName; }
127 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
128 template<typename ServiceNameT = Aws::String>
129 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
130 template<typename ServiceNameT = Aws::String>
131 CreateComponentRequest& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
133
135
139 inline const Aws::String& GetServiceSpec() const { return m_serviceSpec; }
140 inline bool ServiceSpecHasBeenSet() const { return m_serviceSpecHasBeenSet; }
141 template<typename ServiceSpecT = Aws::String>
142 void SetServiceSpec(ServiceSpecT&& value) { m_serviceSpecHasBeenSet = true; m_serviceSpec = std::forward<ServiceSpecT>(value); }
143 template<typename ServiceSpecT = Aws::String>
144 CreateComponentRequest& WithServiceSpec(ServiceSpecT&& value) { SetServiceSpec(std::forward<ServiceSpecT>(value)); return *this;}
146
148
154 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
155 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
156 template<typename TagsT = Aws::Vector<Tag>>
157 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
158 template<typename TagsT = Aws::Vector<Tag>>
159 CreateComponentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
160 template<typename TagsT = Tag>
161 CreateComponentRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
163
165
170 inline const Aws::String& GetTemplateFile() const { return m_templateFile; }
171 inline bool TemplateFileHasBeenSet() const { return m_templateFileHasBeenSet; }
172 template<typename TemplateFileT = Aws::String>
173 void SetTemplateFile(TemplateFileT&& value) { m_templateFileHasBeenSet = true; m_templateFile = std::forward<TemplateFileT>(value); }
174 template<typename TemplateFileT = Aws::String>
175 CreateComponentRequest& WithTemplateFile(TemplateFileT&& value) { SetTemplateFile(std::forward<TemplateFileT>(value)); return *this;}
177 private:
178
180 bool m_clientTokenHasBeenSet = true;
181
182 Aws::String m_description;
183 bool m_descriptionHasBeenSet = false;
184
185 Aws::String m_environmentName;
186 bool m_environmentNameHasBeenSet = false;
187
188 Aws::String m_manifest;
189 bool m_manifestHasBeenSet = false;
190
191 Aws::String m_name;
192 bool m_nameHasBeenSet = false;
193
194 Aws::String m_serviceInstanceName;
195 bool m_serviceInstanceNameHasBeenSet = false;
196
197 Aws::String m_serviceName;
198 bool m_serviceNameHasBeenSet = false;
199
200 Aws::String m_serviceSpec;
201 bool m_serviceSpecHasBeenSet = false;
202
203 Aws::Vector<Tag> m_tags;
204 bool m_tagsHasBeenSet = false;
205
206 Aws::String m_templateFile;
207 bool m_templateFileHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace Proton
212} // namespace Aws
CreateComponentRequest & WithDescription(DescriptionT &&value)
CreateComponentRequest & WithTags(TagsT &&value)
CreateComponentRequest & WithTemplateFile(TemplateFileT &&value)
CreateComponentRequest & WithManifest(ManifestT &&value)
void SetServiceInstanceName(ServiceInstanceNameT &&value)
void SetEnvironmentName(EnvironmentNameT &&value)
CreateComponentRequest & WithServiceInstanceName(ServiceInstanceNameT &&value)
CreateComponentRequest & WithEnvironmentName(EnvironmentNameT &&value)
virtual const char * GetServiceRequestName() const override
CreateComponentRequest & WithServiceSpec(ServiceSpecT &&value)
CreateComponentRequest & WithName(NameT &&value)
CreateComponentRequest & WithServiceName(ServiceNameT &&value)
AWS_PROTON_API Aws::String SerializePayload() const override
AWS_PROTON_API CreateComponentRequest()=default
const Aws::Vector< Tag > & GetTags() const
CreateComponentRequest & WithClientToken(ClientTokenT &&value)
CreateComponentRequest & AddTags(TagsT &&value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector