7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wafv2/WAFV2_EXPORTS.h>
11#include <aws/wafv2/model/CustomResponseBody.h>
12#include <aws/wafv2/model/LabelSummary.h>
13#include <aws/wafv2/model/MonetizationConfig.h>
14#include <aws/wafv2/model/Rule.h>
15#include <aws/wafv2/model/VisibilityConfig.h>
52 template <
typename NameT = Aws::String>
54 m_nameHasBeenSet =
true;
55 m_name = std::forward<NameT>(value);
57 template <
typename NameT = Aws::String>
59 SetName(std::forward<NameT>(value));
72 template <
typename IdT = Aws::String>
74 m_idHasBeenSet =
true;
75 m_id = std::forward<IdT>(value);
77 template <
typename IdT = Aws::String>
79 SetId(std::forward<IdT>(value));
103 m_capacityHasBeenSet =
true;
118 template <
typename ARNT = Aws::String>
120 m_aRNHasBeenSet =
true;
121 m_aRN = std::forward<ARNT>(value);
123 template <
typename ARNT = Aws::String>
125 SetARN(std::forward<ARNT>(value));
136 template <
typename DescriptionT = Aws::String>
138 m_descriptionHasBeenSet =
true;
139 m_description = std::forward<DescriptionT>(value);
141 template <
typename DescriptionT = Aws::String>
156 template <
typename RulesT = Aws::Vector<Rule>>
158 m_rulesHasBeenSet =
true;
159 m_rules = std::forward<RulesT>(value);
161 template <
typename RulesT = Aws::Vector<Rule>>
163 SetRules(std::forward<RulesT>(value));
166 template <
typename RulesT = Rule>
168 m_rulesHasBeenSet =
true;
169 m_rules.emplace_back(std::forward<RulesT>(value));
181 template <
typename VisibilityConfigT = VisibilityConfig>
183 m_visibilityConfigHasBeenSet =
true;
184 m_visibilityConfig = std::forward<VisibilityConfigT>(value);
186 template <
typename VisibilityConfigT = VisibilityConfig>
207 template <
typename LabelNamespaceT = Aws::String>
209 m_labelNamespaceHasBeenSet =
true;
210 m_labelNamespace = std::forward<LabelNamespaceT>(value);
212 template <
typename LabelNamespaceT = Aws::String>
235 template <
typename CustomResponseBodiesT = Aws::Map<Aws::String, CustomResponseBody>>
237 m_customResponseBodiesHasBeenSet =
true;
238 m_customResponseBodies = std::forward<CustomResponseBodiesT>(value);
240 template <
typename CustomResponseBodiesT = Aws::Map<Aws::String, CustomResponseBody>>
245 template <
typename CustomResponseBodiesKeyT = Aws::String,
typename CustomResponseBodiesValueT = CustomResponseBody>
247 m_customResponseBodiesHasBeenSet =
true;
248 m_customResponseBodies.emplace(std::forward<CustomResponseBodiesKeyT>(key), std::forward<CustomResponseBodiesValueT>(value));
261 template <
typename AvailableLabelsT = Aws::Vector<LabelSummary>>
263 m_availableLabelsHasBeenSet =
true;
264 m_availableLabels = std::forward<AvailableLabelsT>(value);
266 template <
typename AvailableLabelsT = Aws::Vector<LabelSummary>>
271 template <
typename AvailableLabelsT = LabelSummary>
273 m_availableLabelsHasBeenSet =
true;
274 m_availableLabels.emplace_back(std::forward<AvailableLabelsT>(value));
287 template <
typename ConsumedLabelsT = Aws::Vector<LabelSummary>>
289 m_consumedLabelsHasBeenSet =
true;
290 m_consumedLabels = std::forward<ConsumedLabelsT>(value);
292 template <
typename ConsumedLabelsT = Aws::Vector<LabelSummary>>
297 template <
typename ConsumedLabelsT = LabelSummary>
299 m_consumedLabelsHasBeenSet =
true;
300 m_consumedLabels.emplace_back(std::forward<ConsumedLabelsT>(value));
315 template <
typename MonetizationConfigT = MonetizationConfig>
317 m_monetizationConfigHasBeenSet =
true;
318 m_monetizationConfig = std::forward<MonetizationConfigT>(value);
320 template <
typename MonetizationConfigT = MonetizationConfig>
331 long long m_capacity{0};
339 VisibilityConfig m_visibilityConfig;
349 MonetizationConfig m_monetizationConfig;
350 bool m_nameHasBeenSet =
false;
351 bool m_idHasBeenSet =
false;
352 bool m_capacityHasBeenSet =
false;
353 bool m_aRNHasBeenSet =
false;
354 bool m_descriptionHasBeenSet =
false;
355 bool m_rulesHasBeenSet =
false;
356 bool m_visibilityConfigHasBeenSet =
false;
357 bool m_labelNamespaceHasBeenSet =
false;
358 bool m_customResponseBodiesHasBeenSet =
false;
359 bool m_availableLabelsHasBeenSet =
false;
360 bool m_consumedLabelsHasBeenSet =
false;
361 bool m_monetizationConfigHasBeenSet =
false;
RuleGroup & WithMonetizationConfig(MonetizationConfigT &&value)
void SetMonetizationConfig(MonetizationConfigT &&value)
void SetRules(RulesT &&value)
RuleGroup & WithAvailableLabels(AvailableLabelsT &&value)
void SetDescription(DescriptionT &&value)
bool NameHasBeenSet() const
RuleGroup & WithDescription(DescriptionT &&value)
RuleGroup & WithVisibilityConfig(VisibilityConfigT &&value)
RuleGroup & WithRules(RulesT &&value)
void SetAvailableLabels(AvailableLabelsT &&value)
AWS_WAFV2_API RuleGroup(Aws::Utils::Json::JsonView jsonValue)
RuleGroup & AddCustomResponseBodies(CustomResponseBodiesKeyT &&key, CustomResponseBodiesValueT &&value)
const Aws::String & GetARN() const
AWS_WAFV2_API RuleGroup()=default
const Aws::String & GetName() const
bool MonetizationConfigHasBeenSet() const
const VisibilityConfig & GetVisibilityConfig() const
void SetConsumedLabels(ConsumedLabelsT &&value)
RuleGroup & AddRules(RulesT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
RuleGroup & AddAvailableLabels(AvailableLabelsT &&value)
const Aws::Vector< Rule > & GetRules() const
const Aws::String & GetId() const
RuleGroup & WithLabelNamespace(LabelNamespaceT &&value)
const Aws::Map< Aws::String, CustomResponseBody > & GetCustomResponseBodies() const
const Aws::Vector< LabelSummary > & GetConsumedLabels() const
bool LabelNamespaceHasBeenSet() const
bool DescriptionHasBeenSet() const
long long GetCapacity() const
const MonetizationConfig & GetMonetizationConfig() const
bool RulesHasBeenSet() const
const Aws::String & GetDescription() const
RuleGroup & WithCapacity(long long value)
AWS_WAFV2_API RuleGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleGroup & WithConsumedLabels(ConsumedLabelsT &&value)
bool CapacityHasBeenSet() const
void SetName(NameT &&value)
bool CustomResponseBodiesHasBeenSet() const
const Aws::String & GetLabelNamespace() const
void SetCapacity(long long value)
const Aws::Vector< LabelSummary > & GetAvailableLabels() const
RuleGroup & WithId(IdT &&value)
void SetARN(ARNT &&value)
void SetCustomResponseBodies(CustomResponseBodiesT &&value)
RuleGroup & AddConsumedLabels(ConsumedLabelsT &&value)
bool ARNHasBeenSet() const
bool AvailableLabelsHasBeenSet() const
RuleGroup & WithCustomResponseBodies(CustomResponseBodiesT &&value)
void SetLabelNamespace(LabelNamespaceT &&value)
bool ConsumedLabelsHasBeenSet() const
bool IdHasBeenSet() const
RuleGroup & WithARN(ARNT &&value)
bool VisibilityConfigHasBeenSet() const
void SetVisibilityConfig(VisibilityConfigT &&value)
RuleGroup & WithName(NameT &&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