AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateProjectRequest.h
1
6#pragma once
7#include <aws/codebuild/CodeBuildRequest.h>
8#include <aws/codebuild/CodeBuild_EXPORTS.h>
9#include <aws/codebuild/model/LogsConfig.h>
10#include <aws/codebuild/model/ProjectArtifacts.h>
11#include <aws/codebuild/model/ProjectBuildBatchConfig.h>
12#include <aws/codebuild/model/ProjectCache.h>
13#include <aws/codebuild/model/ProjectEnvironment.h>
14#include <aws/codebuild/model/ProjectFileSystemLocation.h>
15#include <aws/codebuild/model/ProjectSource.h>
16#include <aws/codebuild/model/ProjectSourceVersion.h>
17#include <aws/codebuild/model/Tag.h>
18#include <aws/codebuild/model/VpcConfig.h>
19#include <aws/core/utils/memory/stl/AWSString.h>
20#include <aws/core/utils/memory/stl/AWSVector.h>
21
22#include <utility>
23
24namespace Aws {
25namespace CodeBuild {
26namespace Model {
27
31 public:
32 AWS_CODEBUILD_API UpdateProjectRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "UpdateProject"; }
39
40 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
41
43
45
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template <typename NameT = Aws::String>
52 void SetName(NameT&& value) {
53 m_nameHasBeenSet = true;
54 m_name = std::forward<NameT>(value);
55 }
56 template <typename NameT = Aws::String>
58 SetName(std::forward<NameT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template <typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) {
71 m_descriptionHasBeenSet = true;
72 m_description = std::forward<DescriptionT>(value);
73 }
74 template <typename DescriptionT = Aws::String>
75 UpdateProjectRequest& WithDescription(DescriptionT&& value) {
76 SetDescription(std::forward<DescriptionT>(value));
77 return *this;
78 }
80
82
86 inline const ProjectSource& GetSource() const { return m_source; }
87 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
88 template <typename SourceT = ProjectSource>
89 void SetSource(SourceT&& value) {
90 m_sourceHasBeenSet = true;
91 m_source = std::forward<SourceT>(value);
92 }
93 template <typename SourceT = ProjectSource>
94 UpdateProjectRequest& WithSource(SourceT&& value) {
95 SetSource(std::forward<SourceT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Vector<ProjectSource>& GetSecondarySources() const { return m_secondarySources; }
105 inline bool SecondarySourcesHasBeenSet() const { return m_secondarySourcesHasBeenSet; }
106 template <typename SecondarySourcesT = Aws::Vector<ProjectSource>>
107 void SetSecondarySources(SecondarySourcesT&& value) {
108 m_secondarySourcesHasBeenSet = true;
109 m_secondarySources = std::forward<SecondarySourcesT>(value);
110 }
111 template <typename SecondarySourcesT = Aws::Vector<ProjectSource>>
112 UpdateProjectRequest& WithSecondarySources(SecondarySourcesT&& value) {
113 SetSecondarySources(std::forward<SecondarySourcesT>(value));
114 return *this;
115 }
116 template <typename SecondarySourcesT = ProjectSource>
117 UpdateProjectRequest& AddSecondarySources(SecondarySourcesT&& value) {
118 m_secondarySourcesHasBeenSet = true;
119 m_secondarySources.emplace_back(std::forward<SecondarySourcesT>(value));
120 return *this;
121 }
123
125
146 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
147 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
148 template <typename SourceVersionT = Aws::String>
149 void SetSourceVersion(SourceVersionT&& value) {
150 m_sourceVersionHasBeenSet = true;
151 m_sourceVersion = std::forward<SourceVersionT>(value);
152 }
153 template <typename SourceVersionT = Aws::String>
154 UpdateProjectRequest& WithSourceVersion(SourceVersionT&& value) {
155 SetSourceVersion(std::forward<SourceVersionT>(value));
156 return *this;
157 }
159
161
167 inline const Aws::Vector<ProjectSourceVersion>& GetSecondarySourceVersions() const { return m_secondarySourceVersions; }
168 inline bool SecondarySourceVersionsHasBeenSet() const { return m_secondarySourceVersionsHasBeenSet; }
169 template <typename SecondarySourceVersionsT = Aws::Vector<ProjectSourceVersion>>
170 void SetSecondarySourceVersions(SecondarySourceVersionsT&& value) {
171 m_secondarySourceVersionsHasBeenSet = true;
172 m_secondarySourceVersions = std::forward<SecondarySourceVersionsT>(value);
173 }
174 template <typename SecondarySourceVersionsT = Aws::Vector<ProjectSourceVersion>>
175 UpdateProjectRequest& WithSecondarySourceVersions(SecondarySourceVersionsT&& value) {
176 SetSecondarySourceVersions(std::forward<SecondarySourceVersionsT>(value));
177 return *this;
178 }
179 template <typename SecondarySourceVersionsT = ProjectSourceVersion>
180 UpdateProjectRequest& AddSecondarySourceVersions(SecondarySourceVersionsT&& value) {
181 m_secondarySourceVersionsHasBeenSet = true;
182 m_secondarySourceVersions.emplace_back(std::forward<SecondarySourceVersionsT>(value));
183 return *this;
184 }
186
188
192 inline const ProjectArtifacts& GetArtifacts() const { return m_artifacts; }
193 inline bool ArtifactsHasBeenSet() const { return m_artifactsHasBeenSet; }
194 template <typename ArtifactsT = ProjectArtifacts>
195 void SetArtifacts(ArtifactsT&& value) {
196 m_artifactsHasBeenSet = true;
197 m_artifacts = std::forward<ArtifactsT>(value);
198 }
199 template <typename ArtifactsT = ProjectArtifacts>
200 UpdateProjectRequest& WithArtifacts(ArtifactsT&& value) {
201 SetArtifacts(std::forward<ArtifactsT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::Vector<ProjectArtifacts>& GetSecondaryArtifacts() const { return m_secondaryArtifacts; }
211 inline bool SecondaryArtifactsHasBeenSet() const { return m_secondaryArtifactsHasBeenSet; }
212 template <typename SecondaryArtifactsT = Aws::Vector<ProjectArtifacts>>
213 void SetSecondaryArtifacts(SecondaryArtifactsT&& value) {
214 m_secondaryArtifactsHasBeenSet = true;
215 m_secondaryArtifacts = std::forward<SecondaryArtifactsT>(value);
216 }
217 template <typename SecondaryArtifactsT = Aws::Vector<ProjectArtifacts>>
218 UpdateProjectRequest& WithSecondaryArtifacts(SecondaryArtifactsT&& value) {
219 SetSecondaryArtifacts(std::forward<SecondaryArtifactsT>(value));
220 return *this;
221 }
222 template <typename SecondaryArtifactsT = ProjectArtifacts>
223 UpdateProjectRequest& AddSecondaryArtifacts(SecondaryArtifactsT&& value) {
224 m_secondaryArtifactsHasBeenSet = true;
225 m_secondaryArtifacts.emplace_back(std::forward<SecondaryArtifactsT>(value));
226 return *this;
227 }
229
231
235 inline const ProjectCache& GetCache() const { return m_cache; }
236 inline bool CacheHasBeenSet() const { return m_cacheHasBeenSet; }
237 template <typename CacheT = ProjectCache>
238 void SetCache(CacheT&& value) {
239 m_cacheHasBeenSet = true;
240 m_cache = std::forward<CacheT>(value);
241 }
242 template <typename CacheT = ProjectCache>
244 SetCache(std::forward<CacheT>(value));
245 return *this;
246 }
248
250
254 inline const ProjectEnvironment& GetEnvironment() const { return m_environment; }
255 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
256 template <typename EnvironmentT = ProjectEnvironment>
257 void SetEnvironment(EnvironmentT&& value) {
258 m_environmentHasBeenSet = true;
259 m_environment = std::forward<EnvironmentT>(value);
260 }
261 template <typename EnvironmentT = ProjectEnvironment>
262 UpdateProjectRequest& WithEnvironment(EnvironmentT&& value) {
263 SetEnvironment(std::forward<EnvironmentT>(value));
264 return *this;
265 }
267
269
274 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
275 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
276 template <typename ServiceRoleT = Aws::String>
277 void SetServiceRole(ServiceRoleT&& value) {
278 m_serviceRoleHasBeenSet = true;
279 m_serviceRole = std::forward<ServiceRoleT>(value);
280 }
281 template <typename ServiceRoleT = Aws::String>
282 UpdateProjectRequest& WithServiceRole(ServiceRoleT&& value) {
283 SetServiceRole(std::forward<ServiceRoleT>(value));
284 return *this;
285 }
287
289
294 inline int GetTimeoutInMinutes() const { return m_timeoutInMinutes; }
295 inline bool TimeoutInMinutesHasBeenSet() const { return m_timeoutInMinutesHasBeenSet; }
296 inline void SetTimeoutInMinutes(int value) {
297 m_timeoutInMinutesHasBeenSet = true;
298 m_timeoutInMinutes = value;
299 }
301 SetTimeoutInMinutes(value);
302 return *this;
303 }
305
307
311 inline int GetQueuedTimeoutInMinutes() const { return m_queuedTimeoutInMinutes; }
312 inline bool QueuedTimeoutInMinutesHasBeenSet() const { return m_queuedTimeoutInMinutesHasBeenSet; }
313 inline void SetQueuedTimeoutInMinutes(int value) {
314 m_queuedTimeoutInMinutesHasBeenSet = true;
315 m_queuedTimeoutInMinutes = value;
316 }
319 return *this;
320 }
322
324
332 inline const Aws::String& GetEncryptionKey() const { return m_encryptionKey; }
333 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
334 template <typename EncryptionKeyT = Aws::String>
335 void SetEncryptionKey(EncryptionKeyT&& value) {
336 m_encryptionKeyHasBeenSet = true;
337 m_encryptionKey = std::forward<EncryptionKeyT>(value);
338 }
339 template <typename EncryptionKeyT = Aws::String>
340 UpdateProjectRequest& WithEncryptionKey(EncryptionKeyT&& value) {
341 SetEncryptionKey(std::forward<EncryptionKeyT>(value));
342 return *this;
343 }
345
347
352 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
353 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
354 template <typename TagsT = Aws::Vector<Tag>>
355 void SetTags(TagsT&& value) {
356 m_tagsHasBeenSet = true;
357 m_tags = std::forward<TagsT>(value);
358 }
359 template <typename TagsT = Aws::Vector<Tag>>
361 SetTags(std::forward<TagsT>(value));
362 return *this;
363 }
364 template <typename TagsT = Tag>
366 m_tagsHasBeenSet = true;
367 m_tags.emplace_back(std::forward<TagsT>(value));
368 return *this;
369 }
371
373
376 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
377 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
378 template <typename VpcConfigT = VpcConfig>
379 void SetVpcConfig(VpcConfigT&& value) {
380 m_vpcConfigHasBeenSet = true;
381 m_vpcConfig = std::forward<VpcConfigT>(value);
382 }
383 template <typename VpcConfigT = VpcConfig>
384 UpdateProjectRequest& WithVpcConfig(VpcConfigT&& value) {
385 SetVpcConfig(std::forward<VpcConfigT>(value));
386 return *this;
387 }
389
391
395 inline bool GetBadgeEnabled() const { return m_badgeEnabled; }
396 inline bool BadgeEnabledHasBeenSet() const { return m_badgeEnabledHasBeenSet; }
397 inline void SetBadgeEnabled(bool value) {
398 m_badgeEnabledHasBeenSet = true;
399 m_badgeEnabled = value;
400 }
402 SetBadgeEnabled(value);
403 return *this;
404 }
406
408
412 inline const LogsConfig& GetLogsConfig() const { return m_logsConfig; }
413 inline bool LogsConfigHasBeenSet() const { return m_logsConfigHasBeenSet; }
414 template <typename LogsConfigT = LogsConfig>
415 void SetLogsConfig(LogsConfigT&& value) {
416 m_logsConfigHasBeenSet = true;
417 m_logsConfig = std::forward<LogsConfigT>(value);
418 }
419 template <typename LogsConfigT = LogsConfig>
420 UpdateProjectRequest& WithLogsConfig(LogsConfigT&& value) {
421 SetLogsConfig(std::forward<LogsConfigT>(value));
422 return *this;
423 }
425
427
434 inline const Aws::Vector<ProjectFileSystemLocation>& GetFileSystemLocations() const { return m_fileSystemLocations; }
435 inline bool FileSystemLocationsHasBeenSet() const { return m_fileSystemLocationsHasBeenSet; }
436 template <typename FileSystemLocationsT = Aws::Vector<ProjectFileSystemLocation>>
437 void SetFileSystemLocations(FileSystemLocationsT&& value) {
438 m_fileSystemLocationsHasBeenSet = true;
439 m_fileSystemLocations = std::forward<FileSystemLocationsT>(value);
440 }
441 template <typename FileSystemLocationsT = Aws::Vector<ProjectFileSystemLocation>>
442 UpdateProjectRequest& WithFileSystemLocations(FileSystemLocationsT&& value) {
443 SetFileSystemLocations(std::forward<FileSystemLocationsT>(value));
444 return *this;
445 }
446 template <typename FileSystemLocationsT = ProjectFileSystemLocation>
447 UpdateProjectRequest& AddFileSystemLocations(FileSystemLocationsT&& value) {
448 m_fileSystemLocationsHasBeenSet = true;
449 m_fileSystemLocations.emplace_back(std::forward<FileSystemLocationsT>(value));
450 return *this;
451 }
453
455
456 inline const ProjectBuildBatchConfig& GetBuildBatchConfig() const { return m_buildBatchConfig; }
457 inline bool BuildBatchConfigHasBeenSet() const { return m_buildBatchConfigHasBeenSet; }
458 template <typename BuildBatchConfigT = ProjectBuildBatchConfig>
459 void SetBuildBatchConfig(BuildBatchConfigT&& value) {
460 m_buildBatchConfigHasBeenSet = true;
461 m_buildBatchConfig = std::forward<BuildBatchConfigT>(value);
462 }
463 template <typename BuildBatchConfigT = ProjectBuildBatchConfig>
464 UpdateProjectRequest& WithBuildBatchConfig(BuildBatchConfigT&& value) {
465 SetBuildBatchConfig(std::forward<BuildBatchConfigT>(value));
466 return *this;
467 }
469
471
478 inline int GetConcurrentBuildLimit() const { return m_concurrentBuildLimit; }
479 inline bool ConcurrentBuildLimitHasBeenSet() const { return m_concurrentBuildLimitHasBeenSet; }
480 inline void SetConcurrentBuildLimit(int value) {
481 m_concurrentBuildLimitHasBeenSet = true;
482 m_concurrentBuildLimit = value;
483 }
486 return *this;
487 }
489
491
497 inline int GetAutoRetryLimit() const { return m_autoRetryLimit; }
498 inline bool AutoRetryLimitHasBeenSet() const { return m_autoRetryLimitHasBeenSet; }
499 inline void SetAutoRetryLimit(int value) {
500 m_autoRetryLimitHasBeenSet = true;
501 m_autoRetryLimit = value;
502 }
504 SetAutoRetryLimit(value);
505 return *this;
506 }
508 private:
509 Aws::String m_name;
510
511 Aws::String m_description;
512
513 ProjectSource m_source;
514
515 Aws::Vector<ProjectSource> m_secondarySources;
516
517 Aws::String m_sourceVersion;
518
519 Aws::Vector<ProjectSourceVersion> m_secondarySourceVersions;
520
521 ProjectArtifacts m_artifacts;
522
523 Aws::Vector<ProjectArtifacts> m_secondaryArtifacts;
524
525 ProjectCache m_cache;
526
527 ProjectEnvironment m_environment;
528
529 Aws::String m_serviceRole;
530
531 int m_timeoutInMinutes{0};
532
533 int m_queuedTimeoutInMinutes{0};
534
535 Aws::String m_encryptionKey;
536
537 Aws::Vector<Tag> m_tags;
538
539 VpcConfig m_vpcConfig;
540
541 bool m_badgeEnabled{false};
542
543 LogsConfig m_logsConfig;
544
545 Aws::Vector<ProjectFileSystemLocation> m_fileSystemLocations;
546
547 ProjectBuildBatchConfig m_buildBatchConfig;
548
549 int m_concurrentBuildLimit{0};
550
551 int m_autoRetryLimit{0};
552 bool m_nameHasBeenSet = false;
553 bool m_descriptionHasBeenSet = false;
554 bool m_sourceHasBeenSet = false;
555 bool m_secondarySourcesHasBeenSet = false;
556 bool m_sourceVersionHasBeenSet = false;
557 bool m_secondarySourceVersionsHasBeenSet = false;
558 bool m_artifactsHasBeenSet = false;
559 bool m_secondaryArtifactsHasBeenSet = false;
560 bool m_cacheHasBeenSet = false;
561 bool m_environmentHasBeenSet = false;
562 bool m_serviceRoleHasBeenSet = false;
563 bool m_timeoutInMinutesHasBeenSet = false;
564 bool m_queuedTimeoutInMinutesHasBeenSet = false;
565 bool m_encryptionKeyHasBeenSet = false;
566 bool m_tagsHasBeenSet = false;
567 bool m_vpcConfigHasBeenSet = false;
568 bool m_badgeEnabledHasBeenSet = false;
569 bool m_logsConfigHasBeenSet = false;
570 bool m_fileSystemLocationsHasBeenSet = false;
571 bool m_buildBatchConfigHasBeenSet = false;
572 bool m_concurrentBuildLimitHasBeenSet = false;
573 bool m_autoRetryLimitHasBeenSet = false;
574};
575
576} // namespace Model
577} // namespace CodeBuild
578} // namespace Aws
const Aws::Vector< ProjectSourceVersion > & GetSecondarySourceVersions() const
UpdateProjectRequest & WithEnvironment(EnvironmentT &&value)
const Aws::Vector< ProjectFileSystemLocation > & GetFileSystemLocations() const
UpdateProjectRequest & WithName(NameT &&value)
UpdateProjectRequest & WithTags(TagsT &&value)
const ProjectEnvironment & GetEnvironment() const
UpdateProjectRequest & AddTags(TagsT &&value)
void SetBuildBatchConfig(BuildBatchConfigT &&value)
UpdateProjectRequest & AddSecondarySourceVersions(SecondarySourceVersionsT &&value)
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateProjectRequest & AddFileSystemLocations(FileSystemLocationsT &&value)
UpdateProjectRequest & WithDescription(DescriptionT &&value)
const ProjectBuildBatchConfig & GetBuildBatchConfig() const
UpdateProjectRequest & WithSecondarySources(SecondarySourcesT &&value)
UpdateProjectRequest & WithCache(CacheT &&value)
virtual const char * GetServiceRequestName() const override
UpdateProjectRequest & WithSource(SourceT &&value)
const Aws::Vector< Tag > & GetTags() const
const Aws::Vector< ProjectSource > & GetSecondarySources() const
const ProjectArtifacts & GetArtifacts() const
UpdateProjectRequest & WithTimeoutInMinutes(int value)
void SetSecondarySourceVersions(SecondarySourceVersionsT &&value)
UpdateProjectRequest & WithConcurrentBuildLimit(int value)
UpdateProjectRequest & WithSecondarySourceVersions(SecondarySourceVersionsT &&value)
UpdateProjectRequest & WithLogsConfig(LogsConfigT &&value)
UpdateProjectRequest & AddSecondarySources(SecondarySourcesT &&value)
const Aws::Vector< ProjectArtifacts > & GetSecondaryArtifacts() const
void SetSecondaryArtifacts(SecondaryArtifactsT &&value)
UpdateProjectRequest & WithBuildBatchConfig(BuildBatchConfigT &&value)
UpdateProjectRequest & WithAutoRetryLimit(int value)
UpdateProjectRequest & AddSecondaryArtifacts(SecondaryArtifactsT &&value)
AWS_CODEBUILD_API Aws::String SerializePayload() const override
void SetSecondarySources(SecondarySourcesT &&value)
UpdateProjectRequest & WithQueuedTimeoutInMinutes(int value)
UpdateProjectRequest & WithServiceRole(ServiceRoleT &&value)
UpdateProjectRequest & WithBadgeEnabled(bool value)
UpdateProjectRequest & WithArtifacts(ArtifactsT &&value)
AWS_CODEBUILD_API UpdateProjectRequest()=default
UpdateProjectRequest & WithEncryptionKey(EncryptionKeyT &&value)
UpdateProjectRequest & WithVpcConfig(VpcConfigT &&value)
UpdateProjectRequest & WithFileSystemLocations(FileSystemLocationsT &&value)
void SetFileSystemLocations(FileSystemLocationsT &&value)
UpdateProjectRequest & WithSecondaryArtifacts(SecondaryArtifactsT &&value)
UpdateProjectRequest & WithSourceVersion(SourceVersionT &&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