AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRuleGroupRequest.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/WAFV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/wafv2/model/Scope.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/wafv2/model/VisibilityConfig.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/wafv2/model/Rule.h>
15#include <aws/wafv2/model/Tag.h>
16#include <aws/wafv2/model/CustomResponseBody.h>
17#include <utility>
18
19namespace Aws
20{
21namespace WAFV2
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_WAFV2_API CreateRuleGroupRequest();
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_WAFV2_API Aws::String SerializePayload() const override;
40
42
43
45
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline CreateRuleGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline CreateRuleGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline CreateRuleGroupRequest& WithName(const char* value) { SetName(value); return *this;}
58
60
71 inline const Scope& GetScope() const{ return m_scope; }
72 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
73 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
74 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
75 inline CreateRuleGroupRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
76 inline CreateRuleGroupRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
78
80
95 inline long long GetCapacity() const{ return m_capacity; }
96 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
97 inline void SetCapacity(long long value) { m_capacityHasBeenSet = true; m_capacity = value; }
98 inline CreateRuleGroupRequest& WithCapacity(long long value) { SetCapacity(value); return *this;}
100
102
105 inline const Aws::String& GetDescription() const{ return m_description; }
106 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
107 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
108 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
109 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
110 inline CreateRuleGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
111 inline CreateRuleGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
112 inline CreateRuleGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
114
116
121 inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
122 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
123 inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
124 inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
125 inline CreateRuleGroupRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
126 inline CreateRuleGroupRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
127 inline CreateRuleGroupRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
128 inline CreateRuleGroupRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
130
132
136 inline const VisibilityConfig& GetVisibilityConfig() const{ return m_visibilityConfig; }
137 inline bool VisibilityConfigHasBeenSet() const { return m_visibilityConfigHasBeenSet; }
138 inline void SetVisibilityConfig(const VisibilityConfig& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = value; }
139 inline void SetVisibilityConfig(VisibilityConfig&& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = std::move(value); }
141 inline CreateRuleGroupRequest& WithVisibilityConfig(VisibilityConfig&& value) { SetVisibilityConfig(std::move(value)); return *this;}
143
145
148 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
151 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
152 inline CreateRuleGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
153 inline CreateRuleGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
154 inline CreateRuleGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
155 inline CreateRuleGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
157
159
172 inline const Aws::Map<Aws::String, CustomResponseBody>& GetCustomResponseBodies() const{ return m_customResponseBodies; }
173 inline bool CustomResponseBodiesHasBeenSet() const { return m_customResponseBodiesHasBeenSet; }
174 inline void SetCustomResponseBodies(const Aws::Map<Aws::String, CustomResponseBody>& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies = value; }
175 inline void SetCustomResponseBodies(Aws::Map<Aws::String, CustomResponseBody>&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies = std::move(value); }
178 inline CreateRuleGroupRequest& AddCustomResponseBodies(const Aws::String& key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, value); return *this; }
179 inline CreateRuleGroupRequest& AddCustomResponseBodies(Aws::String&& key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(std::move(key), value); return *this; }
180 inline CreateRuleGroupRequest& AddCustomResponseBodies(const Aws::String& key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, std::move(value)); return *this; }
181 inline CreateRuleGroupRequest& AddCustomResponseBodies(Aws::String&& key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(std::move(key), std::move(value)); return *this; }
182 inline CreateRuleGroupRequest& AddCustomResponseBodies(const char* key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, std::move(value)); return *this; }
183 inline CreateRuleGroupRequest& AddCustomResponseBodies(const char* key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, value); return *this; }
185 private:
186
187 Aws::String m_name;
188 bool m_nameHasBeenSet = false;
189
190 Scope m_scope;
191 bool m_scopeHasBeenSet = false;
192
193 long long m_capacity;
194 bool m_capacityHasBeenSet = false;
195
196 Aws::String m_description;
197 bool m_descriptionHasBeenSet = false;
198
199 Aws::Vector<Rule> m_rules;
200 bool m_rulesHasBeenSet = false;
201
202 VisibilityConfig m_visibilityConfig;
203 bool m_visibilityConfigHasBeenSet = false;
204
205 Aws::Vector<Tag> m_tags;
206 bool m_tagsHasBeenSet = false;
207
208 Aws::Map<Aws::String, CustomResponseBody> m_customResponseBodies;
209 bool m_customResponseBodiesHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace WAFV2
214} // namespace Aws
CreateRuleGroupRequest & AddCustomResponseBodies(const char *key, CustomResponseBody &&value)
CreateRuleGroupRequest & WithTags(Aws::Vector< Tag > &&value)
CreateRuleGroupRequest & AddRules(Rule &&value)
void SetVisibilityConfig(const VisibilityConfig &value)
CreateRuleGroupRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_WAFV2_API Aws::String SerializePayload() const override
CreateRuleGroupRequest & AddRules(const Rule &value)
CreateRuleGroupRequest & WithDescription(const Aws::String &value)
CreateRuleGroupRequest & WithScope(Scope &&value)
CreateRuleGroupRequest & AddTags(const Tag &value)
CreateRuleGroupRequest & WithDescription(const char *value)
const VisibilityConfig & GetVisibilityConfig() const
virtual const char * GetServiceRequestName() const override
CreateRuleGroupRequest & WithCapacity(long long value)
CreateRuleGroupRequest & WithName(Aws::String &&value)
const Aws::Vector< Rule > & GetRules() const
CreateRuleGroupRequest & WithVisibilityConfig(const VisibilityConfig &value)
CreateRuleGroupRequest & WithName(const char *value)
CreateRuleGroupRequest & WithCustomResponseBodies(const Aws::Map< Aws::String, CustomResponseBody > &value)
CreateRuleGroupRequest & AddCustomResponseBodies(Aws::String &&key, const CustomResponseBody &value)
const Aws::Map< Aws::String, CustomResponseBody > & GetCustomResponseBodies() const
CreateRuleGroupRequest & AddCustomResponseBodies(const Aws::String &key, const CustomResponseBody &value)
CreateRuleGroupRequest & WithScope(const Scope &value)
CreateRuleGroupRequest & AddCustomResponseBodies(Aws::String &&key, CustomResponseBody &&value)
void SetCustomResponseBodies(const Aws::Map< Aws::String, CustomResponseBody > &value)
CreateRuleGroupRequest & WithName(const Aws::String &value)
void SetRules(Aws::Vector< Rule > &&value)
CreateRuleGroupRequest & AddCustomResponseBodies(const char *key, const CustomResponseBody &value)
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRuleGroupRequest & WithCustomResponseBodies(Aws::Map< Aws::String, CustomResponseBody > &&value)
void SetVisibilityConfig(VisibilityConfig &&value)
CreateRuleGroupRequest & WithRules(const Aws::Vector< Rule > &value)
void SetCustomResponseBodies(Aws::Map< Aws::String, CustomResponseBody > &&value)
CreateRuleGroupRequest & WithRules(Aws::Vector< Rule > &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateRuleGroupRequest & WithVisibilityConfig(VisibilityConfig &&value)
CreateRuleGroupRequest & WithDescription(Aws::String &&value)
CreateRuleGroupRequest & AddCustomResponseBodies(const Aws::String &key, CustomResponseBody &&value)
const Aws::Vector< Tag > & GetTags() const
CreateRuleGroupRequest & AddTags(Tag &&value)
void SetRules(const Aws::Vector< Rule > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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