AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateProjectRequest.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 UpdateProjectRequest() = 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 "UpdateProject"; }
42
43 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
44
46
47
49
53 inline const Aws::String& GetName() const { return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 UpdateProjectRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template<typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
69 template<typename DescriptionT = Aws::String>
70 UpdateProjectRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
78 inline const ProjectSource& GetSource() const { return m_source; }
79 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
80 template<typename SourceT = ProjectSource>
81 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
82 template<typename SourceT = ProjectSource>
83 UpdateProjectRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
85
87
90 inline const Aws::Vector<ProjectSource>& GetSecondarySources() const { return m_secondarySources; }
91 inline bool SecondarySourcesHasBeenSet() const { return m_secondarySourcesHasBeenSet; }
92 template<typename SecondarySourcesT = Aws::Vector<ProjectSource>>
93 void SetSecondarySources(SecondarySourcesT&& value) { m_secondarySourcesHasBeenSet = true; m_secondarySources = std::forward<SecondarySourcesT>(value); }
94 template<typename SecondarySourcesT = Aws::Vector<ProjectSource>>
95 UpdateProjectRequest& WithSecondarySources(SecondarySourcesT&& value) { SetSecondarySources(std::forward<SecondarySourcesT>(value)); return *this;}
96 template<typename SecondarySourcesT = ProjectSource>
97 UpdateProjectRequest& AddSecondarySources(SecondarySourcesT&& value) { m_secondarySourcesHasBeenSet = true; m_secondarySources.emplace_back(std::forward<SecondarySourcesT>(value)); return *this; }
99
101
122 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
123 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
124 template<typename SourceVersionT = Aws::String>
125 void SetSourceVersion(SourceVersionT&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::forward<SourceVersionT>(value); }
126 template<typename SourceVersionT = Aws::String>
127 UpdateProjectRequest& WithSourceVersion(SourceVersionT&& value) { SetSourceVersion(std::forward<SourceVersionT>(value)); return *this;}
129
131
137 inline const Aws::Vector<ProjectSourceVersion>& GetSecondarySourceVersions() const { return m_secondarySourceVersions; }
138 inline bool SecondarySourceVersionsHasBeenSet() const { return m_secondarySourceVersionsHasBeenSet; }
139 template<typename SecondarySourceVersionsT = Aws::Vector<ProjectSourceVersion>>
140 void SetSecondarySourceVersions(SecondarySourceVersionsT&& value) { m_secondarySourceVersionsHasBeenSet = true; m_secondarySourceVersions = std::forward<SecondarySourceVersionsT>(value); }
141 template<typename SecondarySourceVersionsT = Aws::Vector<ProjectSourceVersion>>
142 UpdateProjectRequest& WithSecondarySourceVersions(SecondarySourceVersionsT&& value) { SetSecondarySourceVersions(std::forward<SecondarySourceVersionsT>(value)); return *this;}
143 template<typename SecondarySourceVersionsT = ProjectSourceVersion>
144 UpdateProjectRequest& AddSecondarySourceVersions(SecondarySourceVersionsT&& value) { m_secondarySourceVersionsHasBeenSet = true; m_secondarySourceVersions.emplace_back(std::forward<SecondarySourceVersionsT>(value)); return *this; }
146
148
152 inline const ProjectArtifacts& GetArtifacts() const { return m_artifacts; }
153 inline bool ArtifactsHasBeenSet() const { return m_artifactsHasBeenSet; }
154 template<typename ArtifactsT = ProjectArtifacts>
155 void SetArtifacts(ArtifactsT&& value) { m_artifactsHasBeenSet = true; m_artifacts = std::forward<ArtifactsT>(value); }
156 template<typename ArtifactsT = ProjectArtifacts>
157 UpdateProjectRequest& WithArtifacts(ArtifactsT&& value) { SetArtifacts(std::forward<ArtifactsT>(value)); return *this;}
159
161
164 inline const Aws::Vector<ProjectArtifacts>& GetSecondaryArtifacts() const { return m_secondaryArtifacts; }
165 inline bool SecondaryArtifactsHasBeenSet() const { return m_secondaryArtifactsHasBeenSet; }
166 template<typename SecondaryArtifactsT = Aws::Vector<ProjectArtifacts>>
167 void SetSecondaryArtifacts(SecondaryArtifactsT&& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts = std::forward<SecondaryArtifactsT>(value); }
168 template<typename SecondaryArtifactsT = Aws::Vector<ProjectArtifacts>>
169 UpdateProjectRequest& WithSecondaryArtifacts(SecondaryArtifactsT&& value) { SetSecondaryArtifacts(std::forward<SecondaryArtifactsT>(value)); return *this;}
170 template<typename SecondaryArtifactsT = ProjectArtifacts>
171 UpdateProjectRequest& AddSecondaryArtifacts(SecondaryArtifactsT&& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts.emplace_back(std::forward<SecondaryArtifactsT>(value)); return *this; }
173
175
179 inline const ProjectCache& GetCache() const { return m_cache; }
180 inline bool CacheHasBeenSet() const { return m_cacheHasBeenSet; }
181 template<typename CacheT = ProjectCache>
182 void SetCache(CacheT&& value) { m_cacheHasBeenSet = true; m_cache = std::forward<CacheT>(value); }
183 template<typename CacheT = ProjectCache>
184 UpdateProjectRequest& WithCache(CacheT&& value) { SetCache(std::forward<CacheT>(value)); return *this;}
186
188
192 inline const ProjectEnvironment& GetEnvironment() const { return m_environment; }
193 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
194 template<typename EnvironmentT = ProjectEnvironment>
195 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
196 template<typename EnvironmentT = ProjectEnvironment>
197 UpdateProjectRequest& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
199
201
206 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
207 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
208 template<typename ServiceRoleT = Aws::String>
209 void SetServiceRole(ServiceRoleT&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::forward<ServiceRoleT>(value); }
210 template<typename ServiceRoleT = Aws::String>
211 UpdateProjectRequest& WithServiceRole(ServiceRoleT&& value) { SetServiceRole(std::forward<ServiceRoleT>(value)); return *this;}
213
215
220 inline int GetTimeoutInMinutes() const { return m_timeoutInMinutes; }
221 inline bool TimeoutInMinutesHasBeenSet() const { return m_timeoutInMinutesHasBeenSet; }
222 inline void SetTimeoutInMinutes(int value) { m_timeoutInMinutesHasBeenSet = true; m_timeoutInMinutes = value; }
223 inline UpdateProjectRequest& WithTimeoutInMinutes(int value) { SetTimeoutInMinutes(value); return *this;}
225
227
231 inline int GetQueuedTimeoutInMinutes() const { return m_queuedTimeoutInMinutes; }
232 inline bool QueuedTimeoutInMinutesHasBeenSet() const { return m_queuedTimeoutInMinutesHasBeenSet; }
233 inline void SetQueuedTimeoutInMinutes(int value) { m_queuedTimeoutInMinutesHasBeenSet = true; m_queuedTimeoutInMinutes = value; }
236
238
246 inline const Aws::String& GetEncryptionKey() const { return m_encryptionKey; }
247 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
248 template<typename EncryptionKeyT = Aws::String>
249 void SetEncryptionKey(EncryptionKeyT&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::forward<EncryptionKeyT>(value); }
250 template<typename EncryptionKeyT = Aws::String>
251 UpdateProjectRequest& WithEncryptionKey(EncryptionKeyT&& value) { SetEncryptionKey(std::forward<EncryptionKeyT>(value)); return *this;}
253
255
260 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
261 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
262 template<typename TagsT = Aws::Vector<Tag>>
263 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
264 template<typename TagsT = Aws::Vector<Tag>>
265 UpdateProjectRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
266 template<typename TagsT = Tag>
267 UpdateProjectRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
269
271
274 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
275 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
276 template<typename VpcConfigT = VpcConfig>
277 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
278 template<typename VpcConfigT = VpcConfig>
279 UpdateProjectRequest& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
281
283
287 inline bool GetBadgeEnabled() const { return m_badgeEnabled; }
288 inline bool BadgeEnabledHasBeenSet() const { return m_badgeEnabledHasBeenSet; }
289 inline void SetBadgeEnabled(bool value) { m_badgeEnabledHasBeenSet = true; m_badgeEnabled = value; }
290 inline UpdateProjectRequest& WithBadgeEnabled(bool value) { SetBadgeEnabled(value); return *this;}
292
294
298 inline const LogsConfig& GetLogsConfig() const { return m_logsConfig; }
299 inline bool LogsConfigHasBeenSet() const { return m_logsConfigHasBeenSet; }
300 template<typename LogsConfigT = LogsConfig>
301 void SetLogsConfig(LogsConfigT&& value) { m_logsConfigHasBeenSet = true; m_logsConfig = std::forward<LogsConfigT>(value); }
302 template<typename LogsConfigT = LogsConfig>
303 UpdateProjectRequest& WithLogsConfig(LogsConfigT&& value) { SetLogsConfig(std::forward<LogsConfigT>(value)); return *this;}
305
307
314 inline const Aws::Vector<ProjectFileSystemLocation>& GetFileSystemLocations() const { return m_fileSystemLocations; }
315 inline bool FileSystemLocationsHasBeenSet() const { return m_fileSystemLocationsHasBeenSet; }
316 template<typename FileSystemLocationsT = Aws::Vector<ProjectFileSystemLocation>>
317 void SetFileSystemLocations(FileSystemLocationsT&& value) { m_fileSystemLocationsHasBeenSet = true; m_fileSystemLocations = std::forward<FileSystemLocationsT>(value); }
318 template<typename FileSystemLocationsT = Aws::Vector<ProjectFileSystemLocation>>
319 UpdateProjectRequest& WithFileSystemLocations(FileSystemLocationsT&& value) { SetFileSystemLocations(std::forward<FileSystemLocationsT>(value)); return *this;}
320 template<typename FileSystemLocationsT = ProjectFileSystemLocation>
321 UpdateProjectRequest& AddFileSystemLocations(FileSystemLocationsT&& value) { m_fileSystemLocationsHasBeenSet = true; m_fileSystemLocations.emplace_back(std::forward<FileSystemLocationsT>(value)); return *this; }
323
325
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 UpdateProjectRequest& WithBuildBatchConfig(BuildBatchConfigT&& value) { SetBuildBatchConfig(std::forward<BuildBatchConfigT>(value)); return *this;}
333
335
342 inline int GetConcurrentBuildLimit() const { return m_concurrentBuildLimit; }
343 inline bool ConcurrentBuildLimitHasBeenSet() const { return m_concurrentBuildLimitHasBeenSet; }
344 inline void SetConcurrentBuildLimit(int value) { m_concurrentBuildLimitHasBeenSet = true; m_concurrentBuildLimit = value; }
347
349
355 inline int GetAutoRetryLimit() const { return m_autoRetryLimit; }
356 inline bool AutoRetryLimitHasBeenSet() const { return m_autoRetryLimitHasBeenSet; }
357 inline void SetAutoRetryLimit(int value) { m_autoRetryLimitHasBeenSet = true; m_autoRetryLimit = value; }
358 inline UpdateProjectRequest& WithAutoRetryLimit(int value) { SetAutoRetryLimit(value); return *this;}
360 private:
361
362 Aws::String m_name;
363 bool m_nameHasBeenSet = false;
364
365 Aws::String m_description;
366 bool m_descriptionHasBeenSet = false;
367
368 ProjectSource m_source;
369 bool m_sourceHasBeenSet = false;
370
371 Aws::Vector<ProjectSource> m_secondarySources;
372 bool m_secondarySourcesHasBeenSet = false;
373
374 Aws::String m_sourceVersion;
375 bool m_sourceVersionHasBeenSet = false;
376
377 Aws::Vector<ProjectSourceVersion> m_secondarySourceVersions;
378 bool m_secondarySourceVersionsHasBeenSet = false;
379
380 ProjectArtifacts m_artifacts;
381 bool m_artifactsHasBeenSet = false;
382
383 Aws::Vector<ProjectArtifacts> m_secondaryArtifacts;
384 bool m_secondaryArtifactsHasBeenSet = false;
385
386 ProjectCache m_cache;
387 bool m_cacheHasBeenSet = false;
388
389 ProjectEnvironment m_environment;
390 bool m_environmentHasBeenSet = false;
391
392 Aws::String m_serviceRole;
393 bool m_serviceRoleHasBeenSet = false;
394
395 int m_timeoutInMinutes{0};
396 bool m_timeoutInMinutesHasBeenSet = false;
397
398 int m_queuedTimeoutInMinutes{0};
399 bool m_queuedTimeoutInMinutesHasBeenSet = false;
400
401 Aws::String m_encryptionKey;
402 bool m_encryptionKeyHasBeenSet = false;
403
404 Aws::Vector<Tag> m_tags;
405 bool m_tagsHasBeenSet = false;
406
407 VpcConfig m_vpcConfig;
408 bool m_vpcConfigHasBeenSet = false;
409
410 bool m_badgeEnabled{false};
411 bool m_badgeEnabledHasBeenSet = false;
412
413 LogsConfig m_logsConfig;
414 bool m_logsConfigHasBeenSet = false;
415
416 Aws::Vector<ProjectFileSystemLocation> m_fileSystemLocations;
417 bool m_fileSystemLocationsHasBeenSet = false;
418
419 ProjectBuildBatchConfig m_buildBatchConfig;
420 bool m_buildBatchConfigHasBeenSet = false;
421
422 int m_concurrentBuildLimit{0};
423 bool m_concurrentBuildLimitHasBeenSet = false;
424
425 int m_autoRetryLimit{0};
426 bool m_autoRetryLimitHasBeenSet = false;
427 };
428
429} // namespace Model
430} // namespace CodeBuild
431} // 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