/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeBuild { namespace Model { /** *

Contains information about a stage for a batch build.

See * Also:

AWS * API Reference

*/ class BuildBatchPhase { public: AWS_CODEBUILD_API BuildBatchPhase(); AWS_CODEBUILD_API BuildBatchPhase(Aws::Utils::Json::JsonView jsonValue); AWS_CODEBUILD_API BuildBatchPhase& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the batch build phase. Valid values include:

*
COMBINE_ARTIFACTS

Build output artifacts are being combined and * uploaded to the output location.

DOWNLOAD_BATCHSPEC
*

The batch build specification is being downloaded.

FAILED
*

One or more of the builds failed.

IN_PROGRESS
*

The batch build is in progress.

STOPPED

The batch * build was stopped.

SUBMITTED

The btach build has been * submitted.

SUCCEEDED

The batch build succeeded.

*
*/ inline const BuildBatchPhaseType& GetPhaseType() const{ return m_phaseType; } /** *

The name of the batch build phase. Valid values include:

*
COMBINE_ARTIFACTS

Build output artifacts are being combined and * uploaded to the output location.

DOWNLOAD_BATCHSPEC
*

The batch build specification is being downloaded.

FAILED
*

One or more of the builds failed.

IN_PROGRESS
*

The batch build is in progress.

STOPPED

The batch * build was stopped.

SUBMITTED

The btach build has been * submitted.

SUCCEEDED

The batch build succeeded.

*
*/ inline bool PhaseTypeHasBeenSet() const { return m_phaseTypeHasBeenSet; } /** *

The name of the batch build phase. Valid values include:

*
COMBINE_ARTIFACTS

Build output artifacts are being combined and * uploaded to the output location.

DOWNLOAD_BATCHSPEC
*

The batch build specification is being downloaded.

FAILED
*

One or more of the builds failed.

IN_PROGRESS
*

The batch build is in progress.

STOPPED

The batch * build was stopped.

SUBMITTED

The btach build has been * submitted.

SUCCEEDED

The batch build succeeded.

*
*/ inline void SetPhaseType(const BuildBatchPhaseType& value) { m_phaseTypeHasBeenSet = true; m_phaseType = value; } /** *

The name of the batch build phase. Valid values include:

*
COMBINE_ARTIFACTS

Build output artifacts are being combined and * uploaded to the output location.

DOWNLOAD_BATCHSPEC
*

The batch build specification is being downloaded.

FAILED
*

One or more of the builds failed.

IN_PROGRESS
*

The batch build is in progress.

STOPPED

The batch * build was stopped.

SUBMITTED

The btach build has been * submitted.

SUCCEEDED

The batch build succeeded.

*
*/ inline void SetPhaseType(BuildBatchPhaseType&& value) { m_phaseTypeHasBeenSet = true; m_phaseType = std::move(value); } /** *

The name of the batch build phase. Valid values include:

*
COMBINE_ARTIFACTS

Build output artifacts are being combined and * uploaded to the output location.

DOWNLOAD_BATCHSPEC
*

The batch build specification is being downloaded.

FAILED
*

One or more of the builds failed.

IN_PROGRESS
*

The batch build is in progress.

STOPPED

The batch * build was stopped.

SUBMITTED

The btach build has been * submitted.

SUCCEEDED

The batch build succeeded.

*
*/ inline BuildBatchPhase& WithPhaseType(const BuildBatchPhaseType& value) { SetPhaseType(value); return *this;} /** *

The name of the batch build phase. Valid values include:

*
COMBINE_ARTIFACTS

Build output artifacts are being combined and * uploaded to the output location.

DOWNLOAD_BATCHSPEC
*

The batch build specification is being downloaded.

FAILED
*

One or more of the builds failed.

IN_PROGRESS
*

The batch build is in progress.

STOPPED

The batch * build was stopped.

SUBMITTED

The btach build has been * submitted.

SUCCEEDED

The batch build succeeded.

*
*/ inline BuildBatchPhase& WithPhaseType(BuildBatchPhaseType&& value) { SetPhaseType(std::move(value)); return *this;} /** *

The current status of the batch build phase. Valid values include:

*
FAILED

The build phase failed.

FAULT
*

The build phase faulted.

IN_PROGRESS

The build * phase is still in progress.

STOPPED

The build phase * stopped.

SUCCEEDED

The build phase succeeded.

*
TIMED_OUT

The build phase timed out.

*/ inline const StatusType& GetPhaseStatus() const{ return m_phaseStatus; } /** *

The current status of the batch build phase. Valid values include:

*
FAILED

The build phase failed.

FAULT
*

The build phase faulted.

IN_PROGRESS

The build * phase is still in progress.

STOPPED

The build phase * stopped.

SUCCEEDED

The build phase succeeded.

*
TIMED_OUT

The build phase timed out.

*/ inline bool PhaseStatusHasBeenSet() const { return m_phaseStatusHasBeenSet; } /** *

The current status of the batch build phase. Valid values include:

*
FAILED

The build phase failed.

FAULT
*

The build phase faulted.

IN_PROGRESS

The build * phase is still in progress.

STOPPED

The build phase * stopped.

SUCCEEDED

The build phase succeeded.

*
TIMED_OUT

The build phase timed out.

*/ inline void SetPhaseStatus(const StatusType& value) { m_phaseStatusHasBeenSet = true; m_phaseStatus = value; } /** *

The current status of the batch build phase. Valid values include:

*
FAILED

The build phase failed.

FAULT
*

The build phase faulted.

IN_PROGRESS

The build * phase is still in progress.

STOPPED

The build phase * stopped.

SUCCEEDED

The build phase succeeded.

*
TIMED_OUT

The build phase timed out.

*/ inline void SetPhaseStatus(StatusType&& value) { m_phaseStatusHasBeenSet = true; m_phaseStatus = std::move(value); } /** *

The current status of the batch build phase. Valid values include:

*
FAILED

The build phase failed.

FAULT
*

The build phase faulted.

IN_PROGRESS

The build * phase is still in progress.

STOPPED

The build phase * stopped.

SUCCEEDED

The build phase succeeded.

*
TIMED_OUT

The build phase timed out.

*/ inline BuildBatchPhase& WithPhaseStatus(const StatusType& value) { SetPhaseStatus(value); return *this;} /** *

The current status of the batch build phase. Valid values include:

*
FAILED

The build phase failed.

FAULT
*

The build phase faulted.

IN_PROGRESS

The build * phase is still in progress.

STOPPED

The build phase * stopped.

SUCCEEDED

The build phase succeeded.

*
TIMED_OUT

The build phase timed out.

*/ inline BuildBatchPhase& WithPhaseStatus(StatusType&& value) { SetPhaseStatus(std::move(value)); return *this;} /** *

When the batch build phase started, expressed in Unix time format.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

When the batch build phase started, expressed in Unix time format.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

When the batch build phase started, expressed in Unix time format.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

When the batch build phase started, expressed in Unix time format.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

When the batch build phase started, expressed in Unix time format.

*/ inline BuildBatchPhase& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

When the batch build phase started, expressed in Unix time format.

*/ inline BuildBatchPhase& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

When the batch build phase ended, expressed in Unix time format.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

When the batch build phase ended, expressed in Unix time format.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

When the batch build phase ended, expressed in Unix time format.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

When the batch build phase ended, expressed in Unix time format.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

When the batch build phase ended, expressed in Unix time format.

*/ inline BuildBatchPhase& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

When the batch build phase ended, expressed in Unix time format.

*/ inline BuildBatchPhase& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

How long, in seconds, between the starting and ending times of the batch * build's phase.

*/ inline long long GetDurationInSeconds() const{ return m_durationInSeconds; } /** *

How long, in seconds, between the starting and ending times of the batch * build's phase.

*/ inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; } /** *

How long, in seconds, between the starting and ending times of the batch * build's phase.

*/ inline void SetDurationInSeconds(long long value) { m_durationInSecondsHasBeenSet = true; m_durationInSeconds = value; } /** *

How long, in seconds, between the starting and ending times of the batch * build's phase.

*/ inline BuildBatchPhase& WithDurationInSeconds(long long value) { SetDurationInSeconds(value); return *this;} /** *

Additional information about the batch build phase. Especially to help * troubleshoot a failed batch build.

*/ inline const Aws::Vector& GetContexts() const{ return m_contexts; } /** *

Additional information about the batch build phase. Especially to help * troubleshoot a failed batch build.

*/ inline bool ContextsHasBeenSet() const { return m_contextsHasBeenSet; } /** *

Additional information about the batch build phase. Especially to help * troubleshoot a failed batch build.

*/ inline void SetContexts(const Aws::Vector& value) { m_contextsHasBeenSet = true; m_contexts = value; } /** *

Additional information about the batch build phase. Especially to help * troubleshoot a failed batch build.

*/ inline void SetContexts(Aws::Vector&& value) { m_contextsHasBeenSet = true; m_contexts = std::move(value); } /** *

Additional information about the batch build phase. Especially to help * troubleshoot a failed batch build.

*/ inline BuildBatchPhase& WithContexts(const Aws::Vector& value) { SetContexts(value); return *this;} /** *

Additional information about the batch build phase. Especially to help * troubleshoot a failed batch build.

*/ inline BuildBatchPhase& WithContexts(Aws::Vector&& value) { SetContexts(std::move(value)); return *this;} /** *

Additional information about the batch build phase. Especially to help * troubleshoot a failed batch build.

*/ inline BuildBatchPhase& AddContexts(const PhaseContext& value) { m_contextsHasBeenSet = true; m_contexts.push_back(value); return *this; } /** *

Additional information about the batch build phase. Especially to help * troubleshoot a failed batch build.

*/ inline BuildBatchPhase& AddContexts(PhaseContext&& value) { m_contextsHasBeenSet = true; m_contexts.push_back(std::move(value)); return *this; } private: BuildBatchPhaseType m_phaseType; bool m_phaseTypeHasBeenSet = false; StatusType m_phaseStatus; bool m_phaseStatusHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; long long m_durationInSeconds; bool m_durationInSecondsHasBeenSet = false; Aws::Vector m_contexts; bool m_contextsHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws