7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/BuildBatchPhaseType.h>
9#include <aws/codebuild/model/StatusType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codebuild/model/PhaseContext.h>
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>
109 inline void SetDurationInSeconds(
long long value) { m_durationInSecondsHasBeenSet =
true; m_durationInSeconds = value; }
120 template<
typename ContextsT = Aws::Vector<PhaseContext>>
121 void SetContexts(ContextsT&& value) { m_contextsHasBeenSet =
true; m_contexts = std::forward<ContextsT>(value); }
122 template<
typename ContextsT = Aws::Vector<PhaseContext>>
124 template<
typename ContextsT = PhaseContext>
125 BuildBatchPhase&
AddContexts(ContextsT&& value) { m_contextsHasBeenSet =
true; m_contexts.emplace_back(std::forward<ContextsT>(value));
return *
this; }
130 bool m_phaseTypeHasBeenSet =
false;
133 bool m_phaseStatusHasBeenSet =
false;
136 bool m_startTimeHasBeenSet =
false;
139 bool m_endTimeHasBeenSet =
false;
141 long long m_durationInSeconds{0};
142 bool m_durationInSecondsHasBeenSet =
false;
145 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