AWS SDK for C++

AWS SDK for C++ Version 1.11.839

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
152 inline const Aws::String& GetImageId() const { return m_imageId; }
153 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
154 template <typename ImageIdT = Aws::String>
155 void SetImageId(ImageIdT&& value) {
156 m_imageIdHasBeenSet = true;
157 m_imageId = std::forward<ImageIdT>(value);
158 }
159 template <typename ImageIdT = Aws::String>
161 SetImageId(std::forward<ImageIdT>(value));
162 return *this;
163 }
165
167
171 inline int GetAutomaticStopTimeMinutes() const { return m_automaticStopTimeMinutes; }
172 inline bool AutomaticStopTimeMinutesHasBeenSet() const { return m_automaticStopTimeMinutesHasBeenSet; }
173 inline void SetAutomaticStopTimeMinutes(int value) {
174 m_automaticStopTimeMinutesHasBeenSet = true;
175 m_automaticStopTimeMinutes = value;
176 }
179 return *this;
180 }
182
184
189 inline const Aws::String& GetOwnerArn() const { return m_ownerArn; }
190 inline bool OwnerArnHasBeenSet() const { return m_ownerArnHasBeenSet; }
191 template <typename OwnerArnT = Aws::String>
192 void SetOwnerArn(OwnerArnT&& value) {
193 m_ownerArnHasBeenSet = true;
194 m_ownerArn = std::forward<OwnerArnT>(value);
195 }
196 template <typename OwnerArnT = Aws::String>
198 SetOwnerArn(std::forward<OwnerArnT>(value));
199 return *this;
200 }
202
204
208 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
209 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
210 template <typename TagsT = Aws::Vector<Tag>>
211 void SetTags(TagsT&& value) {
212 m_tagsHasBeenSet = true;
213 m_tags = std::forward<TagsT>(value);
214 }
215 template <typename TagsT = Aws::Vector<Tag>>
217 SetTags(std::forward<TagsT>(value));
218 return *this;
219 }
220 template <typename TagsT = Tag>
222 m_tagsHasBeenSet = true;
223 m_tags.emplace_back(std::forward<TagsT>(value));
224 return *this;
225 }
227
229
238 inline ConnectionType GetConnectionType() const { return m_connectionType; }
239 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
241 m_connectionTypeHasBeenSet = true;
242 m_connectionType = value;
243 }
245 SetConnectionType(value);
246 return *this;
247 }
249
251
257 inline bool GetDryRun() const { return m_dryRun; }
258 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
259 inline void SetDryRun(bool value) {
260 m_dryRunHasBeenSet = true;
261 m_dryRun = value;
262 }
264 SetDryRun(value);
265 return *this;
266 }
268 private:
269 Aws::String m_name;
270
271 Aws::String m_description;
272
273 Aws::String m_clientRequestToken;
274
275 Aws::String m_instanceType;
276
277 Aws::String m_subnetId;
278
279 Aws::String m_imageId;
280
281 int m_automaticStopTimeMinutes{0};
282
283 Aws::String m_ownerArn;
284
285 Aws::Vector<Tag> m_tags;
286
287 ConnectionType m_connectionType{ConnectionType::NOT_SET};
288
289 bool m_dryRun{false};
290 bool m_nameHasBeenSet = false;
291 bool m_descriptionHasBeenSet = false;
292 bool m_clientRequestTokenHasBeenSet = false;
293 bool m_instanceTypeHasBeenSet = false;
294 bool m_subnetIdHasBeenSet = false;
295 bool m_imageIdHasBeenSet = false;
296 bool m_automaticStopTimeMinutesHasBeenSet = false;
297 bool m_ownerArnHasBeenSet = false;
298 bool m_tagsHasBeenSet = false;
299 bool m_connectionTypeHasBeenSet = false;
300 bool m_dryRunHasBeenSet = false;
301};
302
303} // namespace Model
304} // namespace Cloud9
305} // 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