AWS SDK for C++  1.8.95
AWS SDK for C++
CreateEnvironmentEC2Request.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <aws/cloud9/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Cloud9
18 {
19 namespace 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::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
50  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
56  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 
62  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 
68  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 
74  inline CreateEnvironmentEC2Request& WithName(const Aws::String& value) { SetName(value); return *this;}
75 
80  inline CreateEnvironmentEC2Request& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
81 
86  inline CreateEnvironmentEC2Request& WithName(const char* value) { SetName(value); return *this;}
87 
88 
92  inline const Aws::String& GetDescription() const{ return m_description; }
93 
97  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 
102  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
103 
107  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
108 
112  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
113 
117  inline CreateEnvironmentEC2Request& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
118 
122  inline CreateEnvironmentEC2Request& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
123 
127  inline CreateEnvironmentEC2Request& WithDescription(const char* value) { SetDescription(value); return *this;}
128 
129 
136  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
137 
144  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
145 
152  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
153 
160  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
161 
168  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
169 
176  inline CreateEnvironmentEC2Request& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
177 
184  inline CreateEnvironmentEC2Request& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
185 
192  inline CreateEnvironmentEC2Request& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
193 
194 
199  inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
200 
205  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
206 
211  inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
212 
217  inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
218 
223  inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
224 
229  inline CreateEnvironmentEC2Request& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
230 
235  inline CreateEnvironmentEC2Request& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
236 
241  inline CreateEnvironmentEC2Request& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
242 
243 
248  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
249 
254  inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
255 
260  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
261 
266  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
267 
272  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
273 
278  inline CreateEnvironmentEC2Request& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
279 
284  inline CreateEnvironmentEC2Request& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
285 
290  inline CreateEnvironmentEC2Request& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
291 
292 
297  inline int GetAutomaticStopTimeMinutes() const{ return m_automaticStopTimeMinutes; }
298 
303  inline bool AutomaticStopTimeMinutesHasBeenSet() const { return m_automaticStopTimeMinutesHasBeenSet; }
304 
309  inline void SetAutomaticStopTimeMinutes(int value) { m_automaticStopTimeMinutesHasBeenSet = true; m_automaticStopTimeMinutes = value; }
310 
315  inline CreateEnvironmentEC2Request& WithAutomaticStopTimeMinutes(int value) { SetAutomaticStopTimeMinutes(value); return *this;}
316 
317 
323  inline const Aws::String& GetOwnerArn() const{ return m_ownerArn; }
324 
330  inline bool OwnerArnHasBeenSet() const { return m_ownerArnHasBeenSet; }
331 
337  inline void SetOwnerArn(const Aws::String& value) { m_ownerArnHasBeenSet = true; m_ownerArn = value; }
338 
344  inline void SetOwnerArn(Aws::String&& value) { m_ownerArnHasBeenSet = true; m_ownerArn = std::move(value); }
345 
351  inline void SetOwnerArn(const char* value) { m_ownerArnHasBeenSet = true; m_ownerArn.assign(value); }
352 
358  inline CreateEnvironmentEC2Request& WithOwnerArn(const Aws::String& value) { SetOwnerArn(value); return *this;}
359 
365  inline CreateEnvironmentEC2Request& WithOwnerArn(Aws::String&& value) { SetOwnerArn(std::move(value)); return *this;}
366 
372  inline CreateEnvironmentEC2Request& WithOwnerArn(const char* value) { SetOwnerArn(value); return *this;}
373 
374 
379  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
380 
385  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
386 
391  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
392 
397  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
398 
403  inline CreateEnvironmentEC2Request& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
404 
409  inline CreateEnvironmentEC2Request& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
410 
415  inline CreateEnvironmentEC2Request& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
416 
421  inline CreateEnvironmentEC2Request& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
422 
423 
427  inline const ConnectionType& GetConnectionType() const{ return m_connectionType; }
428 
432  inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
433 
437  inline void SetConnectionType(const ConnectionType& value) { m_connectionTypeHasBeenSet = true; m_connectionType = value; }
438 
442  inline void SetConnectionType(ConnectionType&& value) { m_connectionTypeHasBeenSet = true; m_connectionType = std::move(value); }
443 
447  inline CreateEnvironmentEC2Request& WithConnectionType(const ConnectionType& value) { SetConnectionType(value); return *this;}
448 
452  inline CreateEnvironmentEC2Request& WithConnectionType(ConnectionType&& value) { SetConnectionType(std::move(value)); return *this;}
453 
454  private:
455 
456  Aws::String m_name;
457  bool m_nameHasBeenSet;
458 
459  Aws::String m_description;
460  bool m_descriptionHasBeenSet;
461 
462  Aws::String m_clientRequestToken;
463  bool m_clientRequestTokenHasBeenSet;
464 
465  Aws::String m_instanceType;
466  bool m_instanceTypeHasBeenSet;
467 
468  Aws::String m_subnetId;
469  bool m_subnetIdHasBeenSet;
470 
471  int m_automaticStopTimeMinutes;
472  bool m_automaticStopTimeMinutesHasBeenSet;
473 
474  Aws::String m_ownerArn;
475  bool m_ownerArnHasBeenSet;
476 
477  Aws::Vector<Tag> m_tags;
478  bool m_tagsHasBeenSet;
479 
480  ConnectionType m_connectionType;
481  bool m_connectionTypeHasBeenSet;
482  };
483 
484 } // namespace Model
485 } // namespace Cloud9
486 } // namespace Aws
CreateEnvironmentEC2Request & WithAutomaticStopTimeMinutes(int value)
CreateEnvironmentEC2Request & WithDescription(const Aws::String &value)
CreateEnvironmentEC2Request & WithSubnetId(const char *value)
CreateEnvironmentEC2Request & WithOwnerArn(const char *value)
CreateEnvironmentEC2Request & WithConnectionType(const ConnectionType &value)
virtual const char * GetServiceRequestName() const override
CreateEnvironmentEC2Request & WithDescription(const char *value)
CreateEnvironmentEC2Request & WithSubnetId(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateEnvironmentEC2Request & WithInstanceType(const char *value)
CreateEnvironmentEC2Request & AddTags(Tag &&value)
CreateEnvironmentEC2Request & WithOwnerArn(Aws::String &&value)
CreateEnvironmentEC2Request & WithInstanceType(const Aws::String &value)
CreateEnvironmentEC2Request & WithName(const Aws::String &value)
CreateEnvironmentEC2Request & WithDescription(Aws::String &&value)
CreateEnvironmentEC2Request & WithOwnerArn(const Aws::String &value)
CreateEnvironmentEC2Request & WithClientRequestToken(const char *value)
CreateEnvironmentEC2Request & WithSubnetId(Aws::String &&value)
CreateEnvironmentEC2Request & WithClientRequestToken(const Aws::String &value)
CreateEnvironmentEC2Request & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateEnvironmentEC2Request & WithClientRequestToken(Aws::String &&value)
CreateEnvironmentEC2Request & WithInstanceType(Aws::String &&value)
CreateEnvironmentEC2Request & WithTags(const Aws::Vector< Tag > &value)
CreateEnvironmentEC2Request & WithTags(Aws::Vector< Tag > &&value)
CreateEnvironmentEC2Request & WithConnectionType(ConnectionType &&value)
#define AWS_CLOUD9_API
CreateEnvironmentEC2Request & AddTags(const Tag &value)
CreateEnvironmentEC2Request & WithName(const char *value)