7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/waf/WAF_EXPORTS.h>
10#include <aws/waf/model/Predicate.h>
49 AWS_WAF_API
Rule() =
default;
66 template <
typename RuleIdT = Aws::String>
68 m_ruleIdHasBeenSet =
true;
69 m_ruleId = std::forward<RuleIdT>(value);
71 template <
typename RuleIdT = Aws::String>
85 template <
typename NameT = Aws::String>
87 m_nameHasBeenSet =
true;
88 m_name = std::forward<NameT>(value);
90 template <
typename NameT = Aws::String>
92 SetName(std::forward<NameT>(value));
107 template <
typename MetricNameT = Aws::String>
109 m_metricNameHasBeenSet =
true;
110 m_metricName = std::forward<MetricNameT>(value);
112 template <
typename MetricNameT = Aws::String>
128 template <
typename PredicatesT = Aws::Vector<Predicate>>
130 m_predicatesHasBeenSet =
true;
131 m_predicates = std::forward<PredicatesT>(value);
133 template <
typename PredicatesT = Aws::Vector<Predicate>>
138 template <
typename PredicatesT = Predicate>
140 m_predicatesHasBeenSet =
true;
141 m_predicates.emplace_back(std::forward<PredicatesT>(value));
153 bool m_ruleIdHasBeenSet =
false;
154 bool m_nameHasBeenSet =
false;
155 bool m_metricNameHasBeenSet =
false;
156 bool m_predicatesHasBeenSet =
false;
Rule & WithRuleId(RuleIdT &&value)
AWS_WAF_API Rule()=default
bool RuleIdHasBeenSet() const
bool NameHasBeenSet() const
const Aws::String & GetRuleId() const
void SetPredicates(PredicatesT &&value)
AWS_WAF_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PredicatesHasBeenSet() const
const Aws::String & GetMetricName() const
void SetRuleId(RuleIdT &&value)
const Aws::Vector< Predicate > & GetPredicates() const
AWS_WAF_API Rule(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
Rule & WithName(NameT &&value)
Rule & AddPredicates(PredicatesT &&value)
void SetMetricName(MetricNameT &&value)
bool MetricNameHasBeenSet() const
Rule & WithMetricName(MetricNameT &&value)
Rule & WithPredicates(PredicatesT &&value)
const Aws::String & GetName() 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