/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about the instances distribution.See Also:
AWS
* API Reference
How to allocate instance types to fulfill On-Demand capacity. The valid value
* is prioritized
.
How to allocate instance types to fulfill On-Demand capacity. The valid value
* is prioritized
.
How to allocate instance types to fulfill On-Demand capacity. The valid value
* is prioritized
.
How to allocate instance types to fulfill On-Demand capacity. The valid value
* is prioritized
.
How to allocate instance types to fulfill On-Demand capacity. The valid value
* is prioritized
.
How to allocate instance types to fulfill On-Demand capacity. The valid value
* is prioritized
.
How to allocate instance types to fulfill On-Demand capacity. The valid value
* is prioritized
.
How to allocate instance types to fulfill On-Demand capacity. The valid value
* is prioritized
.
The minimum amount of the Auto Scaling group's capacity that must be * fulfilled by On-Demand Instances.
*/ inline int GetOnDemandBaseCapacity() const{ return m_onDemandBaseCapacity; } /** *The minimum amount of the Auto Scaling group's capacity that must be * fulfilled by On-Demand Instances.
*/ inline bool OnDemandBaseCapacityHasBeenSet() const { return m_onDemandBaseCapacityHasBeenSet; } /** *The minimum amount of the Auto Scaling group's capacity that must be * fulfilled by On-Demand Instances.
*/ inline void SetOnDemandBaseCapacity(int value) { m_onDemandBaseCapacityHasBeenSet = true; m_onDemandBaseCapacity = value; } /** *The minimum amount of the Auto Scaling group's capacity that must be * fulfilled by On-Demand Instances.
*/ inline AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails& WithOnDemandBaseCapacity(int value) { SetOnDemandBaseCapacity(value); return *this;} /** *The percentage of On-Demand Instances and Spot Instances for additional
* capacity beyond OnDemandBaseCapacity
.
The percentage of On-Demand Instances and Spot Instances for additional
* capacity beyond OnDemandBaseCapacity
.
The percentage of On-Demand Instances and Spot Instances for additional
* capacity beyond OnDemandBaseCapacity
.
The percentage of On-Demand Instances and Spot Instances for additional
* capacity beyond OnDemandBaseCapacity
.
How to allocate instances across Spot Instance pools. Valid values are as * follows:
lowest-price
* capacity-optimized
* capacity-optimized-prioritized
How to allocate instances across Spot Instance pools. Valid values are as * follows:
lowest-price
* capacity-optimized
* capacity-optimized-prioritized
How to allocate instances across Spot Instance pools. Valid values are as * follows:
lowest-price
* capacity-optimized
* capacity-optimized-prioritized
How to allocate instances across Spot Instance pools. Valid values are as * follows:
lowest-price
* capacity-optimized
* capacity-optimized-prioritized
How to allocate instances across Spot Instance pools. Valid values are as * follows:
lowest-price
* capacity-optimized
* capacity-optimized-prioritized
How to allocate instances across Spot Instance pools. Valid values are as * follows:
lowest-price
* capacity-optimized
* capacity-optimized-prioritized
How to allocate instances across Spot Instance pools. Valid values are as * follows:
lowest-price
* capacity-optimized
* capacity-optimized-prioritized
How to allocate instances across Spot Instance pools. Valid values are as * follows:
lowest-price
* capacity-optimized
* capacity-optimized-prioritized
The number of Spot Instance pools across which to allocate your Spot * Instances.
*/ inline int GetSpotInstancePools() const{ return m_spotInstancePools; } /** *The number of Spot Instance pools across which to allocate your Spot * Instances.
*/ inline bool SpotInstancePoolsHasBeenSet() const { return m_spotInstancePoolsHasBeenSet; } /** *The number of Spot Instance pools across which to allocate your Spot * Instances.
*/ inline void SetSpotInstancePools(int value) { m_spotInstancePoolsHasBeenSet = true; m_spotInstancePools = value; } /** *The number of Spot Instance pools across which to allocate your Spot * Instances.
*/ inline AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails& WithSpotInstancePools(int value) { SetSpotInstancePools(value); return *this;} /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance.
*/ inline const Aws::String& GetSpotMaxPrice() const{ return m_spotMaxPrice; } /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance.
*/ inline bool SpotMaxPriceHasBeenSet() const { return m_spotMaxPriceHasBeenSet; } /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance.
*/ inline void SetSpotMaxPrice(const Aws::String& value) { m_spotMaxPriceHasBeenSet = true; m_spotMaxPrice = value; } /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance.
*/ inline void SetSpotMaxPrice(Aws::String&& value) { m_spotMaxPriceHasBeenSet = true; m_spotMaxPrice = std::move(value); } /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance.
*/ inline void SetSpotMaxPrice(const char* value) { m_spotMaxPriceHasBeenSet = true; m_spotMaxPrice.assign(value); } /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance.
*/ inline AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails& WithSpotMaxPrice(const Aws::String& value) { SetSpotMaxPrice(value); return *this;} /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance.
*/ inline AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails& WithSpotMaxPrice(Aws::String&& value) { SetSpotMaxPrice(std::move(value)); return *this;} /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance.
*/ inline AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails& WithSpotMaxPrice(const char* value) { SetSpotMaxPrice(value); return *this;} private: Aws::String m_onDemandAllocationStrategy; bool m_onDemandAllocationStrategyHasBeenSet = false; int m_onDemandBaseCapacity; bool m_onDemandBaseCapacityHasBeenSet = false; int m_onDemandPercentageAboveBaseCapacity; bool m_onDemandPercentageAboveBaseCapacityHasBeenSet = false; Aws::String m_spotAllocationStrategy; bool m_spotAllocationStrategyHasBeenSet = false; int m_spotInstancePools; bool m_spotInstancePoolsHasBeenSet = false; Aws::String m_spotMaxPrice; bool m_spotMaxPriceHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws