AWS SDK for C++  1.9.40
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 
102  inline const Scope& GetScope() const{ return m_scope; }
103 
113  inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
114 
124  inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
125 
135  inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
136 
146  inline CreateRuleGroupRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
147 
157  inline CreateRuleGroupRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
158 
159 
173  inline long long GetCapacity() const{ return m_capacity; }
174 
188  inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
189 
203  inline void SetCapacity(long long value) { m_capacityHasBeenSet = true; m_capacity = value; }
204 
218  inline CreateRuleGroupRequest& WithCapacity(long long value) { SetCapacity(value); return *this;}
219 
220 
224  inline const Aws::String& GetDescription() const{ return m_description; }
225 
229  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
230 
234  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
235 
239  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
240 
244  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
245 
249  inline CreateRuleGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
250 
254  inline CreateRuleGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
255 
259  inline CreateRuleGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
260 
261 
268  inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
269 
276  inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
277 
284  inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
285 
292  inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
293 
300  inline CreateRuleGroupRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
301 
308  inline CreateRuleGroupRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
309 
316  inline CreateRuleGroupRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
317 
324  inline CreateRuleGroupRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
325 
326 
331  inline const VisibilityConfig& GetVisibilityConfig() const{ return m_visibilityConfig; }
332 
337  inline bool VisibilityConfigHasBeenSet() const { return m_visibilityConfigHasBeenSet; }
338 
343  inline void SetVisibilityConfig(const VisibilityConfig& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = value; }
344 
349  inline void SetVisibilityConfig(VisibilityConfig&& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = std::move(value); }
350 
355  inline CreateRuleGroupRequest& WithVisibilityConfig(const VisibilityConfig& value) { SetVisibilityConfig(value); return *this;}
356 
361  inline CreateRuleGroupRequest& WithVisibilityConfig(VisibilityConfig&& value) { SetVisibilityConfig(std::move(value)); return *this;}
362 
363 
367  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
368 
372  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
373 
377  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
378 
382  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
383 
387  inline CreateRuleGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
388 
392  inline CreateRuleGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
393 
397  inline CreateRuleGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
398 
402  inline CreateRuleGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
403 
404 
421  inline const Aws::Map<Aws::String, CustomResponseBody>& GetCustomResponseBodies() const{ return m_customResponseBodies; }
422 
439  inline bool CustomResponseBodiesHasBeenSet() const { return m_customResponseBodiesHasBeenSet; }
440 
457  inline void SetCustomResponseBodies(const Aws::Map<Aws::String, CustomResponseBody>& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies = value; }
458 
475  inline void SetCustomResponseBodies(Aws::Map<Aws::String, CustomResponseBody>&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies = std::move(value); }
476 
493  inline CreateRuleGroupRequest& WithCustomResponseBodies(const Aws::Map<Aws::String, CustomResponseBody>& value) { SetCustomResponseBodies(value); return *this;}
494 
511  inline CreateRuleGroupRequest& WithCustomResponseBodies(Aws::Map<Aws::String, CustomResponseBody>&& value) { SetCustomResponseBodies(std::move(value)); return *this;}
512 
529  inline CreateRuleGroupRequest& AddCustomResponseBodies(const Aws::String& key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, value); return *this; }
530 
547  inline CreateRuleGroupRequest& AddCustomResponseBodies(Aws::String&& key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(std::move(key), value); return *this; }
548 
565  inline CreateRuleGroupRequest& AddCustomResponseBodies(const Aws::String& key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, std::move(value)); return *this; }
566 
583  inline CreateRuleGroupRequest& AddCustomResponseBodies(Aws::String&& key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(std::move(key), std::move(value)); return *this; }
584 
601  inline CreateRuleGroupRequest& AddCustomResponseBodies(const char* key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, std::move(value)); return *this; }
602 
619  inline CreateRuleGroupRequest& AddCustomResponseBodies(const char* key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, value); return *this; }
620 
621  private:
622 
623  Aws::String m_name;
624  bool m_nameHasBeenSet;
625 
626  Scope m_scope;
627  bool m_scopeHasBeenSet;
628 
629  long long m_capacity;
630  bool m_capacityHasBeenSet;
631 
632  Aws::String m_description;
633  bool m_descriptionHasBeenSet;
634 
635  Aws::Vector<Rule> m_rules;
636  bool m_rulesHasBeenSet;
637 
638  VisibilityConfig m_visibilityConfig;
639  bool m_visibilityConfigHasBeenSet;
640 
641  Aws::Vector<Tag> m_tags;
642  bool m_tagsHasBeenSet;
643 
644  Aws::Map<Aws::String, CustomResponseBody> m_customResponseBodies;
645  bool m_customResponseBodiesHasBeenSet;
646  };
647 
648 } // namespace Model
649 } // namespace WAFV2
650 } // namespace Aws
Aws::WAFV2::Model::CreateRuleGroupRequest::SetVisibilityConfig
void SetVisibilityConfig(VisibilityConfig &&value)
Definition: CreateRuleGroupRequest.h:349
Aws::WAFV2::Model::CreateRuleGroupRequest::CapacityHasBeenSet
bool CapacityHasBeenSet() const
Definition: CreateRuleGroupRequest.h:188
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:244
Scope.h
Aws::WAFV2::Model::CreateRuleGroupRequest::SetRules
void SetRules(const Aws::Vector< Rule > &value)
Definition: CreateRuleGroupRequest.h:284
Aws::WAFV2::Model::CreateRuleGroupRequest::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: CreateRuleGroupRequest.h:113
Aws::WAFV2::Model::CreateRuleGroupRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateRuleGroupRequest.h:382
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:547
Aws::WAFV2::Model::CreateRuleGroupRequest::WithScope
CreateRuleGroupRequest & WithScope(const Scope &value)
Definition: CreateRuleGroupRequest.h:146
Aws::WAFV2::Model::CreateRuleGroupRequest::WithCustomResponseBodies
CreateRuleGroupRequest & WithCustomResponseBodies(const Aws::Map< Aws::String, CustomResponseBody > &value)
Definition: CreateRuleGroupRequest.h:493
Aws::WAFV2::Model::CreateRuleGroupRequest::AddRules
CreateRuleGroupRequest & AddRules(const Rule &value)
Definition: CreateRuleGroupRequest.h:316
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:254
Aws::WAFV2::Model::CreateRuleGroupRequest::AddCustomResponseBodies
CreateRuleGroupRequest & AddCustomResponseBodies(const char *key, CustomResponseBody &&value)
Definition: CreateRuleGroupRequest.h:601
Aws::WAFV2::Model::CreateRuleGroupRequest::CustomResponseBodiesHasBeenSet
bool CustomResponseBodiesHasBeenSet() const
Definition: CreateRuleGroupRequest.h:439
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:331
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:249
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:276
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:292
AWSVector.h
CustomResponseBody.h
Rule.h
Aws::WAFV2::Model::CreateRuleGroupRequest::GetScope
const Scope & GetScope() const
Definition: CreateRuleGroupRequest.h:102
Aws::WAFV2::Model::CreateRuleGroupRequest::AddCustomResponseBodies
CreateRuleGroupRequest & AddCustomResponseBodies(const Aws::String &key, const CustomResponseBody &value)
Definition: CreateRuleGroupRequest.h:529
Aws::WAFV2::Model::CreateRuleGroupRequest::WithTags
CreateRuleGroupRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateRuleGroupRequest.h:392
Aws::WAFV2::Model::CreateRuleGroupRequest::AddCustomResponseBodies
CreateRuleGroupRequest & AddCustomResponseBodies(Aws::String &&key, CustomResponseBody &&value)
Definition: CreateRuleGroupRequest.h:583
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:421
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:457
Aws::WAFV2::Model::CreateRuleGroupRequest::WithVisibilityConfig
CreateRuleGroupRequest & WithVisibilityConfig(VisibilityConfig &&value)
Definition: CreateRuleGroupRequest.h:361
Aws::WAFV2::WAFV2Request
Definition: WAFV2Request.h:17
Aws::WAFV2::Model::CreateRuleGroupRequest::AddCustomResponseBodies
CreateRuleGroupRequest & AddCustomResponseBodies(const char *key, const CustomResponseBody &value)
Definition: CreateRuleGroupRequest.h:619
Aws::WAFV2::Model::CreateRuleGroupRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateRuleGroupRequest.h:234
Aws::WAFV2::Model::CreateRuleGroupRequest::WithCapacity
CreateRuleGroupRequest & WithCapacity(long long value)
Definition: CreateRuleGroupRequest.h:218
Aws::WAFV2::Model::CustomResponseBody
Definition: CustomResponseBody.h:35
Aws::WAFV2::Model::CreateRuleGroupRequest::AddRules
CreateRuleGroupRequest & AddRules(Rule &&value)
Definition: CreateRuleGroupRequest.h:324
Aws::WAFV2::Model::CreateRuleGroupRequest::AddCustomResponseBodies
CreateRuleGroupRequest & AddCustomResponseBodies(const Aws::String &key, CustomResponseBody &&value)
Definition: CreateRuleGroupRequest.h:565
Aws::WAFV2::Model::CreateRuleGroupRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateRuleGroupRequest.h:224
Aws::WAFV2::Model::CreateRuleGroupRequest::WithTags
CreateRuleGroupRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateRuleGroupRequest.h:387
AWSString.h
Aws::WAFV2::Model::CreateRuleGroupRequest::AddTags
CreateRuleGroupRequest & AddTags(const Tag &value)
Definition: CreateRuleGroupRequest.h:397
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:124
Aws::WAFV2::Model::CreateRuleGroupRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateRuleGroupRequest.h:377
Aws::WAFV2::Model::CreateRuleGroupRequest::GetRules
const Aws::Vector< Rule > & GetRules() const
Definition: CreateRuleGroupRequest.h:268
Aws::WAFV2::Model::CreateRuleGroupRequest::WithVisibilityConfig
CreateRuleGroupRequest & WithVisibilityConfig(const VisibilityConfig &value)
Definition: CreateRuleGroupRequest.h:355
Aws::WAFV2::Model::CreateRuleGroupRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateRuleGroupRequest.h:229
Aws::WAFV2::Model::CreateRuleGroupRequest::SetScope
void SetScope(Scope &&value)
Definition: CreateRuleGroupRequest.h:135
Aws::WAFV2::Model::CreateRuleGroupRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateRuleGroupRequest.h:239
Aws::WAFV2::Model::CreateRuleGroupRequest::WithDescription
CreateRuleGroupRequest & WithDescription(const char *value)
Definition: CreateRuleGroupRequest.h:259
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::CreateRuleGroupRequest::SetCustomResponseBodies
void SetCustomResponseBodies(Aws::Map< Aws::String, CustomResponseBody > &&value)
Definition: CreateRuleGroupRequest.h:475
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:372
Aws::WAFV2::Model::CreateRuleGroupRequest::SetVisibilityConfig
void SetVisibilityConfig(const VisibilityConfig &value)
Definition: CreateRuleGroupRequest.h:343
Aws::WAFV2::Model::CreateRuleGroupRequest::CreateRuleGroupRequest
CreateRuleGroupRequest()
Aws::WAFV2::Model::CreateRuleGroupRequest::SetCapacity
void SetCapacity(long long value)
Definition: CreateRuleGroupRequest.h:203
Aws::WAFV2::Model::CreateRuleGroupRequest::VisibilityConfigHasBeenSet
bool VisibilityConfigHasBeenSet() const
Definition: CreateRuleGroupRequest.h:337
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:300
Aws::WAFV2::Model::CreateRuleGroupRequest::WithRules
CreateRuleGroupRequest & WithRules(Aws::Vector< Rule > &&value)
Definition: CreateRuleGroupRequest.h:308
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:511
Aws::WAFV2::Model::CreateRuleGroupRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateRuleGroupRequest.h:367
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:173
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:157
Aws::WAFV2::Model::CreateRuleGroupRequest::AddTags
CreateRuleGroupRequest & AddTags(Tag &&value)
Definition: CreateRuleGroupRequest.h:402