/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The strategies for managing your Spot Instances that are at an elevated risk
* of being interrupted.See Also:
AWS
* API Reference
The Spot Instance replacement strategy to use when Amazon EC2 emits a signal * that your Spot Instance is at an elevated risk of being interrupted. For more * information, see Capacity * rebalancing in the Amazon EC2 User Guide for Linux Instances.
*/ inline const SpotCapacityRebalance& GetCapacityRebalance() const{ return m_capacityRebalance; } /** *The Spot Instance replacement strategy to use when Amazon EC2 emits a signal * that your Spot Instance is at an elevated risk of being interrupted. For more * information, see Capacity * rebalancing in the Amazon EC2 User Guide for Linux Instances.
*/ inline bool CapacityRebalanceHasBeenSet() const { return m_capacityRebalanceHasBeenSet; } /** *The Spot Instance replacement strategy to use when Amazon EC2 emits a signal * that your Spot Instance is at an elevated risk of being interrupted. For more * information, see Capacity * rebalancing in the Amazon EC2 User Guide for Linux Instances.
*/ inline void SetCapacityRebalance(const SpotCapacityRebalance& value) { m_capacityRebalanceHasBeenSet = true; m_capacityRebalance = value; } /** *The Spot Instance replacement strategy to use when Amazon EC2 emits a signal * that your Spot Instance is at an elevated risk of being interrupted. For more * information, see Capacity * rebalancing in the Amazon EC2 User Guide for Linux Instances.
*/ inline void SetCapacityRebalance(SpotCapacityRebalance&& value) { m_capacityRebalanceHasBeenSet = true; m_capacityRebalance = std::move(value); } /** *The Spot Instance replacement strategy to use when Amazon EC2 emits a signal * that your Spot Instance is at an elevated risk of being interrupted. For more * information, see Capacity * rebalancing in the Amazon EC2 User Guide for Linux Instances.
*/ inline SpotMaintenanceStrategies& WithCapacityRebalance(const SpotCapacityRebalance& value) { SetCapacityRebalance(value); return *this;} /** *The Spot Instance replacement strategy to use when Amazon EC2 emits a signal * that your Spot Instance is at an elevated risk of being interrupted. For more * information, see Capacity * rebalancing in the Amazon EC2 User Guide for Linux Instances.
*/ inline SpotMaintenanceStrategies& WithCapacityRebalance(SpotCapacityRebalance&& value) { SetCapacityRebalance(std::move(value)); return *this;} private: SpotCapacityRebalance m_capacityRebalance; bool m_capacityRebalanceHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws