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>
74 inline void SetRuleId(
const char* value) { m_ruleIdHasBeenSet =
true; m_ruleId.assign(value); }
89 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
107 inline void SetMetricName(
const char* value) { m_metricNameHasBeenSet =
true; m_metricName.assign(value); }
132 bool m_ruleIdHasBeenSet =
false;
135 bool m_nameHasBeenSet =
false;
138 bool m_metricNameHasBeenSet =
false;
141 bool m_predicatesHasBeenSet =
false;
Rule & WithName(Aws::String &&value)
void SetMetricName(Aws::String &&value)
Rule & WithName(const char *value)
Rule & WithName(const Aws::String &value)
void SetPredicates(const Aws::Vector< Predicate > &value)
void SetName(const char *value)
Rule & WithMetricName(Aws::String &&value)
Rule & WithRuleId(Aws::String &&value)
void SetRuleId(const char *value)
Rule & WithPredicates(const Aws::Vector< Predicate > &value)
bool RuleIdHasBeenSet() const
bool NameHasBeenSet() const
Rule & WithMetricName(const Aws::String &value)
const Aws::String & GetRuleId() const
Rule & WithRuleId(const char *value)
AWS_WAF_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMetricName(const char *value)
bool PredicatesHasBeenSet() const
const Aws::String & GetMetricName() const
const Aws::Vector< Predicate > & GetPredicates() const
Rule & AddPredicates(Predicate &&value)
void SetName(const Aws::String &value)
void SetMetricName(const Aws::String &value)
AWS_WAF_API Rule(Aws::Utils::Json::JsonView jsonValue)
void SetPredicates(Aws::Vector< Predicate > &&value)
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
Rule & AddPredicates(const Predicate &value)
void SetRuleId(const Aws::String &value)
Rule & WithRuleId(const Aws::String &value)
bool MetricNameHasBeenSet() const
void SetName(Aws::String &&value)
Rule & WithPredicates(Aws::Vector< Predicate > &&value)
const Aws::String & GetName() const
Rule & WithMetricName(const char *value)
void SetRuleId(Aws::String &&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