AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateInstanceRequest.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/opsworks/OpsWorksRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/opsworks/model/AutoScalingType.h>
12#include <aws/opsworks/model/Architecture.h>
13#include <aws/opsworks/model/RootDeviceType.h>
14#include <aws/opsworks/model/BlockDeviceMapping.h>
15#include <utility>
16
17namespace Aws
18{
19namespace OpsWorks
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_OPSWORKS_API CreateInstanceRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateInstance"; }
36
37 AWS_OPSWORKS_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetStackId() const{ return m_stackId; }
47 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
48 inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
49 inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
50 inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
51 inline CreateInstanceRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
52 inline CreateInstanceRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
53 inline CreateInstanceRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetLayerIds() const{ return m_layerIds; }
61 inline bool LayerIdsHasBeenSet() const { return m_layerIdsHasBeenSet; }
62 inline void SetLayerIds(const Aws::Vector<Aws::String>& value) { m_layerIdsHasBeenSet = true; m_layerIds = value; }
63 inline void SetLayerIds(Aws::Vector<Aws::String>&& value) { m_layerIdsHasBeenSet = true; m_layerIds = std::move(value); }
64 inline CreateInstanceRequest& WithLayerIds(const Aws::Vector<Aws::String>& value) { SetLayerIds(value); return *this;}
65 inline CreateInstanceRequest& WithLayerIds(Aws::Vector<Aws::String>&& value) { SetLayerIds(std::move(value)); return *this;}
66 inline CreateInstanceRequest& AddLayerIds(const Aws::String& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; }
67 inline CreateInstanceRequest& AddLayerIds(Aws::String&& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(std::move(value)); return *this; }
68 inline CreateInstanceRequest& AddLayerIds(const char* value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; }
70
72
82 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
83 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
84 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
85 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
86 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
87 inline CreateInstanceRequest& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
88 inline CreateInstanceRequest& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
89 inline CreateInstanceRequest& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
91
93
97 inline const AutoScalingType& GetAutoScalingType() const{ return m_autoScalingType; }
98 inline bool AutoScalingTypeHasBeenSet() const { return m_autoScalingTypeHasBeenSet; }
99 inline void SetAutoScalingType(const AutoScalingType& value) { m_autoScalingTypeHasBeenSet = true; m_autoScalingType = value; }
100 inline void SetAutoScalingType(AutoScalingType&& value) { m_autoScalingTypeHasBeenSet = true; m_autoScalingType = std::move(value); }
102 inline CreateInstanceRequest& WithAutoScalingType(AutoScalingType&& value) { SetAutoScalingType(std::move(value)); return *this;}
104
106
111 inline const Aws::String& GetHostname() const{ return m_hostname; }
112 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
113 inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
114 inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
115 inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
116 inline CreateInstanceRequest& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
117 inline CreateInstanceRequest& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;}
118 inline CreateInstanceRequest& WithHostname(const char* value) { SetHostname(value); return *this;}
120
122
150 inline const Aws::String& GetOs() const{ return m_os; }
151 inline bool OsHasBeenSet() const { return m_osHasBeenSet; }
152 inline void SetOs(const Aws::String& value) { m_osHasBeenSet = true; m_os = value; }
153 inline void SetOs(Aws::String&& value) { m_osHasBeenSet = true; m_os = std::move(value); }
154 inline void SetOs(const char* value) { m_osHasBeenSet = true; m_os.assign(value); }
155 inline CreateInstanceRequest& WithOs(const Aws::String& value) { SetOs(value); return *this;}
156 inline CreateInstanceRequest& WithOs(Aws::String&& value) { SetOs(std::move(value)); return *this;}
157 inline CreateInstanceRequest& WithOs(const char* value) { SetOs(value); return *this;}
159
161
168 inline const Aws::String& GetAmiId() const{ return m_amiId; }
169 inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; }
170 inline void SetAmiId(const Aws::String& value) { m_amiIdHasBeenSet = true; m_amiId = value; }
171 inline void SetAmiId(Aws::String&& value) { m_amiIdHasBeenSet = true; m_amiId = std::move(value); }
172 inline void SetAmiId(const char* value) { m_amiIdHasBeenSet = true; m_amiId.assign(value); }
173 inline CreateInstanceRequest& WithAmiId(const Aws::String& value) { SetAmiId(value); return *this;}
174 inline CreateInstanceRequest& WithAmiId(Aws::String&& value) { SetAmiId(std::move(value)); return *this;}
175 inline CreateInstanceRequest& WithAmiId(const char* value) { SetAmiId(value); return *this;}
177
179
182 inline const Aws::String& GetSshKeyName() const{ return m_sshKeyName; }
183 inline bool SshKeyNameHasBeenSet() const { return m_sshKeyNameHasBeenSet; }
184 inline void SetSshKeyName(const Aws::String& value) { m_sshKeyNameHasBeenSet = true; m_sshKeyName = value; }
185 inline void SetSshKeyName(Aws::String&& value) { m_sshKeyNameHasBeenSet = true; m_sshKeyName = std::move(value); }
186 inline void SetSshKeyName(const char* value) { m_sshKeyNameHasBeenSet = true; m_sshKeyName.assign(value); }
187 inline CreateInstanceRequest& WithSshKeyName(const Aws::String& value) { SetSshKeyName(value); return *this;}
188 inline CreateInstanceRequest& WithSshKeyName(Aws::String&& value) { SetSshKeyName(std::move(value)); return *this;}
189 inline CreateInstanceRequest& WithSshKeyName(const char* value) { SetSshKeyName(value); return *this;}
191
193
198 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
199 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
200 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
201 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
202 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
203 inline CreateInstanceRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
204 inline CreateInstanceRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
205 inline CreateInstanceRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
207
209
213 inline const Aws::String& GetVirtualizationType() const{ return m_virtualizationType; }
214 inline bool VirtualizationTypeHasBeenSet() const { return m_virtualizationTypeHasBeenSet; }
215 inline void SetVirtualizationType(const Aws::String& value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType = value; }
216 inline void SetVirtualizationType(Aws::String&& value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType = std::move(value); }
217 inline void SetVirtualizationType(const char* value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType.assign(value); }
219 inline CreateInstanceRequest& WithVirtualizationType(Aws::String&& value) { SetVirtualizationType(std::move(value)); return *this;}
220 inline CreateInstanceRequest& WithVirtualizationType(const char* value) { SetVirtualizationType(value); return *this;}
222
224
229 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
230 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
231 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
232 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
233 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
234 inline CreateInstanceRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
235 inline CreateInstanceRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
236 inline CreateInstanceRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
238
240
247 inline const Architecture& GetArchitecture() const{ return m_architecture; }
248 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
249 inline void SetArchitecture(const Architecture& value) { m_architectureHasBeenSet = true; m_architecture = value; }
250 inline void SetArchitecture(Architecture&& value) { m_architectureHasBeenSet = true; m_architecture = std::move(value); }
251 inline CreateInstanceRequest& WithArchitecture(const Architecture& value) { SetArchitecture(value); return *this;}
252 inline CreateInstanceRequest& WithArchitecture(Architecture&& value) { SetArchitecture(std::move(value)); return *this;}
254
256
261 inline const RootDeviceType& GetRootDeviceType() const{ return m_rootDeviceType; }
262 inline bool RootDeviceTypeHasBeenSet() const { return m_rootDeviceTypeHasBeenSet; }
263 inline void SetRootDeviceType(const RootDeviceType& value) { m_rootDeviceTypeHasBeenSet = true; m_rootDeviceType = value; }
264 inline void SetRootDeviceType(RootDeviceType&& value) { m_rootDeviceTypeHasBeenSet = true; m_rootDeviceType = std::move(value); }
265 inline CreateInstanceRequest& WithRootDeviceType(const RootDeviceType& value) { SetRootDeviceType(value); return *this;}
266 inline CreateInstanceRequest& WithRootDeviceType(RootDeviceType&& value) { SetRootDeviceType(std::move(value)); return *this;}
268
270
277 inline const Aws::Vector<BlockDeviceMapping>& GetBlockDeviceMappings() const{ return m_blockDeviceMappings; }
278 inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; }
279 inline void SetBlockDeviceMappings(const Aws::Vector<BlockDeviceMapping>& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = value; }
280 inline void SetBlockDeviceMappings(Aws::Vector<BlockDeviceMapping>&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = std::move(value); }
283 inline CreateInstanceRequest& AddBlockDeviceMappings(const BlockDeviceMapping& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; }
284 inline CreateInstanceRequest& AddBlockDeviceMappings(BlockDeviceMapping&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(std::move(value)); return *this; }
286
288
299 inline bool GetInstallUpdatesOnBoot() const{ return m_installUpdatesOnBoot; }
300 inline bool InstallUpdatesOnBootHasBeenSet() const { return m_installUpdatesOnBootHasBeenSet; }
301 inline void SetInstallUpdatesOnBoot(bool value) { m_installUpdatesOnBootHasBeenSet = true; m_installUpdatesOnBoot = value; }
302 inline CreateInstanceRequest& WithInstallUpdatesOnBoot(bool value) { SetInstallUpdatesOnBoot(value); return *this;}
304
306
309 inline bool GetEbsOptimized() const{ return m_ebsOptimized; }
310 inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
311 inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; }
312 inline CreateInstanceRequest& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;}
314
316
328 inline const Aws::String& GetAgentVersion() const{ return m_agentVersion; }
329 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
330 inline void SetAgentVersion(const Aws::String& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; }
331 inline void SetAgentVersion(Aws::String&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::move(value); }
332 inline void SetAgentVersion(const char* value) { m_agentVersionHasBeenSet = true; m_agentVersion.assign(value); }
333 inline CreateInstanceRequest& WithAgentVersion(const Aws::String& value) { SetAgentVersion(value); return *this;}
334 inline CreateInstanceRequest& WithAgentVersion(Aws::String&& value) { SetAgentVersion(std::move(value)); return *this;}
335 inline CreateInstanceRequest& WithAgentVersion(const char* value) { SetAgentVersion(value); return *this;}
337
339
354 inline const Aws::String& GetTenancy() const{ return m_tenancy; }
355 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
356 inline void SetTenancy(const Aws::String& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
357 inline void SetTenancy(Aws::String&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
358 inline void SetTenancy(const char* value) { m_tenancyHasBeenSet = true; m_tenancy.assign(value); }
359 inline CreateInstanceRequest& WithTenancy(const Aws::String& value) { SetTenancy(value); return *this;}
360 inline CreateInstanceRequest& WithTenancy(Aws::String&& value) { SetTenancy(std::move(value)); return *this;}
361 inline CreateInstanceRequest& WithTenancy(const char* value) { SetTenancy(value); return *this;}
363 private:
364
365 Aws::String m_stackId;
366 bool m_stackIdHasBeenSet = false;
367
368 Aws::Vector<Aws::String> m_layerIds;
369 bool m_layerIdsHasBeenSet = false;
370
371 Aws::String m_instanceType;
372 bool m_instanceTypeHasBeenSet = false;
373
374 AutoScalingType m_autoScalingType;
375 bool m_autoScalingTypeHasBeenSet = false;
376
377 Aws::String m_hostname;
378 bool m_hostnameHasBeenSet = false;
379
380 Aws::String m_os;
381 bool m_osHasBeenSet = false;
382
383 Aws::String m_amiId;
384 bool m_amiIdHasBeenSet = false;
385
386 Aws::String m_sshKeyName;
387 bool m_sshKeyNameHasBeenSet = false;
388
389 Aws::String m_availabilityZone;
390 bool m_availabilityZoneHasBeenSet = false;
391
392 Aws::String m_virtualizationType;
393 bool m_virtualizationTypeHasBeenSet = false;
394
395 Aws::String m_subnetId;
396 bool m_subnetIdHasBeenSet = false;
397
398 Architecture m_architecture;
399 bool m_architectureHasBeenSet = false;
400
401 RootDeviceType m_rootDeviceType;
402 bool m_rootDeviceTypeHasBeenSet = false;
403
404 Aws::Vector<BlockDeviceMapping> m_blockDeviceMappings;
405 bool m_blockDeviceMappingsHasBeenSet = false;
406
407 bool m_installUpdatesOnBoot;
408 bool m_installUpdatesOnBootHasBeenSet = false;
409
410 bool m_ebsOptimized;
411 bool m_ebsOptimizedHasBeenSet = false;
412
413 Aws::String m_agentVersion;
414 bool m_agentVersionHasBeenSet = false;
415
416 Aws::String m_tenancy;
417 bool m_tenancyHasBeenSet = false;
418 };
419
420} // namespace Model
421} // namespace OpsWorks
422} // namespace Aws
void SetArchitecture(const Architecture &value)
CreateInstanceRequest & WithSshKeyName(const Aws::String &value)
void SetRootDeviceType(const RootDeviceType &value)
CreateInstanceRequest & WithSubnetId(const char *value)
CreateInstanceRequest & WithStackId(const Aws::String &value)
void SetVirtualizationType(const Aws::String &value)
const AutoScalingType & GetAutoScalingType() const
CreateInstanceRequest & WithTenancy(const Aws::String &value)
const Aws::Vector< BlockDeviceMapping > & GetBlockDeviceMappings() const
CreateInstanceRequest & WithInstanceType(const Aws::String &value)
CreateInstanceRequest & WithRootDeviceType(RootDeviceType &&value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateInstanceRequest & WithOs(Aws::String &&value)
CreateInstanceRequest & WithSubnetId(const Aws::String &value)
void SetBlockDeviceMappings(Aws::Vector< BlockDeviceMapping > &&value)
CreateInstanceRequest & WithAvailabilityZone(Aws::String &&value)
CreateInstanceRequest & WithOs(const Aws::String &value)
CreateInstanceRequest & WithSubnetId(Aws::String &&value)
CreateInstanceRequest & AddBlockDeviceMappings(BlockDeviceMapping &&value)
CreateInstanceRequest & WithAgentVersion(const char *value)
CreateInstanceRequest & WithAgentVersion(Aws::String &&value)
CreateInstanceRequest & AddBlockDeviceMappings(const BlockDeviceMapping &value)
CreateInstanceRequest & WithLayerIds(Aws::Vector< Aws::String > &&value)
CreateInstanceRequest & WithVirtualizationType(const char *value)
CreateInstanceRequest & WithRootDeviceType(const RootDeviceType &value)
CreateInstanceRequest & WithAmiId(const Aws::String &value)
void SetBlockDeviceMappings(const Aws::Vector< BlockDeviceMapping > &value)
CreateInstanceRequest & WithAgentVersion(const Aws::String &value)
void SetAvailabilityZone(const Aws::String &value)
CreateInstanceRequest & WithBlockDeviceMappings(const Aws::Vector< BlockDeviceMapping > &value)
CreateInstanceRequest & WithAmiId(Aws::String &&value)
CreateInstanceRequest & WithAmiId(const char *value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
CreateInstanceRequest & WithAutoScalingType(AutoScalingType &&value)
void SetLayerIds(Aws::Vector< Aws::String > &&value)
CreateInstanceRequest & WithHostname(Aws::String &&value)
CreateInstanceRequest & WithVirtualizationType(Aws::String &&value)
CreateInstanceRequest & WithAvailabilityZone(const char *value)
CreateInstanceRequest & WithInstanceType(Aws::String &&value)
CreateInstanceRequest & WithTenancy(const char *value)
CreateInstanceRequest & WithAvailabilityZone(const Aws::String &value)
void SetAutoScalingType(const AutoScalingType &value)
CreateInstanceRequest & WithVirtualizationType(const Aws::String &value)
CreateInstanceRequest & WithAutoScalingType(const AutoScalingType &value)
CreateInstanceRequest & AddLayerIds(Aws::String &&value)
CreateInstanceRequest & WithArchitecture(Architecture &&value)
CreateInstanceRequest & WithSshKeyName(const char *value)
CreateInstanceRequest & WithInstallUpdatesOnBoot(bool value)
CreateInstanceRequest & WithInstanceType(const char *value)
CreateInstanceRequest & WithTenancy(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateInstanceRequest & AddLayerIds(const Aws::String &value)
CreateInstanceRequest & WithEbsOptimized(bool value)
CreateInstanceRequest & WithLayerIds(const Aws::Vector< Aws::String > &value)
CreateInstanceRequest & AddLayerIds(const char *value)
CreateInstanceRequest & WithOs(const char *value)
void SetLayerIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetLayerIds() const
CreateInstanceRequest & WithArchitecture(const Architecture &value)
CreateInstanceRequest & WithStackId(const char *value)
CreateInstanceRequest & WithBlockDeviceMappings(Aws::Vector< BlockDeviceMapping > &&value)
CreateInstanceRequest & WithStackId(Aws::String &&value)
CreateInstanceRequest & WithSshKeyName(Aws::String &&value)
CreateInstanceRequest & WithHostname(const char *value)
CreateInstanceRequest & WithHostname(const Aws::String &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