AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateEnvironmentEC2Request.h
1
6#pragma once
7#include <aws/cloud9/Cloud9Request.h>
8#include <aws/cloud9/Cloud9_EXPORTS.h>
9#include <aws/cloud9/model/ConnectionType.h>
10#include <aws/cloud9/model/Tag.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 Cloud9 {
18namespace Model {
19
23 public:
24 AWS_CLOUD9_API CreateEnvironmentEC2Request() = 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 "CreateEnvironmentEC2"; }
31
32 AWS_CLOUD9_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
80 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
81 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
82 template <typename ClientRequestTokenT = Aws::String>
83 void SetClientRequestToken(ClientRequestTokenT&& value) {
84 m_clientRequestTokenHasBeenSet = true;
85 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
86 }
87 template <typename ClientRequestTokenT = Aws::String>
89 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
100 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
101 template <typename InstanceTypeT = Aws::String>
102 void SetInstanceType(InstanceTypeT&& value) {
103 m_instanceTypeHasBeenSet = true;
104 m_instanceType = std::forward<InstanceTypeT>(value);
105 }
106 template <typename InstanceTypeT = Aws::String>
108 SetInstanceType(std::forward<InstanceTypeT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
119 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
120 template <typename SubnetIdT = Aws::String>
121 void SetSubnetId(SubnetIdT&& value) {
122 m_subnetIdHasBeenSet = true;
123 m_subnetId = std::forward<SubnetIdT>(value);
124 }
125 template <typename SubnetIdT = Aws::String>
127 SetSubnetId(std::forward<SubnetIdT>(value));
128 return *this;
129 }
131
133
158 inline const Aws::String& GetImageId() const { return m_imageId; }
159 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
160 template <typename ImageIdT = Aws::String>
161 void SetImageId(ImageIdT&& value) {
162 m_imageIdHasBeenSet = true;
163 m_imageId = std::forward<ImageIdT>(value);
164 }
165 template <typename ImageIdT = Aws::String>
167 SetImageId(std::forward<ImageIdT>(value));
168 return *this;
169 }
171
173
177 inline int GetAutomaticStopTimeMinutes() const { return m_automaticStopTimeMinutes; }
178 inline bool AutomaticStopTimeMinutesHasBeenSet() const { return m_automaticStopTimeMinutesHasBeenSet; }
179 inline void SetAutomaticStopTimeMinutes(int value) {
180 m_automaticStopTimeMinutesHasBeenSet = true;
181 m_automaticStopTimeMinutes = value;
182 }
185 return *this;
186 }
188
190
195 inline const Aws::String& GetOwnerArn() const { return m_ownerArn; }
196 inline bool OwnerArnHasBeenSet() const { return m_ownerArnHasBeenSet; }
197 template <typename OwnerArnT = Aws::String>
198 void SetOwnerArn(OwnerArnT&& value) {
199 m_ownerArnHasBeenSet = true;
200 m_ownerArn = std::forward<OwnerArnT>(value);
201 }
202 template <typename OwnerArnT = Aws::String>
204 SetOwnerArn(std::forward<OwnerArnT>(value));
205 return *this;
206 }
208
210
214 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
215 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
216 template <typename TagsT = Aws::Vector<Tag>>
217 void SetTags(TagsT&& value) {
218 m_tagsHasBeenSet = true;
219 m_tags = std::forward<TagsT>(value);
220 }
221 template <typename TagsT = Aws::Vector<Tag>>
223 SetTags(std::forward<TagsT>(value));
224 return *this;
225 }
226 template <typename TagsT = Tag>
228 m_tagsHasBeenSet = true;
229 m_tags.emplace_back(std::forward<TagsT>(value));
230 return *this;
231 }
233
235
244 inline ConnectionType GetConnectionType() const { return m_connectionType; }
245 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
247 m_connectionTypeHasBeenSet = true;
248 m_connectionType = value;
249 }
251 SetConnectionType(value);
252 return *this;
253 }
255
257
263 inline bool GetDryRun() const { return m_dryRun; }
264 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
265 inline void SetDryRun(bool value) {
266 m_dryRunHasBeenSet = true;
267 m_dryRun = value;
268 }
270 SetDryRun(value);
271 return *this;
272 }
274 private:
275 Aws::String m_name;
276
277 Aws::String m_description;
278
279 Aws::String m_clientRequestToken;
280
281 Aws::String m_instanceType;
282
283 Aws::String m_subnetId;
284
285 Aws::String m_imageId;
286
287 int m_automaticStopTimeMinutes{0};
288
289 Aws::String m_ownerArn;
290
291 Aws::Vector<Tag> m_tags;
292
293 ConnectionType m_connectionType{ConnectionType::NOT_SET};
294
295 bool m_dryRun{false};
296 bool m_nameHasBeenSet = false;
297 bool m_descriptionHasBeenSet = false;
298 bool m_clientRequestTokenHasBeenSet = false;
299 bool m_instanceTypeHasBeenSet = false;
300 bool m_subnetIdHasBeenSet = false;
301 bool m_imageIdHasBeenSet = false;
302 bool m_automaticStopTimeMinutesHasBeenSet = false;
303 bool m_ownerArnHasBeenSet = false;
304 bool m_tagsHasBeenSet = false;
305 bool m_connectionTypeHasBeenSet = false;
306 bool m_dryRunHasBeenSet = false;
307};
308
309} // namespace Model
310} // namespace Cloud9
311} // namespace Aws
CreateEnvironmentEC2Request & WithInstanceType(InstanceTypeT &&value)
AWS_CLOUD9_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUD9_API Aws::String SerializePayload() const override
CreateEnvironmentEC2Request & WithImageId(ImageIdT &&value)
CreateEnvironmentEC2Request & WithDryRun(bool value)
CreateEnvironmentEC2Request & WithTags(TagsT &&value)
AWS_CLOUD9_API CreateEnvironmentEC2Request()=default
virtual const char * GetServiceRequestName() const override
CreateEnvironmentEC2Request & WithSubnetId(SubnetIdT &&value)
CreateEnvironmentEC2Request & WithAutomaticStopTimeMinutes(int value)
CreateEnvironmentEC2Request & WithName(NameT &&value)
CreateEnvironmentEC2Request & WithConnectionType(ConnectionType value)
CreateEnvironmentEC2Request & AddTags(TagsT &&value)
CreateEnvironmentEC2Request & WithOwnerArn(OwnerArnT &&value)
CreateEnvironmentEC2Request & WithClientRequestToken(ClientRequestTokenT &&value)
CreateEnvironmentEC2Request & WithDescription(DescriptionT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector