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

Additional settings for a stateful rule. This is part of the * StatefulRule configuration.

See Also:

AWS * API Reference

*/ class RuleOption { public: AWS_NETWORKFIREWALL_API RuleOption(); AWS_NETWORKFIREWALL_API RuleOption(Aws::Utils::Json::JsonView jsonValue); AWS_NETWORKFIREWALL_API RuleOption& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ 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 NetworkFirewall } // namespace Aws