AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SandboxSession.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/LogsLocation.h>
9#include <aws/codebuild/model/NetworkInterface.h>
10#include <aws/codebuild/model/SandboxSessionPhase.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeBuild {
25namespace Model {
26
33 public:
34 AWS_CODEBUILD_API SandboxSession() = default;
35 AWS_CODEBUILD_API SandboxSession(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 SandboxSession& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetStatus() const { return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 template <typename StatusT = Aws::String>
64 void SetStatus(StatusT&& value) {
65 m_statusHasBeenSet = true;
66 m_status = std::forward<StatusT>(value);
67 }
68 template <typename StatusT = Aws::String>
69 SandboxSession& WithStatus(StatusT&& value) {
70 SetStatus(std::forward<StatusT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
80 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
81 template <typename StartTimeT = Aws::Utils::DateTime>
82 void SetStartTime(StartTimeT&& value) {
83 m_startTimeHasBeenSet = true;
84 m_startTime = std::forward<StartTimeT>(value);
85 }
86 template <typename StartTimeT = Aws::Utils::DateTime>
87 SandboxSession& WithStartTime(StartTimeT&& value) {
88 SetStartTime(std::forward<StartTimeT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
98 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
99 template <typename EndTimeT = Aws::Utils::DateTime>
100 void SetEndTime(EndTimeT&& value) {
101 m_endTimeHasBeenSet = true;
102 m_endTime = std::forward<EndTimeT>(value);
103 }
104 template <typename EndTimeT = Aws::Utils::DateTime>
105 SandboxSession& WithEndTime(EndTimeT&& value) {
106 SetEndTime(std::forward<EndTimeT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetCurrentPhase() const { return m_currentPhase; }
116 inline bool CurrentPhaseHasBeenSet() const { return m_currentPhaseHasBeenSet; }
117 template <typename CurrentPhaseT = Aws::String>
118 void SetCurrentPhase(CurrentPhaseT&& value) {
119 m_currentPhaseHasBeenSet = true;
120 m_currentPhase = std::forward<CurrentPhaseT>(value);
121 }
122 template <typename CurrentPhaseT = Aws::String>
123 SandboxSession& WithCurrentPhase(CurrentPhaseT&& value) {
124 SetCurrentPhase(std::forward<CurrentPhaseT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Vector<SandboxSessionPhase>& GetPhases() const { return m_phases; }
134 inline bool PhasesHasBeenSet() const { return m_phasesHasBeenSet; }
135 template <typename PhasesT = Aws::Vector<SandboxSessionPhase>>
136 void SetPhases(PhasesT&& value) {
137 m_phasesHasBeenSet = true;
138 m_phases = std::forward<PhasesT>(value);
139 }
140 template <typename PhasesT = Aws::Vector<SandboxSessionPhase>>
141 SandboxSession& WithPhases(PhasesT&& value) {
142 SetPhases(std::forward<PhasesT>(value));
143 return *this;
144 }
145 template <typename PhasesT = SandboxSessionPhase>
146 SandboxSession& AddPhases(PhasesT&& value) {
147 m_phasesHasBeenSet = true;
148 m_phases.emplace_back(std::forward<PhasesT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetResolvedSourceVersion() const { return m_resolvedSourceVersion; }
158 inline bool ResolvedSourceVersionHasBeenSet() const { return m_resolvedSourceVersionHasBeenSet; }
159 template <typename ResolvedSourceVersionT = Aws::String>
160 void SetResolvedSourceVersion(ResolvedSourceVersionT&& value) {
161 m_resolvedSourceVersionHasBeenSet = true;
162 m_resolvedSourceVersion = std::forward<ResolvedSourceVersionT>(value);
163 }
164 template <typename ResolvedSourceVersionT = Aws::String>
165 SandboxSession& WithResolvedSourceVersion(ResolvedSourceVersionT&& value) {
166 SetResolvedSourceVersion(std::forward<ResolvedSourceVersionT>(value));
167 return *this;
168 }
170
172
173 inline const LogsLocation& GetLogs() const { return m_logs; }
174 inline bool LogsHasBeenSet() const { return m_logsHasBeenSet; }
175 template <typename LogsT = LogsLocation>
176 void SetLogs(LogsT&& value) {
177 m_logsHasBeenSet = true;
178 m_logs = std::forward<LogsT>(value);
179 }
180 template <typename LogsT = LogsLocation>
181 SandboxSession& WithLogs(LogsT&& value) {
182 SetLogs(std::forward<LogsT>(value));
183 return *this;
184 }
186
188
189 inline const NetworkInterface& GetNetworkInterface() const { return m_networkInterface; }
190 inline bool NetworkInterfaceHasBeenSet() const { return m_networkInterfaceHasBeenSet; }
191 template <typename NetworkInterfaceT = NetworkInterface>
192 void SetNetworkInterface(NetworkInterfaceT&& value) {
193 m_networkInterfaceHasBeenSet = true;
194 m_networkInterface = std::forward<NetworkInterfaceT>(value);
195 }
196 template <typename NetworkInterfaceT = NetworkInterface>
197 SandboxSession& WithNetworkInterface(NetworkInterfaceT&& value) {
198 SetNetworkInterface(std::forward<NetworkInterfaceT>(value));
199 return *this;
200 }
202 private:
203 Aws::String m_id;
204
205 Aws::String m_status;
206
207 Aws::Utils::DateTime m_startTime{};
208
209 Aws::Utils::DateTime m_endTime{};
210
211 Aws::String m_currentPhase;
212
214
215 Aws::String m_resolvedSourceVersion;
216
217 LogsLocation m_logs;
218
219 NetworkInterface m_networkInterface;
220 bool m_idHasBeenSet = false;
221 bool m_statusHasBeenSet = false;
222 bool m_startTimeHasBeenSet = false;
223 bool m_endTimeHasBeenSet = false;
224 bool m_currentPhaseHasBeenSet = false;
225 bool m_phasesHasBeenSet = false;
226 bool m_resolvedSourceVersionHasBeenSet = false;
227 bool m_logsHasBeenSet = false;
228 bool m_networkInterfaceHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace CodeBuild
233} // namespace Aws
const Aws::Utils::DateTime & GetStartTime() const
const Aws::String & GetId() const
SandboxSession & WithPhases(PhasesT &&value)
SandboxSession & WithLogs(LogsT &&value)
AWS_CODEBUILD_API SandboxSession & operator=(Aws::Utils::Json::JsonView jsonValue)
SandboxSession & WithNetworkInterface(NetworkInterfaceT &&value)
void SetCurrentPhase(CurrentPhaseT &&value)
void SetNetworkInterface(NetworkInterfaceT &&value)
SandboxSession & WithStartTime(StartTimeT &&value)
const LogsLocation & GetLogs() const
const Aws::String & GetResolvedSourceVersion() const
SandboxSession & WithStatus(StatusT &&value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetStatus() const
const Aws::Vector< SandboxSessionPhase > & GetPhases() const
AWS_CODEBUILD_API SandboxSession()=default
SandboxSession & WithCurrentPhase(CurrentPhaseT &&value)
const Aws::String & GetCurrentPhase() const
SandboxSession & WithEndTime(EndTimeT &&value)
void SetResolvedSourceVersion(ResolvedSourceVersionT &&value)
const NetworkInterface & GetNetworkInterface() const
AWS_CODEBUILD_API SandboxSession(Aws::Utils::Json::JsonView jsonValue)
SandboxSession & WithId(IdT &&value)
SandboxSession & WithResolvedSourceVersion(ResolvedSourceVersionT &&value)
SandboxSession & AddPhases(PhasesT &&value)
void SetStartTime(StartTimeT &&value)
const Aws::Utils::DateTime & GetEndTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue