AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateDevEnvironmentRequest.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalystRequest.h>
8#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
9#include <aws/codecatalyst/model/IdeConfiguration.h>
10#include <aws/codecatalyst/model/InstanceType.h>
11#include <aws/codecatalyst/model/PersistentStorageConfiguration.h>
12#include <aws/codecatalyst/model/RepositoryInput.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace CodeCatalyst {
20namespace Model {
21
25 public:
26 AWS_CODECATALYST_API CreateDevEnvironmentRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateDevEnvironment"; }
33
34 AWS_CODECATALYST_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetSpaceName() const { return m_spaceName; }
41 inline bool SpaceNameHasBeenSet() const { return m_spaceNameHasBeenSet; }
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 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
60 template <typename ProjectNameT = Aws::String>
61 void SetProjectName(ProjectNameT&& value) {
62 m_projectNameHasBeenSet = true;
63 m_projectName = std::forward<ProjectNameT>(value);
64 }
65 template <typename ProjectNameT = Aws::String>
67 SetProjectName(std::forward<ProjectNameT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::Vector<RepositoryInput>& GetRepositories() const { return m_repositories; }
78 inline bool RepositoriesHasBeenSet() const { return m_repositoriesHasBeenSet; }
79 template <typename RepositoriesT = Aws::Vector<RepositoryInput>>
80 void SetRepositories(RepositoriesT&& value) {
81 m_repositoriesHasBeenSet = true;
82 m_repositories = std::forward<RepositoriesT>(value);
83 }
84 template <typename RepositoriesT = Aws::Vector<RepositoryInput>>
86 SetRepositories(std::forward<RepositoriesT>(value));
87 return *this;
88 }
89 template <typename RepositoriesT = RepositoryInput>
91 m_repositoriesHasBeenSet = true;
92 m_repositories.emplace_back(std::forward<RepositoriesT>(value));
93 return *this;
94 }
96
98
104 inline const Aws::String& GetClientToken() const { return m_clientToken; }
105 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
106 template <typename ClientTokenT = Aws::String>
107 void SetClientToken(ClientTokenT&& value) {
108 m_clientTokenHasBeenSet = true;
109 m_clientToken = std::forward<ClientTokenT>(value);
110 }
111 template <typename ClientTokenT = Aws::String>
113 SetClientToken(std::forward<ClientTokenT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetAlias() const { return m_alias; }
123 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
124 template <typename AliasT = Aws::String>
125 void SetAlias(AliasT&& value) {
126 m_aliasHasBeenSet = true;
127 m_alias = std::forward<AliasT>(value);
128 }
129 template <typename AliasT = Aws::String>
131 SetAlias(std::forward<AliasT>(value));
132 return *this;
133 }
135
137
143 inline const Aws::Vector<IdeConfiguration>& GetIdes() const { return m_ides; }
144 inline bool IdesHasBeenSet() const { return m_idesHasBeenSet; }
145 template <typename IdesT = Aws::Vector<IdeConfiguration>>
146 void SetIdes(IdesT&& value) {
147 m_idesHasBeenSet = true;
148 m_ides = std::forward<IdesT>(value);
149 }
150 template <typename IdesT = Aws::Vector<IdeConfiguration>>
152 SetIdes(std::forward<IdesT>(value));
153 return *this;
154 }
155 template <typename IdesT = IdeConfiguration>
157 m_idesHasBeenSet = true;
158 m_ides.emplace_back(std::forward<IdesT>(value));
159 return *this;
160 }
162
164
167 inline InstanceType GetInstanceType() const { return m_instanceType; }
168 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
169 inline void SetInstanceType(InstanceType value) {
170 m_instanceTypeHasBeenSet = true;
171 m_instanceType = value;
172 }
174 SetInstanceType(value);
175 return *this;
176 }
178
180
185 inline int GetInactivityTimeoutMinutes() const { return m_inactivityTimeoutMinutes; }
186 inline bool InactivityTimeoutMinutesHasBeenSet() const { return m_inactivityTimeoutMinutesHasBeenSet; }
187 inline void SetInactivityTimeoutMinutes(int value) {
188 m_inactivityTimeoutMinutesHasBeenSet = true;
189 m_inactivityTimeoutMinutes = value;
190 }
193 return *this;
194 }
196
198
206 inline const PersistentStorageConfiguration& GetPersistentStorage() const { return m_persistentStorage; }
207 inline bool PersistentStorageHasBeenSet() const { return m_persistentStorageHasBeenSet; }
208 template <typename PersistentStorageT = PersistentStorageConfiguration>
209 void SetPersistentStorage(PersistentStorageT&& value) {
210 m_persistentStorageHasBeenSet = true;
211 m_persistentStorage = std::forward<PersistentStorageT>(value);
212 }
213 template <typename PersistentStorageT = PersistentStorageConfiguration>
215 SetPersistentStorage(std::forward<PersistentStorageT>(value));
216 return *this;
217 }
219
221
225 inline const Aws::String& GetVpcConnectionName() const { return m_vpcConnectionName; }
226 inline bool VpcConnectionNameHasBeenSet() const { return m_vpcConnectionNameHasBeenSet; }
227 template <typename VpcConnectionNameT = Aws::String>
228 void SetVpcConnectionName(VpcConnectionNameT&& value) {
229 m_vpcConnectionNameHasBeenSet = true;
230 m_vpcConnectionName = std::forward<VpcConnectionNameT>(value);
231 }
232 template <typename VpcConnectionNameT = Aws::String>
234 SetVpcConnectionName(std::forward<VpcConnectionNameT>(value));
235 return *this;
236 }
238 private:
239 Aws::String m_spaceName;
240
241 Aws::String m_projectName;
242
243 Aws::Vector<RepositoryInput> m_repositories;
244
245 Aws::String m_clientToken;
246
247 Aws::String m_alias;
248
250
251 InstanceType m_instanceType{InstanceType::NOT_SET};
252
253 int m_inactivityTimeoutMinutes{0};
254
255 PersistentStorageConfiguration m_persistentStorage;
256
257 Aws::String m_vpcConnectionName;
258 bool m_spaceNameHasBeenSet = false;
259 bool m_projectNameHasBeenSet = false;
260 bool m_repositoriesHasBeenSet = false;
261 bool m_clientTokenHasBeenSet = false;
262 bool m_aliasHasBeenSet = false;
263 bool m_idesHasBeenSet = false;
264 bool m_instanceTypeHasBeenSet = false;
265 bool m_inactivityTimeoutMinutesHasBeenSet = false;
266 bool m_persistentStorageHasBeenSet = false;
267 bool m_vpcConnectionNameHasBeenSet = false;
268};
269
270} // namespace Model
271} // namespace CodeCatalyst
272} // namespace Aws
CreateDevEnvironmentRequest & WithAlias(AliasT &&value)
const PersistentStorageConfiguration & GetPersistentStorage() const
CreateDevEnvironmentRequest & WithVpcConnectionName(VpcConnectionNameT &&value)
CreateDevEnvironmentRequest & WithSpaceName(SpaceNameT &&value)
CreateDevEnvironmentRequest & WithRepositories(RepositoriesT &&value)
CreateDevEnvironmentRequest & WithInactivityTimeoutMinutes(int value)
CreateDevEnvironmentRequest & WithClientToken(ClientTokenT &&value)
CreateDevEnvironmentRequest & AddRepositories(RepositoriesT &&value)
CreateDevEnvironmentRequest & WithInstanceType(InstanceType value)
AWS_CODECATALYST_API CreateDevEnvironmentRequest()=default
AWS_CODECATALYST_API Aws::String SerializePayload() const override
const Aws::Vector< RepositoryInput > & GetRepositories() const
CreateDevEnvironmentRequest & WithPersistentStorage(PersistentStorageT &&value)
CreateDevEnvironmentRequest & WithIdes(IdesT &&value)
const Aws::Vector< IdeConfiguration > & GetIdes() const
CreateDevEnvironmentRequest & WithProjectName(ProjectNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector