/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the launch specification for one or more Spot Instances. If you
* include On-Demand capacity in your fleet request or want to specify an EFA
* network device, you can't use SpotFleetLaunchSpecification
; you
* must use LaunchTemplateConfig.See
* Also:
AWS
* API Reference
The security groups.
*/ inline const Aws::VectorThe security groups.
*/ inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } /** *The security groups.
*/ inline void SetSecurityGroups(const Aws::VectorThe security groups.
*/ inline void SetSecurityGroups(Aws::VectorThe security groups.
*/ inline SpotFleetLaunchSpecification& WithSecurityGroups(const Aws::VectorThe security groups.
*/ inline SpotFleetLaunchSpecification& WithSecurityGroups(Aws::VectorThe security groups.
*/ inline SpotFleetLaunchSpecification& AddSecurityGroups(const GroupIdentifier& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *The security groups.
*/ inline SpotFleetLaunchSpecification& AddSecurityGroups(GroupIdentifier&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } /** *Deprecated.
*/ inline const Aws::String& GetAddressingType() const{ return m_addressingType; } /** *Deprecated.
*/ inline bool AddressingTypeHasBeenSet() const { return m_addressingTypeHasBeenSet; } /** *Deprecated.
*/ inline void SetAddressingType(const Aws::String& value) { m_addressingTypeHasBeenSet = true; m_addressingType = value; } /** *Deprecated.
*/ inline void SetAddressingType(Aws::String&& value) { m_addressingTypeHasBeenSet = true; m_addressingType = std::move(value); } /** *Deprecated.
*/ inline void SetAddressingType(const char* value) { m_addressingTypeHasBeenSet = true; m_addressingType.assign(value); } /** *Deprecated.
*/ inline SpotFleetLaunchSpecification& WithAddressingType(const Aws::String& value) { SetAddressingType(value); return *this;} /** *Deprecated.
*/ inline SpotFleetLaunchSpecification& WithAddressingType(Aws::String&& value) { SetAddressingType(std::move(value)); return *this;} /** *Deprecated.
*/ inline SpotFleetLaunchSpecification& WithAddressingType(const char* value) { SetAddressingType(value); return *this;} /** *One or more block devices that are mapped to the Spot Instances. You can't * specify both a snapshot ID and an encryption value. This is because only blank * volumes can be encrypted on creation. If a snapshot is the basis for a volume, * it is not blank and its encryption status is used for the volume encryption * status.
*/ inline const Aws::VectorOne or more block devices that are mapped to the Spot Instances. You can't * specify both a snapshot ID and an encryption value. This is because only blank * volumes can be encrypted on creation. If a snapshot is the basis for a volume, * it is not blank and its encryption status is used for the volume encryption * status.
*/ inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; } /** *One or more block devices that are mapped to the Spot Instances. You can't * specify both a snapshot ID and an encryption value. This is because only blank * volumes can be encrypted on creation. If a snapshot is the basis for a volume, * it is not blank and its encryption status is used for the volume encryption * status.
*/ inline void SetBlockDeviceMappings(const Aws::VectorOne or more block devices that are mapped to the Spot Instances. You can't * specify both a snapshot ID and an encryption value. This is because only blank * volumes can be encrypted on creation. If a snapshot is the basis for a volume, * it is not blank and its encryption status is used for the volume encryption * status.
*/ inline void SetBlockDeviceMappings(Aws::VectorOne or more block devices that are mapped to the Spot Instances. You can't * specify both a snapshot ID and an encryption value. This is because only blank * volumes can be encrypted on creation. If a snapshot is the basis for a volume, * it is not blank and its encryption status is used for the volume encryption * status.
*/ inline SpotFleetLaunchSpecification& WithBlockDeviceMappings(const Aws::VectorOne or more block devices that are mapped to the Spot Instances. You can't * specify both a snapshot ID and an encryption value. This is because only blank * volumes can be encrypted on creation. If a snapshot is the basis for a volume, * it is not blank and its encryption status is used for the volume encryption * status.
*/ inline SpotFleetLaunchSpecification& WithBlockDeviceMappings(Aws::VectorOne or more block devices that are mapped to the Spot Instances. You can't * specify both a snapshot ID and an encryption value. This is because only blank * volumes can be encrypted on creation. If a snapshot is the basis for a volume, * it is not blank and its encryption status is used for the volume encryption * status.
*/ inline SpotFleetLaunchSpecification& AddBlockDeviceMappings(const BlockDeviceMapping& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; } /** *One or more block devices that are mapped to the Spot Instances. You can't * specify both a snapshot ID and an encryption value. This is because only blank * volumes can be encrypted on creation. If a snapshot is the basis for a volume, * it is not blank and its encryption status is used for the volume encryption * status.
*/ inline SpotFleetLaunchSpecification& AddBlockDeviceMappings(BlockDeviceMapping&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(std::move(value)); return *this; } /** *Indicates whether the instances are 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.
Default: false
Indicates whether the instances are 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.
Default: false
Indicates whether the instances are 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.
Default: false
Indicates whether the instances are 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.
Default: false
The IAM instance profile.
*/ inline const IamInstanceProfileSpecification& GetIamInstanceProfile() const{ return m_iamInstanceProfile; } /** *The IAM instance profile.
*/ inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; } /** *The IAM instance profile.
*/ inline void SetIamInstanceProfile(const IamInstanceProfileSpecification& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = value; } /** *The IAM instance profile.
*/ inline void SetIamInstanceProfile(IamInstanceProfileSpecification&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::move(value); } /** *The IAM instance profile.
*/ inline SpotFleetLaunchSpecification& WithIamInstanceProfile(const IamInstanceProfileSpecification& value) { SetIamInstanceProfile(value); return *this;} /** *The IAM instance profile.
*/ inline SpotFleetLaunchSpecification& WithIamInstanceProfile(IamInstanceProfileSpecification&& value) { SetIamInstanceProfile(std::move(value)); return *this;} /** *The ID of the AMI.
*/ inline const Aws::String& GetImageId() const{ return m_imageId; } /** *The ID of the AMI.
*/ inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; } /** *The ID of the AMI.
*/ inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; } /** *The ID of the AMI.
*/ inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); } /** *The ID of the AMI.
*/ inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); } /** *The ID of the AMI.
*/ inline SpotFleetLaunchSpecification& WithImageId(const Aws::String& value) { SetImageId(value); return *this;} /** *The ID of the AMI.
*/ inline SpotFleetLaunchSpecification& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;} /** *The ID of the AMI.
*/ inline SpotFleetLaunchSpecification& WithImageId(const char* value) { SetImageId(value); return *this;} /** *The instance type.
*/ inline const InstanceType& GetInstanceType() const{ return m_instanceType; } /** *The instance type.
*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *The instance type.
*/ inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *The instance type.
*/ inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *The instance type.
*/ inline SpotFleetLaunchSpecification& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;} /** *The instance type.
*/ inline SpotFleetLaunchSpecification& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;} /** *The ID of the kernel.
*/ inline const Aws::String& GetKernelId() const{ return m_kernelId; } /** *The ID of the kernel.
*/ inline bool KernelIdHasBeenSet() const { return m_kernelIdHasBeenSet; } /** *The ID of the kernel.
*/ inline void SetKernelId(const Aws::String& value) { m_kernelIdHasBeenSet = true; m_kernelId = value; } /** *The ID of the kernel.
*/ inline void SetKernelId(Aws::String&& value) { m_kernelIdHasBeenSet = true; m_kernelId = std::move(value); } /** *The ID of the kernel.
*/ inline void SetKernelId(const char* value) { m_kernelIdHasBeenSet = true; m_kernelId.assign(value); } /** *The ID of the kernel.
*/ inline SpotFleetLaunchSpecification& WithKernelId(const Aws::String& value) { SetKernelId(value); return *this;} /** *The ID of the kernel.
*/ inline SpotFleetLaunchSpecification& WithKernelId(Aws::String&& value) { SetKernelId(std::move(value)); return *this;} /** *The ID of the kernel.
*/ inline SpotFleetLaunchSpecification& WithKernelId(const char* value) { SetKernelId(value); return *this;} /** *The name of the key pair.
*/ inline const Aws::String& GetKeyName() const{ return m_keyName; } /** *The name of the key pair.
*/ inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; } /** *The name of the key pair.
*/ inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; } /** *The name of the key pair.
*/ inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); } /** *The name of the key pair.
*/ inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); } /** *The name of the key pair.
*/ inline SpotFleetLaunchSpecification& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;} /** *The name of the key pair.
*/ inline SpotFleetLaunchSpecification& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;} /** *The name of the key pair.
*/ inline SpotFleetLaunchSpecification& WithKeyName(const char* value) { SetKeyName(value); return *this;} /** *Enable or disable monitoring for the instances.
*/ inline const SpotFleetMonitoring& GetMonitoring() const{ return m_monitoring; } /** *Enable or disable monitoring for the instances.
*/ inline bool MonitoringHasBeenSet() const { return m_monitoringHasBeenSet; } /** *Enable or disable monitoring for the instances.
*/ inline void SetMonitoring(const SpotFleetMonitoring& value) { m_monitoringHasBeenSet = true; m_monitoring = value; } /** *Enable or disable monitoring for the instances.
*/ inline void SetMonitoring(SpotFleetMonitoring&& value) { m_monitoringHasBeenSet = true; m_monitoring = std::move(value); } /** *Enable or disable monitoring for the instances.
*/ inline SpotFleetLaunchSpecification& WithMonitoring(const SpotFleetMonitoring& value) { SetMonitoring(value); return *this;} /** *Enable or disable monitoring for the instances.
*/ inline SpotFleetLaunchSpecification& WithMonitoring(SpotFleetMonitoring&& value) { SetMonitoring(std::move(value)); return *this;} /** *One or more network interfaces. If you specify a network interface, you must * specify subnet IDs and security group IDs using the network interface.
* SpotFleetLaunchSpecification
currently does not support
* Elastic Fabric Adapter (EFA). To specify an EFA, you must use LaunchTemplateConfig.
One or more network interfaces. If you specify a network interface, you must * specify subnet IDs and security group IDs using the network interface.
* SpotFleetLaunchSpecification
currently does not support
* Elastic Fabric Adapter (EFA). To specify an EFA, you must use LaunchTemplateConfig.
One or more network interfaces. If you specify a network interface, you must * specify subnet IDs and security group IDs using the network interface.
* SpotFleetLaunchSpecification
currently does not support
* Elastic Fabric Adapter (EFA). To specify an EFA, you must use LaunchTemplateConfig.
One or more network interfaces. If you specify a network interface, you must * specify subnet IDs and security group IDs using the network interface.
* SpotFleetLaunchSpecification
currently does not support
* Elastic Fabric Adapter (EFA). To specify an EFA, you must use LaunchTemplateConfig.
One or more network interfaces. If you specify a network interface, you must * specify subnet IDs and security group IDs using the network interface.
* SpotFleetLaunchSpecification
currently does not support
* Elastic Fabric Adapter (EFA). To specify an EFA, you must use LaunchTemplateConfig.
One or more network interfaces. If you specify a network interface, you must * specify subnet IDs and security group IDs using the network interface.
* SpotFleetLaunchSpecification
currently does not support
* Elastic Fabric Adapter (EFA). To specify an EFA, you must use LaunchTemplateConfig.
One or more network interfaces. If you specify a network interface, you must * specify subnet IDs and security group IDs using the network interface.
* SpotFleetLaunchSpecification
currently does not support
* Elastic Fabric Adapter (EFA). To specify an EFA, you must use LaunchTemplateConfig.
One or more network interfaces. If you specify a network interface, you must * specify subnet IDs and security group IDs using the network interface.
* SpotFleetLaunchSpecification
currently does not support
* Elastic Fabric Adapter (EFA). To specify an EFA, you must use LaunchTemplateConfig.
The placement information.
*/ inline const SpotPlacement& GetPlacement() const{ return m_placement; } /** *The placement information.
*/ inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; } /** *The placement information.
*/ inline void SetPlacement(const SpotPlacement& value) { m_placementHasBeenSet = true; m_placement = value; } /** *The placement information.
*/ inline void SetPlacement(SpotPlacement&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); } /** *The placement information.
*/ inline SpotFleetLaunchSpecification& WithPlacement(const SpotPlacement& value) { SetPlacement(value); return *this;} /** *The placement information.
*/ inline SpotFleetLaunchSpecification& WithPlacement(SpotPlacement&& value) { SetPlacement(std::move(value)); return *this;} /** *The ID of the RAM disk. Some kernels require additional drivers at launch. * Check the kernel requirements for information about whether you need to specify * a RAM disk. To find kernel requirements, refer to the Amazon Web Services * Resource Center and search for the kernel ID.
*/ inline const Aws::String& GetRamdiskId() const{ return m_ramdiskId; } /** *The ID of the RAM disk. Some kernels require additional drivers at launch. * Check the kernel requirements for information about whether you need to specify * a RAM disk. To find kernel requirements, refer to the Amazon Web Services * Resource Center and search for the kernel ID.
*/ inline bool RamdiskIdHasBeenSet() const { return m_ramdiskIdHasBeenSet; } /** *The ID of the RAM disk. Some kernels require additional drivers at launch. * Check the kernel requirements for information about whether you need to specify * a RAM disk. To find kernel requirements, refer to the Amazon Web Services * Resource Center and search for the kernel ID.
*/ inline void SetRamdiskId(const Aws::String& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = value; } /** *The ID of the RAM disk. Some kernels require additional drivers at launch. * Check the kernel requirements for information about whether you need to specify * a RAM disk. To find kernel requirements, refer to the Amazon Web Services * Resource Center and search for the kernel ID.
*/ inline void SetRamdiskId(Aws::String&& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = std::move(value); } /** *The ID of the RAM disk. Some kernels require additional drivers at launch. * Check the kernel requirements for information about whether you need to specify * a RAM disk. To find kernel requirements, refer to the Amazon Web Services * Resource Center and search for the kernel ID.
*/ inline void SetRamdiskId(const char* value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId.assign(value); } /** *The ID of the RAM disk. Some kernels require additional drivers at launch. * Check the kernel requirements for information about whether you need to specify * a RAM disk. To find kernel requirements, refer to the Amazon Web Services * Resource Center and search for the kernel ID.
*/ inline SpotFleetLaunchSpecification& WithRamdiskId(const Aws::String& value) { SetRamdiskId(value); return *this;} /** *The ID of the RAM disk. Some kernels require additional drivers at launch. * Check the kernel requirements for information about whether you need to specify * a RAM disk. To find kernel requirements, refer to the Amazon Web Services * Resource Center and search for the kernel ID.
*/ inline SpotFleetLaunchSpecification& WithRamdiskId(Aws::String&& value) { SetRamdiskId(std::move(value)); return *this;} /** *The ID of the RAM disk. Some kernels require additional drivers at launch. * Check the kernel requirements for information about whether you need to specify * a RAM disk. To find kernel requirements, refer to the Amazon Web Services * Resource Center and search for the kernel ID.
*/ inline SpotFleetLaunchSpecification& WithRamdiskId(const char* value) { SetRamdiskId(value); return *this;} /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance. We do not recommend using this parameter because it can lead to * increased interruptions. If you do not specify this parameter, you will pay the * current Spot price.
If you specify a maximum price, your * instances will be interrupted more frequently than if you do not specify this * parameter.
*/ inline const Aws::String& GetSpotPrice() const{ return m_spotPrice; } /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance. We do not recommend using this parameter because it can lead to * increased interruptions. If you do not specify this parameter, you will pay the * current Spot price.
If you specify a maximum price, your * instances will be interrupted more frequently than if you do not specify this * parameter.
*/ inline bool SpotPriceHasBeenSet() const { return m_spotPriceHasBeenSet; } /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance. We do not recommend using this parameter because it can lead to * increased interruptions. If you do not specify this parameter, you will pay the * current Spot price.
If you specify a maximum price, your * instances will be interrupted more frequently than if you do not specify this * parameter.
*/ inline void SetSpotPrice(const Aws::String& value) { m_spotPriceHasBeenSet = true; m_spotPrice = value; } /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance. We do not recommend using this parameter because it can lead to * increased interruptions. If you do not specify this parameter, you will pay the * current Spot price.
If you specify a maximum price, your * instances will be interrupted more frequently than if you do not specify this * parameter.
*/ inline void SetSpotPrice(Aws::String&& value) { m_spotPriceHasBeenSet = true; m_spotPrice = std::move(value); } /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance. We do not recommend using this parameter because it can lead to * increased interruptions. If you do not specify this parameter, you will pay the * current Spot price.
If you specify a maximum price, your * instances will be interrupted more frequently than if you do not specify this * parameter.
*/ inline void SetSpotPrice(const char* value) { m_spotPriceHasBeenSet = true; m_spotPrice.assign(value); } /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance. We do not recommend using this parameter because it can lead to * increased interruptions. If you do not specify this parameter, you will pay the * current Spot price.
If you specify a maximum price, your * instances will be interrupted more frequently than if you do not specify this * parameter.
*/ inline SpotFleetLaunchSpecification& WithSpotPrice(const Aws::String& value) { SetSpotPrice(value); return *this;} /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance. We do not recommend using this parameter because it can lead to * increased interruptions. If you do not specify this parameter, you will pay the * current Spot price.
If you specify a maximum price, your * instances will be interrupted more frequently than if you do not specify this * parameter.
*/ inline SpotFleetLaunchSpecification& WithSpotPrice(Aws::String&& value) { SetSpotPrice(std::move(value)); return *this;} /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance. We do not recommend using this parameter because it can lead to * increased interruptions. If you do not specify this parameter, you will pay the * current Spot price.
If you specify a maximum price, your * instances will be interrupted more frequently than if you do not specify this * parameter.
*/ inline SpotFleetLaunchSpecification& WithSpotPrice(const char* value) { SetSpotPrice(value); return *this;} /** *The IDs of the subnets in which to launch the instances. To specify multiple * subnets, separate them using commas; for example, "subnet-1234abcdeexample1, * subnet-0987cdef6example2".
*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *The IDs of the subnets in which to launch the instances. To specify multiple * subnets, separate them using commas; for example, "subnet-1234abcdeexample1, * subnet-0987cdef6example2".
*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *The IDs of the subnets in which to launch the instances. To specify multiple * subnets, separate them using commas; for example, "subnet-1234abcdeexample1, * subnet-0987cdef6example2".
*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *The IDs of the subnets in which to launch the instances. To specify multiple * subnets, separate them using commas; for example, "subnet-1234abcdeexample1, * subnet-0987cdef6example2".
*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *The IDs of the subnets in which to launch the instances. To specify multiple * subnets, separate them using commas; for example, "subnet-1234abcdeexample1, * subnet-0987cdef6example2".
*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *The IDs of the subnets in which to launch the instances. To specify multiple * subnets, separate them using commas; for example, "subnet-1234abcdeexample1, * subnet-0987cdef6example2".
*/ inline SpotFleetLaunchSpecification& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *The IDs of the subnets in which to launch the instances. To specify multiple * subnets, separate them using commas; for example, "subnet-1234abcdeexample1, * subnet-0987cdef6example2".
*/ inline SpotFleetLaunchSpecification& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *The IDs of the subnets in which to launch the instances. To specify multiple * subnets, separate them using commas; for example, "subnet-1234abcdeexample1, * subnet-0987cdef6example2".
*/ inline SpotFleetLaunchSpecification& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *The base64-encoded user data that instances use when starting up. User data * is limited to 16 KB.
*/ inline const Aws::String& GetUserData() const{ return m_userData; } /** *The base64-encoded user data that instances use when starting up. User data * is limited to 16 KB.
*/ inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; } /** *The base64-encoded user data that instances use when starting up. User data * is limited to 16 KB.
*/ inline void SetUserData(const Aws::String& value) { m_userDataHasBeenSet = true; m_userData = value; } /** *The base64-encoded user data that instances use when starting up. User data * is limited to 16 KB.
*/ inline void SetUserData(Aws::String&& value) { m_userDataHasBeenSet = true; m_userData = std::move(value); } /** *The base64-encoded user data that instances use when starting up. User data * is limited to 16 KB.
*/ inline void SetUserData(const char* value) { m_userDataHasBeenSet = true; m_userData.assign(value); } /** *The base64-encoded user data that instances use when starting up. User data * is limited to 16 KB.
*/ inline SpotFleetLaunchSpecification& WithUserData(const Aws::String& value) { SetUserData(value); return *this;} /** *The base64-encoded user data that instances use when starting up. User data * is limited to 16 KB.
*/ inline SpotFleetLaunchSpecification& WithUserData(Aws::String&& value) { SetUserData(std::move(value)); return *this;} /** *The base64-encoded user data that instances use when starting up. User data * is limited to 16 KB.
*/ inline SpotFleetLaunchSpecification& WithUserData(const char* value) { SetUserData(value); return *this;} /** *The number of units provided by the specified instance type. These are the * same units that you chose to set the target capacity in terms of instances, or a * performance characteristic such as vCPUs, memory, or I/O.
If the target * capacity divided by this value is not a whole number, Amazon EC2 rounds the * number of instances to the next whole number. If this value is not specified, * the default is 1.
*/ inline double GetWeightedCapacity() const{ return m_weightedCapacity; } /** *The number of units provided by the specified instance type. These are the * same units that you chose to set the target capacity in terms of instances, or a * performance characteristic such as vCPUs, memory, or I/O.
If the target * capacity divided by this value is not a whole number, Amazon EC2 rounds the * number of instances to the next whole number. If this value is not specified, * the default is 1.
*/ inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; } /** *The number of units provided by the specified instance type. These are the * same units that you chose to set the target capacity in terms of instances, or a * performance characteristic such as vCPUs, memory, or I/O.
If the target * capacity divided by this value is not a whole number, Amazon EC2 rounds the * number of instances to the next whole number. If this value is not specified, * the default is 1.
*/ inline void SetWeightedCapacity(double value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = value; } /** *The number of units provided by the specified instance type. These are the * same units that you chose to set the target capacity in terms of instances, or a * performance characteristic such as vCPUs, memory, or I/O.
If the target * capacity divided by this value is not a whole number, Amazon EC2 rounds the * number of instances to the next whole number. If this value is not specified, * the default is 1.
*/ inline SpotFleetLaunchSpecification& WithWeightedCapacity(double value) { SetWeightedCapacity(value); return *this;} /** *The tags to apply during creation.
*/ inline const Aws::VectorThe tags to apply during creation.
*/ inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; } /** *The tags to apply during creation.
*/ inline void SetTagSpecifications(const Aws::VectorThe tags to apply during creation.
*/ inline void SetTagSpecifications(Aws::VectorThe tags to apply during creation.
*/ inline SpotFleetLaunchSpecification& WithTagSpecifications(const Aws::VectorThe tags to apply during creation.
*/ inline SpotFleetLaunchSpecification& WithTagSpecifications(Aws::VectorThe tags to apply during creation.
*/ inline SpotFleetLaunchSpecification& AddTagSpecifications(const SpotFleetTagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; } /** *The tags to apply during creation.
*/ inline SpotFleetLaunchSpecification& AddTagSpecifications(SpotFleetTagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; } /** *The attributes for the instance types. When you specify instance attributes, * Amazon EC2 will identify instance types with those attributes.
If
* you specify InstanceRequirements
, you can't specify
* InstanceType
.
The attributes for the instance types. When you specify instance attributes, * Amazon EC2 will identify instance types with those attributes.
If
* you specify InstanceRequirements
, you can't specify
* InstanceType
.
The attributes for the instance types. When you specify instance attributes, * Amazon EC2 will identify instance types with those attributes.
If
* you specify InstanceRequirements
, you can't specify
* InstanceType
.
The attributes for the instance types. When you specify instance attributes, * Amazon EC2 will identify instance types with those attributes.
If
* you specify InstanceRequirements
, you can't specify
* InstanceType
.
The attributes for the instance types. When you specify instance attributes, * Amazon EC2 will identify instance types with those attributes.
If
* you specify InstanceRequirements
, you can't specify
* InstanceType
.
The attributes for the instance types. When you specify instance attributes, * Amazon EC2 will identify instance types with those attributes.
If
* you specify InstanceRequirements
, you can't specify
* InstanceType
.