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

The monitoring for an Amazon EC2 instance.

See Also:

AWS * API Reference

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

Enables detailed monitoring when true is specified. Otherwise, * basic monitoring is enabled. For more information about detailed monitoring, see * Enable * or turn off detailed monitoring for your instances in the Amazon EC2 User * Guide.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Enables detailed monitoring when true is specified. Otherwise, * basic monitoring is enabled. For more information about detailed monitoring, see * Enable * or turn off detailed monitoring for your instances in the Amazon EC2 User * Guide.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Enables detailed monitoring when true is specified. Otherwise, * basic monitoring is enabled. For more information about detailed monitoring, see * Enable * or turn off detailed monitoring for your instances in the Amazon EC2 User * Guide.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Enables detailed monitoring when true is specified. Otherwise, * basic monitoring is enabled. For more information about detailed monitoring, see * Enable * or turn off detailed monitoring for your instances in the Amazon EC2 User * Guide.

*/ inline AwsEc2LaunchTemplateDataMonitoringDetails& WithEnabled(bool value) { SetEnabled(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws