/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes the rule options for a stateful rule group.

See * Also:

AWS * API Reference

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

The ARN of the rule group.

*/ inline const Aws::String& GetRuleGroupArn() const{ return m_ruleGroupArn; } /** *

The ARN of the rule group.

*/ inline bool RuleGroupArnHasBeenSet() const { return m_ruleGroupArnHasBeenSet; } /** *

The ARN of the rule group.

*/ inline void SetRuleGroupArn(const Aws::String& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = value; } /** *

The ARN of the rule group.

*/ inline void SetRuleGroupArn(Aws::String&& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = std::move(value); } /** *

The ARN of the rule group.

*/ inline void SetRuleGroupArn(const char* value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn.assign(value); } /** *

The ARN of the rule group.

*/ inline RuleGroupRuleOptionsPair& WithRuleGroupArn(const Aws::String& value) { SetRuleGroupArn(value); return *this;} /** *

The ARN of the rule group.

*/ inline RuleGroupRuleOptionsPair& WithRuleGroupArn(Aws::String&& value) { SetRuleGroupArn(std::move(value)); return *this;} /** *

The ARN of the rule group.

*/ inline RuleGroupRuleOptionsPair& WithRuleGroupArn(const char* value) { SetRuleGroupArn(value); return *this;} /** *

The rule options.

*/ inline const Aws::Vector& GetRuleOptions() const{ return m_ruleOptions; } /** *

The rule options.

*/ inline bool RuleOptionsHasBeenSet() const { return m_ruleOptionsHasBeenSet; } /** *

The rule options.

*/ inline void SetRuleOptions(const Aws::Vector& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions = value; } /** *

The rule options.

*/ inline void SetRuleOptions(Aws::Vector&& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions = std::move(value); } /** *

The rule options.

*/ inline RuleGroupRuleOptionsPair& WithRuleOptions(const Aws::Vector& value) { SetRuleOptions(value); return *this;} /** *

The rule options.

*/ inline RuleGroupRuleOptionsPair& WithRuleOptions(Aws::Vector&& value) { SetRuleOptions(std::move(value)); return *this;} /** *

The rule options.

*/ inline RuleGroupRuleOptionsPair& AddRuleOptions(const RuleOption& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions.push_back(value); return *this; } /** *

The rule options.

*/ inline RuleGroupRuleOptionsPair& AddRuleOptions(RuleOption&& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions.push_back(std::move(value)); return *this; } private: Aws::String m_ruleGroupArn; bool m_ruleGroupArnHasBeenSet = false; Aws::Vector m_ruleOptions; bool m_ruleOptionsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws