/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

The strategies for managing your Spot Instances that are at an elevated risk * of being interrupted.

See Also:

AWS * API Reference

*/ class SpotMaintenanceStrategies { public: AWS_EC2_API SpotMaintenanceStrategies(); AWS_EC2_API SpotMaintenanceStrategies(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API SpotMaintenanceStrategies& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

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