dai_env / include /aws /monitoring /model /DisableInsightRulesRequest.h
Shenghong's picture
Add files using upload-large-folder tool
7791ca1 verified
Raw
History Blame Contribute Delete
2.78 kB
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/monitoring/CloudWatch_EXPORTS.h>
#include <aws/monitoring/CloudWatchRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatch
{
namespace Model
{
/**
*/
class DisableInsightRulesRequest : public CloudWatchRequest
{
public:
AWS_CLOUDWATCH_API DisableInsightRulesRequest();
// 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 "DisableInsightRules"; }
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override;
protected:
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
public:
///@{
/**
* <p>An array of the rule names to disable. If you need to find out the names of
* your rules, use <a
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeInsightRules.html">DescribeInsightRules</a>.</p>
*/
inline const Aws::Vector<Aws::String>& GetRuleNames() const{ return m_ruleNames; }
inline bool RuleNamesHasBeenSet() const { return m_ruleNamesHasBeenSet; }
inline void SetRuleNames(const Aws::Vector<Aws::String>& value) { m_ruleNamesHasBeenSet = true; m_ruleNames = value; }
inline void SetRuleNames(Aws::Vector<Aws::String>&& value) { m_ruleNamesHasBeenSet = true; m_ruleNames = std::move(value); }
inline DisableInsightRulesRequest& WithRuleNames(const Aws::Vector<Aws::String>& value) { SetRuleNames(value); return *this;}
inline DisableInsightRulesRequest& WithRuleNames(Aws::Vector<Aws::String>&& value) { SetRuleNames(std::move(value)); return *this;}
inline DisableInsightRulesRequest& AddRuleNames(const Aws::String& value) { m_ruleNamesHasBeenSet = true; m_ruleNames.push_back(value); return *this; }
inline DisableInsightRulesRequest& AddRuleNames(Aws::String&& value) { m_ruleNamesHasBeenSet = true; m_ruleNames.push_back(std::move(value)); return *this; }
inline DisableInsightRulesRequest& AddRuleNames(const char* value) { m_ruleNamesHasBeenSet = true; m_ruleNames.push_back(value); return *this; }
///@}
private:
Aws::Vector<Aws::String> m_ruleNames;
bool m_ruleNamesHasBeenSet = false;
};
} // namespace Model
} // namespace CloudWatch
} // namespace Aws