AWS SDK for C++  1.9.108
AWS SDK for C++
CreateRuleGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/wafv2/model/Scope.h>
14 #include <aws/wafv2/model/Rule.h>
15 #include <aws/wafv2/model/Tag.h>
17 #include <utility>
18 
19 namespace Aws
20 {
21 namespace WAFV2
22 {
23 namespace Model
24 {
25 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "CreateRuleGroup"; }
38 
39  Aws::String SerializePayload() const override;
40 
42 
43 
48  inline const Aws::String& GetName() const{ return m_name; }
49 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
60  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 
66  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 
72  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
73 
78  inline CreateRuleGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
79 
84  inline CreateRuleGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
85 
90  inline CreateRuleGroupRequest& WithName(const char* value) { SetName(value); return *this;}
91 
92 
103  inline const Scope& GetScope() const{ return m_scope; }
104 
115  inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
116 
127  inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
128 
139  inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
140 
151  inline CreateRuleGroupRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
152 
163  inline CreateRuleGroupRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
164 
165 
179  inline long long GetCapacity() const{ return m_capacity; }
180 
194  inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
195 
209  inline void SetCapacity(long long value) { m_capacityHasBeenSet = true; m_capacity = value; }
210 
224  inline CreateRuleGroupRequest& WithCapacity(long long value) { SetCapacity(value); return *this;}
225 
226 
230  inline const Aws::String& GetDescription() const{ return m_description; }
231 
235  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
236 
240  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
241 
245  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
246 
250  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
251 
255  inline CreateRuleGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
256 
260  inline CreateRuleGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
261 
265  inline CreateRuleGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
266 
267 
274  inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
275 
282  inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
283 
290  inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
291 
298  inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
299 
306  inline CreateRuleGroupRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
307 
314  inline CreateRuleGroupRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
315 
322  inline CreateRuleGroupRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
323 
330  inline CreateRuleGroupRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
331 
332 
337  inline const VisibilityConfig& GetVisibilityConfig() const{ return m_visibilityConfig; }
338 
343  inline bool VisibilityConfigHasBeenSet() const { return m_visibilityConfigHasBeenSet; }
344 
349  inline void SetVisibilityConfig(const VisibilityConfig& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = value; }
350 
355  inline void SetVisibilityConfig(VisibilityConfig&& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = std::move(value); }
356 
361  inline CreateRuleGroupRequest& WithVisibilityConfig(const VisibilityConfig& value) { SetVisibilityConfig(value); return *this;}
362 
367  inline CreateRuleGroupRequest& WithVisibilityConfig(VisibilityConfig&& value) { SetVisibilityConfig(std::move(value)); return *this;}
368 
369 
373  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
374 
378  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
379 
383  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
384 
388  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
389 
393  inline CreateRuleGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
394 
398  inline CreateRuleGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
399 
403  inline CreateRuleGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
404 
408  inline CreateRuleGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
409 
410 
427  inline const Aws::Map<Aws::String, CustomResponseBody>& GetCustomResponseBodies() const{ return m_customResponseBodies; }
428 
445  inline bool CustomResponseBodiesHasBeenSet() const { return m_customResponseBodiesHasBeenSet; }
446 
463  inline void SetCustomResponseBodies(const Aws::Map<Aws::String, CustomResponseBody>& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies = value; }
464 
481  inline void SetCustomResponseBodies(Aws::Map<Aws::String, CustomResponseBody>&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies = std::move(value); }
482 
499  inline CreateRuleGroupRequest& WithCustomResponseBodies(const Aws::Map<Aws::String, CustomResponseBody>& value) { SetCustomResponseBodies(value); return *this;}
500 
517  inline CreateRuleGroupRequest& WithCustomResponseBodies(Aws::Map<Aws::String, CustomResponseBody>&& value) { SetCustomResponseBodies(std::move(value)); return *this;}
518 
535  inline CreateRuleGroupRequest& AddCustomResponseBodies(const Aws::String& key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, value); return *this; }
536 
553  inline CreateRuleGroupRequest& AddCustomResponseBodies(Aws::String&& key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(std::move(key), value); return *this; }
554 
571  inline CreateRuleGroupRequest& AddCustomResponseBodies(const Aws::String& key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, std::move(value)); return *this; }
572 
589  inline CreateRuleGroupRequest& AddCustomResponseBodies(Aws::String&& key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(std::move(key), std::move(value)); return *this; }
590 
607  inline CreateRuleGroupRequest& AddCustomResponseBodies(const char* key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, std::move(value)); return *this; }
608 
625  inline CreateRuleGroupRequest& AddCustomResponseBodies(const char* key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, value); return *this; }
626 
627  private:
628 
629  Aws::String m_name;
630  bool m_nameHasBeenSet;
631 
632  Scope m_scope;
633  bool m_scopeHasBeenSet;
634 
635  long long m_capacity;
636  bool m_capacityHasBeenSet;
637 
638  Aws::String m_description;
639  bool m_descriptionHasBeenSet;
640 
641  Aws::Vector<Rule> m_rules;
642  bool m_rulesHasBeenSet;
643 
644  VisibilityConfig m_visibilityConfig;
645  bool m_visibilityConfigHasBeenSet;
646 
647  Aws::Vector<Tag> m_tags;
648  bool m_tagsHasBeenSet;
649 
650  Aws::Map<Aws::String, CustomResponseBody> m_customResponseBodies;
651  bool m_customResponseBodiesHasBeenSet;
652  };
653 
654 } // namespace Model
655 } // namespace WAFV2
656 } // namespace Aws
Aws::WAFV2::Model::CreateRuleGroupRequest::SetVisibilityConfig
void SetVisibilityConfig(VisibilityConfig &&value)
Definition: CreateRuleGroupRequest.h:355
Aws::WAFV2::Model::CreateRuleGroupRequest::CapacityHasBeenSet
bool CapacityHasBeenSet() const
Definition: CreateRuleGroupRequest.h:194
Aws::WAFV2::Model::Rule
Definition: Rule.h:42
Aws::WAFV2::Model::CreateRuleGroupRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateRuleGroupRequest.h:54
Aws::WAFV2::Model::CreateRuleGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateRuleGroupRequest.h:37
WAFV2Request.h
Aws::WAFV2::Model::CreateRuleGroupRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateRuleGroupRequest.h:250
Scope.h
Aws::WAFV2::Model::CreateRuleGroupRequest::SetRules
void SetRules(const Aws::Vector< Rule > &value)
Definition: CreateRuleGroupRequest.h:290
Aws::WAFV2::Model::CreateRuleGroupRequest::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: CreateRuleGroupRequest.h:115
Aws::WAFV2::Model::CreateRuleGroupRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateRuleGroupRequest.h:388
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAFV2::Model::CreateRuleGroupRequest::AddCustomResponseBodies
CreateRuleGroupRequest & AddCustomResponseBodies(Aws::String &&key, const CustomResponseBody &value)
Definition: CreateRuleGroupRequest.h:553
Aws::WAFV2::Model::CreateRuleGroupRequest::WithScope
CreateRuleGroupRequest & WithScope(const Scope &value)
Definition: CreateRuleGroupRequest.h:151
Aws::WAFV2::Model::CreateRuleGroupRequest::WithCustomResponseBodies
CreateRuleGroupRequest & WithCustomResponseBodies(const Aws::Map< Aws::String, CustomResponseBody > &value)
Definition: CreateRuleGroupRequest.h:499
Aws::WAFV2::Model::CreateRuleGroupRequest::AddRules
CreateRuleGroupRequest & AddRules(const Rule &value)
Definition: CreateRuleGroupRequest.h:322
Aws::WAFV2::Model::CreateRuleGroupRequest::GetName
const Aws::String & GetName() const
Definition: CreateRuleGroupRequest.h:48
Aws::WAFV2::Model::CreateRuleGroupRequest::WithDescription
CreateRuleGroupRequest & WithDescription(Aws::String &&value)
Definition: CreateRuleGroupRequest.h:260
Aws::WAFV2::Model::CreateRuleGroupRequest::AddCustomResponseBodies
CreateRuleGroupRequest & AddCustomResponseBodies(const char *key, CustomResponseBody &&value)
Definition: CreateRuleGroupRequest.h:607
Aws::WAFV2::Model::CreateRuleGroupRequest::CustomResponseBodiesHasBeenSet
bool CustomResponseBodiesHasBeenSet() const
Definition: CreateRuleGroupRequest.h:445
Aws::WAFV2::Model::CreateRuleGroupRequest
Definition: CreateRuleGroupRequest.h:29
Aws::WAFV2::Model::CreateRuleGroupRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateRuleGroupRequest.h:60
Aws::WAFV2::Model::VisibilityConfig
Definition: VisibilityConfig.h:33
Aws::WAFV2::Model::CreateRuleGroupRequest::GetVisibilityConfig
const VisibilityConfig & GetVisibilityConfig() const
Definition: CreateRuleGroupRequest.h:337
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAFV2::Model::CreateRuleGroupRequest::WithDescription
CreateRuleGroupRequest & WithDescription(const Aws::String &value)
Definition: CreateRuleGroupRequest.h:255
Aws::WAFV2::Model::CreateRuleGroupRequest::WithName
CreateRuleGroupRequest & WithName(Aws::String &&value)
Definition: CreateRuleGroupRequest.h:84
Aws::WAFV2::Model::CreateRuleGroupRequest::RulesHasBeenSet
bool RulesHasBeenSet() const
Definition: CreateRuleGroupRequest.h:282
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::CreateRuleGroupRequest::SetRules
void SetRules(Aws::Vector< Rule > &&value)
Definition: CreateRuleGroupRequest.h:298
AWSVector.h
CustomResponseBody.h
Rule.h
Aws::WAFV2::Model::CreateRuleGroupRequest::GetScope
const Scope & GetScope() const
Definition: CreateRuleGroupRequest.h:103
Aws::WAFV2::Model::CreateRuleGroupRequest::AddCustomResponseBodies
CreateRuleGroupRequest & AddCustomResponseBodies(const Aws::String &key, const CustomResponseBody &value)
Definition: CreateRuleGroupRequest.h:535
Aws::WAFV2::Model::CreateRuleGroupRequest::WithTags
CreateRuleGroupRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateRuleGroupRequest.h:398
Aws::WAFV2::Model::CreateRuleGroupRequest::AddCustomResponseBodies
CreateRuleGroupRequest & AddCustomResponseBodies(Aws::String &&key, CustomResponseBody &&value)
Definition: CreateRuleGroupRequest.h:589
Aws::WAFV2::Model::CreateRuleGroupRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAFV2::Model::CreateRuleGroupRequest::GetCustomResponseBodies
const Aws::Map< Aws::String, CustomResponseBody > & GetCustomResponseBodies() const
Definition: CreateRuleGroupRequest.h:427
WAFV2_EXPORTS.h
Aws::WAFV2::Model::CreateRuleGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAFV2::Model::CreateRuleGroupRequest::WithName
CreateRuleGroupRequest & WithName(const char *value)
Definition: CreateRuleGroupRequest.h:90
Aws::WAFV2::Model::CreateRuleGroupRequest::SetCustomResponseBodies
void SetCustomResponseBodies(const Aws::Map< Aws::String, CustomResponseBody > &value)
Definition: CreateRuleGroupRequest.h:463
Aws::WAFV2::Model::CreateRuleGroupRequest::WithVisibilityConfig
CreateRuleGroupRequest & WithVisibilityConfig(VisibilityConfig &&value)
Definition: CreateRuleGroupRequest.h:367
Aws::WAFV2::WAFV2Request
Definition: WAFV2Request.h:17
Aws::WAFV2::Model::CreateRuleGroupRequest::AddCustomResponseBodies
CreateRuleGroupRequest & AddCustomResponseBodies(const char *key, const CustomResponseBody &value)
Definition: CreateRuleGroupRequest.h:625
Aws::WAFV2::Model::CreateRuleGroupRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateRuleGroupRequest.h:240
Aws::WAFV2::Model::CreateRuleGroupRequest::WithCapacity
CreateRuleGroupRequest & WithCapacity(long long value)
Definition: CreateRuleGroupRequest.h:224
Aws::WAFV2::Model::CustomResponseBody
Definition: CustomResponseBody.h:35
Aws::WAFV2::Model::CreateRuleGroupRequest::AddRules
CreateRuleGroupRequest & AddRules(Rule &&value)
Definition: CreateRuleGroupRequest.h:330
Aws::WAFV2::Model::CreateRuleGroupRequest::AddCustomResponseBodies
CreateRuleGroupRequest & AddCustomResponseBodies(const Aws::String &key, CustomResponseBody &&value)
Definition: CreateRuleGroupRequest.h:571
Aws::WAFV2::Model::CreateRuleGroupRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateRuleGroupRequest.h:230
Aws::WAFV2::Model::CreateRuleGroupRequest::WithTags
CreateRuleGroupRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateRuleGroupRequest.h:393
AWSString.h
Aws::WAFV2::Model::CreateRuleGroupRequest::AddTags
CreateRuleGroupRequest & AddTags(const Tag &value)
Definition: CreateRuleGroupRequest.h:403
Aws::WAFV2::Model::CreateRuleGroupRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateRuleGroupRequest.h:66
Aws::WAFV2::Model::CreateRuleGroupRequest::SetScope
void SetScope(const Scope &value)
Definition: CreateRuleGroupRequest.h:127
Aws::WAFV2::Model::CreateRuleGroupRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateRuleGroupRequest.h:383
Aws::WAFV2::Model::CreateRuleGroupRequest::GetRules
const Aws::Vector< Rule > & GetRules() const
Definition: CreateRuleGroupRequest.h:274
Aws::WAFV2::Model::CreateRuleGroupRequest::WithVisibilityConfig
CreateRuleGroupRequest & WithVisibilityConfig(const VisibilityConfig &value)
Definition: CreateRuleGroupRequest.h:361
Aws::WAFV2::Model::CreateRuleGroupRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateRuleGroupRequest.h:235
Aws::WAFV2::Model::CreateRuleGroupRequest::SetScope
void SetScope(Scope &&value)
Definition: CreateRuleGroupRequest.h:139
Aws::WAFV2::Model::CreateRuleGroupRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateRuleGroupRequest.h:245
Aws::WAFV2::Model::CreateRuleGroupRequest::WithDescription
CreateRuleGroupRequest & WithDescription(const char *value)
Definition: CreateRuleGroupRequest.h:265
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::CreateRuleGroupRequest::SetCustomResponseBodies
void SetCustomResponseBodies(Aws::Map< Aws::String, CustomResponseBody > &&value)
Definition: CreateRuleGroupRequest.h:481
Aws::WAFV2::Model::CreateRuleGroupRequest::SetName
void SetName(const char *value)
Definition: CreateRuleGroupRequest.h:72
Aws::WAFV2::Model::CreateRuleGroupRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateRuleGroupRequest.h:378
Aws::WAFV2::Model::CreateRuleGroupRequest::SetVisibilityConfig
void SetVisibilityConfig(const VisibilityConfig &value)
Definition: CreateRuleGroupRequest.h:349
Aws::WAFV2::Model::CreateRuleGroupRequest::CreateRuleGroupRequest
CreateRuleGroupRequest()
Aws::WAFV2::Model::CreateRuleGroupRequest::SetCapacity
void SetCapacity(long long value)
Definition: CreateRuleGroupRequest.h:209
Aws::WAFV2::Model::CreateRuleGroupRequest::VisibilityConfigHasBeenSet
bool VisibilityConfigHasBeenSet() const
Definition: CreateRuleGroupRequest.h:343
Tag.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::Tag
Definition: Tag.h:41
Aws::WAFV2::Model::CreateRuleGroupRequest::WithRules
CreateRuleGroupRequest & WithRules(const Aws::Vector< Rule > &value)
Definition: CreateRuleGroupRequest.h:306
Aws::WAFV2::Model::CreateRuleGroupRequest::WithRules
CreateRuleGroupRequest & WithRules(Aws::Vector< Rule > &&value)
Definition: CreateRuleGroupRequest.h:314
Aws::WAFV2::Model::Scope
Scope
Definition: Scope.h:17
VisibilityConfig.h
Aws::WAFV2::Model::CreateRuleGroupRequest::WithCustomResponseBodies
CreateRuleGroupRequest & WithCustomResponseBodies(Aws::Map< Aws::String, CustomResponseBody > &&value)
Definition: CreateRuleGroupRequest.h:517
Aws::WAFV2::Model::CreateRuleGroupRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateRuleGroupRequest.h:373
AWSMap.h
Aws::WAFV2::Model::CreateRuleGroupRequest::WithName
CreateRuleGroupRequest & WithName(const Aws::String &value)
Definition: CreateRuleGroupRequest.h:78
Aws::WAFV2::Model::CreateRuleGroupRequest::GetCapacity
long long GetCapacity() const
Definition: CreateRuleGroupRequest.h:179
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::WAFV2::Model::CreateRuleGroupRequest::WithScope
CreateRuleGroupRequest & WithScope(Scope &&value)
Definition: CreateRuleGroupRequest.h:163
Aws::WAFV2::Model::CreateRuleGroupRequest::AddTags
CreateRuleGroupRequest & AddTags(Tag &&value)
Definition: CreateRuleGroupRequest.h:408