AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace CodeCatalyst {
29namespace Model {
31 public:
32 AWS_CODECATALYST_API GetDevEnvironmentResult() = default;
35
37
40 inline const Aws::String& GetSpaceName() const { return m_spaceName; }
41 template <typename SpaceNameT = Aws::String>
42 void SetSpaceName(SpaceNameT&& value) {
43 m_spaceNameHasBeenSet = true;
44 m_spaceName = std::forward<SpaceNameT>(value);
45 }
46 template <typename SpaceNameT = Aws::String>
48 SetSpaceName(std::forward<SpaceNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetProjectName() const { return m_projectName; }
58 template <typename ProjectNameT = Aws::String>
59 void SetProjectName(ProjectNameT&& value) {
60 m_projectNameHasBeenSet = true;
61 m_projectName = std::forward<ProjectNameT>(value);
62 }
63 template <typename ProjectNameT = Aws::String>
65 SetProjectName(std::forward<ProjectNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetId() const { return m_id; }
75 template <typename IdT = Aws::String>
76 void SetId(IdT&& value) {
77 m_idHasBeenSet = true;
78 m_id = std::forward<IdT>(value);
79 }
80 template <typename IdT = Aws::String>
82 SetId(std::forward<IdT>(value));
83 return *this;
84 }
86
88
93 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
94 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
95 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
96 m_lastUpdatedTimeHasBeenSet = true;
97 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
98 }
99 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
100 GetDevEnvironmentResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
101 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::String& GetCreatorId() const { return m_creatorId; }
112 template <typename CreatorIdT = Aws::String>
113 void SetCreatorId(CreatorIdT&& value) {
114 m_creatorIdHasBeenSet = true;
115 m_creatorId = std::forward<CreatorIdT>(value);
116 }
117 template <typename CreatorIdT = Aws::String>
119 SetCreatorId(std::forward<CreatorIdT>(value));
120 return *this;
121 }
123
125
128 inline DevEnvironmentStatus GetStatus() const { return m_status; }
129 inline void SetStatus(DevEnvironmentStatus value) {
130 m_statusHasBeenSet = true;
131 m_status = value;
132 }
134 SetStatus(value);
135 return *this;
136 }
138
140
143 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
144 template <typename StatusReasonT = Aws::String>
145 void SetStatusReason(StatusReasonT&& value) {
146 m_statusReasonHasBeenSet = true;
147 m_statusReason = std::forward<StatusReasonT>(value);
148 }
149 template <typename StatusReasonT = Aws::String>
151 SetStatusReason(std::forward<StatusReasonT>(value));
152 return *this;
153 }
155
157
161 inline const Aws::Vector<DevEnvironmentRepositorySummary>& GetRepositories() const { return m_repositories; }
162 template <typename RepositoriesT = Aws::Vector<DevEnvironmentRepositorySummary>>
163 void SetRepositories(RepositoriesT&& value) {
164 m_repositoriesHasBeenSet = true;
165 m_repositories = std::forward<RepositoriesT>(value);
166 }
167 template <typename RepositoriesT = Aws::Vector<DevEnvironmentRepositorySummary>>
169 SetRepositories(std::forward<RepositoriesT>(value));
170 return *this;
171 }
172 template <typename RepositoriesT = DevEnvironmentRepositorySummary>
173 GetDevEnvironmentResult& AddRepositories(RepositoriesT&& value) {
174 m_repositoriesHasBeenSet = true;
175 m_repositories.emplace_back(std::forward<RepositoriesT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::String& GetAlias() const { return m_alias; }
185 template <typename AliasT = Aws::String>
186 void SetAlias(AliasT&& value) {
187 m_aliasHasBeenSet = true;
188 m_alias = std::forward<AliasT>(value);
189 }
190 template <typename AliasT = Aws::String>
192 SetAlias(std::forward<AliasT>(value));
193 return *this;
194 }
196
198
202 inline const Aws::Vector<Ide>& GetIdes() const { return m_ides; }
203 template <typename IdesT = Aws::Vector<Ide>>
204 void SetIdes(IdesT&& value) {
205 m_idesHasBeenSet = true;
206 m_ides = std::forward<IdesT>(value);
207 }
208 template <typename IdesT = Aws::Vector<Ide>>
210 SetIdes(std::forward<IdesT>(value));
211 return *this;
212 }
213 template <typename IdesT = Ide>
215 m_idesHasBeenSet = true;
216 m_ides.emplace_back(std::forward<IdesT>(value));
217 return *this;
218 }
220
222
225 inline InstanceType GetInstanceType() const { return m_instanceType; }
226 inline void SetInstanceType(InstanceType value) {
227 m_instanceTypeHasBeenSet = true;
228 m_instanceType = value;
229 }
231 SetInstanceType(value);
232 return *this;
233 }
235
237
241 inline int GetInactivityTimeoutMinutes() const { return m_inactivityTimeoutMinutes; }
242 inline void SetInactivityTimeoutMinutes(int value) {
243 m_inactivityTimeoutMinutesHasBeenSet = true;
244 m_inactivityTimeoutMinutes = value;
245 }
248 return *this;
249 }
251
253
257 inline const PersistentStorage& GetPersistentStorage() const { return m_persistentStorage; }
258 template <typename PersistentStorageT = PersistentStorage>
259 void SetPersistentStorage(PersistentStorageT&& value) {
260 m_persistentStorageHasBeenSet = true;
261 m_persistentStorage = std::forward<PersistentStorageT>(value);
262 }
263 template <typename PersistentStorageT = PersistentStorage>
264 GetDevEnvironmentResult& WithPersistentStorage(PersistentStorageT&& value) {
265 SetPersistentStorage(std::forward<PersistentStorageT>(value));
266 return *this;
267 }
269
271
275 inline const Aws::String& GetVpcConnectionName() const { return m_vpcConnectionName; }
276 template <typename VpcConnectionNameT = Aws::String>
277 void SetVpcConnectionName(VpcConnectionNameT&& value) {
278 m_vpcConnectionNameHasBeenSet = true;
279 m_vpcConnectionName = std::forward<VpcConnectionNameT>(value);
280 }
281 template <typename VpcConnectionNameT = Aws::String>
282 GetDevEnvironmentResult& WithVpcConnectionName(VpcConnectionNameT&& value) {
283 SetVpcConnectionName(std::forward<VpcConnectionNameT>(value));
284 return *this;
285 }
287
289
290 inline const Aws::String& GetRequestId() const { return m_requestId; }
291 template <typename RequestIdT = Aws::String>
292 void SetRequestId(RequestIdT&& value) {
293 m_requestIdHasBeenSet = true;
294 m_requestId = std::forward<RequestIdT>(value);
295 }
296 template <typename RequestIdT = Aws::String>
298 SetRequestId(std::forward<RequestIdT>(value));
299 return *this;
300 }
302 private:
303 Aws::String m_spaceName;
304 bool m_spaceNameHasBeenSet = false;
305
306 Aws::String m_projectName;
307 bool m_projectNameHasBeenSet = false;
308
309 Aws::String m_id;
310 bool m_idHasBeenSet = false;
311
312 Aws::Utils::DateTime m_lastUpdatedTime{};
313 bool m_lastUpdatedTimeHasBeenSet = false;
314
315 Aws::String m_creatorId;
316 bool m_creatorIdHasBeenSet = false;
317
319 bool m_statusHasBeenSet = false;
320
321 Aws::String m_statusReason;
322 bool m_statusReasonHasBeenSet = false;
323
325 bool m_repositoriesHasBeenSet = false;
326
327 Aws::String m_alias;
328 bool m_aliasHasBeenSet = false;
329
330 Aws::Vector<Ide> m_ides;
331 bool m_idesHasBeenSet = false;
332
333 InstanceType m_instanceType{InstanceType::NOT_SET};
334 bool m_instanceTypeHasBeenSet = false;
335
336 int m_inactivityTimeoutMinutes{0};
337 bool m_inactivityTimeoutMinutesHasBeenSet = false;
338
339 PersistentStorage m_persistentStorage;
340 bool m_persistentStorageHasBeenSet = false;
341
342 Aws::String m_vpcConnectionName;
343 bool m_vpcConnectionNameHasBeenSet = false;
344
345 Aws::String m_requestId;
346 bool m_requestIdHasBeenSet = false;
347};
348
349} // namespace Model
350} // namespace CodeCatalyst
351} // namespace Aws
GetDevEnvironmentResult & AddIdes(IdesT &&value)
GetDevEnvironmentResult & WithAlias(AliasT &&value)
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