AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DevEnvironmentSummary.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/codecatalyst/model/DevEnvironmentStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codecatalyst/model/InstanceType.h>
13#include <aws/codecatalyst/model/PersistentStorage.h>
14#include <aws/codecatalyst/model/DevEnvironmentRepositorySummary.h>
15#include <aws/codecatalyst/model/Ide.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace CodeCatalyst
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_CODECATALYST_API DevEnvironmentSummary() = default;
42 AWS_CODECATALYST_API DevEnvironmentSummary(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetSpaceName() const { return m_spaceName; }
52 inline bool SpaceNameHasBeenSet() const { return m_spaceNameHasBeenSet; }
53 template<typename SpaceNameT = Aws::String>
54 void SetSpaceName(SpaceNameT&& value) { m_spaceNameHasBeenSet = true; m_spaceName = std::forward<SpaceNameT>(value); }
55 template<typename SpaceNameT = Aws::String>
56 DevEnvironmentSummary& WithSpaceName(SpaceNameT&& value) { SetSpaceName(std::forward<SpaceNameT>(value)); return *this;}
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) { m_projectNameHasBeenSet = true; m_projectName = std::forward<ProjectNameT>(value); }
67 template<typename ProjectNameT = Aws::String>
68 DevEnvironmentSummary& WithProjectName(ProjectNameT&& value) { SetProjectName(std::forward<ProjectNameT>(value)); return *this;}
70
72
75 inline const Aws::String& GetId() const { return m_id; }
76 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
77 template<typename IdT = Aws::String>
78 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
79 template<typename IdT = Aws::String>
80 DevEnvironmentSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
82
84
89 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
90 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
91 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
92 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
93 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
94 DevEnvironmentSummary& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
96
98
102 inline const Aws::String& GetCreatorId() const { return m_creatorId; }
103 inline bool CreatorIdHasBeenSet() const { return m_creatorIdHasBeenSet; }
104 template<typename CreatorIdT = Aws::String>
105 void SetCreatorId(CreatorIdT&& value) { m_creatorIdHasBeenSet = true; m_creatorId = std::forward<CreatorIdT>(value); }
106 template<typename CreatorIdT = Aws::String>
107 DevEnvironmentSummary& WithCreatorId(CreatorIdT&& value) { SetCreatorId(std::forward<CreatorIdT>(value)); return *this;}
109
111
114 inline DevEnvironmentStatus GetStatus() const { return m_status; }
115 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 inline void SetStatus(DevEnvironmentStatus value) { m_statusHasBeenSet = true; m_status = value; }
117 inline DevEnvironmentSummary& WithStatus(DevEnvironmentStatus value) { SetStatus(value); return *this;}
119
121
124 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
125 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
126 template<typename StatusReasonT = Aws::String>
127 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
128 template<typename StatusReasonT = Aws::String>
129 DevEnvironmentSummary& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
131
133
137 inline const Aws::Vector<DevEnvironmentRepositorySummary>& GetRepositories() const { return m_repositories; }
138 inline bool RepositoriesHasBeenSet() const { return m_repositoriesHasBeenSet; }
139 template<typename RepositoriesT = Aws::Vector<DevEnvironmentRepositorySummary>>
140 void SetRepositories(RepositoriesT&& value) { m_repositoriesHasBeenSet = true; m_repositories = std::forward<RepositoriesT>(value); }
141 template<typename RepositoriesT = Aws::Vector<DevEnvironmentRepositorySummary>>
142 DevEnvironmentSummary& WithRepositories(RepositoriesT&& value) { SetRepositories(std::forward<RepositoriesT>(value)); return *this;}
143 template<typename RepositoriesT = DevEnvironmentRepositorySummary>
144 DevEnvironmentSummary& AddRepositories(RepositoriesT&& value) { m_repositoriesHasBeenSet = true; m_repositories.emplace_back(std::forward<RepositoriesT>(value)); return *this; }
146
148
151 inline const Aws::String& GetAlias() const { return m_alias; }
152 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
153 template<typename AliasT = Aws::String>
154 void SetAlias(AliasT&& value) { m_aliasHasBeenSet = true; m_alias = std::forward<AliasT>(value); }
155 template<typename AliasT = Aws::String>
156 DevEnvironmentSummary& WithAlias(AliasT&& value) { SetAlias(std::forward<AliasT>(value)); return *this;}
158
160
164 inline const Aws::Vector<Ide>& GetIdes() const { return m_ides; }
165 inline bool IdesHasBeenSet() const { return m_idesHasBeenSet; }
166 template<typename IdesT = Aws::Vector<Ide>>
167 void SetIdes(IdesT&& value) { m_idesHasBeenSet = true; m_ides = std::forward<IdesT>(value); }
168 template<typename IdesT = Aws::Vector<Ide>>
169 DevEnvironmentSummary& WithIdes(IdesT&& value) { SetIdes(std::forward<IdesT>(value)); return *this;}
170 template<typename IdesT = Ide>
171 DevEnvironmentSummary& AddIdes(IdesT&& value) { m_idesHasBeenSet = true; m_ides.emplace_back(std::forward<IdesT>(value)); return *this; }
173
175
178 inline InstanceType GetInstanceType() const { return m_instanceType; }
179 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
180 inline void SetInstanceType(InstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
183
185
190 inline int GetInactivityTimeoutMinutes() const { return m_inactivityTimeoutMinutes; }
191 inline bool InactivityTimeoutMinutesHasBeenSet() const { return m_inactivityTimeoutMinutesHasBeenSet; }
192 inline void SetInactivityTimeoutMinutes(int value) { m_inactivityTimeoutMinutesHasBeenSet = true; m_inactivityTimeoutMinutes = value; }
195
197
201 inline const PersistentStorage& GetPersistentStorage() const { return m_persistentStorage; }
202 inline bool PersistentStorageHasBeenSet() const { return m_persistentStorageHasBeenSet; }
203 template<typename PersistentStorageT = PersistentStorage>
204 void SetPersistentStorage(PersistentStorageT&& value) { m_persistentStorageHasBeenSet = true; m_persistentStorage = std::forward<PersistentStorageT>(value); }
205 template<typename PersistentStorageT = PersistentStorage>
206 DevEnvironmentSummary& WithPersistentStorage(PersistentStorageT&& value) { SetPersistentStorage(std::forward<PersistentStorageT>(value)); return *this;}
208
210
214 inline const Aws::String& GetVpcConnectionName() const { return m_vpcConnectionName; }
215 inline bool VpcConnectionNameHasBeenSet() const { return m_vpcConnectionNameHasBeenSet; }
216 template<typename VpcConnectionNameT = Aws::String>
217 void SetVpcConnectionName(VpcConnectionNameT&& value) { m_vpcConnectionNameHasBeenSet = true; m_vpcConnectionName = std::forward<VpcConnectionNameT>(value); }
218 template<typename VpcConnectionNameT = Aws::String>
219 DevEnvironmentSummary& WithVpcConnectionName(VpcConnectionNameT&& value) { SetVpcConnectionName(std::forward<VpcConnectionNameT>(value)); return *this;}
221 private:
222
223 Aws::String m_spaceName;
224 bool m_spaceNameHasBeenSet = false;
225
226 Aws::String m_projectName;
227 bool m_projectNameHasBeenSet = false;
228
229 Aws::String m_id;
230 bool m_idHasBeenSet = false;
231
232 Aws::Utils::DateTime m_lastUpdatedTime{};
233 bool m_lastUpdatedTimeHasBeenSet = false;
234
235 Aws::String m_creatorId;
236 bool m_creatorIdHasBeenSet = false;
237
239 bool m_statusHasBeenSet = false;
240
241 Aws::String m_statusReason;
242 bool m_statusReasonHasBeenSet = false;
243
245 bool m_repositoriesHasBeenSet = false;
246
247 Aws::String m_alias;
248 bool m_aliasHasBeenSet = false;
249
250 Aws::Vector<Ide> m_ides;
251 bool m_idesHasBeenSet = false;
252
253 InstanceType m_instanceType{InstanceType::NOT_SET};
254 bool m_instanceTypeHasBeenSet = false;
255
256 int m_inactivityTimeoutMinutes{0};
257 bool m_inactivityTimeoutMinutesHasBeenSet = false;
258
259 PersistentStorage m_persistentStorage;
260 bool m_persistentStorageHasBeenSet = false;
261
262 Aws::String m_vpcConnectionName;
263 bool m_vpcConnectionNameHasBeenSet = false;
264 };
265
266} // namespace Model
267} // namespace CodeCatalyst
268} // 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