AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetDevEnvironmentResult.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
8#include <aws/codecatalyst/model/DevEnvironmentRepositorySummary.h>
9#include <aws/codecatalyst/model/DevEnvironmentStatus.h>
10#include <aws/codecatalyst/model/Ide.h>
11#include <aws/codecatalyst/model/InstanceType.h>
12#include <aws/codecatalyst/model/PersistentStorage.h>
13#include <aws/core/http/HttpResponse.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace CodeCatalyst {
30namespace Model {
32 public:
33 AWS_CODECATALYST_API GetDevEnvironmentResult() = default;
36
38
41 inline const Aws::String& GetSpaceName() const { return m_spaceName; }
42 template <typename SpaceNameT = Aws::String>
43 void SetSpaceName(SpaceNameT&& value) {
44 m_spaceNameHasBeenSet = true;
45 m_spaceName = std::forward<SpaceNameT>(value);
46 }
47 template <typename SpaceNameT = Aws::String>
49 SetSpaceName(std::forward<SpaceNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetProjectName() const { return m_projectName; }
59 template <typename ProjectNameT = Aws::String>
60 void SetProjectName(ProjectNameT&& value) {
61 m_projectNameHasBeenSet = true;
62 m_projectName = std::forward<ProjectNameT>(value);
63 }
64 template <typename ProjectNameT = Aws::String>
66 SetProjectName(std::forward<ProjectNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetId() const { return m_id; }
76 template <typename IdT = Aws::String>
77 void SetId(IdT&& value) {
78 m_idHasBeenSet = true;
79 m_id = std::forward<IdT>(value);
80 }
81 template <typename IdT = Aws::String>
83 SetId(std::forward<IdT>(value));
84 return *this;
85 }
87
89
94 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
95 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
96 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
97 m_lastUpdatedTimeHasBeenSet = true;
98 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
99 }
100 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
101 GetDevEnvironmentResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
102 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::String& GetCreatorId() const { return m_creatorId; }
113 template <typename CreatorIdT = Aws::String>
114 void SetCreatorId(CreatorIdT&& value) {
115 m_creatorIdHasBeenSet = true;
116 m_creatorId = std::forward<CreatorIdT>(value);
117 }
118 template <typename CreatorIdT = Aws::String>
120 SetCreatorId(std::forward<CreatorIdT>(value));
121 return *this;
122 }
124
126
129 inline DevEnvironmentStatus GetStatus() const { return m_status; }
130 inline void SetStatus(DevEnvironmentStatus value) {
131 m_statusHasBeenSet = true;
132 m_status = value;
133 }
135 SetStatus(value);
136 return *this;
137 }
139
141
144 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
145 template <typename StatusReasonT = Aws::String>
146 void SetStatusReason(StatusReasonT&& value) {
147 m_statusReasonHasBeenSet = true;
148 m_statusReason = std::forward<StatusReasonT>(value);
149 }
150 template <typename StatusReasonT = Aws::String>
152 SetStatusReason(std::forward<StatusReasonT>(value));
153 return *this;
154 }
156
158
162 inline const Aws::Vector<DevEnvironmentRepositorySummary>& GetRepositories() const { return m_repositories; }
163 template <typename RepositoriesT = Aws::Vector<DevEnvironmentRepositorySummary>>
164 void SetRepositories(RepositoriesT&& value) {
165 m_repositoriesHasBeenSet = true;
166 m_repositories = std::forward<RepositoriesT>(value);
167 }
168 template <typename RepositoriesT = Aws::Vector<DevEnvironmentRepositorySummary>>
170 SetRepositories(std::forward<RepositoriesT>(value));
171 return *this;
172 }
173 template <typename RepositoriesT = DevEnvironmentRepositorySummary>
174 GetDevEnvironmentResult& AddRepositories(RepositoriesT&& value) {
175 m_repositoriesHasBeenSet = true;
176 m_repositories.emplace_back(std::forward<RepositoriesT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::String& GetAlias() const { return m_alias; }
186 template <typename AliasT = Aws::String>
187 void SetAlias(AliasT&& value) {
188 m_aliasHasBeenSet = true;
189 m_alias = std::forward<AliasT>(value);
190 }
191 template <typename AliasT = Aws::String>
193 SetAlias(std::forward<AliasT>(value));
194 return *this;
195 }
197
199
203 inline const Aws::Vector<Ide>& GetIdes() const { return m_ides; }
204 template <typename IdesT = Aws::Vector<Ide>>
205 void SetIdes(IdesT&& value) {
206 m_idesHasBeenSet = true;
207 m_ides = std::forward<IdesT>(value);
208 }
209 template <typename IdesT = Aws::Vector<Ide>>
211 SetIdes(std::forward<IdesT>(value));
212 return *this;
213 }
214 template <typename IdesT = Ide>
216 m_idesHasBeenSet = true;
217 m_ides.emplace_back(std::forward<IdesT>(value));
218 return *this;
219 }
221
223
226 inline InstanceType GetInstanceType() const { return m_instanceType; }
227 inline void SetInstanceType(InstanceType value) {
228 m_instanceTypeHasBeenSet = true;
229 m_instanceType = value;
230 }
232 SetInstanceType(value);
233 return *this;
234 }
236
238
242 inline int GetInactivityTimeoutMinutes() const { return m_inactivityTimeoutMinutes; }
243 inline void SetInactivityTimeoutMinutes(int value) {
244 m_inactivityTimeoutMinutesHasBeenSet = true;
245 m_inactivityTimeoutMinutes = value;
246 }
249 return *this;
250 }
252
254
258 inline const PersistentStorage& GetPersistentStorage() const { return m_persistentStorage; }
259 template <typename PersistentStorageT = PersistentStorage>
260 void SetPersistentStorage(PersistentStorageT&& value) {
261 m_persistentStorageHasBeenSet = true;
262 m_persistentStorage = std::forward<PersistentStorageT>(value);
263 }
264 template <typename PersistentStorageT = PersistentStorage>
265 GetDevEnvironmentResult& WithPersistentStorage(PersistentStorageT&& value) {
266 SetPersistentStorage(std::forward<PersistentStorageT>(value));
267 return *this;
268 }
270
272
276 inline const Aws::String& GetVpcConnectionName() const { return m_vpcConnectionName; }
277 template <typename VpcConnectionNameT = Aws::String>
278 void SetVpcConnectionName(VpcConnectionNameT&& value) {
279 m_vpcConnectionNameHasBeenSet = true;
280 m_vpcConnectionName = std::forward<VpcConnectionNameT>(value);
281 }
282 template <typename VpcConnectionNameT = Aws::String>
283 GetDevEnvironmentResult& WithVpcConnectionName(VpcConnectionNameT&& value) {
284 SetVpcConnectionName(std::forward<VpcConnectionNameT>(value));
285 return *this;
286 }
288
290
291 inline const Aws::String& GetRequestId() const { return m_requestId; }
292 template <typename RequestIdT = Aws::String>
293 void SetRequestId(RequestIdT&& value) {
294 m_requestIdHasBeenSet = true;
295 m_requestId = std::forward<RequestIdT>(value);
296 }
297 template <typename RequestIdT = Aws::String>
299 SetRequestId(std::forward<RequestIdT>(value));
300 return *this;
301 }
303 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
304
305 private:
306 Aws::String m_spaceName;
307
308 Aws::String m_projectName;
309
310 Aws::String m_id;
311
312 Aws::Utils::DateTime m_lastUpdatedTime{};
313
314 Aws::String m_creatorId;
315
317
318 Aws::String m_statusReason;
319
321
322 Aws::String m_alias;
323
324 Aws::Vector<Ide> m_ides;
325
326 InstanceType m_instanceType{InstanceType::NOT_SET};
327
328 int m_inactivityTimeoutMinutes{0};
329
330 PersistentStorage m_persistentStorage;
331
332 Aws::String m_vpcConnectionName;
333
334 Aws::String m_requestId;
335 Aws::Http::HttpResponseCode m_HttpResponseCode;
336 bool m_spaceNameHasBeenSet = false;
337 bool m_projectNameHasBeenSet = false;
338 bool m_idHasBeenSet = false;
339 bool m_lastUpdatedTimeHasBeenSet = false;
340 bool m_creatorIdHasBeenSet = false;
341 bool m_statusHasBeenSet = false;
342 bool m_statusReasonHasBeenSet = false;
343 bool m_repositoriesHasBeenSet = false;
344 bool m_aliasHasBeenSet = false;
345 bool m_idesHasBeenSet = false;
346 bool m_instanceTypeHasBeenSet = false;
347 bool m_inactivityTimeoutMinutesHasBeenSet = false;
348 bool m_persistentStorageHasBeenSet = false;
349 bool m_vpcConnectionNameHasBeenSet = false;
350 bool m_requestIdHasBeenSet = false;
351};
352
353} // namespace Model
354} // namespace CodeCatalyst
355} // namespace Aws
GetDevEnvironmentResult & AddIdes(IdesT &&value)
GetDevEnvironmentResult & WithAlias(AliasT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetDevEnvironmentResult & AddRepositories(RepositoriesT &&value)
GetDevEnvironmentResult & WithInstanceType(InstanceType value)
GetDevEnvironmentResult & WithVpcConnectionName(VpcConnectionNameT &&value)
AWS_CODECATALYST_API GetDevEnvironmentResult()=default
const Aws::Utils::DateTime & GetLastUpdatedTime() const
GetDevEnvironmentResult & WithStatusReason(StatusReasonT &&value)
GetDevEnvironmentResult & WithStatus(DevEnvironmentStatus value)
GetDevEnvironmentResult & WithInactivityTimeoutMinutes(int value)
GetDevEnvironmentResult & WithProjectName(ProjectNameT &&value)
GetDevEnvironmentResult & WithRequestId(RequestIdT &&value)
GetDevEnvironmentResult & WithRepositories(RepositoriesT &&value)
GetDevEnvironmentResult & WithPersistentStorage(PersistentStorageT &&value)
GetDevEnvironmentResult & WithLastUpdatedTime(LastUpdatedTimeT &&value)
GetDevEnvironmentResult & WithIdes(IdesT &&value)
GetDevEnvironmentResult & WithSpaceName(SpaceNameT &&value)
const Aws::Vector< DevEnvironmentRepositorySummary > & GetRepositories() const
AWS_CODECATALYST_API GetDevEnvironmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDevEnvironmentResult & WithCreatorId(CreatorIdT &&value)
AWS_CODECATALYST_API GetDevEnvironmentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue