/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include This structure contains the definition for a Contributor Insights rule. For
* more information about this rule, see
* Using Constributor Insights to analyze high-cardinality data in the
* Amazon CloudWatch User Guide.See Also:
AWS
* API Reference
The name of the rule.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the rule.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the rule.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the rule.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the rule.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the rule.
*/ inline InsightRule& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the rule.
*/ inline InsightRule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the rule.
*/ inline InsightRule& WithName(const char* value) { SetName(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 InsightRule& WithState(const Aws::String& value) { SetState(value); return *this;} /** *Indicates whether the rule is enabled or disabled.
*/ inline InsightRule& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} /** *Indicates whether the rule is enabled or disabled.
*/ inline InsightRule& WithState(const char* value) { SetState(value); return *this;} /** *For rules that you create, this is always {"Name": "CloudWatchLogRule",
* "Version": 1}
. For managed rules, this is {"Name":
* "ServiceLogRule", "Version": 1}
For rules that you create, this is always {"Name": "CloudWatchLogRule",
* "Version": 1}
. For managed rules, this is {"Name":
* "ServiceLogRule", "Version": 1}
For rules that you create, this is always {"Name": "CloudWatchLogRule",
* "Version": 1}
. For managed rules, this is {"Name":
* "ServiceLogRule", "Version": 1}
For rules that you create, this is always {"Name": "CloudWatchLogRule",
* "Version": 1}
. For managed rules, this is {"Name":
* "ServiceLogRule", "Version": 1}
For rules that you create, this is always {"Name": "CloudWatchLogRule",
* "Version": 1}
. For managed rules, this is {"Name":
* "ServiceLogRule", "Version": 1}
For rules that you create, this is always {"Name": "CloudWatchLogRule",
* "Version": 1}
. For managed rules, this is {"Name":
* "ServiceLogRule", "Version": 1}
For rules that you create, this is always {"Name": "CloudWatchLogRule",
* "Version": 1}
. For managed rules, this is {"Name":
* "ServiceLogRule", "Version": 1}
For rules that you create, this is always {"Name": "CloudWatchLogRule",
* "Version": 1}
. For managed rules, this is {"Name":
* "ServiceLogRule", "Version": 1}
The definition of the rule, as a JSON object. The definition contains the * keywords used to define contributors, the value to aggregate on if this rule * returns a sum instead of a count, and the filters. For details on the valid * syntax, see Contributor * Insights Rule Syntax.
*/ inline const Aws::String& GetDefinition() const{ return m_definition; } /** *The definition of the rule, as a JSON object. The definition contains the * keywords used to define contributors, the value to aggregate on if this rule * returns a sum instead of a count, and the filters. For details on the valid * syntax, see Contributor * Insights Rule Syntax.
*/ inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; } /** *The definition of the rule, as a JSON object. The definition contains the * keywords used to define contributors, the value to aggregate on if this rule * returns a sum instead of a count, and the filters. For details on the valid * syntax, see Contributor * Insights Rule Syntax.
*/ inline void SetDefinition(const Aws::String& value) { m_definitionHasBeenSet = true; m_definition = value; } /** *The definition of the rule, as a JSON object. The definition contains the * keywords used to define contributors, the value to aggregate on if this rule * returns a sum instead of a count, and the filters. For details on the valid * syntax, see Contributor * Insights Rule Syntax.
*/ inline void SetDefinition(Aws::String&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); } /** *The definition of the rule, as a JSON object. The definition contains the * keywords used to define contributors, the value to aggregate on if this rule * returns a sum instead of a count, and the filters. For details on the valid * syntax, see Contributor * Insights Rule Syntax.
*/ inline void SetDefinition(const char* value) { m_definitionHasBeenSet = true; m_definition.assign(value); } /** *The definition of the rule, as a JSON object. The definition contains the * keywords used to define contributors, the value to aggregate on if this rule * returns a sum instead of a count, and the filters. For details on the valid * syntax, see Contributor * Insights Rule Syntax.
*/ inline InsightRule& WithDefinition(const Aws::String& value) { SetDefinition(value); return *this;} /** *The definition of the rule, as a JSON object. The definition contains the * keywords used to define contributors, the value to aggregate on if this rule * returns a sum instead of a count, and the filters. For details on the valid * syntax, see Contributor * Insights Rule Syntax.
*/ inline InsightRule& WithDefinition(Aws::String&& value) { SetDefinition(std::move(value)); return *this;} /** *The definition of the rule, as a JSON object. The definition contains the * keywords used to define contributors, the value to aggregate on if this rule * returns a sum instead of a count, and the filters. For details on the valid * syntax, see Contributor * Insights Rule Syntax.
*/ inline InsightRule& WithDefinition(const char* value) { SetDefinition(value); return *this;} /** *An optional built-in rule that Amazon Web Services manages.
*/ inline bool GetManagedRule() const{ return m_managedRule; } /** *An optional built-in rule that Amazon Web Services manages.
*/ inline bool ManagedRuleHasBeenSet() const { return m_managedRuleHasBeenSet; } /** *An optional built-in rule that Amazon Web Services manages.
*/ inline void SetManagedRule(bool value) { m_managedRuleHasBeenSet = true; m_managedRule = value; } /** *An optional built-in rule that Amazon Web Services manages.
*/ inline InsightRule& WithManagedRule(bool value) { SetManagedRule(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_state; bool m_stateHasBeenSet = false; Aws::String m_schema; bool m_schemaHasBeenSet = false; Aws::String m_definition; bool m_definitionHasBeenSet = false; bool m_managedRule; bool m_managedRuleHasBeenSet = false; }; } // namespace Model } // namespace CloudWatch } // namespace Aws