AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSpaceName(const Aws::String& value) { m_spaceNameHasBeenSet = true; m_spaceName = value; }
47 inline void SetSpaceName(Aws::String&& value) { m_spaceNameHasBeenSet = true; m_spaceName = std::move(value); }
48 inline void SetSpaceName(const char* value) { m_spaceNameHasBeenSet = true; m_spaceName.assign(value); }
49 inline CreateDevEnvironmentRequest& WithSpaceName(const Aws::String& value) { SetSpaceName(value); return *this;}
50 inline CreateDevEnvironmentRequest& WithSpaceName(Aws::String&& value) { SetSpaceName(std::move(value)); return *this;}
51 inline CreateDevEnvironmentRequest& WithSpaceName(const char* value) { SetSpaceName(value); return *this;}
53
55
58 inline const Aws::String& GetProjectName() const{ return m_projectName; }
59 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
60 inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
61 inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
62 inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
63 inline CreateDevEnvironmentRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
64 inline CreateDevEnvironmentRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
65 inline CreateDevEnvironmentRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
67
69
73 inline const Aws::Vector<RepositoryInput>& GetRepositories() const{ return m_repositories; }
74 inline bool RepositoriesHasBeenSet() const { return m_repositoriesHasBeenSet; }
75 inline void SetRepositories(const Aws::Vector<RepositoryInput>& value) { m_repositoriesHasBeenSet = true; m_repositories = value; }
76 inline void SetRepositories(Aws::Vector<RepositoryInput>&& value) { m_repositoriesHasBeenSet = true; m_repositories = std::move(value); }
79 inline CreateDevEnvironmentRequest& AddRepositories(const RepositoryInput& value) { m_repositoriesHasBeenSet = true; m_repositories.push_back(value); return *this; }
80 inline CreateDevEnvironmentRequest& AddRepositories(RepositoryInput&& value) { m_repositoriesHasBeenSet = true; m_repositories.push_back(std::move(value)); return *this; }
82
84
90 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
91 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
92 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
93 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
94 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
95 inline CreateDevEnvironmentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
96 inline CreateDevEnvironmentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
97 inline CreateDevEnvironmentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
99
101
104 inline const Aws::String& GetAlias() const{ return m_alias; }
105 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
106 inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
107 inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
108 inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
109 inline CreateDevEnvironmentRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
110 inline CreateDevEnvironmentRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
111 inline CreateDevEnvironmentRequest& WithAlias(const char* value) { SetAlias(value); return *this;}
113
115
121 inline const Aws::Vector<IdeConfiguration>& GetIdes() const{ return m_ides; }
122 inline bool IdesHasBeenSet() const { return m_idesHasBeenSet; }
123 inline void SetIdes(const Aws::Vector<IdeConfiguration>& value) { m_idesHasBeenSet = true; m_ides = value; }
124 inline void SetIdes(Aws::Vector<IdeConfiguration>&& value) { m_idesHasBeenSet = true; m_ides = std::move(value); }
125 inline CreateDevEnvironmentRequest& WithIdes(const Aws::Vector<IdeConfiguration>& value) { SetIdes(value); return *this;}
126 inline CreateDevEnvironmentRequest& WithIdes(Aws::Vector<IdeConfiguration>&& value) { SetIdes(std::move(value)); return *this;}
127 inline CreateDevEnvironmentRequest& AddIdes(const IdeConfiguration& value) { m_idesHasBeenSet = true; m_ides.push_back(value); return *this; }
128 inline CreateDevEnvironmentRequest& AddIdes(IdeConfiguration&& value) { m_idesHasBeenSet = true; m_ides.push_back(std::move(value)); return *this; }
130
132
135 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
136 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
137 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
138 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
139 inline CreateDevEnvironmentRequest& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
140 inline CreateDevEnvironmentRequest& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
142
144
149 inline int GetInactivityTimeoutMinutes() const{ return m_inactivityTimeoutMinutes; }
150 inline bool InactivityTimeoutMinutesHasBeenSet() const { return m_inactivityTimeoutMinutesHasBeenSet; }
151 inline void SetInactivityTimeoutMinutes(int value) { m_inactivityTimeoutMinutesHasBeenSet = true; m_inactivityTimeoutMinutes = value; }
154
156
164 inline const PersistentStorageConfiguration& GetPersistentStorage() const{ return m_persistentStorage; }
165 inline bool PersistentStorageHasBeenSet() const { return m_persistentStorageHasBeenSet; }
166 inline void SetPersistentStorage(const PersistentStorageConfiguration& value) { m_persistentStorageHasBeenSet = true; m_persistentStorage = value; }
167 inline void SetPersistentStorage(PersistentStorageConfiguration&& value) { m_persistentStorageHasBeenSet = true; m_persistentStorage = std::move(value); }
171
173
177 inline const Aws::String& GetVpcConnectionName() const{ return m_vpcConnectionName; }
178 inline bool VpcConnectionNameHasBeenSet() const { return m_vpcConnectionNameHasBeenSet; }
179 inline void SetVpcConnectionName(const Aws::String& value) { m_vpcConnectionNameHasBeenSet = true; m_vpcConnectionName = value; }
180 inline void SetVpcConnectionName(Aws::String&& value) { m_vpcConnectionNameHasBeenSet = true; m_vpcConnectionName = std::move(value); }
181 inline void SetVpcConnectionName(const char* value) { m_vpcConnectionNameHasBeenSet = true; m_vpcConnectionName.assign(value); }
183 inline CreateDevEnvironmentRequest& WithVpcConnectionName(Aws::String&& value) { SetVpcConnectionName(std::move(value)); return *this;}
184 inline CreateDevEnvironmentRequest& WithVpcConnectionName(const char* value) { SetVpcConnectionName(value); return *this;}
186 private:
187
188 Aws::String m_spaceName;
189 bool m_spaceNameHasBeenSet = false;
190
191 Aws::String m_projectName;
192 bool m_projectNameHasBeenSet = false;
193
194 Aws::Vector<RepositoryInput> m_repositories;
195 bool m_repositoriesHasBeenSet = false;
196
197 Aws::String m_clientToken;
198 bool m_clientTokenHasBeenSet = false;
199
200 Aws::String m_alias;
201 bool m_aliasHasBeenSet = false;
202
204 bool m_idesHasBeenSet = false;
205
206 InstanceType m_instanceType;
207 bool m_instanceTypeHasBeenSet = false;
208
209 int m_inactivityTimeoutMinutes;
210 bool m_inactivityTimeoutMinutesHasBeenSet = false;
211
212 PersistentStorageConfiguration m_persistentStorage;
213 bool m_persistentStorageHasBeenSet = false;
214
215 Aws::String m_vpcConnectionName;
216 bool m_vpcConnectionNameHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace CodeCatalyst
221} // namespace Aws
CreateDevEnvironmentRequest & AddIdes(const IdeConfiguration &value)
CreateDevEnvironmentRequest & WithIdes(const Aws::Vector< IdeConfiguration > &value)
void SetPersistentStorage(const PersistentStorageConfiguration &value)
const PersistentStorageConfiguration & GetPersistentStorage() const
void SetRepositories(const Aws::Vector< RepositoryInput > &value)
CreateDevEnvironmentRequest & WithVpcConnectionName(const char *value)
CreateDevEnvironmentRequest & WithAlias(Aws::String &&value)
CreateDevEnvironmentRequest & WithSpaceName(const char *value)
CreateDevEnvironmentRequest & WithIdes(Aws::Vector< IdeConfiguration > &&value)
CreateDevEnvironmentRequest & WithProjectName(const Aws::String &value)
CreateDevEnvironmentRequest & WithPersistentStorage(const PersistentStorageConfiguration &value)
void SetPersistentStorage(PersistentStorageConfiguration &&value)
CreateDevEnvironmentRequest & WithClientToken(const char *value)
CreateDevEnvironmentRequest & WithSpaceName(const Aws::String &value)
CreateDevEnvironmentRequest & WithProjectName(Aws::String &&value)
CreateDevEnvironmentRequest & WithPersistentStorage(PersistentStorageConfiguration &&value)
CreateDevEnvironmentRequest & WithVpcConnectionName(const Aws::String &value)
CreateDevEnvironmentRequest & WithSpaceName(Aws::String &&value)
CreateDevEnvironmentRequest & WithVpcConnectionName(Aws::String &&value)
CreateDevEnvironmentRequest & WithRepositories(const Aws::Vector< RepositoryInput > &value)
CreateDevEnvironmentRequest & AddRepositories(const RepositoryInput &value)
CreateDevEnvironmentRequest & WithInstanceType(InstanceType &&value)
CreateDevEnvironmentRequest & WithAlias(const char *value)
CreateDevEnvironmentRequest & WithInactivityTimeoutMinutes(int value)
void SetIdes(const Aws::Vector< IdeConfiguration > &value)
CreateDevEnvironmentRequest & WithClientToken(Aws::String &&value)
void SetRepositories(Aws::Vector< RepositoryInput > &&value)
CreateDevEnvironmentRequest & AddRepositories(RepositoryInput &&value)
CreateDevEnvironmentRequest & AddIdes(IdeConfiguration &&value)
CreateDevEnvironmentRequest & WithClientToken(const Aws::String &value)
AWS_CODECATALYST_API Aws::String SerializePayload() const override
CreateDevEnvironmentRequest & WithProjectName(const char *value)
void SetIdes(Aws::Vector< IdeConfiguration > &&value)
const Aws::Vector< RepositoryInput > & GetRepositories() const
CreateDevEnvironmentRequest & WithInstanceType(const InstanceType &value)
const Aws::Vector< IdeConfiguration > & GetIdes() const
CreateDevEnvironmentRequest & WithRepositories(Aws::Vector< RepositoryInput > &&value)
CreateDevEnvironmentRequest & WithAlias(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector