AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SandboxSessionPhase.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/PhaseContext.h>
9#include <aws/codebuild/model/StatusType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.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
32 public:
33 AWS_CODEBUILD_API SandboxSessionPhase() = default;
34 AWS_CODEBUILD_API SandboxSessionPhase(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetPhaseType() const { return m_phaseType; }
43 inline bool PhaseTypeHasBeenSet() const { return m_phaseTypeHasBeenSet; }
44 template <typename PhaseTypeT = Aws::String>
45 void SetPhaseType(PhaseTypeT&& value) {
46 m_phaseTypeHasBeenSet = true;
47 m_phaseType = std::forward<PhaseTypeT>(value);
48 }
49 template <typename PhaseTypeT = Aws::String>
50 SandboxSessionPhase& WithPhaseType(PhaseTypeT&& value) {
51 SetPhaseType(std::forward<PhaseTypeT>(value));
52 return *this;
53 }
55
57
65 inline StatusType GetPhaseStatus() const { return m_phaseStatus; }
66 inline bool PhaseStatusHasBeenSet() const { return m_phaseStatusHasBeenSet; }
67 inline void SetPhaseStatus(StatusType value) {
68 m_phaseStatusHasBeenSet = true;
69 m_phaseStatus = value;
70 }
72 SetPhaseStatus(value);
73 return *this;
74 }
76
78
81 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
82 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
83 template <typename StartTimeT = Aws::Utils::DateTime>
84 void SetStartTime(StartTimeT&& value) {
85 m_startTimeHasBeenSet = true;
86 m_startTime = std::forward<StartTimeT>(value);
87 }
88 template <typename StartTimeT = Aws::Utils::DateTime>
89 SandboxSessionPhase& WithStartTime(StartTimeT&& value) {
90 SetStartTime(std::forward<StartTimeT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
100 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
101 template <typename EndTimeT = Aws::Utils::DateTime>
102 void SetEndTime(EndTimeT&& value) {
103 m_endTimeHasBeenSet = true;
104 m_endTime = std::forward<EndTimeT>(value);
105 }
106 template <typename EndTimeT = Aws::Utils::DateTime>
107 SandboxSessionPhase& WithEndTime(EndTimeT&& value) {
108 SetEndTime(std::forward<EndTimeT>(value));
109 return *this;
110 }
112
114
118 inline long long GetDurationInSeconds() const { return m_durationInSeconds; }
119 inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; }
120 inline void SetDurationInSeconds(long long value) {
121 m_durationInSecondsHasBeenSet = true;
122 m_durationInSeconds = value;
123 }
126 return *this;
127 }
129
131
134 inline const Aws::Vector<PhaseContext>& GetContexts() const { return m_contexts; }
135 inline bool ContextsHasBeenSet() const { return m_contextsHasBeenSet; }
136 template <typename ContextsT = Aws::Vector<PhaseContext>>
137 void SetContexts(ContextsT&& value) {
138 m_contextsHasBeenSet = true;
139 m_contexts = std::forward<ContextsT>(value);
140 }
141 template <typename ContextsT = Aws::Vector<PhaseContext>>
142 SandboxSessionPhase& WithContexts(ContextsT&& value) {
143 SetContexts(std::forward<ContextsT>(value));
144 return *this;
145 }
146 template <typename ContextsT = PhaseContext>
147 SandboxSessionPhase& AddContexts(ContextsT&& value) {
148 m_contextsHasBeenSet = true;
149 m_contexts.emplace_back(std::forward<ContextsT>(value));
150 return *this;
151 }
153 private:
154 Aws::String m_phaseType;
155
156 StatusType m_phaseStatus{StatusType::NOT_SET};
157
158 Aws::Utils::DateTime m_startTime{};
159
160 Aws::Utils::DateTime m_endTime{};
161
162 long long m_durationInSeconds{0};
163
164 Aws::Vector<PhaseContext> m_contexts;
165 bool m_phaseTypeHasBeenSet = false;
166 bool m_phaseStatusHasBeenSet = false;
167 bool m_startTimeHasBeenSet = false;
168 bool m_endTimeHasBeenSet = false;
169 bool m_durationInSecondsHasBeenSet = false;
170 bool m_contextsHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace CodeBuild
175} // namespace Aws
AWS_CODEBUILD_API SandboxSessionPhase()=default
SandboxSessionPhase & AddContexts(ContextsT &&value)
SandboxSessionPhase & WithEndTime(EndTimeT &&value)
const Aws::Utils::DateTime & GetEndTime() const
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
SandboxSessionPhase & WithPhaseType(PhaseTypeT &&value)
AWS_CODEBUILD_API SandboxSessionPhase(Aws::Utils::Json::JsonView jsonValue)
SandboxSessionPhase & WithStartTime(StartTimeT &&value)
AWS_CODEBUILD_API SandboxSessionPhase & operator=(Aws::Utils::Json::JsonView jsonValue)
SandboxSessionPhase & WithContexts(ContextsT &&value)
const Aws::Vector< PhaseContext > & GetContexts() const
const Aws::Utils::DateTime & GetStartTime() const
SandboxSessionPhase & WithPhaseStatus(StatusType value)
SandboxSessionPhase & WithDurationInSeconds(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue