/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The resize specification for On-Demand Instances in the instance fleet, which
* contains the resize timeout period. See Also:
AWS
* API Reference
On-Demand resize timeout in minutes. If On-Demand Instances are not * provisioned within this time, the resize workflow stops. The minimum value is 5 * minutes, and the maximum value is 10,080 minutes (7 days). The timeout applies * to all resize workflows on the Instance Fleet. The resize could be triggered by * Amazon EMR Managed Scaling or by the customer (via Amazon EMR Console, Amazon * EMR CLI modify-instance-fleet or Amazon EMR SDK ModifyInstanceFleet API) or by * Amazon EMR due to Amazon EC2 Spot Reclamation.
*/ inline int GetTimeoutDurationMinutes() const{ return m_timeoutDurationMinutes; } /** *On-Demand resize timeout in minutes. If On-Demand Instances are not * provisioned within this time, the resize workflow stops. The minimum value is 5 * minutes, and the maximum value is 10,080 minutes (7 days). The timeout applies * to all resize workflows on the Instance Fleet. The resize could be triggered by * Amazon EMR Managed Scaling or by the customer (via Amazon EMR Console, Amazon * EMR CLI modify-instance-fleet or Amazon EMR SDK ModifyInstanceFleet API) or by * Amazon EMR due to Amazon EC2 Spot Reclamation.
*/ inline bool TimeoutDurationMinutesHasBeenSet() const { return m_timeoutDurationMinutesHasBeenSet; } /** *On-Demand resize timeout in minutes. If On-Demand Instances are not * provisioned within this time, the resize workflow stops. The minimum value is 5 * minutes, and the maximum value is 10,080 minutes (7 days). The timeout applies * to all resize workflows on the Instance Fleet. The resize could be triggered by * Amazon EMR Managed Scaling or by the customer (via Amazon EMR Console, Amazon * EMR CLI modify-instance-fleet or Amazon EMR SDK ModifyInstanceFleet API) or by * Amazon EMR due to Amazon EC2 Spot Reclamation.
*/ inline void SetTimeoutDurationMinutes(int value) { m_timeoutDurationMinutesHasBeenSet = true; m_timeoutDurationMinutes = value; } /** *On-Demand resize timeout in minutes. If On-Demand Instances are not * provisioned within this time, the resize workflow stops. The minimum value is 5 * minutes, and the maximum value is 10,080 minutes (7 days). The timeout applies * to all resize workflows on the Instance Fleet. The resize could be triggered by * Amazon EMR Managed Scaling or by the customer (via Amazon EMR Console, Amazon * EMR CLI modify-instance-fleet or Amazon EMR SDK ModifyInstanceFleet API) or by * Amazon EMR due to Amazon EC2 Spot Reclamation.
*/ inline OnDemandResizingSpecification& WithTimeoutDurationMinutes(int value) { SetTimeoutDurationMinutes(value); return *this;} private: int m_timeoutDurationMinutes; bool m_timeoutDurationMinutesHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws