/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An auto-termination policy for an Amazon EMR cluster. An auto-termination
* policy defines the amount of idle time in seconds after which a cluster
* automatically terminates. For alternative cluster termination options, see Control
* cluster termination.See Also:
AWS
* API Reference
Specifies the amount of idle time in seconds after which the cluster * automatically terminates. You can specify a minimum of 60 seconds and a maximum * of 604800 seconds (seven days).
*/ inline long long GetIdleTimeout() const{ return m_idleTimeout; } /** *Specifies the amount of idle time in seconds after which the cluster * automatically terminates. You can specify a minimum of 60 seconds and a maximum * of 604800 seconds (seven days).
*/ inline bool IdleTimeoutHasBeenSet() const { return m_idleTimeoutHasBeenSet; } /** *Specifies the amount of idle time in seconds after which the cluster * automatically terminates. You can specify a minimum of 60 seconds and a maximum * of 604800 seconds (seven days).
*/ inline void SetIdleTimeout(long long value) { m_idleTimeoutHasBeenSet = true; m_idleTimeout = value; } /** *Specifies the amount of idle time in seconds after which the cluster * automatically terminates. You can specify a minimum of 60 seconds and a maximum * of 604800 seconds (seven days).
*/ inline AutoTerminationPolicy& WithIdleTimeout(long long value) { SetIdleTimeout(value); return *this;} private: long long m_idleTimeout; bool m_idleTimeoutHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws