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/SpotPlacement.h>
14#include <aws/ec2/model/RunInstancesMonitoringEnabled.h>
15#include <aws/ec2/model/BlockDeviceMapping.h>
16#include <aws/ec2/model/InstanceNetworkInterfaceSpecification.h>
17#include <aws/ec2/model/GroupIdentifier.h>
60 inline void SetUserData(
const char* value) { m_userDataHasBeenSet =
true; m_userData.assign(value); }
74 inline void SetAddressingType(
const char* value) { m_addressingTypeHasBeenSet =
true; m_addressingType.assign(value); }
104 inline void SetEbsOptimized(
bool value) { m_ebsOptimizedHasBeenSet =
true; m_ebsOptimized = value; }
128 inline void SetImageId(
const char* value) { m_imageIdHasBeenSet =
true; m_imageId.assign(value); }
154 inline void SetKernelId(
const char* value) { m_kernelIdHasBeenSet =
true; m_kernelId.assign(value); }
168 inline void SetKeyName(
const char* value) { m_keyNameHasBeenSet =
true; m_keyName.assign(value); }
209 inline void SetRamdiskId(
const char* value) { m_ramdiskIdHasBeenSet =
true; m_ramdiskId.assign(value); }
223 inline void SetSubnetId(
const char* value) { m_subnetIdHasBeenSet =
true; m_subnetId.assign(value); }
255 bool m_userDataHasBeenSet =
false;
258 bool m_addressingTypeHasBeenSet =
false;
261 bool m_blockDeviceMappingsHasBeenSet =
false;
264 bool m_ebsOptimizedHasBeenSet =
false;
267 bool m_iamInstanceProfileHasBeenSet =
false;
270 bool m_imageIdHasBeenSet =
false;
273 bool m_instanceTypeHasBeenSet =
false;
276 bool m_kernelIdHasBeenSet =
false;
279 bool m_keyNameHasBeenSet =
false;
282 bool m_networkInterfacesHasBeenSet =
false;
285 bool m_placementHasBeenSet =
false;
288 bool m_ramdiskIdHasBeenSet =
false;
291 bool m_subnetIdHasBeenSet =
false;
294 bool m_securityGroupsHasBeenSet =
false;
297 bool m_monitoringHasBeenSet =
false;
LaunchSpecification & WithBlockDeviceMappings(Aws::Vector< BlockDeviceMapping > &&value)
LaunchSpecification & WithUserData(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LaunchSpecification & WithKernelId(const char *value)
void SetNetworkInterfaces(const Aws::Vector< InstanceNetworkInterfaceSpecification > &value)
void SetRamdiskId(Aws::String &&value)
LaunchSpecification & WithRamdiskId(Aws::String &&value)
LaunchSpecification & WithMonitoring(RunInstancesMonitoringEnabled &&value)
bool InstanceTypeHasBeenSet() const
LaunchSpecification & WithNetworkInterfaces(const Aws::Vector< InstanceNetworkInterfaceSpecification > &value)
LaunchSpecification & WithKernelId(const Aws::String &value)
bool KernelIdHasBeenSet() const
void SetKernelId(const char *value)
LaunchSpecification & WithSecurityGroups(Aws::Vector< GroupIdentifier > &&value)
LaunchSpecification & WithImageId(Aws::String &&value)
LaunchSpecification & WithIamInstanceProfile(const IamInstanceProfileSpecification &value)
const Aws::String & GetKeyName() const
void SetBlockDeviceMappings(Aws::Vector< BlockDeviceMapping > &&value)
const InstanceType & GetInstanceType() const
LaunchSpecification & WithKeyName(const char *value)
const RunInstancesMonitoringEnabled & GetMonitoring() const
LaunchSpecification & AddNetworkInterfaces(const InstanceNetworkInterfaceSpecification &value)
LaunchSpecification & AddSecurityGroups(GroupIdentifier &&value)
void SetSecurityGroups(Aws::Vector< GroupIdentifier > &&value)
void SetIamInstanceProfile(const IamInstanceProfileSpecification &value)
LaunchSpecification & WithNetworkInterfaces(Aws::Vector< InstanceNetworkInterfaceSpecification > &&value)
void SetSubnetId(const char *value)
LaunchSpecification & AddBlockDeviceMappings(const BlockDeviceMapping &value)
void SetRamdiskId(const char *value)
const Aws::Vector< InstanceNetworkInterfaceSpecification > & GetNetworkInterfaces() const
void SetPlacement(SpotPlacement &&value)
LaunchSpecification & AddBlockDeviceMappings(BlockDeviceMapping &&value)
LaunchSpecification & WithKeyName(const Aws::String &value)
LaunchSpecification & WithAddressingType(Aws::String &&value)
LaunchSpecification & WithBlockDeviceMappings(const Aws::Vector< BlockDeviceMapping > &value)
void SetAddressingType(Aws::String &&value)
void SetKernelId(const Aws::String &value)
void SetImageId(const Aws::String &value)
void SetIamInstanceProfile(IamInstanceProfileSpecification &&value)
bool SubnetIdHasBeenSet() const
void SetSubnetId(const Aws::String &value)
LaunchSpecification & WithKernelId(Aws::String &&value)
LaunchSpecification & WithSecurityGroups(const Aws::Vector< GroupIdentifier > &value)
void SetUserData(const char *value)
void SetAddressingType(const Aws::String &value)
AWS_EC2_API LaunchSpecification()
LaunchSpecification & WithImageId(const Aws::String &value)
const Aws::Vector< GroupIdentifier > & GetSecurityGroups() const
void SetKeyName(const Aws::String &value)
AWS_EC2_API LaunchSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool EbsOptimizedHasBeenSet() const
void SetImageId(Aws::String &&value)
void SetInstanceType(InstanceType &&value)
void SetUserData(Aws::String &&value)
void SetNetworkInterfaces(Aws::Vector< InstanceNetworkInterfaceSpecification > &&value)
const Aws::String & GetKernelId() const
void SetMonitoring(const RunInstancesMonitoringEnabled &value)
bool KeyNameHasBeenSet() const
void SetKeyName(const char *value)
LaunchSpecification & WithRamdiskId(const Aws::String &value)
void SetBlockDeviceMappings(const Aws::Vector< BlockDeviceMapping > &value)
const Aws::String & GetUserData() const
LaunchSpecification & WithAddressingType(const Aws::String &value)
bool PlacementHasBeenSet() const
bool NetworkInterfacesHasBeenSet() const
void SetEbsOptimized(bool value)
LaunchSpecification & WithSubnetId(const char *value)
void SetKeyName(Aws::String &&value)
bool SecurityGroupsHasBeenSet() const
LaunchSpecification & WithMonitoring(const RunInstancesMonitoringEnabled &value)
LaunchSpecification & WithPlacement(SpotPlacement &&value)
bool ImageIdHasBeenSet() const
void SetSubnetId(Aws::String &&value)
LaunchSpecification & WithIamInstanceProfile(IamInstanceProfileSpecification &&value)
LaunchSpecification & WithInstanceType(InstanceType &&value)
bool AddressingTypeHasBeenSet() const
LaunchSpecification & WithKeyName(Aws::String &&value)
void SetAddressingType(const char *value)
LaunchSpecification & WithSubnetId(const Aws::String &value)
bool RamdiskIdHasBeenSet() const
AWS_EC2_API LaunchSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMonitoring(RunInstancesMonitoringEnabled &&value)
LaunchSpecification & AddNetworkInterfaces(InstanceNetworkInterfaceSpecification &&value)
bool BlockDeviceMappingsHasBeenSet() const
LaunchSpecification & AddSecurityGroups(const GroupIdentifier &value)
const Aws::String & GetRamdiskId() const
bool GetEbsOptimized() const
LaunchSpecification & WithPlacement(const SpotPlacement &value)
void SetInstanceType(const InstanceType &value)
LaunchSpecification & WithUserData(Aws::String &&value)
void SetPlacement(const SpotPlacement &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LaunchSpecification & WithRamdiskId(const char *value)
bool UserDataHasBeenSet() const
void SetImageId(const char *value)
const IamInstanceProfileSpecification & GetIamInstanceProfile() const
bool MonitoringHasBeenSet() const
void SetSecurityGroups(const Aws::Vector< GroupIdentifier > &value)
const Aws::String & GetSubnetId() const
void SetKernelId(Aws::String &&value)
const Aws::String & GetAddressingType() const
void SetRamdiskId(const Aws::String &value)
bool IamInstanceProfileHasBeenSet() const
LaunchSpecification & WithImageId(const char *value)
const SpotPlacement & GetPlacement() const
void SetUserData(const Aws::String &value)
const Aws::Vector< BlockDeviceMapping > & GetBlockDeviceMappings() const
const Aws::String & GetImageId() const
LaunchSpecification & WithUserData(const Aws::String &value)
LaunchSpecification & WithAddressingType(const char *value)
LaunchSpecification & WithSubnetId(Aws::String &&value)
LaunchSpecification & WithInstanceType(const InstanceType &value)
LaunchSpecification & WithEbsOptimized(bool 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