AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BuildBatch.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/codebuild/model/StatusType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codebuild/model/ProjectSource.h>
13#include <aws/codebuild/model/BuildArtifacts.h>
14#include <aws/codebuild/model/ProjectCache.h>
15#include <aws/codebuild/model/ProjectEnvironment.h>
16#include <aws/codebuild/model/LogsConfig.h>
17#include <aws/codebuild/model/VpcConfig.h>
18#include <aws/codebuild/model/ProjectBuildBatchConfig.h>
19#include <aws/codebuild/model/BuildBatchPhase.h>
20#include <aws/codebuild/model/ProjectSourceVersion.h>
21#include <aws/codebuild/model/ProjectFileSystemLocation.h>
22#include <aws/codebuild/model/BuildGroup.h>
23#include <utility>
24
25namespace Aws
26{
27namespace Utils
28{
29namespace Json
30{
31 class JsonValue;
32 class JsonView;
33} // namespace Json
34} // namespace Utils
35namespace CodeBuild
36{
37namespace Model
38{
39
46 {
47 public:
48 AWS_CODEBUILD_API BuildBatch();
49 AWS_CODEBUILD_API BuildBatch(Aws::Utils::Json::JsonView jsonValue);
50 AWS_CODEBUILD_API BuildBatch& operator=(Aws::Utils::Json::JsonView jsonValue);
51 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
52
53
55
58 inline const Aws::String& GetId() const{ return m_id; }
59 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
60 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
61 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
62 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
63 inline BuildBatch& WithId(const Aws::String& value) { SetId(value); return *this;}
64 inline BuildBatch& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
65 inline BuildBatch& WithId(const char* value) { SetId(value); return *this;}
67
69
72 inline const Aws::String& GetArn() const{ return m_arn; }
73 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
74 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
75 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
76 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
77 inline BuildBatch& WithArn(const Aws::String& value) { SetArn(value); return *this;}
78 inline BuildBatch& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
79 inline BuildBatch& WithArn(const char* value) { SetArn(value); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
87 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
88 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
89 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
90 inline BuildBatch& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
91 inline BuildBatch& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
99 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
100 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
101 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
102 inline BuildBatch& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
103 inline BuildBatch& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
105
107
110 inline const Aws::String& GetCurrentPhase() const{ return m_currentPhase; }
111 inline bool CurrentPhaseHasBeenSet() const { return m_currentPhaseHasBeenSet; }
112 inline void SetCurrentPhase(const Aws::String& value) { m_currentPhaseHasBeenSet = true; m_currentPhase = value; }
113 inline void SetCurrentPhase(Aws::String&& value) { m_currentPhaseHasBeenSet = true; m_currentPhase = std::move(value); }
114 inline void SetCurrentPhase(const char* value) { m_currentPhaseHasBeenSet = true; m_currentPhase.assign(value); }
115 inline BuildBatch& WithCurrentPhase(const Aws::String& value) { SetCurrentPhase(value); return *this;}
116 inline BuildBatch& WithCurrentPhase(Aws::String&& value) { SetCurrentPhase(std::move(value)); return *this;}
117 inline BuildBatch& WithCurrentPhase(const char* value) { SetCurrentPhase(value); return *this;}
119
121
124 inline const StatusType& GetBuildBatchStatus() const{ return m_buildBatchStatus; }
125 inline bool BuildBatchStatusHasBeenSet() const { return m_buildBatchStatusHasBeenSet; }
126 inline void SetBuildBatchStatus(const StatusType& value) { m_buildBatchStatusHasBeenSet = true; m_buildBatchStatus = value; }
127 inline void SetBuildBatchStatus(StatusType&& value) { m_buildBatchStatusHasBeenSet = true; m_buildBatchStatus = std::move(value); }
128 inline BuildBatch& WithBuildBatchStatus(const StatusType& value) { SetBuildBatchStatus(value); return *this;}
129 inline BuildBatch& WithBuildBatchStatus(StatusType&& value) { SetBuildBatchStatus(std::move(value)); return *this;}
131
133
136 inline const Aws::String& GetSourceVersion() const{ return m_sourceVersion; }
137 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
138 inline void SetSourceVersion(const Aws::String& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = value; }
139 inline void SetSourceVersion(Aws::String&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::move(value); }
140 inline void SetSourceVersion(const char* value) { m_sourceVersionHasBeenSet = true; m_sourceVersion.assign(value); }
141 inline BuildBatch& WithSourceVersion(const Aws::String& value) { SetSourceVersion(value); return *this;}
142 inline BuildBatch& WithSourceVersion(Aws::String&& value) { SetSourceVersion(std::move(value)); return *this;}
143 inline BuildBatch& WithSourceVersion(const char* value) { SetSourceVersion(value); return *this;}
145
147
154 inline const Aws::String& GetResolvedSourceVersion() const{ return m_resolvedSourceVersion; }
155 inline bool ResolvedSourceVersionHasBeenSet() const { return m_resolvedSourceVersionHasBeenSet; }
156 inline void SetResolvedSourceVersion(const Aws::String& value) { m_resolvedSourceVersionHasBeenSet = true; m_resolvedSourceVersion = value; }
157 inline void SetResolvedSourceVersion(Aws::String&& value) { m_resolvedSourceVersionHasBeenSet = true; m_resolvedSourceVersion = std::move(value); }
158 inline void SetResolvedSourceVersion(const char* value) { m_resolvedSourceVersionHasBeenSet = true; m_resolvedSourceVersion.assign(value); }
159 inline BuildBatch& WithResolvedSourceVersion(const Aws::String& value) { SetResolvedSourceVersion(value); return *this;}
160 inline BuildBatch& WithResolvedSourceVersion(Aws::String&& value) { SetResolvedSourceVersion(std::move(value)); return *this;}
161 inline BuildBatch& WithResolvedSourceVersion(const char* value) { SetResolvedSourceVersion(value); return *this;}
163
165
168 inline const Aws::String& GetProjectName() const{ return m_projectName; }
169 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
170 inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
171 inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
172 inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
173 inline BuildBatch& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
174 inline BuildBatch& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
175 inline BuildBatch& WithProjectName(const char* value) { SetProjectName(value); return *this;}
177
179
183 inline const Aws::Vector<BuildBatchPhase>& GetPhases() const{ return m_phases; }
184 inline bool PhasesHasBeenSet() const { return m_phasesHasBeenSet; }
185 inline void SetPhases(const Aws::Vector<BuildBatchPhase>& value) { m_phasesHasBeenSet = true; m_phases = value; }
186 inline void SetPhases(Aws::Vector<BuildBatchPhase>&& value) { m_phasesHasBeenSet = true; m_phases = std::move(value); }
187 inline BuildBatch& WithPhases(const Aws::Vector<BuildBatchPhase>& value) { SetPhases(value); return *this;}
188 inline BuildBatch& WithPhases(Aws::Vector<BuildBatchPhase>&& value) { SetPhases(std::move(value)); return *this;}
189 inline BuildBatch& AddPhases(const BuildBatchPhase& value) { m_phasesHasBeenSet = true; m_phases.push_back(value); return *this; }
190 inline BuildBatch& AddPhases(BuildBatchPhase&& value) { m_phasesHasBeenSet = true; m_phases.push_back(std::move(value)); return *this; }
192
194
195 inline const ProjectSource& GetSource() const{ return m_source; }
196 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
197 inline void SetSource(const ProjectSource& value) { m_sourceHasBeenSet = true; m_source = value; }
198 inline void SetSource(ProjectSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
199 inline BuildBatch& WithSource(const ProjectSource& value) { SetSource(value); return *this;}
200 inline BuildBatch& WithSource(ProjectSource&& value) { SetSource(std::move(value)); return *this;}
202
204
208 inline const Aws::Vector<ProjectSource>& GetSecondarySources() const{ return m_secondarySources; }
209 inline bool SecondarySourcesHasBeenSet() const { return m_secondarySourcesHasBeenSet; }
210 inline void SetSecondarySources(const Aws::Vector<ProjectSource>& value) { m_secondarySourcesHasBeenSet = true; m_secondarySources = value; }
211 inline void SetSecondarySources(Aws::Vector<ProjectSource>&& value) { m_secondarySourcesHasBeenSet = true; m_secondarySources = std::move(value); }
213 inline BuildBatch& WithSecondarySources(Aws::Vector<ProjectSource>&& value) { SetSecondarySources(std::move(value)); return *this;}
214 inline BuildBatch& AddSecondarySources(const ProjectSource& value) { m_secondarySourcesHasBeenSet = true; m_secondarySources.push_back(value); return *this; }
215 inline BuildBatch& AddSecondarySources(ProjectSource&& value) { m_secondarySourcesHasBeenSet = true; m_secondarySources.push_back(std::move(value)); return *this; }
217
219
235 inline const Aws::Vector<ProjectSourceVersion>& GetSecondarySourceVersions() const{ return m_secondarySourceVersions; }
236 inline bool SecondarySourceVersionsHasBeenSet() const { return m_secondarySourceVersionsHasBeenSet; }
237 inline void SetSecondarySourceVersions(const Aws::Vector<ProjectSourceVersion>& value) { m_secondarySourceVersionsHasBeenSet = true; m_secondarySourceVersions = value; }
238 inline void SetSecondarySourceVersions(Aws::Vector<ProjectSourceVersion>&& value) { m_secondarySourceVersionsHasBeenSet = true; m_secondarySourceVersions = std::move(value); }
241 inline BuildBatch& AddSecondarySourceVersions(const ProjectSourceVersion& value) { m_secondarySourceVersionsHasBeenSet = true; m_secondarySourceVersions.push_back(value); return *this; }
242 inline BuildBatch& AddSecondarySourceVersions(ProjectSourceVersion&& value) { m_secondarySourceVersionsHasBeenSet = true; m_secondarySourceVersions.push_back(std::move(value)); return *this; }
244
246
250 inline const BuildArtifacts& GetArtifacts() const{ return m_artifacts; }
251 inline bool ArtifactsHasBeenSet() const { return m_artifactsHasBeenSet; }
252 inline void SetArtifacts(const BuildArtifacts& value) { m_artifactsHasBeenSet = true; m_artifacts = value; }
253 inline void SetArtifacts(BuildArtifacts&& value) { m_artifactsHasBeenSet = true; m_artifacts = std::move(value); }
254 inline BuildBatch& WithArtifacts(const BuildArtifacts& value) { SetArtifacts(value); return *this;}
255 inline BuildBatch& WithArtifacts(BuildArtifacts&& value) { SetArtifacts(std::move(value)); return *this;}
257
259
263 inline const Aws::Vector<BuildArtifacts>& GetSecondaryArtifacts() const{ return m_secondaryArtifacts; }
264 inline bool SecondaryArtifactsHasBeenSet() const { return m_secondaryArtifactsHasBeenSet; }
265 inline void SetSecondaryArtifacts(const Aws::Vector<BuildArtifacts>& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts = value; }
266 inline void SetSecondaryArtifacts(Aws::Vector<BuildArtifacts>&& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts = std::move(value); }
268 inline BuildBatch& WithSecondaryArtifacts(Aws::Vector<BuildArtifacts>&& value) { SetSecondaryArtifacts(std::move(value)); return *this;}
269 inline BuildBatch& AddSecondaryArtifacts(const BuildArtifacts& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts.push_back(value); return *this; }
270 inline BuildBatch& AddSecondaryArtifacts(BuildArtifacts&& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts.push_back(std::move(value)); return *this; }
272
274
275 inline const ProjectCache& GetCache() const{ return m_cache; }
276 inline bool CacheHasBeenSet() const { return m_cacheHasBeenSet; }
277 inline void SetCache(const ProjectCache& value) { m_cacheHasBeenSet = true; m_cache = value; }
278 inline void SetCache(ProjectCache&& value) { m_cacheHasBeenSet = true; m_cache = std::move(value); }
279 inline BuildBatch& WithCache(const ProjectCache& value) { SetCache(value); return *this;}
280 inline BuildBatch& WithCache(ProjectCache&& value) { SetCache(std::move(value)); return *this;}
282
284
285 inline const ProjectEnvironment& GetEnvironment() const{ return m_environment; }
286 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
287 inline void SetEnvironment(const ProjectEnvironment& value) { m_environmentHasBeenSet = true; m_environment = value; }
288 inline void SetEnvironment(ProjectEnvironment&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
289 inline BuildBatch& WithEnvironment(const ProjectEnvironment& value) { SetEnvironment(value); return *this;}
290 inline BuildBatch& WithEnvironment(ProjectEnvironment&& value) { SetEnvironment(std::move(value)); return *this;}
292
294
297 inline const Aws::String& GetServiceRole() const{ return m_serviceRole; }
298 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
299 inline void SetServiceRole(const Aws::String& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
300 inline void SetServiceRole(Aws::String&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::move(value); }
301 inline void SetServiceRole(const char* value) { m_serviceRoleHasBeenSet = true; m_serviceRole.assign(value); }
302 inline BuildBatch& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;}
303 inline BuildBatch& WithServiceRole(Aws::String&& value) { SetServiceRole(std::move(value)); return *this;}
304 inline BuildBatch& WithServiceRole(const char* value) { SetServiceRole(value); return *this;}
306
308
309 inline const LogsConfig& GetLogConfig() const{ return m_logConfig; }
310 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
311 inline void SetLogConfig(const LogsConfig& value) { m_logConfigHasBeenSet = true; m_logConfig = value; }
312 inline void SetLogConfig(LogsConfig&& value) { m_logConfigHasBeenSet = true; m_logConfig = std::move(value); }
313 inline BuildBatch& WithLogConfig(const LogsConfig& value) { SetLogConfig(value); return *this;}
314 inline BuildBatch& WithLogConfig(LogsConfig&& value) { SetLogConfig(std::move(value)); return *this;}
316
318
322 inline int GetBuildTimeoutInMinutes() const{ return m_buildTimeoutInMinutes; }
323 inline bool BuildTimeoutInMinutesHasBeenSet() const { return m_buildTimeoutInMinutesHasBeenSet; }
324 inline void SetBuildTimeoutInMinutes(int value) { m_buildTimeoutInMinutesHasBeenSet = true; m_buildTimeoutInMinutes = value; }
325 inline BuildBatch& WithBuildTimeoutInMinutes(int value) { SetBuildTimeoutInMinutes(value); return *this;}
327
329
333 inline int GetQueuedTimeoutInMinutes() const{ return m_queuedTimeoutInMinutes; }
334 inline bool QueuedTimeoutInMinutesHasBeenSet() const { return m_queuedTimeoutInMinutesHasBeenSet; }
335 inline void SetQueuedTimeoutInMinutes(int value) { m_queuedTimeoutInMinutesHasBeenSet = true; m_queuedTimeoutInMinutes = value; }
336 inline BuildBatch& WithQueuedTimeoutInMinutes(int value) { SetQueuedTimeoutInMinutes(value); return *this;}
338
340
343 inline bool GetComplete() const{ return m_complete; }
344 inline bool CompleteHasBeenSet() const { return m_completeHasBeenSet; }
345 inline void SetComplete(bool value) { m_completeHasBeenSet = true; m_complete = value; }
346 inline BuildBatch& WithComplete(bool value) { SetComplete(value); return *this;}
348
350
358 inline const Aws::String& GetInitiator() const{ return m_initiator; }
359 inline bool InitiatorHasBeenSet() const { return m_initiatorHasBeenSet; }
360 inline void SetInitiator(const Aws::String& value) { m_initiatorHasBeenSet = true; m_initiator = value; }
361 inline void SetInitiator(Aws::String&& value) { m_initiatorHasBeenSet = true; m_initiator = std::move(value); }
362 inline void SetInitiator(const char* value) { m_initiatorHasBeenSet = true; m_initiator.assign(value); }
363 inline BuildBatch& WithInitiator(const Aws::String& value) { SetInitiator(value); return *this;}
364 inline BuildBatch& WithInitiator(Aws::String&& value) { SetInitiator(std::move(value)); return *this;}
365 inline BuildBatch& WithInitiator(const char* value) { SetInitiator(value); return *this;}
367
369
370 inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
371 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
372 inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
373 inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
374 inline BuildBatch& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
375 inline BuildBatch& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
377
379
387 inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; }
388 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
389 inline void SetEncryptionKey(const Aws::String& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; }
390 inline void SetEncryptionKey(Aws::String&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); }
391 inline void SetEncryptionKey(const char* value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey.assign(value); }
392 inline BuildBatch& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;}
393 inline BuildBatch& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;}
394 inline BuildBatch& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;}
396
398
405 inline long long GetBuildBatchNumber() const{ return m_buildBatchNumber; }
406 inline bool BuildBatchNumberHasBeenSet() const { return m_buildBatchNumberHasBeenSet; }
407 inline void SetBuildBatchNumber(long long value) { m_buildBatchNumberHasBeenSet = true; m_buildBatchNumber = value; }
408 inline BuildBatch& WithBuildBatchNumber(long long value) { SetBuildBatchNumber(value); return *this;}
410
412
419 inline const Aws::Vector<ProjectFileSystemLocation>& GetFileSystemLocations() const{ return m_fileSystemLocations; }
420 inline bool FileSystemLocationsHasBeenSet() const { return m_fileSystemLocationsHasBeenSet; }
421 inline void SetFileSystemLocations(const Aws::Vector<ProjectFileSystemLocation>& value) { m_fileSystemLocationsHasBeenSet = true; m_fileSystemLocations = value; }
422 inline void SetFileSystemLocations(Aws::Vector<ProjectFileSystemLocation>&& value) { m_fileSystemLocationsHasBeenSet = true; m_fileSystemLocations = std::move(value); }
425 inline BuildBatch& AddFileSystemLocations(const ProjectFileSystemLocation& value) { m_fileSystemLocationsHasBeenSet = true; m_fileSystemLocations.push_back(value); return *this; }
426 inline BuildBatch& AddFileSystemLocations(ProjectFileSystemLocation&& value) { m_fileSystemLocationsHasBeenSet = true; m_fileSystemLocations.push_back(std::move(value)); return *this; }
428
430
431 inline const ProjectBuildBatchConfig& GetBuildBatchConfig() const{ return m_buildBatchConfig; }
432 inline bool BuildBatchConfigHasBeenSet() const { return m_buildBatchConfigHasBeenSet; }
433 inline void SetBuildBatchConfig(const ProjectBuildBatchConfig& value) { m_buildBatchConfigHasBeenSet = true; m_buildBatchConfig = value; }
434 inline void SetBuildBatchConfig(ProjectBuildBatchConfig&& value) { m_buildBatchConfigHasBeenSet = true; m_buildBatchConfig = std::move(value); }
435 inline BuildBatch& WithBuildBatchConfig(const ProjectBuildBatchConfig& value) { SetBuildBatchConfig(value); return *this;}
436 inline BuildBatch& WithBuildBatchConfig(ProjectBuildBatchConfig&& value) { SetBuildBatchConfig(std::move(value)); return *this;}
438
440
444 inline const Aws::Vector<BuildGroup>& GetBuildGroups() const{ return m_buildGroups; }
445 inline bool BuildGroupsHasBeenSet() const { return m_buildGroupsHasBeenSet; }
446 inline void SetBuildGroups(const Aws::Vector<BuildGroup>& value) { m_buildGroupsHasBeenSet = true; m_buildGroups = value; }
447 inline void SetBuildGroups(Aws::Vector<BuildGroup>&& value) { m_buildGroupsHasBeenSet = true; m_buildGroups = std::move(value); }
448 inline BuildBatch& WithBuildGroups(const Aws::Vector<BuildGroup>& value) { SetBuildGroups(value); return *this;}
449 inline BuildBatch& WithBuildGroups(Aws::Vector<BuildGroup>&& value) { SetBuildGroups(std::move(value)); return *this;}
450 inline BuildBatch& AddBuildGroups(const BuildGroup& value) { m_buildGroupsHasBeenSet = true; m_buildGroups.push_back(value); return *this; }
451 inline BuildBatch& AddBuildGroups(BuildGroup&& value) { m_buildGroupsHasBeenSet = true; m_buildGroups.push_back(std::move(value)); return *this; }
453
455
462 inline bool GetDebugSessionEnabled() const{ return m_debugSessionEnabled; }
463 inline bool DebugSessionEnabledHasBeenSet() const { return m_debugSessionEnabledHasBeenSet; }
464 inline void SetDebugSessionEnabled(bool value) { m_debugSessionEnabledHasBeenSet = true; m_debugSessionEnabled = value; }
465 inline BuildBatch& WithDebugSessionEnabled(bool value) { SetDebugSessionEnabled(value); return *this;}
467 private:
468
469 Aws::String m_id;
470 bool m_idHasBeenSet = false;
471
472 Aws::String m_arn;
473 bool m_arnHasBeenSet = false;
474
475 Aws::Utils::DateTime m_startTime;
476 bool m_startTimeHasBeenSet = false;
477
478 Aws::Utils::DateTime m_endTime;
479 bool m_endTimeHasBeenSet = false;
480
481 Aws::String m_currentPhase;
482 bool m_currentPhaseHasBeenSet = false;
483
484 StatusType m_buildBatchStatus;
485 bool m_buildBatchStatusHasBeenSet = false;
486
487 Aws::String m_sourceVersion;
488 bool m_sourceVersionHasBeenSet = false;
489
490 Aws::String m_resolvedSourceVersion;
491 bool m_resolvedSourceVersionHasBeenSet = false;
492
493 Aws::String m_projectName;
494 bool m_projectNameHasBeenSet = false;
495
497 bool m_phasesHasBeenSet = false;
498
499 ProjectSource m_source;
500 bool m_sourceHasBeenSet = false;
501
502 Aws::Vector<ProjectSource> m_secondarySources;
503 bool m_secondarySourcesHasBeenSet = false;
504
505 Aws::Vector<ProjectSourceVersion> m_secondarySourceVersions;
506 bool m_secondarySourceVersionsHasBeenSet = false;
507
508 BuildArtifacts m_artifacts;
509 bool m_artifactsHasBeenSet = false;
510
511 Aws::Vector<BuildArtifacts> m_secondaryArtifacts;
512 bool m_secondaryArtifactsHasBeenSet = false;
513
514 ProjectCache m_cache;
515 bool m_cacheHasBeenSet = false;
516
517 ProjectEnvironment m_environment;
518 bool m_environmentHasBeenSet = false;
519
520 Aws::String m_serviceRole;
521 bool m_serviceRoleHasBeenSet = false;
522
523 LogsConfig m_logConfig;
524 bool m_logConfigHasBeenSet = false;
525
526 int m_buildTimeoutInMinutes;
527 bool m_buildTimeoutInMinutesHasBeenSet = false;
528
529 int m_queuedTimeoutInMinutes;
530 bool m_queuedTimeoutInMinutesHasBeenSet = false;
531
532 bool m_complete;
533 bool m_completeHasBeenSet = false;
534
535 Aws::String m_initiator;
536 bool m_initiatorHasBeenSet = false;
537
538 VpcConfig m_vpcConfig;
539 bool m_vpcConfigHasBeenSet = false;
540
541 Aws::String m_encryptionKey;
542 bool m_encryptionKeyHasBeenSet = false;
543
544 long long m_buildBatchNumber;
545 bool m_buildBatchNumberHasBeenSet = false;
546
547 Aws::Vector<ProjectFileSystemLocation> m_fileSystemLocations;
548 bool m_fileSystemLocationsHasBeenSet = false;
549
550 ProjectBuildBatchConfig m_buildBatchConfig;
551 bool m_buildBatchConfigHasBeenSet = false;
552
553 Aws::Vector<BuildGroup> m_buildGroups;
554 bool m_buildGroupsHasBeenSet = false;
555
556 bool m_debugSessionEnabled;
557 bool m_debugSessionEnabledHasBeenSet = false;
558 };
559
560} // namespace Model
561} // namespace CodeBuild
562} // namespace Aws
AWS_CODEBUILD_API BuildBatch()
BuildBatch & WithCurrentPhase(const Aws::String &value)
Definition BuildBatch.h:115
const Aws::Utils::DateTime & GetEndTime() const
Definition BuildBatch.h:98
BuildBatch & WithSource(ProjectSource &&value)
Definition BuildBatch.h:200
AWS_CODEBUILD_API BuildBatch & operator=(Aws::Utils::Json::JsonView jsonValue)
BuildBatch & WithStartTime(Aws::Utils::DateTime &&value)
Definition BuildBatch.h:91
void SetQueuedTimeoutInMinutes(int value)
Definition BuildBatch.h:335
BuildBatch & WithDebugSessionEnabled(bool value)
Definition BuildBatch.h:465
void SetSourceVersion(const char *value)
Definition BuildBatch.h:140
void SetVpcConfig(const VpcConfig &value)
Definition BuildBatch.h:372
const Aws::String & GetServiceRole() const
Definition BuildBatch.h:297
void SetArn(const Aws::String &value)
Definition BuildBatch.h:74
BuildBatch & AddSecondaryArtifacts(const BuildArtifacts &value)
Definition BuildBatch.h:269
BuildBatch & WithCurrentPhase(const char *value)
Definition BuildBatch.h:117
void SetEnvironment(ProjectEnvironment &&value)
Definition BuildBatch.h:288
BuildBatch & WithFileSystemLocations(const Aws::Vector< ProjectFileSystemLocation > &value)
Definition BuildBatch.h:423
const Aws::Vector< ProjectSourceVersion > & GetSecondarySourceVersions() const
Definition BuildBatch.h:235
const Aws::String & GetCurrentPhase() const
Definition BuildBatch.h:110
void SetArn(const char *value)
Definition BuildBatch.h:76
BuildBatch & WithBuildBatchNumber(long long value)
Definition BuildBatch.h:408
BuildBatch & AddPhases(const BuildBatchPhase &value)
Definition BuildBatch.h:189
BuildBatch & WithSource(const ProjectSource &value)
Definition BuildBatch.h:199
void SetPhases(Aws::Vector< BuildBatchPhase > &&value)
Definition BuildBatch.h:186
const ProjectBuildBatchConfig & GetBuildBatchConfig() const
Definition BuildBatch.h:431
void SetSecondarySources(const Aws::Vector< ProjectSource > &value)
Definition BuildBatch.h:210
BuildBatch & AddSecondarySourceVersions(const ProjectSourceVersion &value)
Definition BuildBatch.h:241
BuildBatch & WithBuildTimeoutInMinutes(int value)
Definition BuildBatch.h:325
BuildBatch & WithResolvedSourceVersion(const Aws::String &value)
Definition BuildBatch.h:159
void SetBuildBatchNumber(long long value)
Definition BuildBatch.h:407
const Aws::String & GetProjectName() const
Definition BuildBatch.h:168
BuildBatch & WithProjectName(const char *value)
Definition BuildBatch.h:175
BuildBatch & WithId(const Aws::String &value)
Definition BuildBatch.h:63
void SetEncryptionKey(Aws::String &&value)
Definition BuildBatch.h:390
const Aws::Vector< BuildBatchPhase > & GetPhases() const
Definition BuildBatch.h:183
BuildBatch & WithLogConfig(const LogsConfig &value)
Definition BuildBatch.h:313
void SetResolvedSourceVersion(const char *value)
Definition BuildBatch.h:158
BuildBatch & WithCache(const ProjectCache &value)
Definition BuildBatch.h:279
BuildBatch & AddBuildGroups(BuildGroup &&value)
Definition BuildBatch.h:451
BuildBatch & WithSecondarySources(const Aws::Vector< ProjectSource > &value)
Definition BuildBatch.h:212
BuildBatch & WithArn(const Aws::String &value)
Definition BuildBatch.h:77
BuildBatch & WithSourceVersion(const char *value)
Definition BuildBatch.h:143
void SetId(const Aws::String &value)
Definition BuildBatch.h:60
const Aws::Vector< ProjectFileSystemLocation > & GetFileSystemLocations() const
Definition BuildBatch.h:419
BuildBatch & WithEncryptionKey(const char *value)
Definition BuildBatch.h:394
void SetCache(ProjectCache &&value)
Definition BuildBatch.h:278
BuildBatch & WithArn(Aws::String &&value)
Definition BuildBatch.h:78
BuildBatch & AddBuildGroups(const BuildGroup &value)
Definition BuildBatch.h:450
void SetEndTime(Aws::Utils::DateTime &&value)
Definition BuildBatch.h:101
BuildBatch & WithQueuedTimeoutInMinutes(int value)
Definition BuildBatch.h:336
bool BuildTimeoutInMinutesHasBeenSet() const
Definition BuildBatch.h:323
BuildBatch & WithCache(ProjectCache &&value)
Definition BuildBatch.h:280
void SetFileSystemLocations(Aws::Vector< ProjectFileSystemLocation > &&value)
Definition BuildBatch.h:422
BuildBatch & AddSecondarySources(ProjectSource &&value)
Definition BuildBatch.h:215
BuildBatch & WithServiceRole(const char *value)
Definition BuildBatch.h:304
const Aws::Utils::DateTime & GetStartTime() const
Definition BuildBatch.h:86
void SetCurrentPhase(const char *value)
Definition BuildBatch.h:114
BuildBatch & WithStartTime(const Aws::Utils::DateTime &value)
Definition BuildBatch.h:90
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
BuildBatch & WithPhases(Aws::Vector< BuildBatchPhase > &&value)
Definition BuildBatch.h:188
void SetBuildBatchStatus(const StatusType &value)
Definition BuildBatch.h:126
void SetBuildBatchConfig(ProjectBuildBatchConfig &&value)
Definition BuildBatch.h:434
BuildBatch & WithSecondarySourceVersions(Aws::Vector< ProjectSourceVersion > &&value)
Definition BuildBatch.h:240
BuildBatch & WithInitiator(const Aws::String &value)
Definition BuildBatch.h:363
void SetId(Aws::String &&value)
Definition BuildBatch.h:61
const Aws::String & GetResolvedSourceVersion() const
Definition BuildBatch.h:154
const Aws::String & GetInitiator() const
Definition BuildBatch.h:358
BuildBatch & WithServiceRole(Aws::String &&value)
Definition BuildBatch.h:303
BuildBatch & WithBuildBatchConfig(const ProjectBuildBatchConfig &value)
Definition BuildBatch.h:435
BuildBatch & WithEnvironment(const ProjectEnvironment &value)
Definition BuildBatch.h:289
BuildBatch & WithBuildGroups(Aws::Vector< BuildGroup > &&value)
Definition BuildBatch.h:449
const Aws::Vector< BuildGroup > & GetBuildGroups() const
Definition BuildBatch.h:444
void SetLogConfig(const LogsConfig &value)
Definition BuildBatch.h:311
void SetSourceVersion(const Aws::String &value)
Definition BuildBatch.h:138
bool SecondarySourceVersionsHasBeenSet() const
Definition BuildBatch.h:236
void SetSecondaryArtifacts(const Aws::Vector< BuildArtifacts > &value)
Definition BuildBatch.h:265
BuildBatch & WithSourceVersion(Aws::String &&value)
Definition BuildBatch.h:142
void SetProjectName(Aws::String &&value)
Definition BuildBatch.h:171
void SetSourceVersion(Aws::String &&value)
Definition BuildBatch.h:139
BuildBatch & WithComplete(bool value)
Definition BuildBatch.h:346
BuildBatch & AddFileSystemLocations(const ProjectFileSystemLocation &value)
Definition BuildBatch.h:425
BuildBatch & WithResolvedSourceVersion(const char *value)
Definition BuildBatch.h:161
void SetBuildBatchConfig(const ProjectBuildBatchConfig &value)
Definition BuildBatch.h:433
const Aws::Vector< ProjectSource > & GetSecondarySources() const
Definition BuildBatch.h:208
BuildBatch & WithServiceRole(const Aws::String &value)
Definition BuildBatch.h:302
BuildBatch & WithEncryptionKey(const Aws::String &value)
Definition BuildBatch.h:392
void SetProjectName(const char *value)
Definition BuildBatch.h:172
void SetId(const char *value)
Definition BuildBatch.h:62
const ProjectEnvironment & GetEnvironment() const
Definition BuildBatch.h:285
long long GetBuildBatchNumber() const
Definition BuildBatch.h:405
BuildBatch & WithVpcConfig(const VpcConfig &value)
Definition BuildBatch.h:374
void SetSecondarySources(Aws::Vector< ProjectSource > &&value)
Definition BuildBatch.h:211
const Aws::String & GetSourceVersion() const
Definition BuildBatch.h:136
const Aws::Vector< BuildArtifacts > & GetSecondaryArtifacts() const
Definition BuildBatch.h:263
void SetStartTime(const Aws::Utils::DateTime &value)
Definition BuildBatch.h:88
BuildBatch & WithBuildBatchStatus(const StatusType &value)
Definition BuildBatch.h:128
BuildBatch & WithVpcConfig(VpcConfig &&value)
Definition BuildBatch.h:375
void SetPhases(const Aws::Vector< BuildBatchPhase > &value)
Definition BuildBatch.h:185
const BuildArtifacts & GetArtifacts() const
Definition BuildBatch.h:250
BuildBatch & WithPhases(const Aws::Vector< BuildBatchPhase > &value)
Definition BuildBatch.h:187
BuildBatch & WithArn(const char *value)
Definition BuildBatch.h:79
void SetSource(ProjectSource &&value)
Definition BuildBatch.h:198
BuildBatch & AddPhases(BuildBatchPhase &&value)
Definition BuildBatch.h:190
BuildBatch & WithEndTime(Aws::Utils::DateTime &&value)
Definition BuildBatch.h:103
const StatusType & GetBuildBatchStatus() const
Definition BuildBatch.h:124
BuildBatch & WithId(Aws::String &&value)
Definition BuildBatch.h:64
void SetProjectName(const Aws::String &value)
Definition BuildBatch.h:170
void SetBuildBatchStatus(StatusType &&value)
Definition BuildBatch.h:127
void SetArtifacts(const BuildArtifacts &value)
Definition BuildBatch.h:252
BuildBatch & WithBuildBatchStatus(StatusType &&value)
Definition BuildBatch.h:129
BuildBatch & WithProjectName(const Aws::String &value)
Definition BuildBatch.h:173
BuildBatch & WithSecondarySourceVersions(const Aws::Vector< ProjectSourceVersion > &value)
Definition BuildBatch.h:239
BuildBatch & AddSecondarySourceVersions(ProjectSourceVersion &&value)
Definition BuildBatch.h:242
BuildBatch & AddFileSystemLocations(ProjectFileSystemLocation &&value)
Definition BuildBatch.h:426
void SetSecondarySourceVersions(const Aws::Vector< ProjectSourceVersion > &value)
Definition BuildBatch.h:237
void SetSecondarySourceVersions(Aws::Vector< ProjectSourceVersion > &&value)
Definition BuildBatch.h:238
BuildBatch & WithEndTime(const Aws::Utils::DateTime &value)
Definition BuildBatch.h:102
BuildBatch & AddSecondarySources(const ProjectSource &value)
Definition BuildBatch.h:214
void SetLogConfig(LogsConfig &&value)
Definition BuildBatch.h:312
AWS_CODEBUILD_API BuildBatch(Aws::Utils::Json::JsonView jsonValue)
void SetEncryptionKey(const char *value)
Definition BuildBatch.h:391
const Aws::String & GetId() const
Definition BuildBatch.h:58
const ProjectCache & GetCache() const
Definition BuildBatch.h:275
const VpcConfig & GetVpcConfig() const
Definition BuildBatch.h:370
void SetServiceRole(const Aws::String &value)
Definition BuildBatch.h:299
void SetCache(const ProjectCache &value)
Definition BuildBatch.h:277
void SetInitiator(Aws::String &&value)
Definition BuildBatch.h:361
void SetFileSystemLocations(const Aws::Vector< ProjectFileSystemLocation > &value)
Definition BuildBatch.h:421
void SetServiceRole(Aws::String &&value)
Definition BuildBatch.h:300
void SetDebugSessionEnabled(bool value)
Definition BuildBatch.h:464
void SetInitiator(const char *value)
Definition BuildBatch.h:362
void SetEncryptionKey(const Aws::String &value)
Definition BuildBatch.h:389
const Aws::String & GetArn() const
Definition BuildBatch.h:72
void SetEndTime(const Aws::Utils::DateTime &value)
Definition BuildBatch.h:100
void SetSource(const ProjectSource &value)
Definition BuildBatch.h:197
BuildBatch & AddSecondaryArtifacts(BuildArtifacts &&value)
Definition BuildBatch.h:270
bool ResolvedSourceVersionHasBeenSet() const
Definition BuildBatch.h:155
BuildBatch & WithEncryptionKey(Aws::String &&value)
Definition BuildBatch.h:393
BuildBatch & WithEnvironment(ProjectEnvironment &&value)
Definition BuildBatch.h:290
BuildBatch & WithId(const char *value)
Definition BuildBatch.h:65
void SetArtifacts(BuildArtifacts &&value)
Definition BuildBatch.h:253
BuildBatch & WithLogConfig(LogsConfig &&value)
Definition BuildBatch.h:314
const LogsConfig & GetLogConfig() const
Definition BuildBatch.h:309
const ProjectSource & GetSource() const
Definition BuildBatch.h:195
bool QueuedTimeoutInMinutesHasBeenSet() const
Definition BuildBatch.h:334
BuildBatch & WithSourceVersion(const Aws::String &value)
Definition BuildBatch.h:141
void SetStartTime(Aws::Utils::DateTime &&value)
Definition BuildBatch.h:89
void SetServiceRole(const char *value)
Definition BuildBatch.h:301
BuildBatch & WithArtifacts(const BuildArtifacts &value)
Definition BuildBatch.h:254
void SetBuildTimeoutInMinutes(int value)
Definition BuildBatch.h:324
BuildBatch & WithBuildBatchConfig(ProjectBuildBatchConfig &&value)
Definition BuildBatch.h:436
BuildBatch & WithInitiator(Aws::String &&value)
Definition BuildBatch.h:364
BuildBatch & WithSecondarySources(Aws::Vector< ProjectSource > &&value)
Definition BuildBatch.h:213
void SetCurrentPhase(const Aws::String &value)
Definition BuildBatch.h:112
void SetBuildGroups(Aws::Vector< BuildGroup > &&value)
Definition BuildBatch.h:447
BuildBatch & WithSecondaryArtifacts(Aws::Vector< BuildArtifacts > &&value)
Definition BuildBatch.h:268
BuildBatch & WithCurrentPhase(Aws::String &&value)
Definition BuildBatch.h:116
BuildBatch & WithResolvedSourceVersion(Aws::String &&value)
Definition BuildBatch.h:160
BuildBatch & WithInitiator(const char *value)
Definition BuildBatch.h:365
void SetEnvironment(const ProjectEnvironment &value)
Definition BuildBatch.h:287
void SetSecondaryArtifacts(Aws::Vector< BuildArtifacts > &&value)
Definition BuildBatch.h:266
const Aws::String & GetEncryptionKey() const
Definition BuildBatch.h:387
BuildBatch & WithArtifacts(BuildArtifacts &&value)
Definition BuildBatch.h:255
void SetCurrentPhase(Aws::String &&value)
Definition BuildBatch.h:113
BuildBatch & WithProjectName(Aws::String &&value)
Definition BuildBatch.h:174
void SetBuildGroups(const Aws::Vector< BuildGroup > &value)
Definition BuildBatch.h:446
void SetArn(Aws::String &&value)
Definition BuildBatch.h:75
BuildBatch & WithBuildGroups(const Aws::Vector< BuildGroup > &value)
Definition BuildBatch.h:448
BuildBatch & WithFileSystemLocations(Aws::Vector< ProjectFileSystemLocation > &&value)
Definition BuildBatch.h:424
void SetResolvedSourceVersion(Aws::String &&value)
Definition BuildBatch.h:157
void SetVpcConfig(VpcConfig &&value)
Definition BuildBatch.h:373
void SetResolvedSourceVersion(const Aws::String &value)
Definition BuildBatch.h:156
void SetInitiator(const Aws::String &value)
Definition BuildBatch.h:360
BuildBatch & WithSecondaryArtifacts(const Aws::Vector< BuildArtifacts > &value)
Definition BuildBatch.h:267
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue