/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace CloudWatch { namespace Model { /** */ class EnableInsightRulesRequest : public CloudWatchRequest { public: AWS_CLOUDWATCH_API EnableInsightRulesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "EnableInsightRules"; } AWS_CLOUDWATCH_API Aws::String SerializePayload() const override; protected: AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

An array of the rule names to enable. If you need to find out the names of * your rules, use DescribeInsightRules.

*/ inline const Aws::Vector& GetRuleNames() const{ return m_ruleNames; } /** *

An array of the rule names to enable. If you need to find out the names of * your rules, use DescribeInsightRules.

*/ inline bool RuleNamesHasBeenSet() const { return m_ruleNamesHasBeenSet; } /** *

An array of the rule names to enable. If you need to find out the names of * your rules, use DescribeInsightRules.

*/ inline void SetRuleNames(const Aws::Vector& value) { m_ruleNamesHasBeenSet = true; m_ruleNames = value; } /** *

An array of the rule names to enable. If you need to find out the names of * your rules, use DescribeInsightRules.

*/ inline void SetRuleNames(Aws::Vector&& value) { m_ruleNamesHasBeenSet = true; m_ruleNames = std::move(value); } /** *

An array of the rule names to enable. If you need to find out the names of * your rules, use DescribeInsightRules.

*/ inline EnableInsightRulesRequest& WithRuleNames(const Aws::Vector& value) { SetRuleNames(value); return *this;} /** *

An array of the rule names to enable. If you need to find out the names of * your rules, use DescribeInsightRules.

*/ inline EnableInsightRulesRequest& WithRuleNames(Aws::Vector&& value) { SetRuleNames(std::move(value)); return *this;} /** *

An array of the rule names to enable. If you need to find out the names of * your rules, use DescribeInsightRules.

*/ inline EnableInsightRulesRequest& AddRuleNames(const Aws::String& value) { m_ruleNamesHasBeenSet = true; m_ruleNames.push_back(value); return *this; } /** *

An array of the rule names to enable. If you need to find out the names of * your rules, use DescribeInsightRules.

*/ inline EnableInsightRulesRequest& AddRuleNames(Aws::String&& value) { m_ruleNamesHasBeenSet = true; m_ruleNames.push_back(std::move(value)); return *this; } /** *

An array of the rule names to enable. If you need to find out the names of * your rules, use DescribeInsightRules.

*/ inline EnableInsightRulesRequest& AddRuleNames(const char* value) { m_ruleNamesHasBeenSet = true; m_ruleNames.push_back(value); return *this; } private: Aws::Vector m_ruleNames; bool m_ruleNamesHasBeenSet = false; }; } // namespace Model } // namespace CloudWatch } // namespace Aws