/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes overrides for a launch template.See Also:
AWS
* API Reference
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 LaunchTemplateOverrides& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;} /** *The instance type.
*/ inline LaunchTemplateOverrides& WithInstanceType(InstanceType&& value) { SetInstanceType(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 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 LaunchTemplateOverrides& 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 LaunchTemplateOverrides& 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 LaunchTemplateOverrides& WithSpotPrice(const char* value) { SetSpotPrice(value); return *this;} /** *The ID of the subnet in which to launch the instances.
*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *The ID of the subnet in which to launch the instances.
*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *The ID of the subnet in which to launch the instances.
*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *The ID of the subnet in which to launch the instances.
*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *The ID of the subnet in which to launch the instances.
*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *The ID of the subnet in which to launch the instances.
*/ inline LaunchTemplateOverrides& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *The ID of the subnet in which to launch the instances.
*/ inline LaunchTemplateOverrides& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *The ID of the subnet in which to launch the instances.
*/ inline LaunchTemplateOverrides& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *The Availability Zone in which to launch the instances.
*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *The Availability Zone in which to launch the instances.
*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *The Availability Zone in which to launch the instances.
*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *The Availability Zone in which to launch the instances.
*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *The Availability Zone in which to launch the instances.
*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *The Availability Zone in which to launch the instances.
*/ inline LaunchTemplateOverrides& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *The Availability Zone in which to launch the instances.
*/ inline LaunchTemplateOverrides& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *The Availability Zone in which to launch the instances.
*/ inline LaunchTemplateOverrides& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *The number of units provided by the specified instance type.
*/ inline double GetWeightedCapacity() const{ return m_weightedCapacity; } /** *The number of units provided by the specified instance type.
*/ inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; } /** *The number of units provided by the specified instance type.
*/ inline void SetWeightedCapacity(double value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = value; } /** *The number of units provided by the specified instance type.
*/ inline LaunchTemplateOverrides& WithWeightedCapacity(double value) { SetWeightedCapacity(value); return *this;} /** *The priority for the launch template override. The highest priority is * launched first.
If OnDemandAllocationStrategy
is set to
* prioritized
, Spot Fleet uses priority to determine which launch
* template override to use first in fulfilling On-Demand capacity.
If the
* Spot AllocationStrategy
is set to
* capacityOptimizedPrioritized
, Spot Fleet uses priority on a
* best-effort basis to determine which launch template override to use in
* fulfilling Spot capacity, but optimizes for capacity first.
Valid values
* are whole numbers starting at 0
. The lower the number, the higher
* the priority. If no number is set, the launch template override has the lowest
* priority. You can set the same priority for different launch template
* overrides.
The priority for the launch template override. The highest priority is * launched first.
If OnDemandAllocationStrategy
is set to
* prioritized
, Spot Fleet uses priority to determine which launch
* template override to use first in fulfilling On-Demand capacity.
If the
* Spot AllocationStrategy
is set to
* capacityOptimizedPrioritized
, Spot Fleet uses priority on a
* best-effort basis to determine which launch template override to use in
* fulfilling Spot capacity, but optimizes for capacity first.
Valid values
* are whole numbers starting at 0
. The lower the number, the higher
* the priority. If no number is set, the launch template override has the lowest
* priority. You can set the same priority for different launch template
* overrides.
The priority for the launch template override. The highest priority is * launched first.
If OnDemandAllocationStrategy
is set to
* prioritized
, Spot Fleet uses priority to determine which launch
* template override to use first in fulfilling On-Demand capacity.
If the
* Spot AllocationStrategy
is set to
* capacityOptimizedPrioritized
, Spot Fleet uses priority on a
* best-effort basis to determine which launch template override to use in
* fulfilling Spot capacity, but optimizes for capacity first.
Valid values
* are whole numbers starting at 0
. The lower the number, the higher
* the priority. If no number is set, the launch template override has the lowest
* priority. You can set the same priority for different launch template
* overrides.
The priority for the launch template override. The highest priority is * launched first.
If OnDemandAllocationStrategy
is set to
* prioritized
, Spot Fleet uses priority to determine which launch
* template override to use first in fulfilling On-Demand capacity.
If the
* Spot AllocationStrategy
is set to
* capacityOptimizedPrioritized
, Spot Fleet uses priority on a
* best-effort basis to determine which launch template override to use in
* fulfilling Spot capacity, but optimizes for capacity first.
Valid values
* are whole numbers starting at 0
. The lower the number, the higher
* the priority. If no number is set, the launch template override has the lowest
* priority. You can set the same priority for different launch template
* overrides.
The instance requirements. When you specify instance requirements, Amazon EC2 * will identify instance types with the provided requirements, and then use your * On-Demand and Spot allocation strategies to launch instances from these instance * types, in the same way as when you specify a list of instance types.
*If you specify InstanceRequirements
, you can't specify
* InstanceType
.
The instance requirements. When you specify instance requirements, Amazon EC2 * will identify instance types with the provided requirements, and then use your * On-Demand and Spot allocation strategies to launch instances from these instance * types, in the same way as when you specify a list of instance types.
*If you specify InstanceRequirements
, you can't specify
* InstanceType
.
The instance requirements. When you specify instance requirements, Amazon EC2 * will identify instance types with the provided requirements, and then use your * On-Demand and Spot allocation strategies to launch instances from these instance * types, in the same way as when you specify a list of instance types.
*If you specify InstanceRequirements
, you can't specify
* InstanceType
.
The instance requirements. When you specify instance requirements, Amazon EC2 * will identify instance types with the provided requirements, and then use your * On-Demand and Spot allocation strategies to launch instances from these instance * types, in the same way as when you specify a list of instance types.
*If you specify InstanceRequirements
, you can't specify
* InstanceType
.
The instance requirements. When you specify instance requirements, Amazon EC2 * will identify instance types with the provided requirements, and then use your * On-Demand and Spot allocation strategies to launch instances from these instance * types, in the same way as when you specify a list of instance types.
*If you specify InstanceRequirements
, you can't specify
* InstanceType
.
The instance requirements. When you specify instance requirements, Amazon EC2 * will identify instance types with the provided requirements, and then use your * On-Demand and Spot allocation strategies to launch instances from these instance * types, in the same way as when you specify a list of instance types.
*If you specify InstanceRequirements
, you can't specify
* InstanceType
.