/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

The maintenance options of an Amazon EC2 instance.

See Also:

* AWS * API Reference

*/ class AwsEc2LaunchTemplateDataMaintenanceOptionsDetails { public: AWS_SECURITYHUB_API AwsEc2LaunchTemplateDataMaintenanceOptionsDetails(); AWS_SECURITYHUB_API AwsEc2LaunchTemplateDataMaintenanceOptionsDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsEc2LaunchTemplateDataMaintenanceOptionsDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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

*/ inline const Aws::String& 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 Aws::String& value) { m_autoRecoveryHasBeenSet = true; m_autoRecovery = value; } /** *

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

*/ inline void SetAutoRecovery(Aws::String&& value) { m_autoRecoveryHasBeenSet = true; m_autoRecovery = std::move(value); } /** *

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

*/ inline void SetAutoRecovery(const char* value) { m_autoRecoveryHasBeenSet = true; m_autoRecovery.assign(value); } /** *

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

*/ inline AwsEc2LaunchTemplateDataMaintenanceOptionsDetails& WithAutoRecovery(const Aws::String& value) { SetAutoRecovery(value); return *this;} /** *

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

*/ inline AwsEc2LaunchTemplateDataMaintenanceOptionsDetails& WithAutoRecovery(Aws::String&& value) { SetAutoRecovery(std::move(value)); return *this;} /** *

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

*/ inline AwsEc2LaunchTemplateDataMaintenanceOptionsDetails& WithAutoRecovery(const char* value) { SetAutoRecovery(value); return *this;} private: Aws::String m_autoRecovery; bool m_autoRecoveryHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws