AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
47 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
48 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
49 inline CreateComponentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
50 inline CreateComponentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
51 inline CreateComponentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
53
55
58 inline const Aws::String& GetDescription() const{ return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
61 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
62 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
63 inline CreateComponentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
64 inline CreateComponentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
65 inline CreateComponentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
67
69
74 inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
75 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
76 inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
77 inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
78 inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
79 inline CreateComponentRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
80 inline CreateComponentRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
81 inline CreateComponentRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
83
85
90 inline const Aws::String& GetManifest() const{ return m_manifest; }
91 inline bool ManifestHasBeenSet() const { return m_manifestHasBeenSet; }
92 inline void SetManifest(const Aws::String& value) { m_manifestHasBeenSet = true; m_manifest = value; }
93 inline void SetManifest(Aws::String&& value) { m_manifestHasBeenSet = true; m_manifest = std::move(value); }
94 inline void SetManifest(const char* value) { m_manifestHasBeenSet = true; m_manifest.assign(value); }
95 inline CreateComponentRequest& WithManifest(const Aws::String& value) { SetManifest(value); return *this;}
96 inline CreateComponentRequest& WithManifest(Aws::String&& value) { SetManifest(std::move(value)); return *this;}
97 inline CreateComponentRequest& WithManifest(const char* value) { SetManifest(value); return *this;}
99
101
104 inline const Aws::String& GetName() const{ return m_name; }
105 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
106 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
107 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
108 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
109 inline CreateComponentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
110 inline CreateComponentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
111 inline CreateComponentRequest& WithName(const char* value) { SetName(value); return *this;}
113
115
121 inline const Aws::String& GetServiceInstanceName() const{ return m_serviceInstanceName; }
122 inline bool ServiceInstanceNameHasBeenSet() const { return m_serviceInstanceNameHasBeenSet; }
123 inline void SetServiceInstanceName(const Aws::String& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = value; }
124 inline void SetServiceInstanceName(Aws::String&& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = std::move(value); }
125 inline void SetServiceInstanceName(const char* value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName.assign(value); }
127 inline CreateComponentRequest& WithServiceInstanceName(Aws::String&& value) { SetServiceInstanceName(std::move(value)); return *this;}
128 inline CreateComponentRequest& WithServiceInstanceName(const char* value) { SetServiceInstanceName(value); return *this;}
130
132
138 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
139 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
140 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
141 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
142 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
143 inline CreateComponentRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
144 inline CreateComponentRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
145 inline CreateComponentRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
147
149
153 inline const Aws::String& GetServiceSpec() const{ return m_serviceSpec; }
154 inline bool ServiceSpecHasBeenSet() const { return m_serviceSpecHasBeenSet; }
155 inline void SetServiceSpec(const Aws::String& value) { m_serviceSpecHasBeenSet = true; m_serviceSpec = value; }
156 inline void SetServiceSpec(Aws::String&& value) { m_serviceSpecHasBeenSet = true; m_serviceSpec = std::move(value); }
157 inline void SetServiceSpec(const char* value) { m_serviceSpecHasBeenSet = true; m_serviceSpec.assign(value); }
158 inline CreateComponentRequest& WithServiceSpec(const Aws::String& value) { SetServiceSpec(value); return *this;}
159 inline CreateComponentRequest& WithServiceSpec(Aws::String&& value) { SetServiceSpec(std::move(value)); return *this;}
160 inline CreateComponentRequest& WithServiceSpec(const char* value) { SetServiceSpec(value); return *this;}
162
164
170 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
171 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
172 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
173 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
174 inline CreateComponentRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
175 inline CreateComponentRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
176 inline CreateComponentRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
177 inline CreateComponentRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
179
181
186 inline const Aws::String& GetTemplateFile() const{ return m_templateFile; }
187 inline bool TemplateFileHasBeenSet() const { return m_templateFileHasBeenSet; }
188 inline void SetTemplateFile(const Aws::String& value) { m_templateFileHasBeenSet = true; m_templateFile = value; }
189 inline void SetTemplateFile(Aws::String&& value) { m_templateFileHasBeenSet = true; m_templateFile = std::move(value); }
190 inline void SetTemplateFile(const char* value) { m_templateFileHasBeenSet = true; m_templateFile.assign(value); }
191 inline CreateComponentRequest& WithTemplateFile(const Aws::String& value) { SetTemplateFile(value); return *this;}
192 inline CreateComponentRequest& WithTemplateFile(Aws::String&& value) { SetTemplateFile(std::move(value)); return *this;}
193 inline CreateComponentRequest& WithTemplateFile(const char* value) { SetTemplateFile(value); return *this;}
195 private:
196
197 Aws::String m_clientToken;
198 bool m_clientTokenHasBeenSet = false;
199
200 Aws::String m_description;
201 bool m_descriptionHasBeenSet = false;
202
203 Aws::String m_environmentName;
204 bool m_environmentNameHasBeenSet = false;
205
206 Aws::String m_manifest;
207 bool m_manifestHasBeenSet = false;
208
209 Aws::String m_name;
210 bool m_nameHasBeenSet = false;
211
212 Aws::String m_serviceInstanceName;
213 bool m_serviceInstanceNameHasBeenSet = false;
214
215 Aws::String m_serviceName;
216 bool m_serviceNameHasBeenSet = false;
217
218 Aws::String m_serviceSpec;
219 bool m_serviceSpecHasBeenSet = false;
220
221 Aws::Vector<Tag> m_tags;
222 bool m_tagsHasBeenSet = false;
223
224 Aws::String m_templateFile;
225 bool m_templateFileHasBeenSet = false;
226 };
227
228} // namespace Model
229} // namespace Proton
230} // namespace Aws
CreateComponentRequest & WithTemplateFile(const Aws::String &value)
CreateComponentRequest & WithTemplateFile(Aws::String &&value)
CreateComponentRequest & WithServiceSpec(Aws::String &&value)
CreateComponentRequest & WithManifest(const char *value)
CreateComponentRequest & WithClientToken(Aws::String &&value)
CreateComponentRequest & WithTags(const Aws::Vector< Tag > &value)
CreateComponentRequest & WithEnvironmentName(const char *value)
CreateComponentRequest & WithManifest(const Aws::String &value)
CreateComponentRequest & WithServiceInstanceName(const Aws::String &value)
void SetServiceInstanceName(const Aws::String &value)
CreateComponentRequest & WithClientToken(const Aws::String &value)
CreateComponentRequest & WithTemplateFile(const char *value)
CreateComponentRequest & WithEnvironmentName(Aws::String &&value)
CreateComponentRequest & WithName(Aws::String &&value)
CreateComponentRequest & WithServiceInstanceName(const char *value)
CreateComponentRequest & WithServiceName(const char *value)
CreateComponentRequest & AddTags(Tag &&value)
CreateComponentRequest & AddTags(const Tag &value)
CreateComponentRequest & WithServiceName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateComponentRequest & WithClientToken(const char *value)
CreateComponentRequest & WithServiceName(Aws::String &&value)
CreateComponentRequest & WithDescription(const Aws::String &value)
CreateComponentRequest & WithDescription(const char *value)
AWS_PROTON_API Aws::String SerializePayload() const override
CreateComponentRequest & WithServiceInstanceName(Aws::String &&value)
CreateComponentRequest & WithTags(Aws::Vector< Tag > &&value)
CreateComponentRequest & WithServiceSpec(const Aws::String &value)
CreateComponentRequest & WithEnvironmentName(const Aws::String &value)
CreateComponentRequest & WithDescription(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateComponentRequest & WithName(const Aws::String &value)
CreateComponentRequest & WithManifest(Aws::String &&value)
void SetEnvironmentName(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
CreateComponentRequest & WithServiceSpec(const char *value)
CreateComponentRequest & WithName(const char *value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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