AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const BuildBatchPhaseType& GetPhaseType() const{ return m_phaseType; }
58 inline bool PhaseTypeHasBeenSet() const { return m_phaseTypeHasBeenSet; }
59 inline void SetPhaseType(const BuildBatchPhaseType& value) { m_phaseTypeHasBeenSet = true; m_phaseType = value; }
60 inline void SetPhaseType(BuildBatchPhaseType&& value) { m_phaseTypeHasBeenSet = true; m_phaseType = std::move(value); }
61 inline BuildBatchPhase& WithPhaseType(const BuildBatchPhaseType& value) { SetPhaseType(value); return *this;}
62 inline BuildBatchPhase& WithPhaseType(BuildBatchPhaseType&& value) { SetPhaseType(std::move(value)); return *this;}
64
66
74 inline const StatusType& GetPhaseStatus() const{ return m_phaseStatus; }
75 inline bool PhaseStatusHasBeenSet() const { return m_phaseStatusHasBeenSet; }
76 inline void SetPhaseStatus(const StatusType& value) { m_phaseStatusHasBeenSet = true; m_phaseStatus = value; }
77 inline void SetPhaseStatus(StatusType&& value) { m_phaseStatusHasBeenSet = true; m_phaseStatus = std::move(value); }
78 inline BuildBatchPhase& WithPhaseStatus(const StatusType& value) { SetPhaseStatus(value); return *this;}
79 inline BuildBatchPhase& WithPhaseStatus(StatusType&& value) { SetPhaseStatus(std::move(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
87 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
88 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
89 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
90 inline BuildBatchPhase& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
91 inline BuildBatchPhase& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
99 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
100 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
101 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
102 inline BuildBatchPhase& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
103 inline BuildBatchPhase& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
105
107
111 inline long long GetDurationInSeconds() const{ return m_durationInSeconds; }
112 inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; }
113 inline void SetDurationInSeconds(long long value) { m_durationInSecondsHasBeenSet = true; m_durationInSeconds = value; }
114 inline BuildBatchPhase& WithDurationInSeconds(long long value) { SetDurationInSeconds(value); return *this;}
116
118
122 inline const Aws::Vector<PhaseContext>& GetContexts() const{ return m_contexts; }
123 inline bool ContextsHasBeenSet() const { return m_contextsHasBeenSet; }
124 inline void SetContexts(const Aws::Vector<PhaseContext>& value) { m_contextsHasBeenSet = true; m_contexts = value; }
125 inline void SetContexts(Aws::Vector<PhaseContext>&& value) { m_contextsHasBeenSet = true; m_contexts = std::move(value); }
126 inline BuildBatchPhase& WithContexts(const Aws::Vector<PhaseContext>& value) { SetContexts(value); return *this;}
127 inline BuildBatchPhase& WithContexts(Aws::Vector<PhaseContext>&& value) { SetContexts(std::move(value)); return *this;}
128 inline BuildBatchPhase& AddContexts(const PhaseContext& value) { m_contextsHasBeenSet = true; m_contexts.push_back(value); return *this; }
129 inline BuildBatchPhase& AddContexts(PhaseContext&& value) { m_contextsHasBeenSet = true; m_contexts.push_back(std::move(value)); return *this; }
131 private:
132
133 BuildBatchPhaseType m_phaseType;
134 bool m_phaseTypeHasBeenSet = false;
135
136 StatusType m_phaseStatus;
137 bool m_phaseStatusHasBeenSet = false;
138
139 Aws::Utils::DateTime m_startTime;
140 bool m_startTimeHasBeenSet = false;
141
142 Aws::Utils::DateTime m_endTime;
143 bool m_endTimeHasBeenSet = false;
144
145 long long m_durationInSeconds;
146 bool m_durationInSecondsHasBeenSet = false;
147
148 Aws::Vector<PhaseContext> m_contexts;
149 bool m_contextsHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace CodeBuild
154} // namespace Aws
AWS_CODEBUILD_API BuildBatchPhase & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< PhaseContext > & GetContexts() const
const Aws::Utils::DateTime & GetEndTime() const
void SetContexts(const Aws::Vector< PhaseContext > &value)
BuildBatchPhase & WithPhaseType(const BuildBatchPhaseType &value)
void SetEndTime(const Aws::Utils::DateTime &value)
BuildBatchPhase & WithEndTime(const Aws::Utils::DateTime &value)
void SetEndTime(Aws::Utils::DateTime &&value)
BuildBatchPhase & AddContexts(PhaseContext &&value)
void SetPhaseType(const BuildBatchPhaseType &value)
BuildBatchPhase & WithContexts(Aws::Vector< PhaseContext > &&value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
BuildBatchPhase & WithPhaseStatus(StatusType &&value)
AWS_CODEBUILD_API BuildBatchPhase(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartTime() const
const BuildBatchPhaseType & GetPhaseType() const
BuildBatchPhase & AddContexts(const PhaseContext &value)
void SetPhaseStatus(const StatusType &value)
BuildBatchPhase & WithPhaseType(BuildBatchPhaseType &&value)
BuildBatchPhase & WithStartTime(const Aws::Utils::DateTime &value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetContexts(Aws::Vector< PhaseContext > &&value)
void SetPhaseStatus(StatusType &&value)
BuildBatchPhase & WithDurationInSeconds(long long value)
BuildBatchPhase & WithEndTime(Aws::Utils::DateTime &&value)
BuildBatchPhase & WithStartTime(Aws::Utils::DateTime &&value)
void SetPhaseType(BuildBatchPhaseType &&value)
const StatusType & GetPhaseStatus() const
BuildBatchPhase & WithContexts(const Aws::Vector< PhaseContext > &value)
BuildBatchPhase & WithPhaseStatus(const StatusType &value)
void SetStartTime(Aws::Utils::DateTime &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue