AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BuildPhase.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/BuildPhaseType.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
36 {
37 public:
38 AWS_CODEBUILD_API BuildPhase();
39 AWS_CODEBUILD_API BuildPhase(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEBUILD_API BuildPhase& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
61 inline const BuildPhaseType& GetPhaseType() const{ return m_phaseType; }
62 inline bool PhaseTypeHasBeenSet() const { return m_phaseTypeHasBeenSet; }
63 inline void SetPhaseType(const BuildPhaseType& value) { m_phaseTypeHasBeenSet = true; m_phaseType = value; }
64 inline void SetPhaseType(BuildPhaseType&& value) { m_phaseTypeHasBeenSet = true; m_phaseType = std::move(value); }
65 inline BuildPhase& WithPhaseType(const BuildPhaseType& value) { SetPhaseType(value); return *this;}
66 inline BuildPhase& WithPhaseType(BuildPhaseType&& value) { SetPhaseType(std::move(value)); return *this;}
68
70
78 inline const StatusType& GetPhaseStatus() const{ return m_phaseStatus; }
79 inline bool PhaseStatusHasBeenSet() const { return m_phaseStatusHasBeenSet; }
80 inline void SetPhaseStatus(const StatusType& value) { m_phaseStatusHasBeenSet = true; m_phaseStatus = value; }
81 inline void SetPhaseStatus(StatusType&& value) { m_phaseStatusHasBeenSet = true; m_phaseStatus = std::move(value); }
82 inline BuildPhase& WithPhaseStatus(const StatusType& value) { SetPhaseStatus(value); return *this;}
83 inline BuildPhase& WithPhaseStatus(StatusType&& value) { SetPhaseStatus(std::move(value)); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
91 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
92 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
93 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
94 inline BuildPhase& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
95 inline BuildPhase& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
103 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
104 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
105 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
106 inline BuildPhase& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
107 inline BuildPhase& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
109
111
115 inline long long GetDurationInSeconds() const{ return m_durationInSeconds; }
116 inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; }
117 inline void SetDurationInSeconds(long long value) { m_durationInSecondsHasBeenSet = true; m_durationInSeconds = value; }
118 inline BuildPhase& WithDurationInSeconds(long long value) { SetDurationInSeconds(value); return *this;}
120
122
126 inline const Aws::Vector<PhaseContext>& GetContexts() const{ return m_contexts; }
127 inline bool ContextsHasBeenSet() const { return m_contextsHasBeenSet; }
128 inline void SetContexts(const Aws::Vector<PhaseContext>& value) { m_contextsHasBeenSet = true; m_contexts = value; }
129 inline void SetContexts(Aws::Vector<PhaseContext>&& value) { m_contextsHasBeenSet = true; m_contexts = std::move(value); }
130 inline BuildPhase& WithContexts(const Aws::Vector<PhaseContext>& value) { SetContexts(value); return *this;}
131 inline BuildPhase& WithContexts(Aws::Vector<PhaseContext>&& value) { SetContexts(std::move(value)); return *this;}
132 inline BuildPhase& AddContexts(const PhaseContext& value) { m_contextsHasBeenSet = true; m_contexts.push_back(value); return *this; }
133 inline BuildPhase& AddContexts(PhaseContext&& value) { m_contextsHasBeenSet = true; m_contexts.push_back(std::move(value)); return *this; }
135 private:
136
137 BuildPhaseType m_phaseType;
138 bool m_phaseTypeHasBeenSet = false;
139
140 StatusType m_phaseStatus;
141 bool m_phaseStatusHasBeenSet = false;
142
143 Aws::Utils::DateTime m_startTime;
144 bool m_startTimeHasBeenSet = false;
145
146 Aws::Utils::DateTime m_endTime;
147 bool m_endTimeHasBeenSet = false;
148
149 long long m_durationInSeconds;
150 bool m_durationInSecondsHasBeenSet = false;
151
152 Aws::Vector<PhaseContext> m_contexts;
153 bool m_contextsHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace CodeBuild
158} // namespace Aws
void SetEndTime(Aws::Utils::DateTime &&value)
Definition BuildPhase.h:105
void SetStartTime(Aws::Utils::DateTime &&value)
Definition BuildPhase.h:93
void SetPhaseStatus(StatusType &&value)
Definition BuildPhase.h:81
const Aws::Vector< PhaseContext > & GetContexts() const
Definition BuildPhase.h:126
BuildPhase & WithEndTime(const Aws::Utils::DateTime &value)
Definition BuildPhase.h:106
const StatusType & GetPhaseStatus() const
Definition BuildPhase.h:78
void SetDurationInSeconds(long long value)
Definition BuildPhase.h:117
void SetPhaseStatus(const StatusType &value)
Definition BuildPhase.h:80
BuildPhase & WithPhaseType(const BuildPhaseType &value)
Definition BuildPhase.h:65
AWS_CODEBUILD_API BuildPhase(Aws::Utils::Json::JsonView jsonValue)
BuildPhase & WithContexts(const Aws::Vector< PhaseContext > &value)
Definition BuildPhase.h:130
void SetContexts(const Aws::Vector< PhaseContext > &value)
Definition BuildPhase.h:128
BuildPhase & WithDurationInSeconds(long long value)
Definition BuildPhase.h:118
AWS_CODEBUILD_API BuildPhase()
BuildPhase & WithStartTime(const Aws::Utils::DateTime &value)
Definition BuildPhase.h:94
BuildPhase & WithStartTime(Aws::Utils::DateTime &&value)
Definition BuildPhase.h:95
BuildPhase & WithPhaseType(BuildPhaseType &&value)
Definition BuildPhase.h:66
void SetStartTime(const Aws::Utils::DateTime &value)
Definition BuildPhase.h:92
void SetPhaseType(BuildPhaseType &&value)
Definition BuildPhase.h:64
BuildPhase & AddContexts(const PhaseContext &value)
Definition BuildPhase.h:132
void SetPhaseType(const BuildPhaseType &value)
Definition BuildPhase.h:63
const BuildPhaseType & GetPhaseType() const
Definition BuildPhase.h:61
AWS_CODEBUILD_API BuildPhase & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
long long GetDurationInSeconds() const
Definition BuildPhase.h:115
BuildPhase & WithPhaseStatus(const StatusType &value)
Definition BuildPhase.h:82
const Aws::Utils::DateTime & GetEndTime() const
Definition BuildPhase.h:102
void SetContexts(Aws::Vector< PhaseContext > &&value)
Definition BuildPhase.h:129
BuildPhase & WithPhaseStatus(StatusType &&value)
Definition BuildPhase.h:83
void SetEndTime(const Aws::Utils::DateTime &value)
Definition BuildPhase.h:104
BuildPhase & AddContexts(PhaseContext &&value)
Definition BuildPhase.h:133
BuildPhase & WithContexts(Aws::Vector< PhaseContext > &&value)
Definition BuildPhase.h:131
const Aws::Utils::DateTime & GetStartTime() const
Definition BuildPhase.h:90
BuildPhase & WithEndTime(Aws::Utils::DateTime &&value)
Definition BuildPhase.h:107
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue