1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/fms/FMS_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace FMS 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Network Firewall stateful rule group, used in a 28 * <a>NetworkFirewallPolicyDescription</a>. </p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/StatefulRuleGroup">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_FMS_API StatefulRuleGroup 33 { 34 public: 35 StatefulRuleGroup(); 36 StatefulRuleGroup(Aws::Utils::Json::JsonView jsonValue); 37 StatefulRuleGroup& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The name of the rule group.</p> 43 */ GetRuleGroupName()44 inline const Aws::String& GetRuleGroupName() const{ return m_ruleGroupName; } 45 46 /** 47 * <p>The name of the rule group.</p> 48 */ RuleGroupNameHasBeenSet()49 inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; } 50 51 /** 52 * <p>The name of the rule group.</p> 53 */ SetRuleGroupName(const Aws::String & value)54 inline void SetRuleGroupName(const Aws::String& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = value; } 55 56 /** 57 * <p>The name of the rule group.</p> 58 */ SetRuleGroupName(Aws::String && value)59 inline void SetRuleGroupName(Aws::String&& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = std::move(value); } 60 61 /** 62 * <p>The name of the rule group.</p> 63 */ SetRuleGroupName(const char * value)64 inline void SetRuleGroupName(const char* value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName.assign(value); } 65 66 /** 67 * <p>The name of the rule group.</p> 68 */ WithRuleGroupName(const Aws::String & value)69 inline StatefulRuleGroup& WithRuleGroupName(const Aws::String& value) { SetRuleGroupName(value); return *this;} 70 71 /** 72 * <p>The name of the rule group.</p> 73 */ WithRuleGroupName(Aws::String && value)74 inline StatefulRuleGroup& WithRuleGroupName(Aws::String&& value) { SetRuleGroupName(std::move(value)); return *this;} 75 76 /** 77 * <p>The name of the rule group.</p> 78 */ WithRuleGroupName(const char * value)79 inline StatefulRuleGroup& WithRuleGroupName(const char* value) { SetRuleGroupName(value); return *this;} 80 81 82 /** 83 * <p>The resource ID of the rule group.</p> 84 */ GetResourceId()85 inline const Aws::String& GetResourceId() const{ return m_resourceId; } 86 87 /** 88 * <p>The resource ID of the rule group.</p> 89 */ ResourceIdHasBeenSet()90 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } 91 92 /** 93 * <p>The resource ID of the rule group.</p> 94 */ SetResourceId(const Aws::String & value)95 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } 96 97 /** 98 * <p>The resource ID of the rule group.</p> 99 */ SetResourceId(Aws::String && value)100 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } 101 102 /** 103 * <p>The resource ID of the rule group.</p> 104 */ SetResourceId(const char * value)105 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } 106 107 /** 108 * <p>The resource ID of the rule group.</p> 109 */ WithResourceId(const Aws::String & value)110 inline StatefulRuleGroup& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} 111 112 /** 113 * <p>The resource ID of the rule group.</p> 114 */ WithResourceId(Aws::String && value)115 inline StatefulRuleGroup& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} 116 117 /** 118 * <p>The resource ID of the rule group.</p> 119 */ WithResourceId(const char * value)120 inline StatefulRuleGroup& WithResourceId(const char* value) { SetResourceId(value); return *this;} 121 122 private: 123 124 Aws::String m_ruleGroupName; 125 bool m_ruleGroupNameHasBeenSet; 126 127 Aws::String m_resourceId; 128 bool m_resourceIdHasBeenSet; 129 }; 130 131 } // namespace Model 132 } // namespace FMS 133 } // namespace Aws 134