/** * 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 maintenance options of your instance.

See Also:

AWS * API Reference

*/ class LaunchTemplateInstanceMaintenanceOptions { public: AWS_EC2_API LaunchTemplateInstanceMaintenanceOptions(); AWS_EC2_API LaunchTemplateInstanceMaintenanceOptions(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API LaunchTemplateInstanceMaintenanceOptions& 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; /** *

Disables the automatic recovery behavior of your instance or sets it to * default.

*/ inline const LaunchTemplateAutoRecoveryState& GetAutoRecovery() const{ return m_autoRecovery; } /** *

Disables the automatic recovery behavior of your instance or sets it to * default.

*/ inline bool AutoRecoveryHasBeenSet() const { return m_autoRecoveryHasBeenSet; } /** *

Disables the automatic recovery behavior of your instance or sets it to * default.

*/ 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.

*/ 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.

*/ inline LaunchTemplateInstanceMaintenanceOptions& WithAutoRecovery(const LaunchTemplateAutoRecoveryState& value) { SetAutoRecovery(value); return *this;} /** *

Disables the automatic recovery behavior of your instance or sets it to * default.

*/ inline LaunchTemplateInstanceMaintenanceOptions& WithAutoRecovery(LaunchTemplateAutoRecoveryState&& value) { SetAutoRecovery(std::move(value)); return *this;} private: LaunchTemplateAutoRecoveryState m_autoRecovery; bool m_autoRecoveryHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws