AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/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>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeBuild {
24namespace Model {
25
33 public:
34 AWS_CODEBUILD_API BuildBatchPhase() = default;
35 AWS_CODEBUILD_API BuildBatchPhase(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
51 inline BuildBatchPhaseType GetPhaseType() const { return m_phaseType; }
52 inline bool PhaseTypeHasBeenSet() const { return m_phaseTypeHasBeenSet; }
53 inline void SetPhaseType(BuildBatchPhaseType value) {
54 m_phaseTypeHasBeenSet = true;
55 m_phaseType = value;
56 }
58 SetPhaseType(value);
59 return *this;
60 }
62
64
72 inline StatusType GetPhaseStatus() const { return m_phaseStatus; }
73 inline bool PhaseStatusHasBeenSet() const { return m_phaseStatusHasBeenSet; }
74 inline void SetPhaseStatus(StatusType value) {
75 m_phaseStatusHasBeenSet = true;
76 m_phaseStatus = value;
77 }
79 SetPhaseStatus(value);
80 return *this;
81 }
83
85
88 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
89 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
90 template <typename StartTimeT = Aws::Utils::DateTime>
91 void SetStartTime(StartTimeT&& value) {
92 m_startTimeHasBeenSet = true;
93 m_startTime = std::forward<StartTimeT>(value);
94 }
95 template <typename StartTimeT = Aws::Utils::DateTime>
96 BuildBatchPhase& WithStartTime(StartTimeT&& value) {
97 SetStartTime(std::forward<StartTimeT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
107 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
108 template <typename EndTimeT = Aws::Utils::DateTime>
109 void SetEndTime(EndTimeT&& value) {
110 m_endTimeHasBeenSet = true;
111 m_endTime = std::forward<EndTimeT>(value);
112 }
113 template <typename EndTimeT = Aws::Utils::DateTime>
114 BuildBatchPhase& WithEndTime(EndTimeT&& value) {
115 SetEndTime(std::forward<EndTimeT>(value));
116 return *this;
117 }
119
121
125 inline long long GetDurationInSeconds() const { return m_durationInSeconds; }
126 inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; }
127 inline void SetDurationInSeconds(long long value) {
128 m_durationInSecondsHasBeenSet = true;
129 m_durationInSeconds = value;
130 }
131 inline BuildBatchPhase& WithDurationInSeconds(long long value) {
133 return *this;
134 }
136
138
142 inline const Aws::Vector<PhaseContext>& GetContexts() const { return m_contexts; }
143 inline bool ContextsHasBeenSet() const { return m_contextsHasBeenSet; }
144 template <typename ContextsT = Aws::Vector<PhaseContext>>
145 void SetContexts(ContextsT&& value) {
146 m_contextsHasBeenSet = true;
147 m_contexts = std::forward<ContextsT>(value);
148 }
149 template <typename ContextsT = Aws::Vector<PhaseContext>>
150 BuildBatchPhase& WithContexts(ContextsT&& value) {
151 SetContexts(std::forward<ContextsT>(value));
152 return *this;
153 }
154 template <typename ContextsT = PhaseContext>
155 BuildBatchPhase& AddContexts(ContextsT&& value) {
156 m_contextsHasBeenSet = true;
157 m_contexts.emplace_back(std::forward<ContextsT>(value));
158 return *this;
159 }
161 private:
163
164 StatusType m_phaseStatus{StatusType::NOT_SET};
165
166 Aws::Utils::DateTime m_startTime{};
167
168 Aws::Utils::DateTime m_endTime{};
169
170 long long m_durationInSeconds{0};
171
172 Aws::Vector<PhaseContext> m_contexts;
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;
179};
180
181} // namespace Model
182} // namespace CodeBuild
183} // 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