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>
60 template<
typename IdT = Aws::String>
61 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
62 template<
typename IdT = Aws::String>
72 template<
typename ArnT = Aws::String>
73 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
74 template<
typename ArnT = Aws::String>
84 template<
typename StartTimeT = Aws::Utils::DateTime>
85 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet =
true; m_startTime = std::forward<StartTimeT>(value); }
86 template<
typename StartTimeT = Aws::Utils::DateTime>
96 template<
typename EndTimeT = Aws::Utils::DateTime>
97 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet =
true; m_endTime = std::forward<EndTimeT>(value); }
98 template<
typename EndTimeT = Aws::Utils::DateTime>
108 template<
typename CurrentPhaseT = Aws::String>
109 void SetCurrentPhase(CurrentPhaseT&& value) { m_currentPhaseHasBeenSet =
true; m_currentPhase = std::forward<CurrentPhaseT>(value); }
110 template<
typename CurrentPhaseT = Aws::String>
130 template<
typename SourceVersionT = Aws::String>
131 void SetSourceVersion(SourceVersionT&& value) { m_sourceVersionHasBeenSet =
true; m_sourceVersion = std::forward<SourceVersionT>(value); }
132 template<
typename SourceVersionT = Aws::String>
146 template<
typename ResolvedSourceVersionT = Aws::String>
147 void SetResolvedSourceVersion(ResolvedSourceVersionT&& value) { m_resolvedSourceVersionHasBeenSet =
true; m_resolvedSourceVersion = std::forward<ResolvedSourceVersionT>(value); }
148 template<
typename ResolvedSourceVersionT = Aws::String>
158 template<
typename ProjectNameT = Aws::String>
159 void SetProjectName(ProjectNameT&& value) { m_projectNameHasBeenSet =
true; m_projectName = std::forward<ProjectNameT>(value); }
160 template<
typename ProjectNameT = Aws::String>
171 template<
typename PhasesT = Aws::Vector<BuildBatchPhase>>
172 void SetPhases(PhasesT&& value) { m_phasesHasBeenSet =
true; m_phases = std::forward<PhasesT>(value); }
173 template<
typename PhasesT = Aws::Vector<BuildBatchPhase>>
175 template<
typename PhasesT = BuildBatchPhase>
176 BuildBatch&
AddPhases(PhasesT&& value) { m_phasesHasBeenSet =
true; m_phases.emplace_back(std::forward<PhasesT>(value));
return *
this; }
183 template<
typename SourceT = ProjectSource>
184 void SetSource(SourceT&& value) { m_sourceHasBeenSet =
true; m_source = std::forward<SourceT>(value); }
185 template<
typename SourceT = ProjectSource>
196 template<
typename SecondarySourcesT = Aws::Vector<ProjectSource>>
197 void SetSecondarySources(SecondarySourcesT&& value) { m_secondarySourcesHasBeenSet =
true; m_secondarySources = std::forward<SecondarySourcesT>(value); }
198 template<
typename SecondarySourcesT = Aws::Vector<ProjectSource>>
200 template<
typename SecondarySourcesT = ProjectSource>
201 BuildBatch&
AddSecondarySources(SecondarySourcesT&& value) { m_secondarySourcesHasBeenSet =
true; m_secondarySources.emplace_back(std::forward<SecondarySourcesT>(value));
return *
this; }
223 template<
typename SecondarySourceVersionsT = Aws::Vector<ProjectSourceVersion>>
224 void SetSecondarySourceVersions(SecondarySourceVersionsT&& value) { m_secondarySourceVersionsHasBeenSet =
true; m_secondarySourceVersions = std::forward<SecondarySourceVersionsT>(value); }
225 template<
typename SecondarySourceVersionsT = Aws::Vector<ProjectSourceVersion>>
227 template<
typename SecondarySourceVersionsT = ProjectSourceVersion>
228 BuildBatch&
AddSecondarySourceVersions(SecondarySourceVersionsT&& value) { m_secondarySourceVersionsHasBeenSet =
true; m_secondarySourceVersions.emplace_back(std::forward<SecondarySourceVersionsT>(value));
return *
this; }
238 template<
typename ArtifactsT = BuildArtifacts>
239 void SetArtifacts(ArtifactsT&& value) { m_artifactsHasBeenSet =
true; m_artifacts = std::forward<ArtifactsT>(value); }
240 template<
typename ArtifactsT = BuildArtifacts>
251 template<
typename SecondaryArtifactsT = Aws::Vector<BuildArtifacts>>
252 void SetSecondaryArtifacts(SecondaryArtifactsT&& value) { m_secondaryArtifactsHasBeenSet =
true; m_secondaryArtifacts = std::forward<SecondaryArtifactsT>(value); }
253 template<
typename SecondaryArtifactsT = Aws::Vector<BuildArtifacts>>
255 template<
typename SecondaryArtifactsT = BuildArtifacts>
256 BuildBatch&
AddSecondaryArtifacts(SecondaryArtifactsT&& value) { m_secondaryArtifactsHasBeenSet =
true; m_secondaryArtifacts.emplace_back(std::forward<SecondaryArtifactsT>(value));
return *
this; }
263 template<
typename CacheT = ProjectCache>
264 void SetCache(CacheT&& value) { m_cacheHasBeenSet =
true; m_cache = std::forward<CacheT>(value); }
265 template<
typename CacheT = ProjectCache>
273 template<
typename EnvironmentT = ProjectEnvironment>
274 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet =
true; m_environment = std::forward<EnvironmentT>(value); }
275 template<
typename EnvironmentT = ProjectEnvironment>
285 template<
typename ServiceRoleT = Aws::String>
286 void SetServiceRole(ServiceRoleT&& value) { m_serviceRoleHasBeenSet =
true; m_serviceRole = std::forward<ServiceRoleT>(value); }
287 template<
typename ServiceRoleT = Aws::String>
295 template<
typename LogConfigT = LogsConfig>
296 void SetLogConfig(LogConfigT&& value) { m_logConfigHasBeenSet =
true; m_logConfig = std::forward<LogConfigT>(value); }
297 template<
typename LogConfigT = LogsConfig>
329 inline void SetComplete(
bool value) { m_completeHasBeenSet =
true; m_complete = value; }
344 template<
typename InitiatorT = Aws::String>
345 void SetInitiator(InitiatorT&& value) { m_initiatorHasBeenSet =
true; m_initiator = std::forward<InitiatorT>(value); }
346 template<
typename InitiatorT = Aws::String>
354 template<
typename VpcConfigT = VpcConfig>
355 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet =
true; m_vpcConfig = std::forward<VpcConfigT>(value); }
356 template<
typename VpcConfigT = VpcConfig>
371 template<
typename EncryptionKeyT = Aws::String>
372 void SetEncryptionKey(EncryptionKeyT&& value) { m_encryptionKeyHasBeenSet =
true; m_encryptionKey = std::forward<EncryptionKeyT>(value); }
373 template<
typename EncryptionKeyT = Aws::String>
387 inline void SetBuildBatchNumber(
long long value) { m_buildBatchNumberHasBeenSet =
true; m_buildBatchNumber = value; }
401 template<
typename FileSystemLocationsT = Aws::Vector<ProjectFileSystemLocation>>
402 void SetFileSystemLocations(FileSystemLocationsT&& value) { m_fileSystemLocationsHasBeenSet =
true; m_fileSystemLocations = std::forward<FileSystemLocationsT>(value); }
403 template<
typename FileSystemLocationsT = Aws::Vector<ProjectFileSystemLocation>>
405 template<
typename FileSystemLocationsT = ProjectFileSystemLocation>
406 BuildBatch&
AddFileSystemLocations(FileSystemLocationsT&& value) { m_fileSystemLocationsHasBeenSet =
true; m_fileSystemLocations.emplace_back(std::forward<FileSystemLocationsT>(value));
return *
this; }
413 template<
typename BuildBatchConfigT = ProjectBuildBatchConfig>
414 void SetBuildBatchConfig(BuildBatchConfigT&& value) { m_buildBatchConfigHasBeenSet =
true; m_buildBatchConfig = std::forward<BuildBatchConfigT>(value); }
415 template<
typename BuildBatchConfigT = ProjectBuildBatchConfig>
426 template<
typename BuildGroupsT = Aws::Vector<BuildGroup>>
427 void SetBuildGroups(BuildGroupsT&& value) { m_buildGroupsHasBeenSet =
true; m_buildGroups = std::forward<BuildGroupsT>(value); }
428 template<
typename BuildGroupsT = Aws::Vector<BuildGroup>>
430 template<
typename BuildGroupsT = BuildGroup>
431 BuildBatch&
AddBuildGroups(BuildGroupsT&& value) { m_buildGroupsHasBeenSet =
true; m_buildGroups.emplace_back(std::forward<BuildGroupsT>(value));
return *
this; }
444 inline void SetDebugSessionEnabled(
bool value) { m_debugSessionEnabledHasBeenSet =
true; m_debugSessionEnabled = value; }
455 template<
typename ReportArnsT = Aws::Vector<Aws::String>>
456 void SetReportArns(ReportArnsT&& value) { m_reportArnsHasBeenSet =
true; m_reportArns = std::forward<ReportArnsT>(value); }
457 template<
typename ReportArnsT = Aws::Vector<Aws::String>>
459 template<
typename ReportArnsT = Aws::String>
460 BuildBatch&
AddReportArns(ReportArnsT&& value) { m_reportArnsHasBeenSet =
true; m_reportArns.emplace_back(std::forward<ReportArnsT>(value));
return *
this; }
465 bool m_idHasBeenSet =
false;
468 bool m_arnHasBeenSet =
false;
471 bool m_startTimeHasBeenSet =
false;
474 bool m_endTimeHasBeenSet =
false;
477 bool m_currentPhaseHasBeenSet =
false;
480 bool m_buildBatchStatusHasBeenSet =
false;
483 bool m_sourceVersionHasBeenSet =
false;
486 bool m_resolvedSourceVersionHasBeenSet =
false;
489 bool m_projectNameHasBeenSet =
false;
492 bool m_phasesHasBeenSet =
false;
494 ProjectSource m_source;
495 bool m_sourceHasBeenSet =
false;
498 bool m_secondarySourcesHasBeenSet =
false;
501 bool m_secondarySourceVersionsHasBeenSet =
false;
503 BuildArtifacts m_artifacts;
504 bool m_artifactsHasBeenSet =
false;
507 bool m_secondaryArtifactsHasBeenSet =
false;
509 ProjectCache m_cache;
510 bool m_cacheHasBeenSet =
false;
512 ProjectEnvironment m_environment;
513 bool m_environmentHasBeenSet =
false;
516 bool m_serviceRoleHasBeenSet =
false;
518 LogsConfig m_logConfig;
519 bool m_logConfigHasBeenSet =
false;
521 int m_buildTimeoutInMinutes{0};
522 bool m_buildTimeoutInMinutesHasBeenSet =
false;
524 int m_queuedTimeoutInMinutes{0};
525 bool m_queuedTimeoutInMinutesHasBeenSet =
false;
527 bool m_complete{
false};
528 bool m_completeHasBeenSet =
false;
531 bool m_initiatorHasBeenSet =
false;
533 VpcConfig m_vpcConfig;
534 bool m_vpcConfigHasBeenSet =
false;
537 bool m_encryptionKeyHasBeenSet =
false;
539 long long m_buildBatchNumber{0};
540 bool m_buildBatchNumberHasBeenSet =
false;
543 bool m_fileSystemLocationsHasBeenSet =
false;
545 ProjectBuildBatchConfig m_buildBatchConfig;
546 bool m_buildBatchConfigHasBeenSet =
false;
549 bool m_buildGroupsHasBeenSet =
false;
551 bool m_debugSessionEnabled{
false};
552 bool m_debugSessionEnabledHasBeenSet =
false;
555 bool m_reportArnsHasBeenSet =
false;
bool CurrentPhaseHasBeenSet() const
BuildBatch & AddSecondarySources(SecondarySourcesT &&value)
const Aws::Utils::DateTime & GetEndTime() const
BuildBatch & WithSourceVersion(SourceVersionT &&value)
void SetBuildBatchConfig(BuildBatchConfigT &&value)
AWS_CODEBUILD_API BuildBatch & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetQueuedTimeoutInMinutes(int value)
BuildBatch & WithFileSystemLocations(FileSystemLocationsT &&value)
void SetEnvironment(EnvironmentT &&value)
void SetLogConfig(LogConfigT &&value)
BuildBatch & WithDebugSessionEnabled(bool value)
BuildBatch & WithSource(SourceT &&value)
void SetSecondarySources(SecondarySourcesT &&value)
void SetProjectName(ProjectNameT &&value)
BuildBatch & WithResolvedSourceVersion(ResolvedSourceVersionT &&value)
bool ServiceRoleHasBeenSet() const
const Aws::String & GetServiceRole() const
void SetSecondaryArtifacts(SecondaryArtifactsT &&value)
void SetArtifacts(ArtifactsT &&value)
void SetInitiator(InitiatorT &&value)
const Aws::Vector< ProjectSourceVersion > & GetSecondarySourceVersions() const
const Aws::String & GetCurrentPhase() const
BuildBatch & AddReportArns(ReportArnsT &&value)
BuildBatch & WithBuildBatchNumber(long long value)
bool ProjectNameHasBeenSet() const
int GetQueuedTimeoutInMinutes() const
const ProjectBuildBatchConfig & GetBuildBatchConfig() const
bool VpcConfigHasBeenSet() const
BuildBatch & WithBuildTimeoutInMinutes(int value)
void SetCurrentPhase(CurrentPhaseT &&value)
void SetBuildBatchNumber(long long value)
bool StartTimeHasBeenSet() const
const Aws::String & GetProjectName() const
bool BuildBatchNumberHasBeenSet() const
const Aws::Vector< BuildBatchPhase > & GetPhases() const
bool IdHasBeenSet() const
void SetResolvedSourceVersion(ResolvedSourceVersionT &&value)
BuildBatch & AddSecondarySourceVersions(SecondarySourceVersionsT &&value)
bool FileSystemLocationsHasBeenSet() const
BuildBatch & WithBuildBatchStatus(StatusType value)
BuildBatch & WithProjectName(ProjectNameT &&value)
const Aws::Vector< ProjectFileSystemLocation > & GetFileSystemLocations() const
bool SourceVersionHasBeenSet() const
bool EncryptionKeyHasBeenSet() const
bool LogConfigHasBeenSet() const
BuildBatch & WithStartTime(StartTimeT &&value)
BuildBatch & WithBuildBatchConfig(BuildBatchConfigT &&value)
BuildBatch & WithQueuedTimeoutInMinutes(int value)
bool BuildTimeoutInMinutesHasBeenSet() const
BuildBatch & WithBuildGroups(BuildGroupsT &&value)
BuildBatch & WithCache(CacheT &&value)
const Aws::Utils::DateTime & GetStartTime() const
BuildBatch & WithSecondarySources(SecondarySourcesT &&value)
bool SourceHasBeenSet() const
BuildBatch & WithEncryptionKey(EncryptionKeyT &&value)
const Aws::Vector< Aws::String > & GetReportArns() const
BuildBatch & WithArtifacts(ArtifactsT &&value)
void SetFileSystemLocations(FileSystemLocationsT &&value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
BuildBatch & WithEndTime(EndTimeT &&value)
const Aws::String & GetResolvedSourceVersion() const
const Aws::String & GetInitiator() const
const Aws::Vector< BuildGroup > & GetBuildGroups() const
bool EndTimeHasBeenSet() const
BuildBatch & WithArn(ArnT &&value)
bool SecondarySourceVersionsHasBeenSet() const
StatusType GetBuildBatchStatus() const
bool BuildBatchStatusHasBeenSet() const
BuildBatch & WithComplete(bool value)
void SetBuildGroups(BuildGroupsT &&value)
const Aws::Vector< ProjectSource > & GetSecondarySources() const
BuildBatch & AddSecondaryArtifacts(SecondaryArtifactsT &&value)
BuildBatch & WithCurrentPhase(CurrentPhaseT &&value)
const ProjectEnvironment & GetEnvironment() const
void SetBuildBatchStatus(StatusType value)
long long GetBuildBatchNumber() const
const Aws::String & GetSourceVersion() const
const Aws::Vector< BuildArtifacts > & GetSecondaryArtifacts() const
const BuildArtifacts & GetArtifacts() const
BuildBatch & WithServiceRole(ServiceRoleT &&value)
void SetReportArns(ReportArnsT &&value)
BuildBatch & WithSecondarySourceVersions(SecondarySourceVersionsT &&value)
bool ReportArnsHasBeenSet() const
void SetComplete(bool value)
bool EnvironmentHasBeenSet() const
bool SecondarySourcesHasBeenSet() const
AWS_CODEBUILD_API BuildBatch()=default
bool InitiatorHasBeenSet() const
BuildBatch & WithSecondaryArtifacts(SecondaryArtifactsT &&value)
void SetSourceVersion(SourceVersionT &&value)
BuildBatch & AddBuildGroups(BuildGroupsT &&value)
AWS_CODEBUILD_API BuildBatch(Aws::Utils::Json::JsonView jsonValue)
bool DebugSessionEnabledHasBeenSet() const
const Aws::String & GetId() const
const ProjectCache & GetCache() const
const VpcConfig & GetVpcConfig() const
void SetVpcConfig(VpcConfigT &&value)
bool BuildGroupsHasBeenSet() const
void SetStartTime(StartTimeT &&value)
void SetCache(CacheT &&value)
void SetDebugSessionEnabled(bool value)
bool ArtifactsHasBeenSet() const
void SetArn(ArnT &&value)
const Aws::String & GetArn() const
bool ArnHasBeenSet() const
bool PhasesHasBeenSet() const
void SetSource(SourceT &&value)
bool ResolvedSourceVersionHasBeenSet() const
bool GetDebugSessionEnabled() const
BuildBatch & WithPhases(PhasesT &&value)
const LogsConfig & GetLogConfig() const
BuildBatch & WithInitiator(InitiatorT &&value)
const ProjectSource & GetSource() const
BuildBatch & WithVpcConfig(VpcConfigT &&value)
BuildBatch & WithId(IdT &&value)
bool QueuedTimeoutInMinutesHasBeenSet() const
BuildBatch & WithEnvironment(EnvironmentT &&value)
BuildBatch & WithReportArns(ReportArnsT &&value)
void SetSecondarySourceVersions(SecondarySourceVersionsT &&value)
void SetBuildTimeoutInMinutes(int value)
int GetBuildTimeoutInMinutes() const
BuildBatch & WithLogConfig(LogConfigT &&value)
bool BuildBatchConfigHasBeenSet() const
void SetPhases(PhasesT &&value)
bool CompleteHasBeenSet() const
bool SecondaryArtifactsHasBeenSet() const
void SetEncryptionKey(EncryptionKeyT &&value)
const Aws::String & GetEncryptionKey() const
void SetServiceRole(ServiceRoleT &&value)
void SetEndTime(EndTimeT &&value)
bool CacheHasBeenSet() const
BuildBatch & AddFileSystemLocations(FileSystemLocationsT &&value)
BuildBatch & AddPhases(PhasesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue