AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateEnvironmentRequest.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/proton/model/RepositoryBranchInput.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/proton/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Proton
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_PROTON_API CreateEnvironmentRequest();
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 "CreateEnvironment"; }
34
35 AWS_PROTON_API Aws::String SerializePayload() const override;
36
38
39
41
49 inline const Aws::String& GetCodebuildRoleArn() const{ return m_codebuildRoleArn; }
50 inline bool CodebuildRoleArnHasBeenSet() const { return m_codebuildRoleArnHasBeenSet; }
51 inline void SetCodebuildRoleArn(const Aws::String& value) { m_codebuildRoleArnHasBeenSet = true; m_codebuildRoleArn = value; }
52 inline void SetCodebuildRoleArn(Aws::String&& value) { m_codebuildRoleArnHasBeenSet = true; m_codebuildRoleArn = std::move(value); }
53 inline void SetCodebuildRoleArn(const char* value) { m_codebuildRoleArnHasBeenSet = true; m_codebuildRoleArn.assign(value); }
55 inline CreateEnvironmentRequest& WithCodebuildRoleArn(Aws::String&& value) { SetCodebuildRoleArn(std::move(value)); return *this;}
56 inline CreateEnvironmentRequest& WithCodebuildRoleArn(const char* value) { SetCodebuildRoleArn(value); return *this;}
58
60
70 inline const Aws::String& GetComponentRoleArn() const{ return m_componentRoleArn; }
71 inline bool ComponentRoleArnHasBeenSet() const { return m_componentRoleArnHasBeenSet; }
72 inline void SetComponentRoleArn(const Aws::String& value) { m_componentRoleArnHasBeenSet = true; m_componentRoleArn = value; }
73 inline void SetComponentRoleArn(Aws::String&& value) { m_componentRoleArnHasBeenSet = true; m_componentRoleArn = std::move(value); }
74 inline void SetComponentRoleArn(const char* value) { m_componentRoleArnHasBeenSet = true; m_componentRoleArn.assign(value); }
76 inline CreateEnvironmentRequest& WithComponentRoleArn(Aws::String&& value) { SetComponentRoleArn(std::move(value)); return *this;}
77 inline CreateEnvironmentRequest& WithComponentRoleArn(const char* value) { SetComponentRoleArn(value); return *this;}
79
81
84 inline const Aws::String& GetDescription() const{ return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
87 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
88 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
89 inline CreateEnvironmentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
90 inline CreateEnvironmentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
91 inline CreateEnvironmentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
93
95
105 inline const Aws::String& GetEnvironmentAccountConnectionId() const{ return m_environmentAccountConnectionId; }
106 inline bool EnvironmentAccountConnectionIdHasBeenSet() const { return m_environmentAccountConnectionIdHasBeenSet; }
107 inline void SetEnvironmentAccountConnectionId(const Aws::String& value) { m_environmentAccountConnectionIdHasBeenSet = true; m_environmentAccountConnectionId = value; }
108 inline void SetEnvironmentAccountConnectionId(Aws::String&& value) { m_environmentAccountConnectionIdHasBeenSet = true; m_environmentAccountConnectionId = std::move(value); }
109 inline void SetEnvironmentAccountConnectionId(const char* value) { m_environmentAccountConnectionIdHasBeenSet = true; m_environmentAccountConnectionId.assign(value); }
114
116
119 inline const Aws::String& GetName() const{ return m_name; }
120 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
121 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
122 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
123 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
124 inline CreateEnvironmentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
125 inline CreateEnvironmentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
126 inline CreateEnvironmentRequest& WithName(const char* value) { SetName(value); return *this;}
128
130
137 inline const Aws::String& GetProtonServiceRoleArn() const{ return m_protonServiceRoleArn; }
138 inline bool ProtonServiceRoleArnHasBeenSet() const { return m_protonServiceRoleArnHasBeenSet; }
139 inline void SetProtonServiceRoleArn(const Aws::String& value) { m_protonServiceRoleArnHasBeenSet = true; m_protonServiceRoleArn = value; }
140 inline void SetProtonServiceRoleArn(Aws::String&& value) { m_protonServiceRoleArnHasBeenSet = true; m_protonServiceRoleArn = std::move(value); }
141 inline void SetProtonServiceRoleArn(const char* value) { m_protonServiceRoleArnHasBeenSet = true; m_protonServiceRoleArn.assign(value); }
144 inline CreateEnvironmentRequest& WithProtonServiceRoleArn(const char* value) { SetProtonServiceRoleArn(value); return *this;}
146
148
157 inline const RepositoryBranchInput& GetProvisioningRepository() const{ return m_provisioningRepository; }
158 inline bool ProvisioningRepositoryHasBeenSet() const { return m_provisioningRepositoryHasBeenSet; }
159 inline void SetProvisioningRepository(const RepositoryBranchInput& value) { m_provisioningRepositoryHasBeenSet = true; m_provisioningRepository = value; }
160 inline void SetProvisioningRepository(RepositoryBranchInput&& value) { m_provisioningRepositoryHasBeenSet = true; m_provisioningRepository = std::move(value); }
164
166
172 inline const Aws::String& GetSpec() const{ return m_spec; }
173 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
174 inline void SetSpec(const Aws::String& value) { m_specHasBeenSet = true; m_spec = value; }
175 inline void SetSpec(Aws::String&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
176 inline void SetSpec(const char* value) { m_specHasBeenSet = true; m_spec.assign(value); }
177 inline CreateEnvironmentRequest& WithSpec(const Aws::String& value) { SetSpec(value); return *this;}
178 inline CreateEnvironmentRequest& WithSpec(Aws::String&& value) { SetSpec(std::move(value)); return *this;}
179 inline CreateEnvironmentRequest& WithSpec(const char* value) { SetSpec(value); return *this;}
181
183
189 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
190 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
191 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
192 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
193 inline CreateEnvironmentRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
194 inline CreateEnvironmentRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
195 inline CreateEnvironmentRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
196 inline CreateEnvironmentRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
198
200
203 inline const Aws::String& GetTemplateMajorVersion() const{ return m_templateMajorVersion; }
204 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
205 inline void SetTemplateMajorVersion(const Aws::String& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = value; }
206 inline void SetTemplateMajorVersion(Aws::String&& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = std::move(value); }
207 inline void SetTemplateMajorVersion(const char* value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion.assign(value); }
210 inline CreateEnvironmentRequest& WithTemplateMajorVersion(const char* value) { SetTemplateMajorVersion(value); return *this;}
212
214
217 inline const Aws::String& GetTemplateMinorVersion() const{ return m_templateMinorVersion; }
218 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
219 inline void SetTemplateMinorVersion(const Aws::String& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = value; }
220 inline void SetTemplateMinorVersion(Aws::String&& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = std::move(value); }
221 inline void SetTemplateMinorVersion(const char* value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion.assign(value); }
224 inline CreateEnvironmentRequest& WithTemplateMinorVersion(const char* value) { SetTemplateMinorVersion(value); return *this;}
226
228
233 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
234 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
235 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
236 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
237 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
238 inline CreateEnvironmentRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
239 inline CreateEnvironmentRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
240 inline CreateEnvironmentRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
242 private:
243
244 Aws::String m_codebuildRoleArn;
245 bool m_codebuildRoleArnHasBeenSet = false;
246
247 Aws::String m_componentRoleArn;
248 bool m_componentRoleArnHasBeenSet = false;
249
250 Aws::String m_description;
251 bool m_descriptionHasBeenSet = false;
252
253 Aws::String m_environmentAccountConnectionId;
254 bool m_environmentAccountConnectionIdHasBeenSet = false;
255
256 Aws::String m_name;
257 bool m_nameHasBeenSet = false;
258
259 Aws::String m_protonServiceRoleArn;
260 bool m_protonServiceRoleArnHasBeenSet = false;
261
262 RepositoryBranchInput m_provisioningRepository;
263 bool m_provisioningRepositoryHasBeenSet = false;
264
265 Aws::String m_spec;
266 bool m_specHasBeenSet = false;
267
268 Aws::Vector<Tag> m_tags;
269 bool m_tagsHasBeenSet = false;
270
271 Aws::String m_templateMajorVersion;
272 bool m_templateMajorVersionHasBeenSet = false;
273
274 Aws::String m_templateMinorVersion;
275 bool m_templateMinorVersionHasBeenSet = false;
276
277 Aws::String m_templateName;
278 bool m_templateNameHasBeenSet = false;
279 };
280
281} // namespace Model
282} // namespace Proton
283} // namespace Aws
CreateEnvironmentRequest & WithProvisioningRepository(const RepositoryBranchInput &value)
CreateEnvironmentRequest & WithTags(Aws::Vector< Tag > &&value)
CreateEnvironmentRequest & WithCodebuildRoleArn(const char *value)
void SetProvisioningRepository(RepositoryBranchInput &&value)
virtual const char * GetServiceRequestName() const override
void SetProvisioningRepository(const RepositoryBranchInput &value)
CreateEnvironmentRequest & WithTemplateName(Aws::String &&value)
CreateEnvironmentRequest & WithProtonServiceRoleArn(Aws::String &&value)
CreateEnvironmentRequest & AddTags(const Tag &value)
CreateEnvironmentRequest & WithSpec(Aws::String &&value)
CreateEnvironmentRequest & WithProvisioningRepository(RepositoryBranchInput &&value)
CreateEnvironmentRequest & WithTemplateMinorVersion(const Aws::String &value)
CreateEnvironmentRequest & WithEnvironmentAccountConnectionId(const Aws::String &value)
CreateEnvironmentRequest & WithEnvironmentAccountConnectionId(Aws::String &&value)
CreateEnvironmentRequest & WithTemplateName(const Aws::String &value)
CreateEnvironmentRequest & WithEnvironmentAccountConnectionId(const char *value)
AWS_PROTON_API Aws::String SerializePayload() const override
void SetEnvironmentAccountConnectionId(const Aws::String &value)
CreateEnvironmentRequest & WithName(const Aws::String &value)
CreateEnvironmentRequest & WithSpec(const Aws::String &value)
CreateEnvironmentRequest & WithName(const char *value)
CreateEnvironmentRequest & WithDescription(Aws::String &&value)
CreateEnvironmentRequest & WithComponentRoleArn(const char *value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEnvironmentRequest & WithComponentRoleArn(Aws::String &&value)
CreateEnvironmentRequest & WithName(Aws::String &&value)
CreateEnvironmentRequest & WithTags(const Aws::Vector< Tag > &value)
CreateEnvironmentRequest & WithTemplateMinorVersion(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
CreateEnvironmentRequest & WithTemplateMinorVersion(Aws::String &&value)
CreateEnvironmentRequest & WithTemplateMajorVersion(const Aws::String &value)
CreateEnvironmentRequest & AddTags(Tag &&value)
CreateEnvironmentRequest & WithCodebuildRoleArn(const Aws::String &value)
CreateEnvironmentRequest & WithTemplateName(const char *value)
CreateEnvironmentRequest & WithDescription(const char *value)
CreateEnvironmentRequest & WithSpec(const char *value)
CreateEnvironmentRequest & WithProtonServiceRoleArn(const Aws::String &value)
CreateEnvironmentRequest & WithDescription(const Aws::String &value)
CreateEnvironmentRequest & WithCodebuildRoleArn(Aws::String &&value)
CreateEnvironmentRequest & WithTemplateMajorVersion(const char *value)
CreateEnvironmentRequest & WithTemplateMajorVersion(Aws::String &&value)
CreateEnvironmentRequest & WithProtonServiceRoleArn(const char *value)
CreateEnvironmentRequest & WithComponentRoleArn(const Aws::String &value)
const RepositoryBranchInput & GetProvisioningRepository() const
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