AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateEnvironmentEC2Request.h
1
6#pragma once
7#include <aws/cloud9/Cloud9_EXPORTS.h>
8#include <aws/cloud9/Cloud9Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloud9/model/ConnectionType.h>
12#include <aws/cloud9/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Cloud9
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateEnvironmentEC2"; }
34
35 AWS_CLOUD9_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline CreateEnvironmentEC2Request& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline CreateEnvironmentEC2Request& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline CreateEnvironmentEC2Request& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline CreateEnvironmentEC2Request& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline CreateEnvironmentEC2Request& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline CreateEnvironmentEC2Request& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
76 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
77 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
78 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
79 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
80 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
82 inline CreateEnvironmentEC2Request& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
83 inline CreateEnvironmentEC2Request& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
85
87
91 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
92 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
93 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
94 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
95 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
96 inline CreateEnvironmentEC2Request& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
97 inline CreateEnvironmentEC2Request& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
98 inline CreateEnvironmentEC2Request& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
100
102
106 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
107 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
108 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
109 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
110 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
111 inline CreateEnvironmentEC2Request& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
112 inline CreateEnvironmentEC2Request& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
113 inline CreateEnvironmentEC2Request& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
115
117
143 inline const Aws::String& GetImageId() const{ return m_imageId; }
144 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
145 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
146 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
147 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
148 inline CreateEnvironmentEC2Request& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
149 inline CreateEnvironmentEC2Request& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
150 inline CreateEnvironmentEC2Request& WithImageId(const char* value) { SetImageId(value); return *this;}
152
154
158 inline int GetAutomaticStopTimeMinutes() const{ return m_automaticStopTimeMinutes; }
159 inline bool AutomaticStopTimeMinutesHasBeenSet() const { return m_automaticStopTimeMinutesHasBeenSet; }
160 inline void SetAutomaticStopTimeMinutes(int value) { m_automaticStopTimeMinutesHasBeenSet = true; m_automaticStopTimeMinutes = value; }
163
165
170 inline const Aws::String& GetOwnerArn() const{ return m_ownerArn; }
171 inline bool OwnerArnHasBeenSet() const { return m_ownerArnHasBeenSet; }
172 inline void SetOwnerArn(const Aws::String& value) { m_ownerArnHasBeenSet = true; m_ownerArn = value; }
173 inline void SetOwnerArn(Aws::String&& value) { m_ownerArnHasBeenSet = true; m_ownerArn = std::move(value); }
174 inline void SetOwnerArn(const char* value) { m_ownerArnHasBeenSet = true; m_ownerArn.assign(value); }
175 inline CreateEnvironmentEC2Request& WithOwnerArn(const Aws::String& value) { SetOwnerArn(value); return *this;}
176 inline CreateEnvironmentEC2Request& WithOwnerArn(Aws::String&& value) { SetOwnerArn(std::move(value)); return *this;}
177 inline CreateEnvironmentEC2Request& WithOwnerArn(const char* value) { SetOwnerArn(value); return *this;}
179
181
185 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
186 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
187 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
188 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
189 inline CreateEnvironmentEC2Request& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
190 inline CreateEnvironmentEC2Request& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
191 inline CreateEnvironmentEC2Request& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
192 inline CreateEnvironmentEC2Request& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
194
196
205 inline const ConnectionType& GetConnectionType() const{ return m_connectionType; }
206 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
207 inline void SetConnectionType(const ConnectionType& value) { m_connectionTypeHasBeenSet = true; m_connectionType = value; }
208 inline void SetConnectionType(ConnectionType&& value) { m_connectionTypeHasBeenSet = true; m_connectionType = std::move(value); }
210 inline CreateEnvironmentEC2Request& WithConnectionType(ConnectionType&& value) { SetConnectionType(std::move(value)); return *this;}
212
214
220 inline bool GetDryRun() const{ return m_dryRun; }
221 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
222 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
223 inline CreateEnvironmentEC2Request& WithDryRun(bool value) { SetDryRun(value); return *this;}
225 private:
226
227 Aws::String m_name;
228 bool m_nameHasBeenSet = false;
229
230 Aws::String m_description;
231 bool m_descriptionHasBeenSet = false;
232
233 Aws::String m_clientRequestToken;
234 bool m_clientRequestTokenHasBeenSet = false;
235
236 Aws::String m_instanceType;
237 bool m_instanceTypeHasBeenSet = false;
238
239 Aws::String m_subnetId;
240 bool m_subnetIdHasBeenSet = false;
241
242 Aws::String m_imageId;
243 bool m_imageIdHasBeenSet = false;
244
245 int m_automaticStopTimeMinutes;
246 bool m_automaticStopTimeMinutesHasBeenSet = false;
247
248 Aws::String m_ownerArn;
249 bool m_ownerArnHasBeenSet = false;
250
251 Aws::Vector<Tag> m_tags;
252 bool m_tagsHasBeenSet = false;
253
254 ConnectionType m_connectionType;
255 bool m_connectionTypeHasBeenSet = false;
256
257 bool m_dryRun;
258 bool m_dryRunHasBeenSet = false;
259 };
260
261} // namespace Model
262} // namespace Cloud9
263} // namespace Aws
CreateEnvironmentEC2Request & WithName(Aws::String &&value)
CreateEnvironmentEC2Request & WithName(const char *value)
CreateEnvironmentEC2Request & WithOwnerArn(const char *value)
AWS_CLOUD9_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEnvironmentEC2Request & AddTags(const Tag &value)
CreateEnvironmentEC2Request & WithSubnetId(const char *value)
AWS_CLOUD9_API Aws::String SerializePayload() const override
CreateEnvironmentEC2Request & WithConnectionType(const ConnectionType &value)
CreateEnvironmentEC2Request & WithInstanceType(const Aws::String &value)
CreateEnvironmentEC2Request & WithClientRequestToken(const char *value)
CreateEnvironmentEC2Request & WithClientRequestToken(const Aws::String &value)
CreateEnvironmentEC2Request & WithDryRun(bool value)
CreateEnvironmentEC2Request & WithClientRequestToken(Aws::String &&value)
CreateEnvironmentEC2Request & WithImageId(Aws::String &&value)
CreateEnvironmentEC2Request & WithOwnerArn(const Aws::String &value)
CreateEnvironmentEC2Request & WithSubnetId(Aws::String &&value)
CreateEnvironmentEC2Request & WithImageId(const char *value)
virtual const char * GetServiceRequestName() const override
CreateEnvironmentEC2Request & WithOwnerArn(Aws::String &&value)
CreateEnvironmentEC2Request & WithDescription(const Aws::String &value)
CreateEnvironmentEC2Request & WithInstanceType(Aws::String &&value)
CreateEnvironmentEC2Request & WithTags(Aws::Vector< Tag > &&value)
CreateEnvironmentEC2Request & WithDescription(Aws::String &&value)
CreateEnvironmentEC2Request & WithSubnetId(const Aws::String &value)
CreateEnvironmentEC2Request & WithDescription(const char *value)
CreateEnvironmentEC2Request & WithName(const Aws::String &value)
CreateEnvironmentEC2Request & WithAutomaticStopTimeMinutes(int value)
CreateEnvironmentEC2Request & WithImageId(const Aws::String &value)
CreateEnvironmentEC2Request & AddTags(Tag &&value)
CreateEnvironmentEC2Request & WithInstanceType(const char *value)
CreateEnvironmentEC2Request & WithConnectionType(ConnectionType &&value)
CreateEnvironmentEC2Request & WithTags(const Aws::Vector< Tag > &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