7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/AutoRetryConfig.h>
9#include <aws/codebuild/model/BuildArtifacts.h>
10#include <aws/codebuild/model/BuildPhase.h>
11#include <aws/codebuild/model/DebugSession.h>
12#include <aws/codebuild/model/ExportedEnvironmentVariable.h>
13#include <aws/codebuild/model/LogsLocation.h>
14#include <aws/codebuild/model/NetworkInterface.h>
15#include <aws/codebuild/model/ProjectCache.h>
16#include <aws/codebuild/model/ProjectEnvironment.h>
17#include <aws/codebuild/model/ProjectFileSystemLocation.h>
18#include <aws/codebuild/model/ProjectSource.h>
19#include <aws/codebuild/model/ProjectSourceVersion.h>
20#include <aws/codebuild/model/StatusType.h>
21#include <aws/codebuild/model/VpcConfig.h>
22#include <aws/core/utils/DateTime.h>
23#include <aws/core/utils/memory/stl/AWSString.h>
24#include <aws/core/utils/memory/stl/AWSVector.h>
45 AWS_CODEBUILD_API
Build() =
default;
56 template <
typename IdT = Aws::String>
58 m_idHasBeenSet =
true;
59 m_id = std::forward<IdT>(value);
61 template <
typename IdT = Aws::String>
63 SetId(std::forward<IdT>(value));
74 template <
typename ArnT = Aws::String>
76 m_arnHasBeenSet =
true;
77 m_arn = std::forward<ArnT>(value);
79 template <
typename ArnT = Aws::String>
81 SetArn(std::forward<ArnT>(value));
96 m_buildNumberHasBeenSet =
true;
97 m_buildNumber = value;
111 template <
typename StartTimeT = Aws::Utils::DateTime>
113 m_startTimeHasBeenSet =
true;
114 m_startTime = std::forward<StartTimeT>(value);
116 template <
typename StartTimeT = Aws::Utils::DateTime>
129 template <
typename EndTimeT = Aws::Utils::DateTime>
131 m_endTimeHasBeenSet =
true;
132 m_endTime = std::forward<EndTimeT>(value);
134 template <
typename EndTimeT = Aws::Utils::DateTime>
147 template <
typename CurrentPhaseT = Aws::String>
149 m_currentPhaseHasBeenSet =
true;
150 m_currentPhase = std::forward<CurrentPhaseT>(value);
152 template <
typename CurrentPhaseT = Aws::String>
171 m_buildStatusHasBeenSet =
true;
172 m_buildStatus = value;
191 template <
typename SourceVersionT = Aws::String>
193 m_sourceVersionHasBeenSet =
true;
194 m_sourceVersion = std::forward<SourceVersionT>(value);
196 template <
typename SourceVersionT = Aws::String>
213 template <
typename ResolvedSourceVersionT = Aws::String>
215 m_resolvedSourceVersionHasBeenSet =
true;
216 m_resolvedSourceVersion = std::forward<ResolvedSourceVersionT>(value);
218 template <
typename ResolvedSourceVersionT = Aws::String>
231 template <
typename ProjectNameT = Aws::String>
233 m_projectNameHasBeenSet =
true;
234 m_projectName = std::forward<ProjectNameT>(value);
236 template <
typename ProjectNameT = Aws::String>
250 template <
typename PhasesT = Aws::Vector<BuildPhase>>
252 m_phasesHasBeenSet =
true;
253 m_phases = std::forward<PhasesT>(value);
255 template <
typename PhasesT = Aws::Vector<BuildPhase>>
260 template <
typename PhasesT = BuildPhase>
262 m_phasesHasBeenSet =
true;
263 m_phases.emplace_back(std::forward<PhasesT>(value));
274 template <
typename SourceT = ProjectSource>
276 m_sourceHasBeenSet =
true;
277 m_source = std::forward<SourceT>(value);
279 template <
typename SourceT = ProjectSource>
292 template <
typename SecondarySourcesT = Aws::Vector<ProjectSource>>
294 m_secondarySourcesHasBeenSet =
true;
295 m_secondarySources = std::forward<SecondarySourcesT>(value);
297 template <
typename SecondarySourcesT = Aws::Vector<ProjectSource>>
302 template <
typename SecondarySourcesT = ProjectSource>
304 m_secondarySourcesHasBeenSet =
true;
305 m_secondarySources.emplace_back(std::forward<SecondarySourcesT>(value));
329 template <
typename SecondarySourceVersionsT = Aws::Vector<ProjectSourceVersion>>
331 m_secondarySourceVersionsHasBeenSet =
true;
332 m_secondarySourceVersions = std::forward<SecondarySourceVersionsT>(value);
334 template <
typename SecondarySourceVersionsT = Aws::Vector<ProjectSourceVersion>>
339 template <
typename SecondarySourceVersionsT = ProjectSourceVersion>
341 m_secondarySourceVersionsHasBeenSet =
true;
342 m_secondarySourceVersions.emplace_back(std::forward<SecondarySourceVersionsT>(value));
353 template <
typename ArtifactsT = BuildArtifacts>
355 m_artifactsHasBeenSet =
true;
356 m_artifacts = std::forward<ArtifactsT>(value);
358 template <
typename ArtifactsT = BuildArtifacts>
371 template <
typename SecondaryArtifactsT = Aws::Vector<BuildArtifacts>>
373 m_secondaryArtifactsHasBeenSet =
true;
374 m_secondaryArtifacts = std::forward<SecondaryArtifactsT>(value);
376 template <
typename SecondaryArtifactsT = Aws::Vector<BuildArtifacts>>
381 template <
typename SecondaryArtifactsT = BuildArtifacts>
383 m_secondaryArtifactsHasBeenSet =
true;
384 m_secondaryArtifacts.emplace_back(std::forward<SecondaryArtifactsT>(value));
395 template <
typename CacheT = ProjectCache>
397 m_cacheHasBeenSet =
true;
398 m_cache = std::forward<CacheT>(value);
400 template <
typename CacheT = ProjectCache>
402 SetCache(std::forward<CacheT>(value));
413 template <
typename EnvironmentT = ProjectEnvironment>
415 m_environmentHasBeenSet =
true;
416 m_environment = std::forward<EnvironmentT>(value);
418 template <
typename EnvironmentT = ProjectEnvironment>
431 template <
typename ServiceRoleT = Aws::String>
433 m_serviceRoleHasBeenSet =
true;
434 m_serviceRole = std::forward<ServiceRoleT>(value);
436 template <
typename ServiceRoleT = Aws::String>
449 template <
typename LogsT = LogsLocation>
451 m_logsHasBeenSet =
true;
452 m_logs = std::forward<LogsT>(value);
454 template <
typename LogsT = LogsLocation>
456 SetLogs(std::forward<LogsT>(value));
469 m_timeoutInMinutesHasBeenSet =
true;
470 m_timeoutInMinutes = value;
486 m_queuedTimeoutInMinutesHasBeenSet =
true;
487 m_queuedTimeoutInMinutes = value;
502 m_buildCompleteHasBeenSet =
true;
503 m_buildComplete = value;
522 template <
typename InitiatorT = Aws::String>
524 m_initiatorHasBeenSet =
true;
525 m_initiator = std::forward<InitiatorT>(value);
527 template <
typename InitiatorT = Aws::String>
543 template <
typename VpcConfigT = VpcConfig>
545 m_vpcConfigHasBeenSet =
true;
546 m_vpcConfig = std::forward<VpcConfigT>(value);
548 template <
typename VpcConfigT = VpcConfig>
561 template <
typename NetworkInterfaceT = NetworkInterface>
563 m_networkInterfaceHasBeenSet =
true;
564 m_networkInterface = std::forward<NetworkInterfaceT>(value);
566 template <
typename NetworkInterfaceT = NetworkInterface>
584 template <
typename EncryptionKeyT = Aws::String>
586 m_encryptionKeyHasBeenSet =
true;
587 m_encryptionKey = std::forward<EncryptionKeyT>(value);
589 template <
typename EncryptionKeyT = Aws::String>
607 template <
typename ExportedEnvironmentVariablesT = Aws::Vector<ExportedEnvironmentVariable>>
609 m_exportedEnvironmentVariablesHasBeenSet =
true;
610 m_exportedEnvironmentVariables = std::forward<ExportedEnvironmentVariablesT>(value);
612 template <
typename ExportedEnvironmentVariablesT = Aws::Vector<ExportedEnvironmentVariable>>
617 template <
typename ExportedEnvironmentVariablesT = ExportedEnvironmentVariable>
619 m_exportedEnvironmentVariablesHasBeenSet =
true;
620 m_exportedEnvironmentVariables.emplace_back(std::forward<ExportedEnvironmentVariablesT>(value));
631 template <
typename ReportArnsT = Aws::Vector<Aws::String>>
633 m_reportArnsHasBeenSet =
true;
634 m_reportArns = std::forward<ReportArnsT>(value);
636 template <
typename ReportArnsT = Aws::Vector<Aws::String>>
641 template <
typename ReportArnsT = Aws::String>
643 m_reportArnsHasBeenSet =
true;
644 m_reportArns.emplace_back(std::forward<ReportArnsT>(value));
659 template <
typename FileSystemLocationsT = Aws::Vector<ProjectFileSystemLocation>>
661 m_fileSystemLocationsHasBeenSet =
true;
662 m_fileSystemLocations = std::forward<FileSystemLocationsT>(value);
664 template <
typename FileSystemLocationsT = Aws::Vector<ProjectFileSystemLocation>>
669 template <
typename FileSystemLocationsT = ProjectFileSystemLocation>
671 m_fileSystemLocationsHasBeenSet =
true;
672 m_fileSystemLocations.emplace_back(std::forward<FileSystemLocationsT>(value));
683 template <
typename DebugSessionT = DebugSession>
685 m_debugSessionHasBeenSet =
true;
686 m_debugSession = std::forward<DebugSessionT>(value);
688 template <
typename DebugSessionT = DebugSession>
701 template <
typename BuildBatchArnT = Aws::String>
703 m_buildBatchArnHasBeenSet =
true;
704 m_buildBatchArn = std::forward<BuildBatchArnT>(value);
706 template <
typename BuildBatchArnT = Aws::String>
719 template <
typename AutoRetryConfigT = AutoRetryConfig>
721 m_autoRetryConfigHasBeenSet =
true;
722 m_autoRetryConfig = std::forward<AutoRetryConfigT>(value);
724 template <
typename AutoRetryConfigT = AutoRetryConfig>
735 long long m_buildNumber{0};
753 ProjectSource m_source;
759 BuildArtifacts m_artifacts;
763 ProjectCache m_cache;
765 ProjectEnvironment m_environment;
771 int m_timeoutInMinutes{0};
773 int m_queuedTimeoutInMinutes{0};
775 bool m_buildComplete{
false};
779 VpcConfig m_vpcConfig;
781 NetworkInterface m_networkInterface;
791 DebugSession m_debugSession;
795 AutoRetryConfig m_autoRetryConfig;
796 bool m_idHasBeenSet =
false;
797 bool m_arnHasBeenSet =
false;
798 bool m_buildNumberHasBeenSet =
false;
799 bool m_startTimeHasBeenSet =
false;
800 bool m_endTimeHasBeenSet =
false;
801 bool m_currentPhaseHasBeenSet =
false;
802 bool m_buildStatusHasBeenSet =
false;
803 bool m_sourceVersionHasBeenSet =
false;
804 bool m_resolvedSourceVersionHasBeenSet =
false;
805 bool m_projectNameHasBeenSet =
false;
806 bool m_phasesHasBeenSet =
false;
807 bool m_sourceHasBeenSet =
false;
808 bool m_secondarySourcesHasBeenSet =
false;
809 bool m_secondarySourceVersionsHasBeenSet =
false;
810 bool m_artifactsHasBeenSet =
false;
811 bool m_secondaryArtifactsHasBeenSet =
false;
812 bool m_cacheHasBeenSet =
false;
813 bool m_environmentHasBeenSet =
false;
814 bool m_serviceRoleHasBeenSet =
false;
815 bool m_logsHasBeenSet =
false;
816 bool m_timeoutInMinutesHasBeenSet =
false;
817 bool m_queuedTimeoutInMinutesHasBeenSet =
false;
818 bool m_buildCompleteHasBeenSet =
false;
819 bool m_initiatorHasBeenSet =
false;
820 bool m_vpcConfigHasBeenSet =
false;
821 bool m_networkInterfaceHasBeenSet =
false;
822 bool m_encryptionKeyHasBeenSet =
false;
823 bool m_exportedEnvironmentVariablesHasBeenSet =
false;
824 bool m_reportArnsHasBeenSet =
false;
825 bool m_fileSystemLocationsHasBeenSet =
false;
826 bool m_debugSessionHasBeenSet =
false;
827 bool m_buildBatchArnHasBeenSet =
false;
828 bool m_autoRetryConfigHasBeenSet =
false;
bool DebugSessionHasBeenSet() const
const Aws::String & GetServiceRole() const
const Aws::Utils::DateTime & GetStartTime() const
Build & AddExportedEnvironmentVariables(ExportedEnvironmentVariablesT &&value)
bool SecondaryArtifactsHasBeenSet() const
Build & WithInitiator(InitiatorT &&value)
int GetQueuedTimeoutInMinutes() const
const DebugSession & GetDebugSession() const
const Aws::String & GetId() const
void SetAutoRetryConfig(AutoRetryConfigT &&value)
Build & WithDebugSession(DebugSessionT &&value)
const Aws::String & GetInitiator() const
void SetResolvedSourceVersion(ResolvedSourceVersionT &&value)
bool GetBuildComplete() const
Build & WithBuildBatchArn(BuildBatchArnT &&value)
bool CacheHasBeenSet() const
Build & WithResolvedSourceVersion(ResolvedSourceVersionT &&value)
Build & WithId(IdT &&value)
Build & AddPhases(PhasesT &&value)
Build & WithQueuedTimeoutInMinutes(int value)
void SetBuildNumber(long long value)
bool BuildNumberHasBeenSet() const
const Aws::Vector< ProjectFileSystemLocation > & GetFileSystemLocations() const
Build & WithExportedEnvironmentVariables(ExportedEnvironmentVariablesT &&value)
int GetTimeoutInMinutes() const
void SetLogs(LogsT &&value)
Build & WithFileSystemLocations(FileSystemLocationsT &&value)
bool CurrentPhaseHasBeenSet() const
Build & WithTimeoutInMinutes(int value)
void SetEndTime(EndTimeT &&value)
void SetTimeoutInMinutes(int value)
const Aws::String & GetProjectName() const
void SetBuildBatchArn(BuildBatchArnT &&value)
void SetCurrentPhase(CurrentPhaseT &&value)
bool InitiatorHasBeenSet() const
AWS_CODEBUILD_API Build()=default
void SetCache(CacheT &&value)
const Aws::String & GetResolvedSourceVersion() const
const Aws::String & GetBuildBatchArn() const
bool ResolvedSourceVersionHasBeenSet() const
const ProjectCache & GetCache() const
bool ServiceRoleHasBeenSet() const
bool SecondarySourcesHasBeenSet() const
Build & WithEncryptionKey(EncryptionKeyT &&value)
void SetEnvironment(EnvironmentT &&value)
bool QueuedTimeoutInMinutesHasBeenSet() const
bool BuildStatusHasBeenSet() const
void SetNetworkInterface(NetworkInterfaceT &&value)
const NetworkInterface & GetNetworkInterface() const
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
const BuildArtifacts & GetArtifacts() const
const Aws::Utils::DateTime & GetEndTime() const
bool BuildBatchArnHasBeenSet() const
Build & WithBuildComplete(bool value)
void SetFileSystemLocations(FileSystemLocationsT &&value)
Build & WithCache(CacheT &&value)
const AutoRetryConfig & GetAutoRetryConfig() const
Build & WithReportArns(ReportArnsT &&value)
Build & AddReportArns(ReportArnsT &&value)
Build & WithSecondaryArtifacts(SecondaryArtifactsT &&value)
bool IdHasBeenSet() const
Build & AddSecondarySources(SecondarySourcesT &&value)
void SetEncryptionKey(EncryptionKeyT &&value)
const Aws::Vector< ExportedEnvironmentVariable > & GetExportedEnvironmentVariables() const
void SetServiceRole(ServiceRoleT &&value)
void SetSource(SourceT &&value)
void SetArtifacts(ArtifactsT &&value)
bool SecondarySourceVersionsHasBeenSet() const
Build & AddSecondaryArtifacts(SecondaryArtifactsT &&value)
const LogsLocation & GetLogs() const
bool LogsHasBeenSet() const
const ProjectEnvironment & GetEnvironment() const
void SetSecondarySources(SecondarySourcesT &&value)
const Aws::String & GetEncryptionKey() const
const Aws::Vector< ProjectSourceVersion > & GetSecondarySourceVersions() const
Build & WithArtifacts(ArtifactsT &&value)
Build & WithEnvironment(EnvironmentT &&value)
Build & WithSource(SourceT &&value)
bool ArnHasBeenSet() const
bool ArtifactsHasBeenSet() const
void SetStartTime(StartTimeT &&value)
const ProjectSource & GetSource() const
bool StartTimeHasBeenSet() const
Build & WithArn(ArnT &&value)
bool BuildCompleteHasBeenSet() const
const Aws::Vector< ProjectSource > & GetSecondarySources() const
StatusType GetBuildStatus() const
Build & AddSecondarySourceVersions(SecondarySourceVersionsT &&value)
const Aws::String & GetSourceVersion() const
void SetArn(ArnT &&value)
void SetReportArns(ReportArnsT &&value)
Build & WithNetworkInterface(NetworkInterfaceT &&value)
void SetSourceVersion(SourceVersionT &&value)
AWS_CODEBUILD_API Build(Aws::Utils::Json::JsonView jsonValue)
Build & WithSourceVersion(SourceVersionT &&value)
void SetBuildComplete(bool value)
Build & WithSecondarySourceVersions(SecondarySourceVersionsT &&value)
const Aws::String & GetCurrentPhase() const
bool EncryptionKeyHasBeenSet() const
Build & WithProjectName(ProjectNameT &&value)
bool NetworkInterfaceHasBeenSet() const
Build & WithAutoRetryConfig(AutoRetryConfigT &&value)
Build & WithEndTime(EndTimeT &&value)
bool AutoRetryConfigHasBeenSet() const
Build & AddFileSystemLocations(FileSystemLocationsT &&value)
void SetPhases(PhasesT &&value)
void SetSecondarySourceVersions(SecondarySourceVersionsT &&value)
Build & WithSecondarySources(SecondarySourcesT &&value)
Build & WithBuildNumber(long long value)
bool EnvironmentHasBeenSet() const
Build & WithPhases(PhasesT &&value)
void SetQueuedTimeoutInMinutes(int value)
bool PhasesHasBeenSet() const
bool FileSystemLocationsHasBeenSet() const
bool VpcConfigHasBeenSet() const
const Aws::Vector< BuildPhase > & GetPhases() const
Build & WithBuildStatus(StatusType value)
bool SourceHasBeenSet() const
bool SourceVersionHasBeenSet() const
bool TimeoutInMinutesHasBeenSet() const
bool EndTimeHasBeenSet() const
AWS_CODEBUILD_API Build & operator=(Aws::Utils::Json::JsonView jsonValue)
Build & WithServiceRole(ServiceRoleT &&value)
bool ExportedEnvironmentVariablesHasBeenSet() const
void SetExportedEnvironmentVariables(ExportedEnvironmentVariablesT &&value)
long long GetBuildNumber() const
bool ProjectNameHasBeenSet() const
const VpcConfig & GetVpcConfig() const
void SetBuildStatus(StatusType value)
Build & WithLogs(LogsT &&value)
Build & WithVpcConfig(VpcConfigT &&value)
void SetProjectName(ProjectNameT &&value)
const Aws::String & GetArn() const
void SetSecondaryArtifacts(SecondaryArtifactsT &&value)
void SetInitiator(InitiatorT &&value)
const Aws::Vector< BuildArtifacts > & GetSecondaryArtifacts() const
Build & WithStartTime(StartTimeT &&value)
Build & WithCurrentPhase(CurrentPhaseT &&value)
const Aws::Vector< Aws::String > & GetReportArns() const
void SetVpcConfig(VpcConfigT &&value)
void SetDebugSession(DebugSessionT &&value)
bool ReportArnsHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue