AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsWafRuleGroupDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsWafRuleGroupRulesDetails.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_SECURITYHUB_API AwsWafRuleGroupDetails() = default;
39 AWS_SECURITYHUB_API AwsWafRuleGroupDetails(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetMetricName() const { return m_metricName; }
49 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
50 template<typename MetricNameT = Aws::String>
51 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
52 template<typename MetricNameT = Aws::String>
53 AwsWafRuleGroupDetails& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template<typename NameT = Aws::String>
63 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 AwsWafRuleGroupDetails& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
72 inline const Aws::String& GetRuleGroupId() const { return m_ruleGroupId; }
73 inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
74 template<typename RuleGroupIdT = Aws::String>
75 void SetRuleGroupId(RuleGroupIdT&& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = std::forward<RuleGroupIdT>(value); }
76 template<typename RuleGroupIdT = Aws::String>
77 AwsWafRuleGroupDetails& WithRuleGroupId(RuleGroupIdT&& value) { SetRuleGroupId(std::forward<RuleGroupIdT>(value)); return *this;}
79
81
85 inline const Aws::Vector<AwsWafRuleGroupRulesDetails>& GetRules() const { return m_rules; }
86 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
87 template<typename RulesT = Aws::Vector<AwsWafRuleGroupRulesDetails>>
88 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
89 template<typename RulesT = Aws::Vector<AwsWafRuleGroupRulesDetails>>
90 AwsWafRuleGroupDetails& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
91 template<typename RulesT = AwsWafRuleGroupRulesDetails>
92 AwsWafRuleGroupDetails& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
94 private:
95
96 Aws::String m_metricName;
97 bool m_metricNameHasBeenSet = false;
98
99 Aws::String m_name;
100 bool m_nameHasBeenSet = false;
101
102 Aws::String m_ruleGroupId;
103 bool m_ruleGroupIdHasBeenSet = false;
104
106 bool m_rulesHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace SecurityHub
111} // namespace Aws
AwsWafRuleGroupDetails & AddRules(RulesT &&value)
AWS_SECURITYHUB_API AwsWafRuleGroupDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsWafRuleGroupDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AwsWafRuleGroupRulesDetails > & GetRules() const
AwsWafRuleGroupDetails & WithRules(RulesT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsWafRuleGroupDetails & WithMetricName(MetricNameT &&value)
AWS_SECURITYHUB_API AwsWafRuleGroupDetails()=default
AwsWafRuleGroupDetails & WithRuleGroupId(RuleGroupIdT &&value)
AwsWafRuleGroupDetails & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue