AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
27 AWS_CLOUD9_API CreateEnvironmentEC2Request() = default;
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 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 CreateEnvironmentEC2Request& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template<typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 CreateEnvironmentEC2Request& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
72 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
73 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
74 template<typename ClientRequestTokenT = Aws::String>
75 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
76 template<typename ClientRequestTokenT = Aws::String>
77 CreateEnvironmentEC2Request& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
79
81
85 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
86 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
87 template<typename InstanceTypeT = Aws::String>
88 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
89 template<typename InstanceTypeT = Aws::String>
90 CreateEnvironmentEC2Request& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
92
94
98 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
99 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
100 template<typename SubnetIdT = Aws::String>
101 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
102 template<typename SubnetIdT = Aws::String>
103 CreateEnvironmentEC2Request& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
105
107
132 inline const Aws::String& GetImageId() const { return m_imageId; }
133 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
134 template<typename ImageIdT = Aws::String>
135 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
136 template<typename ImageIdT = Aws::String>
137 CreateEnvironmentEC2Request& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
139
141
145 inline int GetAutomaticStopTimeMinutes() const { return m_automaticStopTimeMinutes; }
146 inline bool AutomaticStopTimeMinutesHasBeenSet() const { return m_automaticStopTimeMinutesHasBeenSet; }
147 inline void SetAutomaticStopTimeMinutes(int value) { m_automaticStopTimeMinutesHasBeenSet = true; m_automaticStopTimeMinutes = value; }
150
152
157 inline const Aws::String& GetOwnerArn() const { return m_ownerArn; }
158 inline bool OwnerArnHasBeenSet() const { return m_ownerArnHasBeenSet; }
159 template<typename OwnerArnT = Aws::String>
160 void SetOwnerArn(OwnerArnT&& value) { m_ownerArnHasBeenSet = true; m_ownerArn = std::forward<OwnerArnT>(value); }
161 template<typename OwnerArnT = Aws::String>
162 CreateEnvironmentEC2Request& WithOwnerArn(OwnerArnT&& value) { SetOwnerArn(std::forward<OwnerArnT>(value)); return *this;}
164
166
170 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
171 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
172 template<typename TagsT = Aws::Vector<Tag>>
173 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
174 template<typename TagsT = Aws::Vector<Tag>>
175 CreateEnvironmentEC2Request& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
176 template<typename TagsT = Tag>
177 CreateEnvironmentEC2Request& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
179
181
190 inline ConnectionType GetConnectionType() const { return m_connectionType; }
191 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
192 inline void SetConnectionType(ConnectionType value) { m_connectionTypeHasBeenSet = true; m_connectionType = value; }
195
197
203 inline bool GetDryRun() const { return m_dryRun; }
204 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
205 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
206 inline CreateEnvironmentEC2Request& WithDryRun(bool value) { SetDryRun(value); return *this;}
208 private:
209
210 Aws::String m_name;
211 bool m_nameHasBeenSet = false;
212
213 Aws::String m_description;
214 bool m_descriptionHasBeenSet = false;
215
216 Aws::String m_clientRequestToken;
217 bool m_clientRequestTokenHasBeenSet = false;
218
219 Aws::String m_instanceType;
220 bool m_instanceTypeHasBeenSet = false;
221
222 Aws::String m_subnetId;
223 bool m_subnetIdHasBeenSet = false;
224
225 Aws::String m_imageId;
226 bool m_imageIdHasBeenSet = false;
227
228 int m_automaticStopTimeMinutes{0};
229 bool m_automaticStopTimeMinutesHasBeenSet = false;
230
231 Aws::String m_ownerArn;
232 bool m_ownerArnHasBeenSet = false;
233
234 Aws::Vector<Tag> m_tags;
235 bool m_tagsHasBeenSet = false;
236
237 ConnectionType m_connectionType{ConnectionType::NOT_SET};
238 bool m_connectionTypeHasBeenSet = false;
239
240 bool m_dryRun{false};
241 bool m_dryRunHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace Cloud9
246} // 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