/** * 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 SecurityHub { namespace Model { /** *

A rule option for a stateful rule.

See Also:

AWS * API Reference

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

A keyword to look for.

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

A keyword to look for.

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

A keyword to look for.

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

A keyword to look for.

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

A keyword to look for.

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

A keyword to look for.

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

A keyword to look for.

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

A keyword to look for.

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

A list of settings.

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

A list of settings.

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

A list of settings.

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

A list of settings.

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

A list of settings.

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

A list of settings.

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

A list of settings.

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

A list of settings.

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

A list of settings.

*/ inline RuleGroupSourceStatefulRulesOptionsDetails& 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 SecurityHub } // namespace Aws