AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDevEnvironmentRequest.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
8#include <aws/codecatalyst/CodeCatalystRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codecatalyst/model/InstanceType.h>
12#include <aws/codecatalyst/model/PersistentStorageConfiguration.h>
13#include <aws/codecatalyst/model/RepositoryInput.h>
14#include <aws/codecatalyst/model/IdeConfiguration.h>
15#include <utility>
16
17namespace Aws
18{
19namespace CodeCatalyst
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CODECATALYST_API CreateDevEnvironmentRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateDevEnvironment"; }
36
37 AWS_CODECATALYST_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetSpaceName() const { return m_spaceName; }
45 inline bool SpaceNameHasBeenSet() const { return m_spaceNameHasBeenSet; }
46 template<typename SpaceNameT = Aws::String>
47 void SetSpaceName(SpaceNameT&& value) { m_spaceNameHasBeenSet = true; m_spaceName = std::forward<SpaceNameT>(value); }
48 template<typename SpaceNameT = Aws::String>
49 CreateDevEnvironmentRequest& WithSpaceName(SpaceNameT&& value) { SetSpaceName(std::forward<SpaceNameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetProjectName() const { return m_projectName; }
57 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
58 template<typename ProjectNameT = Aws::String>
59 void SetProjectName(ProjectNameT&& value) { m_projectNameHasBeenSet = true; m_projectName = std::forward<ProjectNameT>(value); }
60 template<typename ProjectNameT = Aws::String>
61 CreateDevEnvironmentRequest& WithProjectName(ProjectNameT&& value) { SetProjectName(std::forward<ProjectNameT>(value)); return *this;}
63
65
69 inline const Aws::Vector<RepositoryInput>& GetRepositories() const { return m_repositories; }
70 inline bool RepositoriesHasBeenSet() const { return m_repositoriesHasBeenSet; }
71 template<typename RepositoriesT = Aws::Vector<RepositoryInput>>
72 void SetRepositories(RepositoriesT&& value) { m_repositoriesHasBeenSet = true; m_repositories = std::forward<RepositoriesT>(value); }
73 template<typename RepositoriesT = Aws::Vector<RepositoryInput>>
74 CreateDevEnvironmentRequest& WithRepositories(RepositoriesT&& value) { SetRepositories(std::forward<RepositoriesT>(value)); return *this;}
75 template<typename RepositoriesT = RepositoryInput>
76 CreateDevEnvironmentRequest& AddRepositories(RepositoriesT&& value) { m_repositoriesHasBeenSet = true; m_repositories.emplace_back(std::forward<RepositoriesT>(value)); return *this; }
78
80
86 inline const Aws::String& GetClientToken() const { return m_clientToken; }
87 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
88 template<typename ClientTokenT = Aws::String>
89 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
90 template<typename ClientTokenT = Aws::String>
91 CreateDevEnvironmentRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
93
95
98 inline const Aws::String& GetAlias() const { return m_alias; }
99 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
100 template<typename AliasT = Aws::String>
101 void SetAlias(AliasT&& value) { m_aliasHasBeenSet = true; m_alias = std::forward<AliasT>(value); }
102 template<typename AliasT = Aws::String>
103 CreateDevEnvironmentRequest& WithAlias(AliasT&& value) { SetAlias(std::forward<AliasT>(value)); return *this;}
105
107
113 inline const Aws::Vector<IdeConfiguration>& GetIdes() const { return m_ides; }
114 inline bool IdesHasBeenSet() const { return m_idesHasBeenSet; }
115 template<typename IdesT = Aws::Vector<IdeConfiguration>>
116 void SetIdes(IdesT&& value) { m_idesHasBeenSet = true; m_ides = std::forward<IdesT>(value); }
117 template<typename IdesT = Aws::Vector<IdeConfiguration>>
118 CreateDevEnvironmentRequest& WithIdes(IdesT&& value) { SetIdes(std::forward<IdesT>(value)); return *this;}
119 template<typename IdesT = IdeConfiguration>
120 CreateDevEnvironmentRequest& AddIdes(IdesT&& value) { m_idesHasBeenSet = true; m_ides.emplace_back(std::forward<IdesT>(value)); return *this; }
122
124
127 inline InstanceType GetInstanceType() const { return m_instanceType; }
128 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
129 inline void SetInstanceType(InstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
132
134
139 inline int GetInactivityTimeoutMinutes() const { return m_inactivityTimeoutMinutes; }
140 inline bool InactivityTimeoutMinutesHasBeenSet() const { return m_inactivityTimeoutMinutesHasBeenSet; }
141 inline void SetInactivityTimeoutMinutes(int value) { m_inactivityTimeoutMinutesHasBeenSet = true; m_inactivityTimeoutMinutes = value; }
144
146
154 inline const PersistentStorageConfiguration& GetPersistentStorage() const { return m_persistentStorage; }
155 inline bool PersistentStorageHasBeenSet() const { return m_persistentStorageHasBeenSet; }
156 template<typename PersistentStorageT = PersistentStorageConfiguration>
157 void SetPersistentStorage(PersistentStorageT&& value) { m_persistentStorageHasBeenSet = true; m_persistentStorage = std::forward<PersistentStorageT>(value); }
158 template<typename PersistentStorageT = PersistentStorageConfiguration>
159 CreateDevEnvironmentRequest& WithPersistentStorage(PersistentStorageT&& value) { SetPersistentStorage(std::forward<PersistentStorageT>(value)); return *this;}
161
163
167 inline const Aws::String& GetVpcConnectionName() const { return m_vpcConnectionName; }
168 inline bool VpcConnectionNameHasBeenSet() const { return m_vpcConnectionNameHasBeenSet; }
169 template<typename VpcConnectionNameT = Aws::String>
170 void SetVpcConnectionName(VpcConnectionNameT&& value) { m_vpcConnectionNameHasBeenSet = true; m_vpcConnectionName = std::forward<VpcConnectionNameT>(value); }
171 template<typename VpcConnectionNameT = Aws::String>
172 CreateDevEnvironmentRequest& WithVpcConnectionName(VpcConnectionNameT&& value) { SetVpcConnectionName(std::forward<VpcConnectionNameT>(value)); return *this;}
174 private:
175
176 Aws::String m_spaceName;
177 bool m_spaceNameHasBeenSet = false;
178
179 Aws::String m_projectName;
180 bool m_projectNameHasBeenSet = false;
181
182 Aws::Vector<RepositoryInput> m_repositories;
183 bool m_repositoriesHasBeenSet = false;
184
185 Aws::String m_clientToken;
186 bool m_clientTokenHasBeenSet = false;
187
188 Aws::String m_alias;
189 bool m_aliasHasBeenSet = false;
190
192 bool m_idesHasBeenSet = false;
193
194 InstanceType m_instanceType{InstanceType::NOT_SET};
195 bool m_instanceTypeHasBeenSet = false;
196
197 int m_inactivityTimeoutMinutes{0};
198 bool m_inactivityTimeoutMinutesHasBeenSet = false;
199
200 PersistentStorageConfiguration m_persistentStorage;
201 bool m_persistentStorageHasBeenSet = false;
202
203 Aws::String m_vpcConnectionName;
204 bool m_vpcConnectionNameHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace CodeCatalyst
209} // 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