AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AwsWafRegionalRuleDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsWafRegionalRulePredicateListDetails.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
31 public:
32 AWS_SECURITYHUB_API AwsWafRegionalRuleDetails() = default;
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetMetricName() const { return m_metricName; }
42 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
43 template <typename MetricNameT = Aws::String>
44 void SetMetricName(MetricNameT&& value) {
45 m_metricNameHasBeenSet = true;
46 m_metricName = std::forward<MetricNameT>(value);
47 }
48 template <typename MetricNameT = Aws::String>
50 SetMetricName(std::forward<MetricNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
81 inline const Aws::Vector<AwsWafRegionalRulePredicateListDetails>& GetPredicateList() const { return m_predicateList; }
82 inline bool PredicateListHasBeenSet() const { return m_predicateListHasBeenSet; }
83 template <typename PredicateListT = Aws::Vector<AwsWafRegionalRulePredicateListDetails>>
84 void SetPredicateList(PredicateListT&& value) {
85 m_predicateListHasBeenSet = true;
86 m_predicateList = std::forward<PredicateListT>(value);
87 }
88 template <typename PredicateListT = Aws::Vector<AwsWafRegionalRulePredicateListDetails>>
90 SetPredicateList(std::forward<PredicateListT>(value));
91 return *this;
92 }
93 template <typename PredicateListT = AwsWafRegionalRulePredicateListDetails>
95 m_predicateListHasBeenSet = true;
96 m_predicateList.emplace_back(std::forward<PredicateListT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetRuleId() const { return m_ruleId; }
106 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
107 template <typename RuleIdT = Aws::String>
108 void SetRuleId(RuleIdT&& value) {
109 m_ruleIdHasBeenSet = true;
110 m_ruleId = std::forward<RuleIdT>(value);
111 }
112 template <typename RuleIdT = Aws::String>
114 SetRuleId(std::forward<RuleIdT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_metricName;
120
121 Aws::String m_name;
122
124
125 Aws::String m_ruleId;
126 bool m_metricNameHasBeenSet = false;
127 bool m_nameHasBeenSet = false;
128 bool m_predicateListHasBeenSet = false;
129 bool m_ruleIdHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace SecurityHub
134} // namespace Aws
AWS_SECURITYHUB_API AwsWafRegionalRuleDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsWafRegionalRuleDetails & WithMetricName(MetricNameT &&value)
const Aws::Vector< AwsWafRegionalRulePredicateListDetails > & GetPredicateList() const
AwsWafRegionalRuleDetails & AddPredicateList(PredicateListT &&value)
AWS_SECURITYHUB_API AwsWafRegionalRuleDetails(Aws::Utils::Json::JsonView jsonValue)
AwsWafRegionalRuleDetails & WithRuleId(RuleIdT &&value)
AwsWafRegionalRuleDetails & WithName(NameT &&value)
AwsWafRegionalRuleDetails & WithPredicateList(PredicateListT &&value)
AWS_SECURITYHUB_API AwsWafRegionalRuleDetails()=default
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue