7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/waf-regional/model/Predicate.h>
54 AWS_WAFREGIONAL_API
Rule();
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;
void SetMetricName(Aws::String &&value)
Rule & WithRuleId(const char *value)
Rule & WithPredicates(Aws::Vector< Predicate > &&value)
void SetName(const char *value)
Rule & WithMetricName(const Aws::String &value)
AWS_WAFREGIONAL_API Rule()
Rule & WithPredicates(const Aws::Vector< Predicate > &value)
Rule & WithName(Aws::String &&value)
Rule & WithMetricName(Aws::String &&value)
const Aws::String & GetName() const
void SetName(Aws::String &&value)
void SetRuleId(const Aws::String &value)
void SetMetricName(const Aws::String &value)
Rule & WithName(const Aws::String &value)
void SetMetricName(const char *value)
bool RuleIdHasBeenSet() const
bool MetricNameHasBeenSet() const
void SetRuleId(const char *value)
AWS_WAFREGIONAL_API Rule(Aws::Utils::Json::JsonView jsonValue)
void SetPredicates(Aws::Vector< Predicate > &&value)
const Aws::String & GetRuleId() const
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
bool PredicatesHasBeenSet() const
Rule & AddPredicates(const Predicate &value)
bool NameHasBeenSet() const
AWS_WAFREGIONAL_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
Rule & AddPredicates(Predicate &&value)
const Aws::Vector< Predicate > & GetPredicates() const
const Aws::String & GetMetricName() const
Rule & WithMetricName(const char *value)
void SetRuleId(Aws::String &&value)
void SetPredicates(const Aws::Vector< Predicate > &value)
Rule & WithName(const char *value)
Rule & WithRuleId(const Aws::String &value)
Rule & WithRuleId(Aws::String &&value)
void SetName(const 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