AWS SDK for C++

AWS SDK for C++ Version 1.11.636

Loading...
Searching...
No Matches
RequestLaunchTemplateData.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/LaunchTemplateIamInstanceProfileSpecificationRequest.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/InstanceType.h>
13#include <aws/ec2/model/LaunchTemplatesMonitoringRequest.h>
14#include <aws/ec2/model/LaunchTemplatePlacementRequest.h>
15#include <aws/ec2/model/ShutdownBehavior.h>
16#include <aws/ec2/model/LaunchTemplateInstanceMarketOptionsRequest.h>
17#include <aws/ec2/model/CreditSpecificationRequest.h>
18#include <aws/ec2/model/LaunchTemplateCpuOptionsRequest.h>
19#include <aws/ec2/model/LaunchTemplateCapacityReservationSpecificationRequest.h>
20#include <aws/ec2/model/LaunchTemplateHibernationOptionsRequest.h>
21#include <aws/ec2/model/LaunchTemplateInstanceMetadataOptionsRequest.h>
22#include <aws/ec2/model/LaunchTemplateEnclaveOptionsRequest.h>
23#include <aws/ec2/model/InstanceRequirementsRequest.h>
24#include <aws/ec2/model/LaunchTemplatePrivateDnsNameOptionsRequest.h>
25#include <aws/ec2/model/LaunchTemplateInstanceMaintenanceOptionsRequest.h>
26#include <aws/ec2/model/OperatorRequest.h>
27#include <aws/ec2/model/LaunchTemplateNetworkPerformanceOptionsRequest.h>
28#include <aws/ec2/model/LaunchTemplateBlockDeviceMappingRequest.h>
29#include <aws/ec2/model/LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.h>
30#include <aws/ec2/model/LaunchTemplateTagSpecificationRequest.h>
31#include <aws/ec2/model/LaunchTemplateLicenseConfigurationRequest.h>
32#include <utility>
33
34namespace Aws
35{
36namespace Utils
37{
38namespace Xml
39{
40 class XmlNode;
41} // namespace Xml
42} // namespace Utils
43namespace EC2
44{
45namespace Model
46{
47
56 {
57 public:
58 AWS_EC2_API RequestLaunchTemplateData() = default;
61
62 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
63 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
64
65
67
73 inline const Aws::String& GetKernelId() const { return m_kernelId; }
74 inline bool KernelIdHasBeenSet() const { return m_kernelIdHasBeenSet; }
75 template<typename KernelIdT = Aws::String>
76 void SetKernelId(KernelIdT&& value) { m_kernelIdHasBeenSet = true; m_kernelId = std::forward<KernelIdT>(value); }
77 template<typename KernelIdT = Aws::String>
78 RequestLaunchTemplateData& WithKernelId(KernelIdT&& value) { SetKernelId(std::forward<KernelIdT>(value)); return *this;}
80
82
89 inline bool GetEbsOptimized() const { return m_ebsOptimized; }
90 inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
91 inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; }
92 inline RequestLaunchTemplateData& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;}
94
96
99 inline const LaunchTemplateIamInstanceProfileSpecificationRequest& GetIamInstanceProfile() const { return m_iamInstanceProfile; }
100 inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; }
101 template<typename IamInstanceProfileT = LaunchTemplateIamInstanceProfileSpecificationRequest>
102 void SetIamInstanceProfile(IamInstanceProfileT&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::forward<IamInstanceProfileT>(value); }
103 template<typename IamInstanceProfileT = LaunchTemplateIamInstanceProfileSpecificationRequest>
104 RequestLaunchTemplateData& WithIamInstanceProfile(IamInstanceProfileT&& value) { SetIamInstanceProfile(std::forward<IamInstanceProfileT>(value)); return *this;}
106
108
111 inline const Aws::Vector<LaunchTemplateBlockDeviceMappingRequest>& GetBlockDeviceMappings() const { return m_blockDeviceMappings; }
112 inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; }
113 template<typename BlockDeviceMappingsT = Aws::Vector<LaunchTemplateBlockDeviceMappingRequest>>
114 void SetBlockDeviceMappings(BlockDeviceMappingsT&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = std::forward<BlockDeviceMappingsT>(value); }
115 template<typename BlockDeviceMappingsT = Aws::Vector<LaunchTemplateBlockDeviceMappingRequest>>
116 RequestLaunchTemplateData& WithBlockDeviceMappings(BlockDeviceMappingsT&& value) { SetBlockDeviceMappings(std::forward<BlockDeviceMappingsT>(value)); return *this;}
117 template<typename BlockDeviceMappingsT = LaunchTemplateBlockDeviceMappingRequest>
118 RequestLaunchTemplateData& AddBlockDeviceMappings(BlockDeviceMappingsT&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.emplace_back(std::forward<BlockDeviceMappingsT>(value)); return *this; }
120
122
126 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
127 template<typename NetworkInterfacesT = Aws::Vector<LaunchTemplateInstanceNetworkInterfaceSpecificationRequest>>
128 void SetNetworkInterfaces(NetworkInterfacesT&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::forward<NetworkInterfacesT>(value); }
129 template<typename NetworkInterfacesT = Aws::Vector<LaunchTemplateInstanceNetworkInterfaceSpecificationRequest>>
130 RequestLaunchTemplateData& WithNetworkInterfaces(NetworkInterfacesT&& value) { SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value)); return *this;}
131 template<typename NetworkInterfacesT = LaunchTemplateInstanceNetworkInterfaceSpecificationRequest>
132 RequestLaunchTemplateData& AddNetworkInterfaces(NetworkInterfacesT&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value)); return *this; }
134
136
159 inline const Aws::String& GetImageId() const { return m_imageId; }
160 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
161 template<typename ImageIdT = Aws::String>
162 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
163 template<typename ImageIdT = Aws::String>
164 RequestLaunchTemplateData& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
166
168
175 inline InstanceType GetInstanceType() const { return m_instanceType; }
176 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
177 inline void SetInstanceType(InstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
180
182
191 inline const Aws::String& GetKeyName() const { return m_keyName; }
192 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
193 template<typename KeyNameT = Aws::String>
194 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet = true; m_keyName = std::forward<KeyNameT>(value); }
195 template<typename KeyNameT = Aws::String>
196 RequestLaunchTemplateData& WithKeyName(KeyNameT&& value) { SetKeyName(std::forward<KeyNameT>(value)); return *this;}
198
200
203 inline const LaunchTemplatesMonitoringRequest& GetMonitoring() const { return m_monitoring; }
204 inline bool MonitoringHasBeenSet() const { return m_monitoringHasBeenSet; }
205 template<typename MonitoringT = LaunchTemplatesMonitoringRequest>
206 void SetMonitoring(MonitoringT&& value) { m_monitoringHasBeenSet = true; m_monitoring = std::forward<MonitoringT>(value); }
207 template<typename MonitoringT = LaunchTemplatesMonitoringRequest>
208 RequestLaunchTemplateData& WithMonitoring(MonitoringT&& value) { SetMonitoring(std::forward<MonitoringT>(value)); return *this;}
210
212
215 inline const LaunchTemplatePlacementRequest& GetPlacement() const { return m_placement; }
216 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
217 template<typename PlacementT = LaunchTemplatePlacementRequest>
218 void SetPlacement(PlacementT&& value) { m_placementHasBeenSet = true; m_placement = std::forward<PlacementT>(value); }
219 template<typename PlacementT = LaunchTemplatePlacementRequest>
220 RequestLaunchTemplateData& WithPlacement(PlacementT&& value) { SetPlacement(std::forward<PlacementT>(value)); return *this;}
222
224
230 inline const Aws::String& GetRamDiskId() const { return m_ramDiskId; }
231 inline bool RamDiskIdHasBeenSet() const { return m_ramDiskIdHasBeenSet; }
232 template<typename RamDiskIdT = Aws::String>
233 void SetRamDiskId(RamDiskIdT&& value) { m_ramDiskIdHasBeenSet = true; m_ramDiskId = std::forward<RamDiskIdT>(value); }
234 template<typename RamDiskIdT = Aws::String>
235 RequestLaunchTemplateData& WithRamDiskId(RamDiskIdT&& value) { SetRamDiskId(std::forward<RamDiskIdT>(value)); return *this;}
237
239
246 inline bool GetDisableApiTermination() const { return m_disableApiTermination; }
247 inline bool DisableApiTerminationHasBeenSet() const { return m_disableApiTerminationHasBeenSet; }
248 inline void SetDisableApiTermination(bool value) { m_disableApiTerminationHasBeenSet = true; m_disableApiTermination = value; }
251
253
258 inline ShutdownBehavior GetInstanceInitiatedShutdownBehavior() const { return m_instanceInitiatedShutdownBehavior; }
259 inline bool InstanceInitiatedShutdownBehaviorHasBeenSet() const { return m_instanceInitiatedShutdownBehaviorHasBeenSet; }
260 inline void SetInstanceInitiatedShutdownBehavior(ShutdownBehavior value) { m_instanceInitiatedShutdownBehaviorHasBeenSet = true; m_instanceInitiatedShutdownBehavior = value; }
263
265
277 inline const Aws::String& GetUserData() const { return m_userData; }
278 inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; }
279 template<typename UserDataT = Aws::String>
280 void SetUserData(UserDataT&& value) { m_userDataHasBeenSet = true; m_userData = std::forward<UserDataT>(value); }
281 template<typename UserDataT = Aws::String>
282 RequestLaunchTemplateData& WithUserData(UserDataT&& value) { SetUserData(std::forward<UserDataT>(value)); return *this;}
284
286
290 inline const Aws::Vector<LaunchTemplateTagSpecificationRequest>& GetTagSpecifications() const { return m_tagSpecifications; }
291 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
292 template<typename TagSpecificationsT = Aws::Vector<LaunchTemplateTagSpecificationRequest>>
293 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
294 template<typename TagSpecificationsT = Aws::Vector<LaunchTemplateTagSpecificationRequest>>
295 RequestLaunchTemplateData& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
296 template<typename TagSpecificationsT = LaunchTemplateTagSpecificationRequest>
297 RequestLaunchTemplateData& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
299
301
306 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
307 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
308 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
309 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
310 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
311 RequestLaunchTemplateData& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
312 template<typename SecurityGroupIdsT = Aws::String>
313 RequestLaunchTemplateData& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
315
317
323 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
324 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
325 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
326 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
327 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
328 RequestLaunchTemplateData& WithSecurityGroups(SecurityGroupsT&& value) { SetSecurityGroups(std::forward<SecurityGroupsT>(value)); return *this;}
329 template<typename SecurityGroupsT = Aws::String>
330 RequestLaunchTemplateData& AddSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value)); return *this; }
332
334
337 inline const LaunchTemplateInstanceMarketOptionsRequest& GetInstanceMarketOptions() const { return m_instanceMarketOptions; }
338 inline bool InstanceMarketOptionsHasBeenSet() const { return m_instanceMarketOptionsHasBeenSet; }
339 template<typename InstanceMarketOptionsT = LaunchTemplateInstanceMarketOptionsRequest>
340 void SetInstanceMarketOptions(InstanceMarketOptionsT&& value) { m_instanceMarketOptionsHasBeenSet = true; m_instanceMarketOptions = std::forward<InstanceMarketOptionsT>(value); }
341 template<typename InstanceMarketOptionsT = LaunchTemplateInstanceMarketOptionsRequest>
342 RequestLaunchTemplateData& WithInstanceMarketOptions(InstanceMarketOptionsT&& value) { SetInstanceMarketOptions(std::forward<InstanceMarketOptionsT>(value)); return *this;}
344
346
350 inline const CreditSpecificationRequest& GetCreditSpecification() const { return m_creditSpecification; }
351 inline bool CreditSpecificationHasBeenSet() const { return m_creditSpecificationHasBeenSet; }
352 template<typename CreditSpecificationT = CreditSpecificationRequest>
353 void SetCreditSpecification(CreditSpecificationT&& value) { m_creditSpecificationHasBeenSet = true; m_creditSpecification = std::forward<CreditSpecificationT>(value); }
354 template<typename CreditSpecificationT = CreditSpecificationRequest>
355 RequestLaunchTemplateData& WithCreditSpecification(CreditSpecificationT&& value) { SetCreditSpecification(std::forward<CreditSpecificationT>(value)); return *this;}
357
359
364 inline const LaunchTemplateCpuOptionsRequest& GetCpuOptions() const { return m_cpuOptions; }
365 inline bool CpuOptionsHasBeenSet() const { return m_cpuOptionsHasBeenSet; }
366 template<typename CpuOptionsT = LaunchTemplateCpuOptionsRequest>
367 void SetCpuOptions(CpuOptionsT&& value) { m_cpuOptionsHasBeenSet = true; m_cpuOptions = std::forward<CpuOptionsT>(value); }
368 template<typename CpuOptionsT = LaunchTemplateCpuOptionsRequest>
369 RequestLaunchTemplateData& WithCpuOptions(CpuOptionsT&& value) { SetCpuOptions(std::forward<CpuOptionsT>(value)); return *this;}
371
373
379 inline const LaunchTemplateCapacityReservationSpecificationRequest& GetCapacityReservationSpecification() const { return m_capacityReservationSpecification; }
380 inline bool CapacityReservationSpecificationHasBeenSet() const { return m_capacityReservationSpecificationHasBeenSet; }
381 template<typename CapacityReservationSpecificationT = LaunchTemplateCapacityReservationSpecificationRequest>
382 void SetCapacityReservationSpecification(CapacityReservationSpecificationT&& value) { m_capacityReservationSpecificationHasBeenSet = true; m_capacityReservationSpecification = std::forward<CapacityReservationSpecificationT>(value); }
383 template<typename CapacityReservationSpecificationT = LaunchTemplateCapacityReservationSpecificationRequest>
384 RequestLaunchTemplateData& WithCapacityReservationSpecification(CapacityReservationSpecificationT&& value) { SetCapacityReservationSpecification(std::forward<CapacityReservationSpecificationT>(value)); return *this;}
386
388
391 inline const Aws::Vector<LaunchTemplateLicenseConfigurationRequest>& GetLicenseSpecifications() const { return m_licenseSpecifications; }
392 inline bool LicenseSpecificationsHasBeenSet() const { return m_licenseSpecificationsHasBeenSet; }
393 template<typename LicenseSpecificationsT = Aws::Vector<LaunchTemplateLicenseConfigurationRequest>>
394 void SetLicenseSpecifications(LicenseSpecificationsT&& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications = std::forward<LicenseSpecificationsT>(value); }
395 template<typename LicenseSpecificationsT = Aws::Vector<LaunchTemplateLicenseConfigurationRequest>>
396 RequestLaunchTemplateData& WithLicenseSpecifications(LicenseSpecificationsT&& value) { SetLicenseSpecifications(std::forward<LicenseSpecificationsT>(value)); return *this;}
397 template<typename LicenseSpecificationsT = LaunchTemplateLicenseConfigurationRequest>
398 RequestLaunchTemplateData& AddLicenseSpecifications(LicenseSpecificationsT&& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications.emplace_back(std::forward<LicenseSpecificationsT>(value)); return *this; }
400
402
410 inline const LaunchTemplateHibernationOptionsRequest& GetHibernationOptions() const { return m_hibernationOptions; }
411 inline bool HibernationOptionsHasBeenSet() const { return m_hibernationOptionsHasBeenSet; }
412 template<typename HibernationOptionsT = LaunchTemplateHibernationOptionsRequest>
413 void SetHibernationOptions(HibernationOptionsT&& value) { m_hibernationOptionsHasBeenSet = true; m_hibernationOptions = std::forward<HibernationOptionsT>(value); }
414 template<typename HibernationOptionsT = LaunchTemplateHibernationOptionsRequest>
415 RequestLaunchTemplateData& WithHibernationOptions(HibernationOptionsT&& value) { SetHibernationOptions(std::forward<HibernationOptionsT>(value)); return *this;}
417
419
425 inline const LaunchTemplateInstanceMetadataOptionsRequest& GetMetadataOptions() const { return m_metadataOptions; }
426 inline bool MetadataOptionsHasBeenSet() const { return m_metadataOptionsHasBeenSet; }
427 template<typename MetadataOptionsT = LaunchTemplateInstanceMetadataOptionsRequest>
428 void SetMetadataOptions(MetadataOptionsT&& value) { m_metadataOptionsHasBeenSet = true; m_metadataOptions = std::forward<MetadataOptionsT>(value); }
429 template<typename MetadataOptionsT = LaunchTemplateInstanceMetadataOptionsRequest>
430 RequestLaunchTemplateData& WithMetadataOptions(MetadataOptionsT&& value) { SetMetadataOptions(std::forward<MetadataOptionsT>(value)); return *this;}
432
434
442 inline const LaunchTemplateEnclaveOptionsRequest& GetEnclaveOptions() const { return m_enclaveOptions; }
443 inline bool EnclaveOptionsHasBeenSet() const { return m_enclaveOptionsHasBeenSet; }
444 template<typename EnclaveOptionsT = LaunchTemplateEnclaveOptionsRequest>
445 void SetEnclaveOptions(EnclaveOptionsT&& value) { m_enclaveOptionsHasBeenSet = true; m_enclaveOptions = std::forward<EnclaveOptionsT>(value); }
446 template<typename EnclaveOptionsT = LaunchTemplateEnclaveOptionsRequest>
447 RequestLaunchTemplateData& WithEnclaveOptions(EnclaveOptionsT&& value) { SetEnclaveOptions(std::forward<EnclaveOptionsT>(value)); return *this;}
449
451
482 inline const InstanceRequirementsRequest& GetInstanceRequirements() const { return m_instanceRequirements; }
483 inline bool InstanceRequirementsHasBeenSet() const { return m_instanceRequirementsHasBeenSet; }
484 template<typename InstanceRequirementsT = InstanceRequirementsRequest>
485 void SetInstanceRequirements(InstanceRequirementsT&& value) { m_instanceRequirementsHasBeenSet = true; m_instanceRequirements = std::forward<InstanceRequirementsT>(value); }
486 template<typename InstanceRequirementsT = InstanceRequirementsRequest>
487 RequestLaunchTemplateData& WithInstanceRequirements(InstanceRequirementsT&& value) { SetInstanceRequirements(std::forward<InstanceRequirementsT>(value)); return *this;}
489
491
495 inline const LaunchTemplatePrivateDnsNameOptionsRequest& GetPrivateDnsNameOptions() const { return m_privateDnsNameOptions; }
496 inline bool PrivateDnsNameOptionsHasBeenSet() const { return m_privateDnsNameOptionsHasBeenSet; }
497 template<typename PrivateDnsNameOptionsT = LaunchTemplatePrivateDnsNameOptionsRequest>
498 void SetPrivateDnsNameOptions(PrivateDnsNameOptionsT&& value) { m_privateDnsNameOptionsHasBeenSet = true; m_privateDnsNameOptions = std::forward<PrivateDnsNameOptionsT>(value); }
499 template<typename PrivateDnsNameOptionsT = LaunchTemplatePrivateDnsNameOptionsRequest>
500 RequestLaunchTemplateData& WithPrivateDnsNameOptions(PrivateDnsNameOptionsT&& value) { SetPrivateDnsNameOptions(std::forward<PrivateDnsNameOptionsT>(value)); return *this;}
502
504
507 inline const LaunchTemplateInstanceMaintenanceOptionsRequest& GetMaintenanceOptions() const { return m_maintenanceOptions; }
508 inline bool MaintenanceOptionsHasBeenSet() const { return m_maintenanceOptionsHasBeenSet; }
509 template<typename MaintenanceOptionsT = LaunchTemplateInstanceMaintenanceOptionsRequest>
510 void SetMaintenanceOptions(MaintenanceOptionsT&& value) { m_maintenanceOptionsHasBeenSet = true; m_maintenanceOptions = std::forward<MaintenanceOptionsT>(value); }
511 template<typename MaintenanceOptionsT = LaunchTemplateInstanceMaintenanceOptionsRequest>
512 RequestLaunchTemplateData& WithMaintenanceOptions(MaintenanceOptionsT&& value) { SetMaintenanceOptions(std::forward<MaintenanceOptionsT>(value)); return *this;}
514
516
523 inline bool GetDisableApiStop() const { return m_disableApiStop; }
524 inline bool DisableApiStopHasBeenSet() const { return m_disableApiStopHasBeenSet; }
525 inline void SetDisableApiStop(bool value) { m_disableApiStopHasBeenSet = true; m_disableApiStop = value; }
526 inline RequestLaunchTemplateData& WithDisableApiStop(bool value) { SetDisableApiStop(value); return *this;}
528
530
533 inline const OperatorRequest& GetOperator() const { return m_operator; }
534 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
535 template<typename OperatorT = OperatorRequest>
536 void SetOperator(OperatorT&& value) { m_operatorHasBeenSet = true; m_operator = std::forward<OperatorT>(value); }
537 template<typename OperatorT = OperatorRequest>
538 RequestLaunchTemplateData& WithOperator(OperatorT&& value) { SetOperator(std::forward<OperatorT>(value)); return *this;}
540
542
546 inline const LaunchTemplateNetworkPerformanceOptionsRequest& GetNetworkPerformanceOptions() const { return m_networkPerformanceOptions; }
547 inline bool NetworkPerformanceOptionsHasBeenSet() const { return m_networkPerformanceOptionsHasBeenSet; }
548 template<typename NetworkPerformanceOptionsT = LaunchTemplateNetworkPerformanceOptionsRequest>
549 void SetNetworkPerformanceOptions(NetworkPerformanceOptionsT&& value) { m_networkPerformanceOptionsHasBeenSet = true; m_networkPerformanceOptions = std::forward<NetworkPerformanceOptionsT>(value); }
550 template<typename NetworkPerformanceOptionsT = LaunchTemplateNetworkPerformanceOptionsRequest>
551 RequestLaunchTemplateData& WithNetworkPerformanceOptions(NetworkPerformanceOptionsT&& value) { SetNetworkPerformanceOptions(std::forward<NetworkPerformanceOptionsT>(value)); return *this;}
553 private:
554
555 Aws::String m_kernelId;
556 bool m_kernelIdHasBeenSet = false;
557
558 bool m_ebsOptimized{false};
559 bool m_ebsOptimizedHasBeenSet = false;
560
561 LaunchTemplateIamInstanceProfileSpecificationRequest m_iamInstanceProfile;
562 bool m_iamInstanceProfileHasBeenSet = false;
563
565 bool m_blockDeviceMappingsHasBeenSet = false;
566
568 bool m_networkInterfacesHasBeenSet = false;
569
570 Aws::String m_imageId;
571 bool m_imageIdHasBeenSet = false;
572
573 InstanceType m_instanceType{InstanceType::NOT_SET};
574 bool m_instanceTypeHasBeenSet = false;
575
576 Aws::String m_keyName;
577 bool m_keyNameHasBeenSet = false;
578
579 LaunchTemplatesMonitoringRequest m_monitoring;
580 bool m_monitoringHasBeenSet = false;
581
582 LaunchTemplatePlacementRequest m_placement;
583 bool m_placementHasBeenSet = false;
584
585 Aws::String m_ramDiskId;
586 bool m_ramDiskIdHasBeenSet = false;
587
588 bool m_disableApiTermination{false};
589 bool m_disableApiTerminationHasBeenSet = false;
590
591 ShutdownBehavior m_instanceInitiatedShutdownBehavior{ShutdownBehavior::NOT_SET};
592 bool m_instanceInitiatedShutdownBehaviorHasBeenSet = false;
593
594 Aws::String m_userData;
595 bool m_userDataHasBeenSet = false;
596
598 bool m_tagSpecificationsHasBeenSet = false;
599
600 Aws::Vector<Aws::String> m_securityGroupIds;
601 bool m_securityGroupIdsHasBeenSet = false;
602
603 Aws::Vector<Aws::String> m_securityGroups;
604 bool m_securityGroupsHasBeenSet = false;
605
606 LaunchTemplateInstanceMarketOptionsRequest m_instanceMarketOptions;
607 bool m_instanceMarketOptionsHasBeenSet = false;
608
609 CreditSpecificationRequest m_creditSpecification;
610 bool m_creditSpecificationHasBeenSet = false;
611
612 LaunchTemplateCpuOptionsRequest m_cpuOptions;
613 bool m_cpuOptionsHasBeenSet = false;
614
615 LaunchTemplateCapacityReservationSpecificationRequest m_capacityReservationSpecification;
616 bool m_capacityReservationSpecificationHasBeenSet = false;
617
619 bool m_licenseSpecificationsHasBeenSet = false;
620
621 LaunchTemplateHibernationOptionsRequest m_hibernationOptions;
622 bool m_hibernationOptionsHasBeenSet = false;
623
624 LaunchTemplateInstanceMetadataOptionsRequest m_metadataOptions;
625 bool m_metadataOptionsHasBeenSet = false;
626
627 LaunchTemplateEnclaveOptionsRequest m_enclaveOptions;
628 bool m_enclaveOptionsHasBeenSet = false;
629
630 InstanceRequirementsRequest m_instanceRequirements;
631 bool m_instanceRequirementsHasBeenSet = false;
632
633 LaunchTemplatePrivateDnsNameOptionsRequest m_privateDnsNameOptions;
634 bool m_privateDnsNameOptionsHasBeenSet = false;
635
636 LaunchTemplateInstanceMaintenanceOptionsRequest m_maintenanceOptions;
637 bool m_maintenanceOptionsHasBeenSet = false;
638
639 bool m_disableApiStop{false};
640 bool m_disableApiStopHasBeenSet = false;
641
642 OperatorRequest m_operator;
643 bool m_operatorHasBeenSet = false;
644
645 LaunchTemplateNetworkPerformanceOptionsRequest m_networkPerformanceOptions;
646 bool m_networkPerformanceOptionsHasBeenSet = false;
647 };
648
649} // namespace Model
650} // namespace EC2
651} // namespace Aws
RequestLaunchTemplateData & WithTagSpecifications(TagSpecificationsT &&value)
const LaunchTemplateInstanceMarketOptionsRequest & GetInstanceMarketOptions() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
RequestLaunchTemplateData & AddTagSpecifications(TagSpecificationsT &&value)
RequestLaunchTemplateData & WithInstanceInitiatedShutdownBehavior(ShutdownBehavior value)
RequestLaunchTemplateData & WithUserData(UserDataT &&value)
const Aws::Vector< LaunchTemplateLicenseConfigurationRequest > & GetLicenseSpecifications() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const LaunchTemplatePlacementRequest & GetPlacement() const
void SetNetworkPerformanceOptions(NetworkPerformanceOptionsT &&value)
RequestLaunchTemplateData & WithNetworkInterfaces(NetworkInterfacesT &&value)
RequestLaunchTemplateData & AddLicenseSpecifications(LicenseSpecificationsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
const LaunchTemplatesMonitoringRequest & GetMonitoring() const
void SetIamInstanceProfile(IamInstanceProfileT &&value)
void SetNetworkInterfaces(NetworkInterfacesT &&value)
RequestLaunchTemplateData & WithImageId(ImageIdT &&value)
RequestLaunchTemplateData & WithInstanceType(InstanceType value)
const InstanceRequirementsRequest & GetInstanceRequirements() const
RequestLaunchTemplateData & WithInstanceRequirements(InstanceRequirementsT &&value)
void SetPrivateDnsNameOptions(PrivateDnsNameOptionsT &&value)
RequestLaunchTemplateData & WithCapacityReservationSpecification(CapacityReservationSpecificationT &&value)
RequestLaunchTemplateData & WithNetworkPerformanceOptions(NetworkPerformanceOptionsT &&value)
void SetCapacityReservationSpecification(CapacityReservationSpecificationT &&value)
const CreditSpecificationRequest & GetCreditSpecification() const
RequestLaunchTemplateData & WithMonitoring(MonitoringT &&value)
void SetBlockDeviceMappings(BlockDeviceMappingsT &&value)
const LaunchTemplateInstanceMaintenanceOptionsRequest & GetMaintenanceOptions() const
const LaunchTemplateIamInstanceProfileSpecificationRequest & GetIamInstanceProfile() const
RequestLaunchTemplateData & AddSecurityGroups(SecurityGroupsT &&value)
const LaunchTemplateCapacityReservationSpecificationRequest & GetCapacityReservationSpecification() const
RequestLaunchTemplateData & WithIamInstanceProfile(IamInstanceProfileT &&value)
AWS_EC2_API RequestLaunchTemplateData & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInstanceInitiatedShutdownBehavior(ShutdownBehavior value)
RequestLaunchTemplateData & AddSecurityGroupIds(SecurityGroupIdsT &&value)
RequestLaunchTemplateData & WithKeyName(KeyNameT &&value)
RequestLaunchTemplateData & WithRamDiskId(RamDiskIdT &&value)
RequestLaunchTemplateData & AddNetworkInterfaces(NetworkInterfacesT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
const Aws::Vector< LaunchTemplateInstanceNetworkInterfaceSpecificationRequest > & GetNetworkInterfaces() const
RequestLaunchTemplateData & WithEnclaveOptions(EnclaveOptionsT &&value)
RequestLaunchTemplateData & WithPrivateDnsNameOptions(PrivateDnsNameOptionsT &&value)
const LaunchTemplateInstanceMetadataOptionsRequest & GetMetadataOptions() const
RequestLaunchTemplateData & WithOperator(OperatorT &&value)
AWS_EC2_API RequestLaunchTemplateData()=default
const Aws::Vector< LaunchTemplateTagSpecificationRequest > & GetTagSpecifications() const
RequestLaunchTemplateData & WithSecurityGroupIds(SecurityGroupIdsT &&value)
void SetHibernationOptions(HibernationOptionsT &&value)
const Aws::Vector< LaunchTemplateBlockDeviceMappingRequest > & GetBlockDeviceMappings() const
RequestLaunchTemplateData & WithCpuOptions(CpuOptionsT &&value)
RequestLaunchTemplateData & WithCreditSpecification(CreditSpecificationT &&value)
const LaunchTemplatePrivateDnsNameOptionsRequest & GetPrivateDnsNameOptions() const
RequestLaunchTemplateData & AddBlockDeviceMappings(BlockDeviceMappingsT &&value)
RequestLaunchTemplateData & WithMaintenanceOptions(MaintenanceOptionsT &&value)
void SetTagSpecifications(TagSpecificationsT &&value)
RequestLaunchTemplateData & WithPlacement(PlacementT &&value)
RequestLaunchTemplateData & WithKernelId(KernelIdT &&value)
RequestLaunchTemplateData & WithMetadataOptions(MetadataOptionsT &&value)
AWS_EC2_API RequestLaunchTemplateData(const Aws::Utils::Xml::XmlNode &xmlNode)
RequestLaunchTemplateData & WithBlockDeviceMappings(BlockDeviceMappingsT &&value)
RequestLaunchTemplateData & WithDisableApiStop(bool value)
void SetInstanceRequirements(InstanceRequirementsT &&value)
RequestLaunchTemplateData & WithInstanceMarketOptions(InstanceMarketOptionsT &&value)
const LaunchTemplateNetworkPerformanceOptionsRequest & GetNetworkPerformanceOptions() const
const LaunchTemplateCpuOptionsRequest & GetCpuOptions() const
RequestLaunchTemplateData & WithSecurityGroups(SecurityGroupsT &&value)
const LaunchTemplateEnclaveOptionsRequest & GetEnclaveOptions() const
RequestLaunchTemplateData & WithDisableApiTermination(bool value)
void SetMaintenanceOptions(MaintenanceOptionsT &&value)
void SetCreditSpecification(CreditSpecificationT &&value)
void SetInstanceMarketOptions(InstanceMarketOptionsT &&value)
RequestLaunchTemplateData & WithLicenseSpecifications(LicenseSpecificationsT &&value)
RequestLaunchTemplateData & WithEbsOptimized(bool value)
const LaunchTemplateHibernationOptionsRequest & GetHibernationOptions() const
void SetLicenseSpecifications(LicenseSpecificationsT &&value)
RequestLaunchTemplateData & WithHibernationOptions(HibernationOptionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream