/** * 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 CloudWatch { namespace Model { /** *

The status of a managed Contributor Insights rule.

See Also:

* AWS * API Reference

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

The name of the Contributor Insights rule that contains data for the * specified Amazon Web Services resource.

*/ inline const Aws::String& GetRuleName() const{ return m_ruleName; } /** *

The name of the Contributor Insights rule that contains data for the * specified Amazon Web Services resource.

*/ inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; } /** *

The name of the Contributor Insights rule that contains data for the * specified Amazon Web Services resource.

*/ inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; } /** *

The name of the Contributor Insights rule that contains data for the * specified Amazon Web Services resource.

*/ inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); } /** *

The name of the Contributor Insights rule that contains data for the * specified Amazon Web Services resource.

*/ inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); } /** *

The name of the Contributor Insights rule that contains data for the * specified Amazon Web Services resource.

*/ inline ManagedRuleState& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;} /** *

The name of the Contributor Insights rule that contains data for the * specified Amazon Web Services resource.

*/ inline ManagedRuleState& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;} /** *

The name of the Contributor Insights rule that contains data for the * specified Amazon Web Services resource.

*/ inline ManagedRuleState& WithRuleName(const char* value) { SetRuleName(value); return *this;} /** *

Indicates whether the rule is enabled or disabled.

*/ inline const Aws::String& GetState() const{ return m_state; } /** *

Indicates whether the rule is enabled or disabled.

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

Indicates whether the rule is enabled or disabled.

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

Indicates whether the rule is enabled or disabled.

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

Indicates whether the rule is enabled or disabled.

*/ inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } /** *

Indicates whether the rule is enabled or disabled.

*/ inline ManagedRuleState& WithState(const Aws::String& value) { SetState(value); return *this;} /** *

Indicates whether the rule is enabled or disabled.

*/ inline ManagedRuleState& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} /** *

Indicates whether the rule is enabled or disabled.

*/ inline ManagedRuleState& WithState(const char* value) { SetState(value); return *this;} private: Aws::String m_ruleName; bool m_ruleNameHasBeenSet = false; Aws::String m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace CloudWatch } // namespace Aws