AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateDevEnvironmentRequest.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/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CodeCatalyst {
18namespace Model {
19
23 public:
24 AWS_CODECATALYST_API UpdateDevEnvironmentRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateDevEnvironment"; }
31
32 AWS_CODECATALYST_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetSpaceName() const { return m_spaceName; }
39 inline bool SpaceNameHasBeenSet() const { return m_spaceNameHasBeenSet; }
40 template <typename SpaceNameT = Aws::String>
41 void SetSpaceName(SpaceNameT&& value) {
42 m_spaceNameHasBeenSet = true;
43 m_spaceName = std::forward<SpaceNameT>(value);
44 }
45 template <typename SpaceNameT = Aws::String>
47 SetSpaceName(std::forward<SpaceNameT>(value));
48 return *this;
49 }
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) {
60 m_projectNameHasBeenSet = true;
61 m_projectName = std::forward<ProjectNameT>(value);
62 }
63 template <typename ProjectNameT = Aws::String>
65 SetProjectName(std::forward<ProjectNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetId() const { return m_id; }
75 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
76 template <typename IdT = Aws::String>
77 void SetId(IdT&& value) {
78 m_idHasBeenSet = true;
79 m_id = std::forward<IdT>(value);
80 }
81 template <typename IdT = Aws::String>
83 SetId(std::forward<IdT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::String& GetAlias() const { return m_alias; }
94 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
95 template <typename AliasT = Aws::String>
96 void SetAlias(AliasT&& value) {
97 m_aliasHasBeenSet = true;
98 m_alias = std::forward<AliasT>(value);
99 }
100 template <typename AliasT = Aws::String>
102 SetAlias(std::forward<AliasT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::Vector<IdeConfiguration>& GetIdes() const { return m_ides; }
113 inline bool IdesHasBeenSet() const { return m_idesHasBeenSet; }
114 template <typename IdesT = Aws::Vector<IdeConfiguration>>
115 void SetIdes(IdesT&& value) {
116 m_idesHasBeenSet = true;
117 m_ides = std::forward<IdesT>(value);
118 }
119 template <typename IdesT = Aws::Vector<IdeConfiguration>>
121 SetIdes(std::forward<IdesT>(value));
122 return *this;
123 }
124 template <typename IdesT = IdeConfiguration>
126 m_idesHasBeenSet = true;
127 m_ides.emplace_back(std::forward<IdesT>(value));
128 return *this;
129 }
131
133
138 inline InstanceType GetInstanceType() const { return m_instanceType; }
139 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
140 inline void SetInstanceType(InstanceType value) {
141 m_instanceTypeHasBeenSet = true;
142 m_instanceType = value;
143 }
145 SetInstanceType(value);
146 return *this;
147 }
149
151
157 inline int GetInactivityTimeoutMinutes() const { return m_inactivityTimeoutMinutes; }
158 inline bool InactivityTimeoutMinutesHasBeenSet() const { return m_inactivityTimeoutMinutesHasBeenSet; }
159 inline void SetInactivityTimeoutMinutes(int value) {
160 m_inactivityTimeoutMinutesHasBeenSet = true;
161 m_inactivityTimeoutMinutes = value;
162 }
165 return *this;
166 }
168
170
176 inline const Aws::String& GetClientToken() const { return m_clientToken; }
177 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
178 template <typename ClientTokenT = Aws::String>
179 void SetClientToken(ClientTokenT&& value) {
180 m_clientTokenHasBeenSet = true;
181 m_clientToken = std::forward<ClientTokenT>(value);
182 }
183 template <typename ClientTokenT = Aws::String>
185 SetClientToken(std::forward<ClientTokenT>(value));
186 return *this;
187 }
189 private:
190 Aws::String m_spaceName;
191
192 Aws::String m_projectName;
193
194 Aws::String m_id;
195
196 Aws::String m_alias;
197
199
200 InstanceType m_instanceType{InstanceType::NOT_SET};
201
202 int m_inactivityTimeoutMinutes{0};
203
204 Aws::String m_clientToken;
205 bool m_spaceNameHasBeenSet = false;
206 bool m_projectNameHasBeenSet = false;
207 bool m_idHasBeenSet = false;
208 bool m_aliasHasBeenSet = false;
209 bool m_idesHasBeenSet = false;
210 bool m_instanceTypeHasBeenSet = false;
211 bool m_inactivityTimeoutMinutesHasBeenSet = false;
212 bool m_clientTokenHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace CodeCatalyst
217} // namespace Aws
AWS_CODECATALYST_API UpdateDevEnvironmentRequest()=default
UpdateDevEnvironmentRequest & WithInstanceType(InstanceType value)
UpdateDevEnvironmentRequest & WithInactivityTimeoutMinutes(int value)
const Aws::Vector< IdeConfiguration > & GetIdes() const
UpdateDevEnvironmentRequest & WithSpaceName(SpaceNameT &&value)
UpdateDevEnvironmentRequest & WithClientToken(ClientTokenT &&value)
UpdateDevEnvironmentRequest & WithIdes(IdesT &&value)
UpdateDevEnvironmentRequest & WithAlias(AliasT &&value)
AWS_CODECATALYST_API Aws::String SerializePayload() const override
UpdateDevEnvironmentRequest & WithProjectName(ProjectNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector