AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DevEnvironmentSummary.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 {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CodeCatalyst {
27namespace Model {
28
35 public:
36 AWS_CODECATALYST_API DevEnvironmentSummary() = default;
37 AWS_CODECATALYST_API DevEnvironmentSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetSpaceName() const { return m_spaceName; }
46 inline bool SpaceNameHasBeenSet() const { return m_spaceNameHasBeenSet; }
47 template <typename SpaceNameT = Aws::String>
48 void SetSpaceName(SpaceNameT&& value) {
49 m_spaceNameHasBeenSet = true;
50 m_spaceName = std::forward<SpaceNameT>(value);
51 }
52 template <typename SpaceNameT = Aws::String>
53 DevEnvironmentSummary& WithSpaceName(SpaceNameT&& value) {
54 SetSpaceName(std::forward<SpaceNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetProjectName() const { return m_projectName; }
64 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
65 template <typename ProjectNameT = Aws::String>
66 void SetProjectName(ProjectNameT&& value) {
67 m_projectNameHasBeenSet = true;
68 m_projectName = std::forward<ProjectNameT>(value);
69 }
70 template <typename ProjectNameT = Aws::String>
71 DevEnvironmentSummary& WithProjectName(ProjectNameT&& value) {
72 SetProjectName(std::forward<ProjectNameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetId() const { return m_id; }
82 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
83 template <typename IdT = Aws::String>
84 void SetId(IdT&& value) {
85 m_idHasBeenSet = true;
86 m_id = std::forward<IdT>(value);
87 }
88 template <typename IdT = Aws::String>
90 SetId(std::forward<IdT>(value));
91 return *this;
92 }
94
96
101 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
102 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
103 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
104 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
105 m_lastUpdatedTimeHasBeenSet = true;
106 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
107 }
108 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
109 DevEnvironmentSummary& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
110 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetCreatorId() const { return m_creatorId; }
121 inline bool CreatorIdHasBeenSet() const { return m_creatorIdHasBeenSet; }
122 template <typename CreatorIdT = Aws::String>
123 void SetCreatorId(CreatorIdT&& value) {
124 m_creatorIdHasBeenSet = true;
125 m_creatorId = std::forward<CreatorIdT>(value);
126 }
127 template <typename CreatorIdT = Aws::String>
129 SetCreatorId(std::forward<CreatorIdT>(value));
130 return *this;
131 }
133
135
138 inline DevEnvironmentStatus GetStatus() const { return m_status; }
139 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
140 inline void SetStatus(DevEnvironmentStatus value) {
141 m_statusHasBeenSet = true;
142 m_status = value;
143 }
145 SetStatus(value);
146 return *this;
147 }
149
151
154 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
155 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
156 template <typename StatusReasonT = Aws::String>
157 void SetStatusReason(StatusReasonT&& value) {
158 m_statusReasonHasBeenSet = true;
159 m_statusReason = std::forward<StatusReasonT>(value);
160 }
161 template <typename StatusReasonT = Aws::String>
162 DevEnvironmentSummary& WithStatusReason(StatusReasonT&& value) {
163 SetStatusReason(std::forward<StatusReasonT>(value));
164 return *this;
165 }
167
169
173 inline const Aws::Vector<DevEnvironmentRepositorySummary>& GetRepositories() const { return m_repositories; }
174 inline bool RepositoriesHasBeenSet() const { return m_repositoriesHasBeenSet; }
175 template <typename RepositoriesT = Aws::Vector<DevEnvironmentRepositorySummary>>
176 void SetRepositories(RepositoriesT&& value) {
177 m_repositoriesHasBeenSet = true;
178 m_repositories = std::forward<RepositoriesT>(value);
179 }
180 template <typename RepositoriesT = Aws::Vector<DevEnvironmentRepositorySummary>>
181 DevEnvironmentSummary& WithRepositories(RepositoriesT&& value) {
182 SetRepositories(std::forward<RepositoriesT>(value));
183 return *this;
184 }
185 template <typename RepositoriesT = DevEnvironmentRepositorySummary>
186 DevEnvironmentSummary& AddRepositories(RepositoriesT&& value) {
187 m_repositoriesHasBeenSet = true;
188 m_repositories.emplace_back(std::forward<RepositoriesT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::String& GetAlias() const { return m_alias; }
198 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
199 template <typename AliasT = Aws::String>
200 void SetAlias(AliasT&& value) {
201 m_aliasHasBeenSet = true;
202 m_alias = std::forward<AliasT>(value);
203 }
204 template <typename AliasT = Aws::String>
206 SetAlias(std::forward<AliasT>(value));
207 return *this;
208 }
210
212
216 inline const Aws::Vector<Ide>& GetIdes() const { return m_ides; }
217 inline bool IdesHasBeenSet() const { return m_idesHasBeenSet; }
218 template <typename IdesT = Aws::Vector<Ide>>
219 void SetIdes(IdesT&& value) {
220 m_idesHasBeenSet = true;
221 m_ides = std::forward<IdesT>(value);
222 }
223 template <typename IdesT = Aws::Vector<Ide>>
225 SetIdes(std::forward<IdesT>(value));
226 return *this;
227 }
228 template <typename IdesT = Ide>
230 m_idesHasBeenSet = true;
231 m_ides.emplace_back(std::forward<IdesT>(value));
232 return *this;
233 }
235
237
240 inline InstanceType GetInstanceType() const { return m_instanceType; }
241 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
242 inline void SetInstanceType(InstanceType value) {
243 m_instanceTypeHasBeenSet = true;
244 m_instanceType = value;
245 }
247 SetInstanceType(value);
248 return *this;
249 }
251
253
258 inline int GetInactivityTimeoutMinutes() const { return m_inactivityTimeoutMinutes; }
259 inline bool InactivityTimeoutMinutesHasBeenSet() const { return m_inactivityTimeoutMinutesHasBeenSet; }
260 inline void SetInactivityTimeoutMinutes(int value) {
261 m_inactivityTimeoutMinutesHasBeenSet = true;
262 m_inactivityTimeoutMinutes = value;
263 }
266 return *this;
267 }
269
271
275 inline const PersistentStorage& GetPersistentStorage() const { return m_persistentStorage; }
276 inline bool PersistentStorageHasBeenSet() const { return m_persistentStorageHasBeenSet; }
277 template <typename PersistentStorageT = PersistentStorage>
278 void SetPersistentStorage(PersistentStorageT&& value) {
279 m_persistentStorageHasBeenSet = true;
280 m_persistentStorage = std::forward<PersistentStorageT>(value);
281 }
282 template <typename PersistentStorageT = PersistentStorage>
283 DevEnvironmentSummary& WithPersistentStorage(PersistentStorageT&& value) {
284 SetPersistentStorage(std::forward<PersistentStorageT>(value));
285 return *this;
286 }
288
290
294 inline const Aws::String& GetVpcConnectionName() const { return m_vpcConnectionName; }
295 inline bool VpcConnectionNameHasBeenSet() const { return m_vpcConnectionNameHasBeenSet; }
296 template <typename VpcConnectionNameT = Aws::String>
297 void SetVpcConnectionName(VpcConnectionNameT&& value) {
298 m_vpcConnectionNameHasBeenSet = true;
299 m_vpcConnectionName = std::forward<VpcConnectionNameT>(value);
300 }
301 template <typename VpcConnectionNameT = Aws::String>
302 DevEnvironmentSummary& WithVpcConnectionName(VpcConnectionNameT&& value) {
303 SetVpcConnectionName(std::forward<VpcConnectionNameT>(value));
304 return *this;
305 }
307 private:
308 Aws::String m_spaceName;
309
310 Aws::String m_projectName;
311
312 Aws::String m_id;
313
314 Aws::Utils::DateTime m_lastUpdatedTime{};
315
316 Aws::String m_creatorId;
317
319
320 Aws::String m_statusReason;
321
323
324 Aws::String m_alias;
325
326 Aws::Vector<Ide> m_ides;
327
328 InstanceType m_instanceType{InstanceType::NOT_SET};
329
330 int m_inactivityTimeoutMinutes{0};
331
332 PersistentStorage m_persistentStorage;
333
334 Aws::String m_vpcConnectionName;
335 bool m_spaceNameHasBeenSet = false;
336 bool m_projectNameHasBeenSet = false;
337 bool m_idHasBeenSet = false;
338 bool m_lastUpdatedTimeHasBeenSet = false;
339 bool m_creatorIdHasBeenSet = false;
340 bool m_statusHasBeenSet = false;
341 bool m_statusReasonHasBeenSet = false;
342 bool m_repositoriesHasBeenSet = false;
343 bool m_aliasHasBeenSet = false;
344 bool m_idesHasBeenSet = false;
345 bool m_instanceTypeHasBeenSet = false;
346 bool m_inactivityTimeoutMinutesHasBeenSet = false;
347 bool m_persistentStorageHasBeenSet = false;
348 bool m_vpcConnectionNameHasBeenSet = false;
349};
350
351} // namespace Model
352} // namespace CodeCatalyst
353} // namespace Aws
DevEnvironmentSummary & WithLastUpdatedTime(LastUpdatedTimeT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
AWS_CODECATALYST_API DevEnvironmentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< DevEnvironmentRepositorySummary > & GetRepositories() const
DevEnvironmentSummary & WithProjectName(ProjectNameT &&value)
DevEnvironmentSummary & WithInactivityTimeoutMinutes(int value)
AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const
DevEnvironmentSummary & AddRepositories(RepositoriesT &&value)
DevEnvironmentSummary & WithPersistentStorage(PersistentStorageT &&value)
DevEnvironmentSummary & WithStatusReason(StatusReasonT &&value)
DevEnvironmentSummary & WithCreatorId(CreatorIdT &&value)
DevEnvironmentSummary & WithInstanceType(InstanceType value)
DevEnvironmentSummary & WithIdes(IdesT &&value)
DevEnvironmentSummary & WithStatus(DevEnvironmentStatus value)
DevEnvironmentSummary & WithRepositories(RepositoriesT &&value)
AWS_CODECATALYST_API DevEnvironmentSummary(Aws::Utils::Json::JsonView jsonValue)
DevEnvironmentSummary & WithVpcConnectionName(VpcConnectionNameT &&value)
void SetVpcConnectionName(VpcConnectionNameT &&value)
void SetPersistentStorage(PersistentStorageT &&value)
DevEnvironmentSummary & WithId(IdT &&value)
DevEnvironmentSummary & WithSpaceName(SpaceNameT &&value)
const PersistentStorage & GetPersistentStorage() const
DevEnvironmentSummary & WithAlias(AliasT &&value)
DevEnvironmentSummary & AddIdes(IdesT &&value)
AWS_CODECATALYST_API DevEnvironmentSummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue