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

Describes the monitoring of an instance.

See Also:

AWS API * Reference

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

Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring * is enabled.

*/ inline const MonitoringState& GetState() const{ return m_state; } /** *

Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring * is enabled.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring * is enabled.

*/ inline void SetState(const MonitoringState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring * is enabled.

*/ inline void SetState(MonitoringState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring * is enabled.

*/ inline Monitoring& WithState(const MonitoringState& value) { SetState(value); return *this;} /** *

Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring * is enabled.

*/ inline Monitoring& WithState(MonitoringState&& value) { SetState(std::move(value)); return *this;} private: MonitoringState m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws