/** * 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 Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes additional settings for a stateful rule.

See Also:

* AWS * API Reference

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

*/ inline const Aws::String& GetKeyword() const{ return m_keyword; } /** *

The Suricata keyword.

*/ inline bool KeywordHasBeenSet() const { return m_keywordHasBeenSet; } /** *

The Suricata keyword.

*/ inline void SetKeyword(const Aws::String& value) { m_keywordHasBeenSet = true; m_keyword = value; } /** *

The Suricata keyword.

*/ inline void SetKeyword(Aws::String&& value) { m_keywordHasBeenSet = true; m_keyword = std::move(value); } /** *

The Suricata keyword.

*/ inline void SetKeyword(const char* value) { m_keywordHasBeenSet = true; m_keyword.assign(value); } /** *

The Suricata keyword.

*/ inline RuleOption& WithKeyword(const Aws::String& value) { SetKeyword(value); return *this;} /** *

The Suricata keyword.

*/ inline RuleOption& WithKeyword(Aws::String&& value) { SetKeyword(std::move(value)); return *this;} /** *

The Suricata keyword.

*/ inline RuleOption& WithKeyword(const char* value) { SetKeyword(value); return *this;} /** *

The settings for the keyword.

*/ inline const Aws::Vector& GetSettings() const{ return m_settings; } /** *

The settings for the keyword.

*/ inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; } /** *

The settings for the keyword.

*/ inline void SetSettings(const Aws::Vector& value) { m_settingsHasBeenSet = true; m_settings = value; } /** *

The settings for the keyword.

*/ inline void SetSettings(Aws::Vector&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); } /** *

The settings for the keyword.

*/ inline RuleOption& WithSettings(const Aws::Vector& value) { SetSettings(value); return *this;} /** *

The settings for the keyword.

*/ inline RuleOption& WithSettings(Aws::Vector&& value) { SetSettings(std::move(value)); return *this;} /** *

The settings for the keyword.

*/ inline RuleOption& AddSettings(const Aws::String& value) { m_settingsHasBeenSet = true; m_settings.push_back(value); return *this; } /** *

The settings for the keyword.

*/ inline RuleOption& AddSettings(Aws::String&& value) { m_settingsHasBeenSet = true; m_settings.push_back(std::move(value)); return *this; } /** *

The settings for the keyword.

*/ inline RuleOption& AddSettings(const char* value) { m_settingsHasBeenSet = true; m_settings.push_back(value); return *this; } private: Aws::String m_keyword; bool m_keywordHasBeenSet = false; Aws::Vector m_settings; bool m_settingsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws