7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/BuildBatchPhaseType.h>
9#include <aws/codebuild/model/PhaseContext.h>
10#include <aws/codebuild/model/StatusType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
54 m_phaseTypeHasBeenSet =
true;
75 m_phaseStatusHasBeenSet =
true;
76 m_phaseStatus = value;
90 template <
typename StartTimeT = Aws::Utils::DateTime>
92 m_startTimeHasBeenSet =
true;
93 m_startTime = std::forward<StartTimeT>(value);
95 template <
typename StartTimeT = Aws::Utils::DateTime>
108 template <
typename EndTimeT = Aws::Utils::DateTime>
110 m_endTimeHasBeenSet =
true;
111 m_endTime = std::forward<EndTimeT>(value);
113 template <
typename EndTimeT = Aws::Utils::DateTime>
128 m_durationInSecondsHasBeenSet =
true;
129 m_durationInSeconds = value;
144 template <
typename ContextsT = Aws::Vector<PhaseContext>>
146 m_contextsHasBeenSet =
true;
147 m_contexts = std::forward<ContextsT>(value);
149 template <
typename ContextsT = Aws::Vector<PhaseContext>>
154 template <
typename ContextsT = PhaseContext>
156 m_contextsHasBeenSet =
true;
157 m_contexts.emplace_back(std::forward<ContextsT>(value));
170 long long m_durationInSeconds{0};
173 bool m_phaseTypeHasBeenSet =
false;
174 bool m_phaseStatusHasBeenSet =
false;
175 bool m_startTimeHasBeenSet =
false;
176 bool m_endTimeHasBeenSet =
false;
177 bool m_durationInSecondsHasBeenSet =
false;
178 bool m_contextsHasBeenSet =
false;
BuildBatchPhase & WithPhaseType(BuildBatchPhaseType value)
bool PhaseTypeHasBeenSet() const
AWS_CODEBUILD_API BuildBatchPhase & operator=(Aws::Utils::Json::JsonView jsonValue)
long long GetDurationInSeconds() const
const Aws::Vector< PhaseContext > & GetContexts() const
void SetContexts(ContextsT &&value)
void SetEndTime(EndTimeT &&value)
const Aws::Utils::DateTime & GetEndTime() const
void SetStartTime(StartTimeT &&value)
BuildBatchPhaseType GetPhaseType() const
bool PhaseStatusHasBeenSet() const
bool ContextsHasBeenSet() const
void SetDurationInSeconds(long long value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEBUILD_API BuildBatchPhase(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEBUILD_API BuildBatchPhase()=default
const Aws::Utils::DateTime & GetStartTime() const
BuildBatchPhase & WithPhaseStatus(StatusType value)
void SetPhaseType(BuildBatchPhaseType value)
BuildBatchPhase & AddContexts(ContextsT &&value)
BuildBatchPhase & WithStartTime(StartTimeT &&value)
StatusType GetPhaseStatus() const
void SetPhaseStatus(StatusType value)
BuildBatchPhase & WithContexts(ContextsT &&value)
BuildBatchPhase & WithEndTime(EndTimeT &&value)
BuildBatchPhase & WithDurationInSeconds(long long value)
bool StartTimeHasBeenSet() const
bool EndTimeHasBeenSet() const
bool DurationInSecondsHasBeenSet() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue