7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/waf/model/Predicate.h>
54 AWS_WAF_API
Rule() =
default;
72 template<
typename RuleIdT = Aws::String>
73 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet =
true; m_ruleId = std::forward<RuleIdT>(value); }
74 template<
typename RuleIdT = Aws::String>
85 template<
typename NameT = Aws::String>
86 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
87 template<
typename NameT = Aws::String>
101 template<
typename MetricNameT = Aws::String>
102 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet =
true; m_metricName = std::forward<MetricNameT>(value); }
103 template<
typename MetricNameT = Aws::String>
116 template<
typename PredicatesT = Aws::Vector<Predicate>>
117 void SetPredicates(PredicatesT&& value) { m_predicatesHasBeenSet =
true; m_predicates = std::forward<PredicatesT>(value); }
118 template<
typename PredicatesT = Aws::Vector<Predicate>>
120 template<
typename PredicatesT = Predicate>
121 Rule&
AddPredicates(PredicatesT&& value) { m_predicatesHasBeenSet =
true; m_predicates.emplace_back(std::forward<PredicatesT>(value));
return *
this; }
126 bool m_ruleIdHasBeenSet =
false;
129 bool m_nameHasBeenSet =
false;
132 bool m_metricNameHasBeenSet =
false;
135 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