/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The maintenance options of your instance.See Also:
AWS
* API Reference
Disables the automatic recovery behavior of your instance or sets it to * default. For more information, see Simplified * automatic recovery.
*/ inline const LaunchTemplateAutoRecoveryState& GetAutoRecovery() const{ return m_autoRecovery; } /** *Disables the automatic recovery behavior of your instance or sets it to * default. For more information, see Simplified * automatic recovery.
*/ inline bool AutoRecoveryHasBeenSet() const { return m_autoRecoveryHasBeenSet; } /** *Disables the automatic recovery behavior of your instance or sets it to * default. For more information, see Simplified * automatic recovery.
*/ inline void SetAutoRecovery(const LaunchTemplateAutoRecoveryState& value) { m_autoRecoveryHasBeenSet = true; m_autoRecovery = value; } /** *Disables the automatic recovery behavior of your instance or sets it to * default. For more information, see Simplified * automatic recovery.
*/ inline void SetAutoRecovery(LaunchTemplateAutoRecoveryState&& value) { m_autoRecoveryHasBeenSet = true; m_autoRecovery = std::move(value); } /** *Disables the automatic recovery behavior of your instance or sets it to * default. For more information, see Simplified * automatic recovery.
*/ inline LaunchTemplateInstanceMaintenanceOptionsRequest& WithAutoRecovery(const LaunchTemplateAutoRecoveryState& value) { SetAutoRecovery(value); return *this;} /** *Disables the automatic recovery behavior of your instance or sets it to * default. For more information, see Simplified * automatic recovery.
*/ inline LaunchTemplateInstanceMaintenanceOptionsRequest& WithAutoRecovery(LaunchTemplateAutoRecoveryState&& value) { SetAutoRecovery(std::move(value)); return *this;} private: LaunchTemplateAutoRecoveryState m_autoRecovery; bool m_autoRecoveryHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws