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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/IamInstanceProfileSpecification.h>
12#include <aws/ec2/model/InstanceType.h>
13#include <aws/ec2/model/SpotFleetMonitoring.h>
14#include <aws/ec2/model/SpotPlacement.h>
15#include <aws/ec2/model/InstanceRequirements.h>
16#include <aws/ec2/model/BlockDeviceMapping.h>
17#include <aws/ec2/model/InstanceNetworkInterfaceSpecification.h>
18#include <aws/ec2/model/SpotFleetTagSpecification.h>
19#include <aws/ec2/model/GroupIdentifier.h>
63 template<
typename AddressingTypeT = Aws::String>
64 void SetAddressingType(AddressingTypeT&& value) { m_addressingTypeHasBeenSet =
true; m_addressingType = std::forward<AddressingTypeT>(value); }
65 template<
typename AddressingTypeT = Aws::String>
79 template<
typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
80 void SetBlockDeviceMappings(BlockDeviceMappingsT&& value) { m_blockDeviceMappingsHasBeenSet =
true; m_blockDeviceMappings = std::forward<BlockDeviceMappingsT>(value); }
81 template<
typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
83 template<
typename BlockDeviceMappingsT = BlockDeviceMapping>
97 inline void SetEbsOptimized(
bool value) { m_ebsOptimizedHasBeenSet =
true; m_ebsOptimized = value; }
107 template<
typename IamInstanceProfileT = IamInstanceProfileSpecification>
108 void SetIamInstanceProfile(IamInstanceProfileT&& value) { m_iamInstanceProfileHasBeenSet =
true; m_iamInstanceProfile = std::forward<IamInstanceProfileT>(value); }
109 template<
typename IamInstanceProfileT = IamInstanceProfileSpecification>
119 template<
typename ImageIdT = Aws::String>
120 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet =
true; m_imageId = std::forward<ImageIdT>(value); }
121 template<
typename ImageIdT = Aws::String>
141 template<
typename KernelIdT = Aws::String>
142 void SetKernelId(KernelIdT&& value) { m_kernelIdHasBeenSet =
true; m_kernelId = std::forward<KernelIdT>(value); }
143 template<
typename KernelIdT = Aws::String>
153 template<
typename KeyNameT = Aws::String>
154 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet =
true; m_keyName = std::forward<KeyNameT>(value); }
155 template<
typename KeyNameT = Aws::String>
165 template<
typename MonitoringT = SpotFleetMonitoring>
166 void SetMonitoring(MonitoringT&& value) { m_monitoringHasBeenSet =
true; m_monitoring = std::forward<MonitoringT>(value); }
167 template<
typename MonitoringT = SpotFleetMonitoring>
181 template<
typename NetworkInterfacesT = Aws::Vector<InstanceNetworkInterfaceSpecification>>
182 void SetNetworkInterfaces(NetworkInterfacesT&& value) { m_networkInterfacesHasBeenSet =
true; m_networkInterfaces = std::forward<NetworkInterfacesT>(value); }
183 template<
typename NetworkInterfacesT = Aws::Vector<InstanceNetworkInterfaceSpecification>>
185 template<
typename NetworkInterfacesT = InstanceNetworkInterfaceSpecification>
195 template<
typename PlacementT = SpotPlacement>
196 void SetPlacement(PlacementT&& value) { m_placementHasBeenSet =
true; m_placement = std::forward<PlacementT>(value); }
197 template<
typename PlacementT = SpotPlacement>
210 template<
typename RamdiskIdT = Aws::String>
211 void SetRamdiskId(RamdiskIdT&& value) { m_ramdiskIdHasBeenSet =
true; m_ramdiskId = std::forward<RamdiskIdT>(value); }
212 template<
typename RamdiskIdT = Aws::String>
227 template<
typename SpotPriceT = Aws::String>
228 void SetSpotPrice(SpotPriceT&& value) { m_spotPriceHasBeenSet =
true; m_spotPrice = std::forward<SpotPriceT>(value); }
229 template<
typename SpotPriceT = Aws::String>
243 template<
typename SubnetIdT = Aws::String>
244 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet =
true; m_subnetId = std::forward<SubnetIdT>(value); }
245 template<
typename SubnetIdT = Aws::String>
256 template<
typename UserDataT = Aws::String>
257 void SetUserData(UserDataT&& value) { m_userDataHasBeenSet =
true; m_userData = std::forward<UserDataT>(value); }
258 template<
typename UserDataT = Aws::String>
278 inline void SetWeightedCapacity(
double value) { m_weightedCapacityHasBeenSet =
true; m_weightedCapacity = value; }
288 template<
typename TagSpecificationsT = Aws::Vector<SpotFleetTagSpecification>>
289 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet =
true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
290 template<
typename TagSpecificationsT = Aws::Vector<SpotFleetTagSpecification>>
292 template<
typename TagSpecificationsT = SpotFleetTagSpecification>
305 template<
typename InstanceRequirementsT = InstanceRequirements>
306 void SetInstanceRequirements(InstanceRequirementsT&& value) { m_instanceRequirementsHasBeenSet =
true; m_instanceRequirements = std::forward<InstanceRequirementsT>(value); }
307 template<
typename InstanceRequirementsT = InstanceRequirements>
319 template<
typename SecurityGroupsT = Aws::Vector<GroupIdentifier>>
320 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet =
true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
321 template<
typename SecurityGroupsT = Aws::Vector<GroupIdentifier>>
323 template<
typename SecurityGroupsT = GroupIdentifier>
329 bool m_addressingTypeHasBeenSet =
false;
332 bool m_blockDeviceMappingsHasBeenSet =
false;
334 bool m_ebsOptimized{
false};
335 bool m_ebsOptimizedHasBeenSet =
false;
337 IamInstanceProfileSpecification m_iamInstanceProfile;
338 bool m_iamInstanceProfileHasBeenSet =
false;
341 bool m_imageIdHasBeenSet =
false;
344 bool m_instanceTypeHasBeenSet =
false;
347 bool m_kernelIdHasBeenSet =
false;
350 bool m_keyNameHasBeenSet =
false;
352 SpotFleetMonitoring m_monitoring;
353 bool m_monitoringHasBeenSet =
false;
356 bool m_networkInterfacesHasBeenSet =
false;
358 SpotPlacement m_placement;
359 bool m_placementHasBeenSet =
false;
362 bool m_ramdiskIdHasBeenSet =
false;
365 bool m_spotPriceHasBeenSet =
false;
368 bool m_subnetIdHasBeenSet =
false;
371 bool m_userDataHasBeenSet =
false;
373 double m_weightedCapacity{0.0};
374 bool m_weightedCapacityHasBeenSet =
false;
377 bool m_tagSpecificationsHasBeenSet =
false;
379 InstanceRequirements m_instanceRequirements;
380 bool m_instanceRequirementsHasBeenSet =
false;
383 bool m_securityGroupsHasBeenSet =
false;
void SetBlockDeviceMappings(BlockDeviceMappingsT &&value)
SpotFleetLaunchSpecification & WithIamInstanceProfile(IamInstanceProfileT &&value)
SpotFleetLaunchSpecification & AddNetworkInterfaces(NetworkInterfacesT &&value)
bool SpotPriceHasBeenSet() const
const Aws::String & GetSpotPrice() const
bool MonitoringHasBeenSet() const
void SetEbsOptimized(bool value)
bool KeyNameHasBeenSet() const
SpotFleetLaunchSpecification & WithAddressingType(AddressingTypeT &&value)
SpotFleetLaunchSpecification & WithKeyName(KeyNameT &&value)
bool AddressingTypeHasBeenSet() const
SpotFleetLaunchSpecification & AddTagSpecifications(TagSpecificationsT &&value)
const Aws::String & GetImageId() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetKeyName(KeyNameT &&value)
const Aws::Vector< BlockDeviceMapping > & GetBlockDeviceMappings() const
void SetInstanceType(InstanceType value)
SpotFleetLaunchSpecification & WithPlacement(PlacementT &&value)
const Aws::String & GetUserData() const
SpotFleetLaunchSpecification & WithUserData(UserDataT &&value)
void SetTagSpecifications(TagSpecificationsT &&value)
void SetUserData(UserDataT &&value)
SpotFleetLaunchSpecification & WithBlockDeviceMappings(BlockDeviceMappingsT &&value)
bool IamInstanceProfileHasBeenSet() const
bool NetworkInterfacesHasBeenSet() const
void SetIamInstanceProfile(IamInstanceProfileT &&value)
bool RamdiskIdHasBeenSet() const
SpotFleetLaunchSpecification & WithRamdiskId(RamdiskIdT &&value)
bool EbsOptimizedHasBeenSet() const
SpotFleetLaunchSpecification & WithMonitoring(MonitoringT &&value)
AWS_EC2_API SpotFleetLaunchSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SpotFleetLaunchSpecification & WithSecurityGroups(SecurityGroupsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool GetEbsOptimized() const
bool InstanceTypeHasBeenSet() const
const Aws::Vector< InstanceNetworkInterfaceSpecification > & GetNetworkInterfaces() const
const Aws::String & GetRamdiskId() const
SpotFleetLaunchSpecification & AddBlockDeviceMappings(BlockDeviceMappingsT &&value)
const Aws::Vector< GroupIdentifier > & GetSecurityGroups() const
void SetNetworkInterfaces(NetworkInterfacesT &&value)
SpotFleetLaunchSpecification & WithSpotPrice(SpotPriceT &&value)
double GetWeightedCapacity() const
bool TagSpecificationsHasBeenSet() const
bool UserDataHasBeenSet() const
const SpotPlacement & GetPlacement() const
SpotFleetLaunchSpecification & WithKernelId(KernelIdT &&value)
AWS_EC2_API SpotFleetLaunchSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
const IamInstanceProfileSpecification & GetIamInstanceProfile() const
void SetMonitoring(MonitoringT &&value)
SpotFleetLaunchSpecification & WithNetworkInterfaces(NetworkInterfacesT &&value)
void SetWeightedCapacity(double value)
void SetAddressingType(AddressingTypeT &&value)
const Aws::String & GetKernelId() const
const SpotFleetMonitoring & GetMonitoring() const
SpotFleetLaunchSpecification & WithWeightedCapacity(double value)
const Aws::String & GetAddressingType() const
bool ImageIdHasBeenSet() const
void SetSubnetId(SubnetIdT &&value)
const Aws::String & GetKeyName() const
bool SecurityGroupsHasBeenSet() const
SpotFleetLaunchSpecification & WithInstanceRequirements(InstanceRequirementsT &&value)
SpotFleetLaunchSpecification & WithSubnetId(SubnetIdT &&value)
void SetPlacement(PlacementT &&value)
void SetSecurityGroups(SecurityGroupsT &&value)
void SetImageId(ImageIdT &&value)
void SetInstanceRequirements(InstanceRequirementsT &&value)
SpotFleetLaunchSpecification & WithInstanceType(InstanceType value)
const InstanceRequirements & GetInstanceRequirements() const
bool WeightedCapacityHasBeenSet() const
bool InstanceRequirementsHasBeenSet() const
const Aws::Vector< SpotFleetTagSpecification > & GetTagSpecifications() const
bool KernelIdHasBeenSet() const
bool PlacementHasBeenSet() const
void SetSpotPrice(SpotPriceT &&value)
SpotFleetLaunchSpecification & WithTagSpecifications(TagSpecificationsT &&value)
SpotFleetLaunchSpecification & WithImageId(ImageIdT &&value)
SpotFleetLaunchSpecification & WithEbsOptimized(bool value)
bool BlockDeviceMappingsHasBeenSet() const
InstanceType GetInstanceType() const
void SetKernelId(KernelIdT &&value)
const Aws::String & GetSubnetId() const
SpotFleetLaunchSpecification & AddSecurityGroups(SecurityGroupsT &&value)
bool SubnetIdHasBeenSet() const
AWS_EC2_API SpotFleetLaunchSpecification()=default
void SetRamdiskId(RamdiskIdT &&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