7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wafv2/model/VisibilityConfig.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/wafv2/model/Rule.h>
13#include <aws/wafv2/model/CustomResponseBody.h>
14#include <aws/wafv2/model/LabelSummary.h>
59 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
74 inline void SetId(
Aws::String&& value) { m_idHasBeenSet =
true; m_id = std::move(value); }
75 inline void SetId(
const char* value) { m_idHasBeenSet =
true; m_id.assign(value); }
99 inline void SetCapacity(
long long value) { m_capacityHasBeenSet =
true; m_capacity = value; }
111 inline void SetARN(
const char* value) { m_aRNHasBeenSet =
true; m_aRN.assign(value); }
125 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
144 inline RuleGroup&
AddRules(
Rule&& value) { m_rulesHasBeenSet =
true; m_rules.push_back(std::move(value));
return *
this; }
176 inline void SetLabelNamespace(
const char* value) { m_labelNamespaceHasBeenSet =
true; m_labelNamespace.assign(value); }
244 bool m_nameHasBeenSet =
false;
247 bool m_idHasBeenSet =
false;
249 long long m_capacity;
250 bool m_capacityHasBeenSet =
false;
253 bool m_aRNHasBeenSet =
false;
256 bool m_descriptionHasBeenSet =
false;
259 bool m_rulesHasBeenSet =
false;
262 bool m_visibilityConfigHasBeenSet =
false;
265 bool m_labelNamespaceHasBeenSet =
false;
268 bool m_customResponseBodiesHasBeenSet =
false;
271 bool m_availableLabelsHasBeenSet =
false;
274 bool m_consumedLabelsHasBeenSet =
false;
void SetRules(const Aws::Vector< Rule > &value)
void SetCustomResponseBodies(const Aws::Map< Aws::String, CustomResponseBody > &value)
RuleGroup & WithId(Aws::String &&value)
void SetLabelNamespace(const char *value)
AWS_WAFV2_API RuleGroup()
RuleGroup & AddConsumedLabels(LabelSummary &&value)
RuleGroup & AddCustomResponseBodies(Aws::String &&key, CustomResponseBody &&value)
void SetARN(Aws::String &&value)
void SetDescription(const Aws::String &value)
bool NameHasBeenSet() const
RuleGroup & WithRules(Aws::Vector< Rule > &&value)
RuleGroup & WithRules(const Aws::Vector< Rule > &value)
RuleGroup & WithARN(const char *value)
void SetVisibilityConfig(VisibilityConfig &&value)
RuleGroup & WithAvailableLabels(Aws::Vector< LabelSummary > &&value)
void SetConsumedLabels(const Aws::Vector< LabelSummary > &value)
void SetConsumedLabels(Aws::Vector< LabelSummary > &&value)
void SetDescription(Aws::String &&value)
RuleGroup & WithDescription(const Aws::String &value)
AWS_WAFV2_API RuleGroup(Aws::Utils::Json::JsonView jsonValue)
RuleGroup & AddConsumedLabels(const LabelSummary &value)
const Aws::String & GetARN() const
RuleGroup & WithDescription(Aws::String &&value)
RuleGroup & WithLabelNamespace(Aws::String &&value)
RuleGroup & WithConsumedLabels(Aws::Vector< LabelSummary > &&value)
const Aws::String & GetName() const
void SetVisibilityConfig(const VisibilityConfig &value)
RuleGroup & WithName(const char *value)
const VisibilityConfig & GetVisibilityConfig() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetId(const Aws::String &value)
const Aws::Vector< Rule > & GetRules() const
const Aws::String & GetId() const
const Aws::Map< Aws::String, CustomResponseBody > & GetCustomResponseBodies() const
const Aws::Vector< LabelSummary > & GetConsumedLabels() const
RuleGroup & AddCustomResponseBodies(const Aws::String &key, CustomResponseBody &&value)
bool LabelNamespaceHasBeenSet() const
void SetAvailableLabels(const Aws::Vector< LabelSummary > &value)
bool DescriptionHasBeenSet() const
void SetARN(const char *value)
RuleGroup & WithLabelNamespace(const Aws::String &value)
RuleGroup & AddCustomResponseBodies(Aws::String &&key, const CustomResponseBody &value)
long long GetCapacity() const
void SetRules(Aws::Vector< Rule > &&value)
void SetARN(const Aws::String &value)
RuleGroup & WithARN(Aws::String &&value)
void SetName(Aws::String &&value)
RuleGroup & WithConsumedLabels(const Aws::Vector< LabelSummary > &value)
bool RulesHasBeenSet() const
RuleGroup & WithName(Aws::String &&value)
RuleGroup & AddCustomResponseBodies(const char *key, const CustomResponseBody &value)
void SetName(const char *value)
const Aws::String & GetDescription() const
RuleGroup & WithCapacity(long long value)
AWS_WAFV2_API RuleGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
bool CapacityHasBeenSet() const
bool CustomResponseBodiesHasBeenSet() const
const Aws::String & GetLabelNamespace() const
RuleGroup & AddAvailableLabels(LabelSummary &&value)
RuleGroup & WithDescription(const char *value)
RuleGroup & WithId(const Aws::String &value)
void SetLabelNamespace(Aws::String &&value)
RuleGroup & AddCustomResponseBodies(const Aws::String &key, const CustomResponseBody &value)
void SetCapacity(long long value)
void SetLabelNamespace(const Aws::String &value)
const Aws::Vector< LabelSummary > & GetAvailableLabels() const
RuleGroup & WithAvailableLabels(const Aws::Vector< LabelSummary > &value)
void SetId(Aws::String &&value)
RuleGroup & AddCustomResponseBodies(const char *key, CustomResponseBody &&value)
RuleGroup & AddRules(const Rule &value)
RuleGroup & WithCustomResponseBodies(const Aws::Map< Aws::String, CustomResponseBody > &value)
RuleGroup & AddRules(Rule &&value)
RuleGroup & WithName(const Aws::String &value)
RuleGroup & WithVisibilityConfig(VisibilityConfig &&value)
bool ARNHasBeenSet() const
bool AvailableLabelsHasBeenSet() const
void SetCustomResponseBodies(Aws::Map< Aws::String, CustomResponseBody > &&value)
RuleGroup & WithVisibilityConfig(const VisibilityConfig &value)
void SetId(const char *value)
RuleGroup & AddAvailableLabels(const LabelSummary &value)
void SetName(const Aws::String &value)
bool ConsumedLabelsHasBeenSet() const
bool IdHasBeenSet() const
void SetAvailableLabels(Aws::Vector< LabelSummary > &&value)
RuleGroup & WithLabelNamespace(const char *value)
bool VisibilityConfigHasBeenSet() const
RuleGroup & WithCustomResponseBodies(Aws::Map< Aws::String, CustomResponseBody > &&value)
void SetDescription(const char *value)
RuleGroup & WithARN(const Aws::String &value)
RuleGroup & WithId(const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue