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

Describes whether detailed monitoring is enabled for the Auto Scaling * instances.

See Also:

AWS * API Reference

*/ class InstanceMonitoring { public: AWS_AUTOSCALING_API InstanceMonitoring(); AWS_AUTOSCALING_API InstanceMonitoring(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_AUTOSCALING_API InstanceMonitoring& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

If true, detailed monitoring is enabled. Otherwise, basic * monitoring is enabled.

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

If true, detailed monitoring is enabled. Otherwise, basic * monitoring is enabled.

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

If true, detailed monitoring is enabled. Otherwise, basic * monitoring is enabled.

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

If true, detailed monitoring is enabled. Otherwise, basic * monitoring is enabled.

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