684 lines
25 KiB
C++
684 lines
25 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/ec2/EC2_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/ec2/model/IamInstanceProfileSpecification.h>
|
|
#include <aws/ec2/model/InstanceType.h>
|
|
#include <aws/ec2/model/SpotPlacement.h>
|
|
#include <aws/ec2/model/RunInstancesMonitoringEnabled.h>
|
|
#include <aws/ec2/model/GroupIdentifier.h>
|
|
#include <aws/ec2/model/BlockDeviceMapping.h>
|
|
#include <aws/ec2/model/InstanceNetworkInterfaceSpecification.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Xml
|
|
{
|
|
class XmlNode;
|
|
} // namespace Xml
|
|
} // namespace Utils
|
|
namespace EC2
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Describes the launch specification for an instance.</p><p><h3>See Also:</h3>
|
|
* <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchSpecification">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_EC2_API LaunchSpecification
|
|
{
|
|
public:
|
|
LaunchSpecification();
|
|
LaunchSpecification(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
LaunchSpecification& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
|
|
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
|
|
void OutputToStream(Aws::OStream& oStream, const char* location) const;
|
|
|
|
|
|
/**
|
|
* <p>The Base64-encoded user data for the instance.</p>
|
|
*/
|
|
inline const Aws::String& GetUserData() const{ return m_userData; }
|
|
|
|
/**
|
|
* <p>The Base64-encoded user data for the instance.</p>
|
|
*/
|
|
inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Base64-encoded user data for the instance.</p>
|
|
*/
|
|
inline void SetUserData(const Aws::String& value) { m_userDataHasBeenSet = true; m_userData = value; }
|
|
|
|
/**
|
|
* <p>The Base64-encoded user data for the instance.</p>
|
|
*/
|
|
inline void SetUserData(Aws::String&& value) { m_userDataHasBeenSet = true; m_userData = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Base64-encoded user data for the instance.</p>
|
|
*/
|
|
inline void SetUserData(const char* value) { m_userDataHasBeenSet = true; m_userData.assign(value); }
|
|
|
|
/**
|
|
* <p>The Base64-encoded user data for the instance.</p>
|
|
*/
|
|
inline LaunchSpecification& WithUserData(const Aws::String& value) { SetUserData(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Base64-encoded user data for the instance.</p>
|
|
*/
|
|
inline LaunchSpecification& WithUserData(Aws::String&& value) { SetUserData(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Base64-encoded user data for the instance.</p>
|
|
*/
|
|
inline LaunchSpecification& WithUserData(const char* value) { SetUserData(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>One or more security groups. When requesting instances in a VPC, you must
|
|
* specify the IDs of the security groups. When requesting instances in
|
|
* EC2-Classic, you can specify the names or the IDs of the security groups.</p>
|
|
*/
|
|
inline const Aws::Vector<GroupIdentifier>& GetSecurityGroups() const{ return m_securityGroups; }
|
|
|
|
/**
|
|
* <p>One or more security groups. When requesting instances in a VPC, you must
|
|
* specify the IDs of the security groups. When requesting instances in
|
|
* EC2-Classic, you can specify the names or the IDs of the security groups.</p>
|
|
*/
|
|
inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>One or more security groups. When requesting instances in a VPC, you must
|
|
* specify the IDs of the security groups. When requesting instances in
|
|
* EC2-Classic, you can specify the names or the IDs of the security groups.</p>
|
|
*/
|
|
inline void SetSecurityGroups(const Aws::Vector<GroupIdentifier>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
|
|
|
|
/**
|
|
* <p>One or more security groups. When requesting instances in a VPC, you must
|
|
* specify the IDs of the security groups. When requesting instances in
|
|
* EC2-Classic, you can specify the names or the IDs of the security groups.</p>
|
|
*/
|
|
inline void SetSecurityGroups(Aws::Vector<GroupIdentifier>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
|
|
|
|
/**
|
|
* <p>One or more security groups. When requesting instances in a VPC, you must
|
|
* specify the IDs of the security groups. When requesting instances in
|
|
* EC2-Classic, you can specify the names or the IDs of the security groups.</p>
|
|
*/
|
|
inline LaunchSpecification& WithSecurityGroups(const Aws::Vector<GroupIdentifier>& value) { SetSecurityGroups(value); return *this;}
|
|
|
|
/**
|
|
* <p>One or more security groups. When requesting instances in a VPC, you must
|
|
* specify the IDs of the security groups. When requesting instances in
|
|
* EC2-Classic, you can specify the names or the IDs of the security groups.</p>
|
|
*/
|
|
inline LaunchSpecification& WithSecurityGroups(Aws::Vector<GroupIdentifier>&& value) { SetSecurityGroups(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>One or more security groups. When requesting instances in a VPC, you must
|
|
* specify the IDs of the security groups. When requesting instances in
|
|
* EC2-Classic, you can specify the names or the IDs of the security groups.</p>
|
|
*/
|
|
inline LaunchSpecification& AddSecurityGroups(const GroupIdentifier& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>One or more security groups. When requesting instances in a VPC, you must
|
|
* specify the IDs of the security groups. When requesting instances in
|
|
* EC2-Classic, you can specify the names or the IDs of the security groups.</p>
|
|
*/
|
|
inline LaunchSpecification& AddSecurityGroups(GroupIdentifier&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>Deprecated.</p>
|
|
*/
|
|
inline const Aws::String& GetAddressingType() const{ return m_addressingType; }
|
|
|
|
/**
|
|
* <p>Deprecated.</p>
|
|
*/
|
|
inline bool AddressingTypeHasBeenSet() const { return m_addressingTypeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Deprecated.</p>
|
|
*/
|
|
inline void SetAddressingType(const Aws::String& value) { m_addressingTypeHasBeenSet = true; m_addressingType = value; }
|
|
|
|
/**
|
|
* <p>Deprecated.</p>
|
|
*/
|
|
inline void SetAddressingType(Aws::String&& value) { m_addressingTypeHasBeenSet = true; m_addressingType = std::move(value); }
|
|
|
|
/**
|
|
* <p>Deprecated.</p>
|
|
*/
|
|
inline void SetAddressingType(const char* value) { m_addressingTypeHasBeenSet = true; m_addressingType.assign(value); }
|
|
|
|
/**
|
|
* <p>Deprecated.</p>
|
|
*/
|
|
inline LaunchSpecification& WithAddressingType(const Aws::String& value) { SetAddressingType(value); return *this;}
|
|
|
|
/**
|
|
* <p>Deprecated.</p>
|
|
*/
|
|
inline LaunchSpecification& WithAddressingType(Aws::String&& value) { SetAddressingType(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Deprecated.</p>
|
|
*/
|
|
inline LaunchSpecification& WithAddressingType(const char* value) { SetAddressingType(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>One or more block device mapping entries.</p>
|
|
*/
|
|
inline const Aws::Vector<BlockDeviceMapping>& GetBlockDeviceMappings() const{ return m_blockDeviceMappings; }
|
|
|
|
/**
|
|
* <p>One or more block device mapping entries.</p>
|
|
*/
|
|
inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>One or more block device mapping entries.</p>
|
|
*/
|
|
inline void SetBlockDeviceMappings(const Aws::Vector<BlockDeviceMapping>& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = value; }
|
|
|
|
/**
|
|
* <p>One or more block device mapping entries.</p>
|
|
*/
|
|
inline void SetBlockDeviceMappings(Aws::Vector<BlockDeviceMapping>&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = std::move(value); }
|
|
|
|
/**
|
|
* <p>One or more block device mapping entries.</p>
|
|
*/
|
|
inline LaunchSpecification& WithBlockDeviceMappings(const Aws::Vector<BlockDeviceMapping>& value) { SetBlockDeviceMappings(value); return *this;}
|
|
|
|
/**
|
|
* <p>One or more block device mapping entries.</p>
|
|
*/
|
|
inline LaunchSpecification& WithBlockDeviceMappings(Aws::Vector<BlockDeviceMapping>&& value) { SetBlockDeviceMappings(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>One or more block device mapping entries.</p>
|
|
*/
|
|
inline LaunchSpecification& AddBlockDeviceMappings(const BlockDeviceMapping& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>One or more block device mapping entries.</p>
|
|
*/
|
|
inline LaunchSpecification& AddBlockDeviceMappings(BlockDeviceMapping&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>Indicates whether the instance is optimized for EBS I/O. This optimization
|
|
* provides dedicated throughput to Amazon EBS and an optimized configuration stack
|
|
* to provide optimal EBS I/O performance. This optimization isn't available with
|
|
* all instance types. Additional usage charges apply when using an EBS Optimized
|
|
* instance.</p> <p>Default: <code>false</code> </p>
|
|
*/
|
|
inline bool GetEbsOptimized() const{ return m_ebsOptimized; }
|
|
|
|
/**
|
|
* <p>Indicates whether the instance is optimized for EBS I/O. This optimization
|
|
* provides dedicated throughput to Amazon EBS and an optimized configuration stack
|
|
* to provide optimal EBS I/O performance. This optimization isn't available with
|
|
* all instance types. Additional usage charges apply when using an EBS Optimized
|
|
* instance.</p> <p>Default: <code>false</code> </p>
|
|
*/
|
|
inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Indicates whether the instance is optimized for EBS I/O. This optimization
|
|
* provides dedicated throughput to Amazon EBS and an optimized configuration stack
|
|
* to provide optimal EBS I/O performance. This optimization isn't available with
|
|
* all instance types. Additional usage charges apply when using an EBS Optimized
|
|
* instance.</p> <p>Default: <code>false</code> </p>
|
|
*/
|
|
inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; }
|
|
|
|
/**
|
|
* <p>Indicates whether the instance is optimized for EBS I/O. This optimization
|
|
* provides dedicated throughput to Amazon EBS and an optimized configuration stack
|
|
* to provide optimal EBS I/O performance. This optimization isn't available with
|
|
* all instance types. Additional usage charges apply when using an EBS Optimized
|
|
* instance.</p> <p>Default: <code>false</code> </p>
|
|
*/
|
|
inline LaunchSpecification& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The IAM instance profile.</p>
|
|
*/
|
|
inline const IamInstanceProfileSpecification& GetIamInstanceProfile() const{ return m_iamInstanceProfile; }
|
|
|
|
/**
|
|
* <p>The IAM instance profile.</p>
|
|
*/
|
|
inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The IAM instance profile.</p>
|
|
*/
|
|
inline void SetIamInstanceProfile(const IamInstanceProfileSpecification& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = value; }
|
|
|
|
/**
|
|
* <p>The IAM instance profile.</p>
|
|
*/
|
|
inline void SetIamInstanceProfile(IamInstanceProfileSpecification&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::move(value); }
|
|
|
|
/**
|
|
* <p>The IAM instance profile.</p>
|
|
*/
|
|
inline LaunchSpecification& WithIamInstanceProfile(const IamInstanceProfileSpecification& value) { SetIamInstanceProfile(value); return *this;}
|
|
|
|
/**
|
|
* <p>The IAM instance profile.</p>
|
|
*/
|
|
inline LaunchSpecification& WithIamInstanceProfile(IamInstanceProfileSpecification&& value) { SetIamInstanceProfile(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ID of the AMI.</p>
|
|
*/
|
|
inline const Aws::String& GetImageId() const{ return m_imageId; }
|
|
|
|
/**
|
|
* <p>The ID of the AMI.</p>
|
|
*/
|
|
inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the AMI.</p>
|
|
*/
|
|
inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the AMI.</p>
|
|
*/
|
|
inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the AMI.</p>
|
|
*/
|
|
inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the AMI.</p>
|
|
*/
|
|
inline LaunchSpecification& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the AMI.</p>
|
|
*/
|
|
inline LaunchSpecification& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the AMI.</p>
|
|
*/
|
|
inline LaunchSpecification& WithImageId(const char* value) { SetImageId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The instance type.</p>
|
|
*/
|
|
inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
|
|
|
|
/**
|
|
* <p>The instance type.</p>
|
|
*/
|
|
inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The instance type.</p>
|
|
*/
|
|
inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
|
|
|
|
/**
|
|
* <p>The instance type.</p>
|
|
*/
|
|
inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
|
|
|
|
/**
|
|
* <p>The instance type.</p>
|
|
*/
|
|
inline LaunchSpecification& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
|
|
|
|
/**
|
|
* <p>The instance type.</p>
|
|
*/
|
|
inline LaunchSpecification& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ID of the kernel.</p>
|
|
*/
|
|
inline const Aws::String& GetKernelId() const{ return m_kernelId; }
|
|
|
|
/**
|
|
* <p>The ID of the kernel.</p>
|
|
*/
|
|
inline bool KernelIdHasBeenSet() const { return m_kernelIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the kernel.</p>
|
|
*/
|
|
inline void SetKernelId(const Aws::String& value) { m_kernelIdHasBeenSet = true; m_kernelId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the kernel.</p>
|
|
*/
|
|
inline void SetKernelId(Aws::String&& value) { m_kernelIdHasBeenSet = true; m_kernelId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the kernel.</p>
|
|
*/
|
|
inline void SetKernelId(const char* value) { m_kernelIdHasBeenSet = true; m_kernelId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the kernel.</p>
|
|
*/
|
|
inline LaunchSpecification& WithKernelId(const Aws::String& value) { SetKernelId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the kernel.</p>
|
|
*/
|
|
inline LaunchSpecification& WithKernelId(Aws::String&& value) { SetKernelId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the kernel.</p>
|
|
*/
|
|
inline LaunchSpecification& WithKernelId(const char* value) { SetKernelId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The name of the key pair.</p>
|
|
*/
|
|
inline const Aws::String& GetKeyName() const{ return m_keyName; }
|
|
|
|
/**
|
|
* <p>The name of the key pair.</p>
|
|
*/
|
|
inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the key pair.</p>
|
|
*/
|
|
inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; }
|
|
|
|
/**
|
|
* <p>The name of the key pair.</p>
|
|
*/
|
|
inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the key pair.</p>
|
|
*/
|
|
inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the key pair.</p>
|
|
*/
|
|
inline LaunchSpecification& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the key pair.</p>
|
|
*/
|
|
inline LaunchSpecification& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the key pair.</p>
|
|
*/
|
|
inline LaunchSpecification& WithKeyName(const char* value) { SetKeyName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>One or more network interfaces. If you specify a network interface, you must
|
|
* specify subnet IDs and security group IDs using the network interface.</p>
|
|
*/
|
|
inline const Aws::Vector<InstanceNetworkInterfaceSpecification>& GetNetworkInterfaces() const{ return m_networkInterfaces; }
|
|
|
|
/**
|
|
* <p>One or more network interfaces. If you specify a network interface, you must
|
|
* specify subnet IDs and security group IDs using the network interface.</p>
|
|
*/
|
|
inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
|
|
|
|
/**
|
|
* <p>One or more network interfaces. If you specify a network interface, you must
|
|
* specify subnet IDs and security group IDs using the network interface.</p>
|
|
*/
|
|
inline void SetNetworkInterfaces(const Aws::Vector<InstanceNetworkInterfaceSpecification>& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = value; }
|
|
|
|
/**
|
|
* <p>One or more network interfaces. If you specify a network interface, you must
|
|
* specify subnet IDs and security group IDs using the network interface.</p>
|
|
*/
|
|
inline void SetNetworkInterfaces(Aws::Vector<InstanceNetworkInterfaceSpecification>&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::move(value); }
|
|
|
|
/**
|
|
* <p>One or more network interfaces. If you specify a network interface, you must
|
|
* specify subnet IDs and security group IDs using the network interface.</p>
|
|
*/
|
|
inline LaunchSpecification& WithNetworkInterfaces(const Aws::Vector<InstanceNetworkInterfaceSpecification>& value) { SetNetworkInterfaces(value); return *this;}
|
|
|
|
/**
|
|
* <p>One or more network interfaces. If you specify a network interface, you must
|
|
* specify subnet IDs and security group IDs using the network interface.</p>
|
|
*/
|
|
inline LaunchSpecification& WithNetworkInterfaces(Aws::Vector<InstanceNetworkInterfaceSpecification>&& value) { SetNetworkInterfaces(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>One or more network interfaces. If you specify a network interface, you must
|
|
* specify subnet IDs and security group IDs using the network interface.</p>
|
|
*/
|
|
inline LaunchSpecification& AddNetworkInterfaces(const InstanceNetworkInterfaceSpecification& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>One or more network interfaces. If you specify a network interface, you must
|
|
* specify subnet IDs and security group IDs using the network interface.</p>
|
|
*/
|
|
inline LaunchSpecification& AddNetworkInterfaces(InstanceNetworkInterfaceSpecification&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The placement information for the instance.</p>
|
|
*/
|
|
inline const SpotPlacement& GetPlacement() const{ return m_placement; }
|
|
|
|
/**
|
|
* <p>The placement information for the instance.</p>
|
|
*/
|
|
inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The placement information for the instance.</p>
|
|
*/
|
|
inline void SetPlacement(const SpotPlacement& value) { m_placementHasBeenSet = true; m_placement = value; }
|
|
|
|
/**
|
|
* <p>The placement information for the instance.</p>
|
|
*/
|
|
inline void SetPlacement(SpotPlacement&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); }
|
|
|
|
/**
|
|
* <p>The placement information for the instance.</p>
|
|
*/
|
|
inline LaunchSpecification& WithPlacement(const SpotPlacement& value) { SetPlacement(value); return *this;}
|
|
|
|
/**
|
|
* <p>The placement information for the instance.</p>
|
|
*/
|
|
inline LaunchSpecification& WithPlacement(SpotPlacement&& value) { SetPlacement(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ID of the RAM disk.</p>
|
|
*/
|
|
inline const Aws::String& GetRamdiskId() const{ return m_ramdiskId; }
|
|
|
|
/**
|
|
* <p>The ID of the RAM disk.</p>
|
|
*/
|
|
inline bool RamdiskIdHasBeenSet() const { return m_ramdiskIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the RAM disk.</p>
|
|
*/
|
|
inline void SetRamdiskId(const Aws::String& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the RAM disk.</p>
|
|
*/
|
|
inline void SetRamdiskId(Aws::String&& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the RAM disk.</p>
|
|
*/
|
|
inline void SetRamdiskId(const char* value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the RAM disk.</p>
|
|
*/
|
|
inline LaunchSpecification& WithRamdiskId(const Aws::String& value) { SetRamdiskId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the RAM disk.</p>
|
|
*/
|
|
inline LaunchSpecification& WithRamdiskId(Aws::String&& value) { SetRamdiskId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the RAM disk.</p>
|
|
*/
|
|
inline LaunchSpecification& WithRamdiskId(const char* value) { SetRamdiskId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ID of the subnet in which to launch the instance.</p>
|
|
*/
|
|
inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
|
|
|
|
/**
|
|
* <p>The ID of the subnet in which to launch the instance.</p>
|
|
*/
|
|
inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the subnet in which to launch the instance.</p>
|
|
*/
|
|
inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the subnet in which to launch the instance.</p>
|
|
*/
|
|
inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the subnet in which to launch the instance.</p>
|
|
*/
|
|
inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the subnet in which to launch the instance.</p>
|
|
*/
|
|
inline LaunchSpecification& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the subnet in which to launch the instance.</p>
|
|
*/
|
|
inline LaunchSpecification& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the subnet in which to launch the instance.</p>
|
|
*/
|
|
inline LaunchSpecification& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
|
|
|
|
|
|
|
|
inline const RunInstancesMonitoringEnabled& GetMonitoring() const{ return m_monitoring; }
|
|
|
|
|
|
inline bool MonitoringHasBeenSet() const { return m_monitoringHasBeenSet; }
|
|
|
|
|
|
inline void SetMonitoring(const RunInstancesMonitoringEnabled& value) { m_monitoringHasBeenSet = true; m_monitoring = value; }
|
|
|
|
|
|
inline void SetMonitoring(RunInstancesMonitoringEnabled&& value) { m_monitoringHasBeenSet = true; m_monitoring = std::move(value); }
|
|
|
|
|
|
inline LaunchSpecification& WithMonitoring(const RunInstancesMonitoringEnabled& value) { SetMonitoring(value); return *this;}
|
|
|
|
|
|
inline LaunchSpecification& WithMonitoring(RunInstancesMonitoringEnabled&& value) { SetMonitoring(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_userData;
|
|
bool m_userDataHasBeenSet;
|
|
|
|
Aws::Vector<GroupIdentifier> m_securityGroups;
|
|
bool m_securityGroupsHasBeenSet;
|
|
|
|
Aws::String m_addressingType;
|
|
bool m_addressingTypeHasBeenSet;
|
|
|
|
Aws::Vector<BlockDeviceMapping> m_blockDeviceMappings;
|
|
bool m_blockDeviceMappingsHasBeenSet;
|
|
|
|
bool m_ebsOptimized;
|
|
bool m_ebsOptimizedHasBeenSet;
|
|
|
|
IamInstanceProfileSpecification m_iamInstanceProfile;
|
|
bool m_iamInstanceProfileHasBeenSet;
|
|
|
|
Aws::String m_imageId;
|
|
bool m_imageIdHasBeenSet;
|
|
|
|
InstanceType m_instanceType;
|
|
bool m_instanceTypeHasBeenSet;
|
|
|
|
Aws::String m_kernelId;
|
|
bool m_kernelIdHasBeenSet;
|
|
|
|
Aws::String m_keyName;
|
|
bool m_keyNameHasBeenSet;
|
|
|
|
Aws::Vector<InstanceNetworkInterfaceSpecification> m_networkInterfaces;
|
|
bool m_networkInterfacesHasBeenSet;
|
|
|
|
SpotPlacement m_placement;
|
|
bool m_placementHasBeenSet;
|
|
|
|
Aws::String m_ramdiskId;
|
|
bool m_ramdiskIdHasBeenSet;
|
|
|
|
Aws::String m_subnetId;
|
|
bool m_subnetIdHasBeenSet;
|
|
|
|
RunInstancesMonitoringEnabled m_monitoring;
|
|
bool m_monitoringHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace EC2
|
|
} // namespace Aws
|