/** * 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 for the instance.

See Also:

AWS * API Reference

*/ class InstanceMaintenanceOptionsRequest { public: AWS_EC2_API InstanceMaintenanceOptionsRequest(); AWS_EC2_API InstanceMaintenanceOptionsRequest(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API InstanceMaintenanceOptionsRequest& 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. For more information, see Simplified * automatic recovery.

*/ inline const InstanceAutoRecoveryState& 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 InstanceAutoRecoveryState& 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(InstanceAutoRecoveryState&& 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 InstanceMaintenanceOptionsRequest& WithAutoRecovery(const InstanceAutoRecoveryState& 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 InstanceMaintenanceOptionsRequest& WithAutoRecovery(InstanceAutoRecoveryState&& value) { SetAutoRecovery(std::move(value)); return *this;} private: InstanceAutoRecoveryState m_autoRecovery; bool m_autoRecoveryHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws