7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/IamInstanceProfileSpecification.h>
12#include <aws/ec2/model/InstanceType.h>
13#include <aws/ec2/model/RunInstancesMonitoringEnabled.h>
14#include <aws/ec2/model/SpotPlacement.h>
15#include <aws/ec2/model/BlockDeviceMapping.h>
16#include <aws/ec2/model/InstanceNetworkInterfaceSpecification.h>
56 template<
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
57 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet =
true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
58 template<
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
60 template<
typename SecurityGroupIdsT = Aws::String>
70 template<
typename SecurityGroupsT = Aws::Vector<Aws::String>>
71 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet =
true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
72 template<
typename SecurityGroupsT = Aws::Vector<Aws::String>>
74 template<
typename SecurityGroupsT = Aws::String>
84 template<
typename AddressingTypeT = Aws::String>
85 void SetAddressingType(AddressingTypeT&& value) { m_addressingTypeHasBeenSet =
true; m_addressingType = std::forward<AddressingTypeT>(value); }
86 template<
typename AddressingTypeT = Aws::String>
99 template<
typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
100 void SetBlockDeviceMappings(BlockDeviceMappingsT&& value) { m_blockDeviceMappingsHasBeenSet =
true; m_blockDeviceMappings = std::forward<BlockDeviceMappingsT>(value); }
101 template<
typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
103 template<
typename BlockDeviceMappingsT = BlockDeviceMapping>
117 inline void SetEbsOptimized(
bool value) { m_ebsOptimizedHasBeenSet =
true; m_ebsOptimized = value; }
127 template<
typename IamInstanceProfileT = IamInstanceProfileSpecification>
128 void SetIamInstanceProfile(IamInstanceProfileT&& value) { m_iamInstanceProfileHasBeenSet =
true; m_iamInstanceProfile = std::forward<IamInstanceProfileT>(value); }
129 template<
typename IamInstanceProfileT = IamInstanceProfileSpecification>
139 template<
typename ImageIdT = Aws::String>
140 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet =
true; m_imageId = std::forward<ImageIdT>(value); }
141 template<
typename ImageIdT = Aws::String>
161 template<
typename KernelIdT = Aws::String>
162 void SetKernelId(KernelIdT&& value) { m_kernelIdHasBeenSet =
true; m_kernelId = std::forward<KernelIdT>(value); }
163 template<
typename KernelIdT = Aws::String>
173 template<
typename KeyNameT = Aws::String>
174 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet =
true; m_keyName = std::forward<KeyNameT>(value); }
175 template<
typename KeyNameT = Aws::String>
186 template<
typename MonitoringT = RunInstancesMonitoringEnabled>
187 void SetMonitoring(MonitoringT&& value) { m_monitoringHasBeenSet =
true; m_monitoring = std::forward<MonitoringT>(value); }
188 template<
typename MonitoringT = RunInstancesMonitoringEnabled>
199 template<
typename NetworkInterfacesT = Aws::Vector<InstanceNetworkInterfaceSpecification>>
200 void SetNetworkInterfaces(NetworkInterfacesT&& value) { m_networkInterfacesHasBeenSet =
true; m_networkInterfaces = std::forward<NetworkInterfacesT>(value); }
201 template<
typename NetworkInterfacesT = Aws::Vector<InstanceNetworkInterfaceSpecification>>
203 template<
typename NetworkInterfacesT = InstanceNetworkInterfaceSpecification>
213 template<
typename PlacementT = SpotPlacement>
214 void SetPlacement(PlacementT&& value) { m_placementHasBeenSet =
true; m_placement = std::forward<PlacementT>(value); }
215 template<
typename PlacementT = SpotPlacement>
225 template<
typename RamdiskIdT = Aws::String>
226 void SetRamdiskId(RamdiskIdT&& value) { m_ramdiskIdHasBeenSet =
true; m_ramdiskId = std::forward<RamdiskIdT>(value); }
227 template<
typename RamdiskIdT = Aws::String>
237 template<
typename SubnetIdT = Aws::String>
238 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet =
true; m_subnetId = std::forward<SubnetIdT>(value); }
239 template<
typename SubnetIdT = Aws::String>
250 template<
typename UserDataT = Aws::String>
251 void SetUserData(UserDataT&& value) { m_userDataHasBeenSet =
true; m_userData = std::forward<UserDataT>(value); }
252 template<
typename UserDataT = Aws::String>
258 bool m_securityGroupIdsHasBeenSet =
false;
261 bool m_securityGroupsHasBeenSet =
false;
264 bool m_addressingTypeHasBeenSet =
false;
267 bool m_blockDeviceMappingsHasBeenSet =
false;
269 bool m_ebsOptimized{
false};
270 bool m_ebsOptimizedHasBeenSet =
false;
272 IamInstanceProfileSpecification m_iamInstanceProfile;
273 bool m_iamInstanceProfileHasBeenSet =
false;
276 bool m_imageIdHasBeenSet =
false;
279 bool m_instanceTypeHasBeenSet =
false;
282 bool m_kernelIdHasBeenSet =
false;
285 bool m_keyNameHasBeenSet =
false;
287 RunInstancesMonitoringEnabled m_monitoring;
288 bool m_monitoringHasBeenSet =
false;
291 bool m_networkInterfacesHasBeenSet =
false;
293 SpotPlacement m_placement;
294 bool m_placementHasBeenSet =
false;
297 bool m_ramdiskIdHasBeenSet =
false;
300 bool m_subnetIdHasBeenSet =
false;
303 bool m_userDataHasBeenSet =
false;
const Aws::String & GetKeyName() const
RequestSpotLaunchSpecification & WithMonitoring(MonitoringT &&value)
RequestSpotLaunchSpecification & WithEbsOptimized(bool value)
void SetPlacement(PlacementT &&value)
bool MonitoringHasBeenSet() const
bool KernelIdHasBeenSet() const
void SetNetworkInterfaces(NetworkInterfacesT &&value)
RequestSpotLaunchSpecification & AddBlockDeviceMappings(BlockDeviceMappingsT &&value)
bool KeyNameHasBeenSet() const
RequestSpotLaunchSpecification & WithBlockDeviceMappings(BlockDeviceMappingsT &&value)
RequestSpotLaunchSpecification & WithRamdiskId(RamdiskIdT &&value)
const SpotPlacement & GetPlacement() const
const Aws::String & GetImageId() const
void SetBlockDeviceMappings(BlockDeviceMappingsT &&value)
const IamInstanceProfileSpecification & GetIamInstanceProfile() const
InstanceType GetInstanceType() const
void SetIamInstanceProfile(IamInstanceProfileT &&value)
RequestSpotLaunchSpecification & WithSecurityGroups(SecurityGroupsT &&value)
bool IamInstanceProfileHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetMonitoring(MonitoringT &&value)
RequestSpotLaunchSpecification & AddSecurityGroups(SecurityGroupsT &&value)
bool InstanceTypeHasBeenSet() const
RequestSpotLaunchSpecification & WithSubnetId(SubnetIdT &&value)
AWS_EC2_API RequestSpotLaunchSpecification()=default
RequestSpotLaunchSpecification & AddNetworkInterfaces(NetworkInterfacesT &&value)
bool RamdiskIdHasBeenSet() const
const Aws::String & GetUserData() const
RequestSpotLaunchSpecification & WithAddressingType(AddressingTypeT &&value)
const Aws::Vector< BlockDeviceMapping > & GetBlockDeviceMappings() const
RequestSpotLaunchSpecification & WithUserData(UserDataT &&value)
void SetKeyName(KeyNameT &&value)
bool ImageIdHasBeenSet() const
const Aws::Vector< Aws::String > & GetSecurityGroups() const
void SetImageId(ImageIdT &&value)
RequestSpotLaunchSpecification & AddSecurityGroupIds(SecurityGroupIdsT &&value)
bool AddressingTypeHasBeenSet() const
bool BlockDeviceMappingsHasBeenSet() const
const Aws::String & GetSubnetId() const
bool UserDataHasBeenSet() const
bool NetworkInterfacesHasBeenSet() const
RequestSpotLaunchSpecification & WithPlacement(PlacementT &&value)
AWS_EC2_API RequestSpotLaunchSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSecurityGroups(SecurityGroupsT &&value)
RequestSpotLaunchSpecification & WithSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::Vector< InstanceNetworkInterfaceSpecification > & GetNetworkInterfaces() const
bool SubnetIdHasBeenSet() const
bool GetEbsOptimized() const
bool SecurityGroupIdsHasBeenSet() const
RequestSpotLaunchSpecification & WithInstanceType(InstanceType value)
const Aws::String & GetRamdiskId() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
const Aws::String & GetKernelId() const
RequestSpotLaunchSpecification & WithIamInstanceProfile(IamInstanceProfileT &&value)
void SetAddressingType(AddressingTypeT &&value)
void SetUserData(UserDataT &&value)
void SetInstanceType(InstanceType value)
RequestSpotLaunchSpecification & WithKeyName(KeyNameT &&value)
void SetSubnetId(SubnetIdT &&value)
void SetEbsOptimized(bool value)
AWS_EC2_API RequestSpotLaunchSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SecurityGroupsHasBeenSet() const
RequestSpotLaunchSpecification & WithKernelId(KernelIdT &&value)
RequestSpotLaunchSpecification & WithImageId(ImageIdT &&value)
bool PlacementHasBeenSet() const
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::String & GetAddressingType() const
const RunInstancesMonitoringEnabled & GetMonitoring() const
void SetRamdiskId(RamdiskIdT &&value)
RequestSpotLaunchSpecification & WithNetworkInterfaces(NetworkInterfacesT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool EbsOptimizedHasBeenSet() const
void SetKernelId(KernelIdT &&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