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/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/CodeBuildRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codebuild/model/ProjectSource.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codebuild/model/ProjectArtifacts.h>
13#include <aws/codebuild/model/ProjectCache.h>
14#include <aws/codebuild/model/ProjectEnvironment.h>
15#include <aws/codebuild/model/VpcConfig.h>
16#include <aws/codebuild/model/LogsConfig.h>
17#include <aws/codebuild/model/ProjectBuildBatchConfig.h>
18#include <aws/codebuild/model/ProjectSourceVersion.h>
19#include <aws/codebuild/model/Tag.h>
20#include <aws/codebuild/model/ProjectFileSystemLocation.h>
21#include <utility>
22
23namespace Aws
24{
25namespace CodeBuild
26{
27namespace Model
28{
29
33 {
34 public:
35 AWS_CODEBUILD_API CreateProjectRequest() = default;
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CreateProject"; }
42
43 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
44
46
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 CreateProjectRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
59
61
64 inline const Aws::String& GetDescription() const { return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 template<typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
68 template<typename DescriptionT = Aws::String>
69 CreateProjectRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
71
73
76 inline const ProjectSource& GetSource() const { return m_source; }
77 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
78 template<typename SourceT = ProjectSource>
79 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
80 template<typename SourceT = ProjectSource>
81 CreateProjectRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
83
85
88 inline const Aws::Vector<ProjectSource>& GetSecondarySources() const { return m_secondarySources; }
89 inline bool SecondarySourcesHasBeenSet() const { return m_secondarySourcesHasBeenSet; }
90 template<typename SecondarySourcesT = Aws::Vector<ProjectSource>>
91 void SetSecondarySources(SecondarySourcesT&& value) { m_secondarySourcesHasBeenSet = true; m_secondarySources = std::forward<SecondarySourcesT>(value); }
92 template<typename SecondarySourcesT = Aws::Vector<ProjectSource>>
93 CreateProjectRequest& WithSecondarySources(SecondarySourcesT&& value) { SetSecondarySources(std::forward<SecondarySourcesT>(value)); return *this;}
94 template<typename SecondarySourcesT = ProjectSource>
95 CreateProjectRequest& AddSecondarySources(SecondarySourcesT&& value) { m_secondarySourcesHasBeenSet = true; m_secondarySources.emplace_back(std::forward<SecondarySourcesT>(value)); return *this; }
97
99
120 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
121 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
122 template<typename SourceVersionT = Aws::String>
123 void SetSourceVersion(SourceVersionT&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::forward<SourceVersionT>(value); }
124 template<typename SourceVersionT = Aws::String>
125 CreateProjectRequest& WithSourceVersion(SourceVersionT&& value) { SetSourceVersion(std::forward<SourceVersionT>(value)); return *this;}
127
129
135 inline const Aws::Vector<ProjectSourceVersion>& GetSecondarySourceVersions() const { return m_secondarySourceVersions; }
136 inline bool SecondarySourceVersionsHasBeenSet() const { return m_secondarySourceVersionsHasBeenSet; }
137 template<typename SecondarySourceVersionsT = Aws::Vector<ProjectSourceVersion>>
138 void SetSecondarySourceVersions(SecondarySourceVersionsT&& value) { m_secondarySourceVersionsHasBeenSet = true; m_secondarySourceVersions = std::forward<SecondarySourceVersionsT>(value); }
139 template<typename SecondarySourceVersionsT = Aws::Vector<ProjectSourceVersion>>
140 CreateProjectRequest& WithSecondarySourceVersions(SecondarySourceVersionsT&& value) { SetSecondarySourceVersions(std::forward<SecondarySourceVersionsT>(value)); return *this;}
141 template<typename SecondarySourceVersionsT = ProjectSourceVersion>
142 CreateProjectRequest& AddSecondarySourceVersions(SecondarySourceVersionsT&& value) { m_secondarySourceVersionsHasBeenSet = true; m_secondarySourceVersions.emplace_back(std::forward<SecondarySourceVersionsT>(value)); return *this; }
144
146
149 inline const ProjectArtifacts& GetArtifacts() const { return m_artifacts; }
150 inline bool ArtifactsHasBeenSet() const { return m_artifactsHasBeenSet; }
151 template<typename ArtifactsT = ProjectArtifacts>
152 void SetArtifacts(ArtifactsT&& value) { m_artifactsHasBeenSet = true; m_artifacts = std::forward<ArtifactsT>(value); }
153 template<typename ArtifactsT = ProjectArtifacts>
154 CreateProjectRequest& WithArtifacts(ArtifactsT&& value) { SetArtifacts(std::forward<ArtifactsT>(value)); return *this;}
156
158
161 inline const Aws::Vector<ProjectArtifacts>& GetSecondaryArtifacts() const { return m_secondaryArtifacts; }
162 inline bool SecondaryArtifactsHasBeenSet() const { return m_secondaryArtifactsHasBeenSet; }
163 template<typename SecondaryArtifactsT = Aws::Vector<ProjectArtifacts>>
164 void SetSecondaryArtifacts(SecondaryArtifactsT&& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts = std::forward<SecondaryArtifactsT>(value); }
165 template<typename SecondaryArtifactsT = Aws::Vector<ProjectArtifacts>>
166 CreateProjectRequest& WithSecondaryArtifacts(SecondaryArtifactsT&& value) { SetSecondaryArtifacts(std::forward<SecondaryArtifactsT>(value)); return *this;}
167 template<typename SecondaryArtifactsT = ProjectArtifacts>
168 CreateProjectRequest& AddSecondaryArtifacts(SecondaryArtifactsT&& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts.emplace_back(std::forward<SecondaryArtifactsT>(value)); return *this; }
170
172
176 inline const ProjectCache& GetCache() const { return m_cache; }
177 inline bool CacheHasBeenSet() const { return m_cacheHasBeenSet; }
178 template<typename CacheT = ProjectCache>
179 void SetCache(CacheT&& value) { m_cacheHasBeenSet = true; m_cache = std::forward<CacheT>(value); }
180 template<typename CacheT = ProjectCache>
181 CreateProjectRequest& WithCache(CacheT&& value) { SetCache(std::forward<CacheT>(value)); return *this;}
183
185
188 inline const ProjectEnvironment& GetEnvironment() const { return m_environment; }
189 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
190 template<typename EnvironmentT = ProjectEnvironment>
191 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
192 template<typename EnvironmentT = ProjectEnvironment>
193 CreateProjectRequest& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
195
197
201 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
202 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
203 template<typename ServiceRoleT = Aws::String>
204 void SetServiceRole(ServiceRoleT&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::forward<ServiceRoleT>(value); }
205 template<typename ServiceRoleT = Aws::String>
206 CreateProjectRequest& WithServiceRole(ServiceRoleT&& value) { SetServiceRole(std::forward<ServiceRoleT>(value)); return *this;}
208
210
215 inline int GetTimeoutInMinutes() const { return m_timeoutInMinutes; }
216 inline bool TimeoutInMinutesHasBeenSet() const { return m_timeoutInMinutesHasBeenSet; }
217 inline void SetTimeoutInMinutes(int value) { m_timeoutInMinutesHasBeenSet = true; m_timeoutInMinutes = value; }
218 inline CreateProjectRequest& WithTimeoutInMinutes(int value) { SetTimeoutInMinutes(value); return *this;}
220
222
226 inline int GetQueuedTimeoutInMinutes() const { return m_queuedTimeoutInMinutes; }
227 inline bool QueuedTimeoutInMinutesHasBeenSet() const { return m_queuedTimeoutInMinutesHasBeenSet; }
228 inline void SetQueuedTimeoutInMinutes(int value) { m_queuedTimeoutInMinutesHasBeenSet = true; m_queuedTimeoutInMinutes = value; }
231
233
241 inline const Aws::String& GetEncryptionKey() const { return m_encryptionKey; }
242 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
243 template<typename EncryptionKeyT = Aws::String>
244 void SetEncryptionKey(EncryptionKeyT&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::forward<EncryptionKeyT>(value); }
245 template<typename EncryptionKeyT = Aws::String>
246 CreateProjectRequest& WithEncryptionKey(EncryptionKeyT&& value) { SetEncryptionKey(std::forward<EncryptionKeyT>(value)); return *this;}
248
250
255 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
256 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
257 template<typename TagsT = Aws::Vector<Tag>>
258 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
259 template<typename TagsT = Aws::Vector<Tag>>
260 CreateProjectRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
261 template<typename TagsT = Tag>
262 CreateProjectRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
264
266
271 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
272 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
273 template<typename VpcConfigT = VpcConfig>
274 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
275 template<typename VpcConfigT = VpcConfig>
276 CreateProjectRequest& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
278
280
284 inline bool GetBadgeEnabled() const { return m_badgeEnabled; }
285 inline bool BadgeEnabledHasBeenSet() const { return m_badgeEnabledHasBeenSet; }
286 inline void SetBadgeEnabled(bool value) { m_badgeEnabledHasBeenSet = true; m_badgeEnabled = value; }
287 inline CreateProjectRequest& WithBadgeEnabled(bool value) { SetBadgeEnabled(value); return *this;}
289
291
295 inline const LogsConfig& GetLogsConfig() const { return m_logsConfig; }
296 inline bool LogsConfigHasBeenSet() const { return m_logsConfigHasBeenSet; }
297 template<typename LogsConfigT = LogsConfig>
298 void SetLogsConfig(LogsConfigT&& value) { m_logsConfigHasBeenSet = true; m_logsConfig = std::forward<LogsConfigT>(value); }
299 template<typename LogsConfigT = LogsConfig>
300 CreateProjectRequest& WithLogsConfig(LogsConfigT&& value) { SetLogsConfig(std::forward<LogsConfigT>(value)); return *this;}
302
304
311 inline const Aws::Vector<ProjectFileSystemLocation>& GetFileSystemLocations() const { return m_fileSystemLocations; }
312 inline bool FileSystemLocationsHasBeenSet() const { return m_fileSystemLocationsHasBeenSet; }
313 template<typename FileSystemLocationsT = Aws::Vector<ProjectFileSystemLocation>>
314 void SetFileSystemLocations(FileSystemLocationsT&& value) { m_fileSystemLocationsHasBeenSet = true; m_fileSystemLocations = std::forward<FileSystemLocationsT>(value); }
315 template<typename FileSystemLocationsT = Aws::Vector<ProjectFileSystemLocation>>
316 CreateProjectRequest& WithFileSystemLocations(FileSystemLocationsT&& value) { SetFileSystemLocations(std::forward<FileSystemLocationsT>(value)); return *this;}
317 template<typename FileSystemLocationsT = ProjectFileSystemLocation>
318 CreateProjectRequest& AddFileSystemLocations(FileSystemLocationsT&& value) { m_fileSystemLocationsHasBeenSet = true; m_fileSystemLocations.emplace_back(std::forward<FileSystemLocationsT>(value)); return *this; }
320
322
326 inline const ProjectBuildBatchConfig& GetBuildBatchConfig() const { return m_buildBatchConfig; }
327 inline bool BuildBatchConfigHasBeenSet() const { return m_buildBatchConfigHasBeenSet; }
328 template<typename BuildBatchConfigT = ProjectBuildBatchConfig>
329 void SetBuildBatchConfig(BuildBatchConfigT&& value) { m_buildBatchConfigHasBeenSet = true; m_buildBatchConfig = std::forward<BuildBatchConfigT>(value); }
330 template<typename BuildBatchConfigT = ProjectBuildBatchConfig>
331 CreateProjectRequest& WithBuildBatchConfig(BuildBatchConfigT&& value) { SetBuildBatchConfig(std::forward<BuildBatchConfigT>(value)); return *this;}
333
335
341 inline int GetConcurrentBuildLimit() const { return m_concurrentBuildLimit; }
342 inline bool ConcurrentBuildLimitHasBeenSet() const { return m_concurrentBuildLimitHasBeenSet; }
343 inline void SetConcurrentBuildLimit(int value) { m_concurrentBuildLimitHasBeenSet = true; m_concurrentBuildLimit = value; }
346
348
354 inline int GetAutoRetryLimit() const { return m_autoRetryLimit; }
355 inline bool AutoRetryLimitHasBeenSet() const { return m_autoRetryLimitHasBeenSet; }
356 inline void SetAutoRetryLimit(int value) { m_autoRetryLimitHasBeenSet = true; m_autoRetryLimit = value; }
357 inline CreateProjectRequest& WithAutoRetryLimit(int value) { SetAutoRetryLimit(value); return *this;}
359 private:
360
361 Aws::String m_name;
362 bool m_nameHasBeenSet = false;
363
364 Aws::String m_description;
365 bool m_descriptionHasBeenSet = false;
366
367 ProjectSource m_source;
368 bool m_sourceHasBeenSet = false;
369
370 Aws::Vector<ProjectSource> m_secondarySources;
371 bool m_secondarySourcesHasBeenSet = false;
372
373 Aws::String m_sourceVersion;
374 bool m_sourceVersionHasBeenSet = false;
375
376 Aws::Vector<ProjectSourceVersion> m_secondarySourceVersions;
377 bool m_secondarySourceVersionsHasBeenSet = false;
378
379 ProjectArtifacts m_artifacts;
380 bool m_artifactsHasBeenSet = false;
381
382 Aws::Vector<ProjectArtifacts> m_secondaryArtifacts;
383 bool m_secondaryArtifactsHasBeenSet = false;
384
385 ProjectCache m_cache;
386 bool m_cacheHasBeenSet = false;
387
388 ProjectEnvironment m_environment;
389 bool m_environmentHasBeenSet = false;
390
391 Aws::String m_serviceRole;
392 bool m_serviceRoleHasBeenSet = false;
393
394 int m_timeoutInMinutes{0};
395 bool m_timeoutInMinutesHasBeenSet = false;
396
397 int m_queuedTimeoutInMinutes{0};
398 bool m_queuedTimeoutInMinutesHasBeenSet = false;
399
400 Aws::String m_encryptionKey;
401 bool m_encryptionKeyHasBeenSet = false;
402
403 Aws::Vector<Tag> m_tags;
404 bool m_tagsHasBeenSet = false;
405
406 VpcConfig m_vpcConfig;
407 bool m_vpcConfigHasBeenSet = false;
408
409 bool m_badgeEnabled{false};
410 bool m_badgeEnabledHasBeenSet = false;
411
412 LogsConfig m_logsConfig;
413 bool m_logsConfigHasBeenSet = false;
414
415 Aws::Vector<ProjectFileSystemLocation> m_fileSystemLocations;
416 bool m_fileSystemLocationsHasBeenSet = false;
417
418 ProjectBuildBatchConfig m_buildBatchConfig;
419 bool m_buildBatchConfigHasBeenSet = false;
420
421 int m_concurrentBuildLimit{0};
422 bool m_concurrentBuildLimitHasBeenSet = false;
423
424 int m_autoRetryLimit{0};
425 bool m_autoRetryLimitHasBeenSet = false;
426 };
427
428} // namespace Model
429} // namespace CodeBuild
430} // namespace Aws
CreateProjectRequest & WithLogsConfig(LogsConfigT &&value)
CreateProjectRequest & WithSecondarySources(SecondarySourcesT &&value)
CreateProjectRequest & AddSecondarySources(SecondarySourcesT &&value)
CreateProjectRequest & WithFileSystemLocations(FileSystemLocationsT &&value)
CreateProjectRequest & WithDescription(DescriptionT &&value)
CreateProjectRequest & WithServiceRole(ServiceRoleT &&value)
void SetSecondarySources(SecondarySourcesT &&value)
const Aws::Vector< ProjectArtifacts > & GetSecondaryArtifacts() const
AWS_CODEBUILD_API CreateProjectRequest()=default
CreateProjectRequest & WithConcurrentBuildLimit(int value)
const Aws::Vector< ProjectSource > & GetSecondarySources() const
virtual const char * GetServiceRequestName() const override
CreateProjectRequest & AddTags(TagsT &&value)
const Aws::Vector< ProjectSourceVersion > & GetSecondarySourceVersions() const
CreateProjectRequest & AddSecondarySourceVersions(SecondarySourceVersionsT &&value)
CreateProjectRequest & WithQueuedTimeoutInMinutes(int value)
CreateProjectRequest & AddSecondaryArtifacts(SecondaryArtifactsT &&value)
CreateProjectRequest & WithBuildBatchConfig(BuildBatchConfigT &&value)
CreateProjectRequest & WithArtifacts(ArtifactsT &&value)
CreateProjectRequest & WithTags(TagsT &&value)
CreateProjectRequest & WithSourceVersion(SourceVersionT &&value)
const ProjectBuildBatchConfig & GetBuildBatchConfig() const
CreateProjectRequest & WithEncryptionKey(EncryptionKeyT &&value)
CreateProjectRequest & WithEnvironment(EnvironmentT &&value)
const ProjectArtifacts & GetArtifacts() const
const Aws::Vector< ProjectFileSystemLocation > & GetFileSystemLocations() const
CreateProjectRequest & WithSecondarySourceVersions(SecondarySourceVersionsT &&value)
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetSecondaryArtifacts(SecondaryArtifactsT &&value)
CreateProjectRequest & WithVpcConfig(VpcConfigT &&value)
CreateProjectRequest & WithSecondaryArtifacts(SecondaryArtifactsT &&value)
CreateProjectRequest & WithName(NameT &&value)
const Aws::Vector< Tag > & GetTags() const
const ProjectEnvironment & GetEnvironment() const
void SetSecondarySourceVersions(SecondarySourceVersionsT &&value)
CreateProjectRequest & WithAutoRetryLimit(int value)
CreateProjectRequest & WithBadgeEnabled(bool value)
CreateProjectRequest & WithTimeoutInMinutes(int value)
CreateProjectRequest & WithCache(CacheT &&value)
void SetBuildBatchConfig(BuildBatchConfigT &&value)
CreateProjectRequest & AddFileSystemLocations(FileSystemLocationsT &&value)
AWS_CODEBUILD_API Aws::String SerializePayload() const override
CreateProjectRequest & WithSource(SourceT &&value)
void SetFileSystemLocations(FileSystemLocationsT &&value)
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