AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BuildBatchPhase.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodeBuild
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_CODEBUILD_API BuildBatchPhase() = default;
40 AWS_CODEBUILD_API BuildBatchPhase(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
57 inline BuildBatchPhaseType GetPhaseType() const { return m_phaseType; }
58 inline bool PhaseTypeHasBeenSet() const { return m_phaseTypeHasBeenSet; }
59 inline void SetPhaseType(BuildBatchPhaseType value) { m_phaseTypeHasBeenSet = true; m_phaseType = value; }
60 inline BuildBatchPhase& WithPhaseType(BuildBatchPhaseType value) { SetPhaseType(value); return *this;}
62
64
72 inline StatusType GetPhaseStatus() const { return m_phaseStatus; }
73 inline bool PhaseStatusHasBeenSet() const { return m_phaseStatusHasBeenSet; }
74 inline void SetPhaseStatus(StatusType value) { m_phaseStatusHasBeenSet = true; m_phaseStatus = value; }
75 inline BuildBatchPhase& WithPhaseStatus(StatusType value) { SetPhaseStatus(value); return *this;}
77
79
82 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
83 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
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>
87 BuildBatchPhase& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
95 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
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>
99 BuildBatchPhase& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
101
103
107 inline long long GetDurationInSeconds() const { return m_durationInSeconds; }
108 inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; }
109 inline void SetDurationInSeconds(long long value) { m_durationInSecondsHasBeenSet = true; m_durationInSeconds = value; }
110 inline BuildBatchPhase& WithDurationInSeconds(long long value) { SetDurationInSeconds(value); return *this;}
112
114
118 inline const Aws::Vector<PhaseContext>& GetContexts() const { return m_contexts; }
119 inline bool ContextsHasBeenSet() const { return m_contextsHasBeenSet; }
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>>
123 BuildBatchPhase& WithContexts(ContextsT&& value) { SetContexts(std::forward<ContextsT>(value)); return *this;}
124 template<typename ContextsT = PhaseContext>
125 BuildBatchPhase& AddContexts(ContextsT&& value) { m_contextsHasBeenSet = true; m_contexts.emplace_back(std::forward<ContextsT>(value)); return *this; }
127 private:
128
130 bool m_phaseTypeHasBeenSet = false;
131
132 StatusType m_phaseStatus{StatusType::NOT_SET};
133 bool m_phaseStatusHasBeenSet = false;
134
135 Aws::Utils::DateTime m_startTime{};
136 bool m_startTimeHasBeenSet = false;
137
138 Aws::Utils::DateTime m_endTime{};
139 bool m_endTimeHasBeenSet = false;
140
141 long long m_durationInSeconds{0};
142 bool m_durationInSecondsHasBeenSet = false;
143
144 Aws::Vector<PhaseContext> m_contexts;
145 bool m_contextsHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace CodeBuild
150} // namespace Aws
BuildBatchPhase & WithPhaseType(BuildBatchPhaseType value)
AWS_CODEBUILD_API BuildBatchPhase & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< PhaseContext > & GetContexts() const
const Aws::Utils::DateTime & GetEndTime() const
void SetStartTime(StartTimeT &&value)
BuildBatchPhaseType GetPhaseType() const
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)
BuildBatchPhase & WithContexts(ContextsT &&value)
BuildBatchPhase & WithEndTime(EndTimeT &&value)
BuildBatchPhase & WithDurationInSeconds(long long value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue