AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateRuleGroupRequest.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/CustomResponseBody.h>
16#include <utility>
17
18namespace Aws
19{
20namespace WAFV2
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_WAFV2_API UpdateRuleGroupRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateRuleGroup"; }
37
38 AWS_WAFV2_API Aws::String SerializePayload() const override;
39
41
42
44
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline UpdateRuleGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline UpdateRuleGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline UpdateRuleGroupRequest& WithName(const char* value) { SetName(value); return *this;}
57
59
70 inline const Scope& GetScope() const{ return m_scope; }
71 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
72 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
73 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
74 inline UpdateRuleGroupRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
75 inline UpdateRuleGroupRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
77
79
84 inline const Aws::String& GetId() const{ return m_id; }
85 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
86 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
87 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
88 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
89 inline UpdateRuleGroupRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
90 inline UpdateRuleGroupRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
91 inline UpdateRuleGroupRequest& WithId(const char* value) { SetId(value); return *this;}
93
95
98 inline const Aws::String& GetDescription() const{ return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
101 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
102 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
103 inline UpdateRuleGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
104 inline UpdateRuleGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
105 inline UpdateRuleGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
107
109
114 inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
115 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
116 inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
117 inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
118 inline UpdateRuleGroupRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
119 inline UpdateRuleGroupRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
120 inline UpdateRuleGroupRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
121 inline UpdateRuleGroupRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
123
125
129 inline const VisibilityConfig& GetVisibilityConfig() const{ return m_visibilityConfig; }
130 inline bool VisibilityConfigHasBeenSet() const { return m_visibilityConfigHasBeenSet; }
131 inline void SetVisibilityConfig(const VisibilityConfig& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = value; }
132 inline void SetVisibilityConfig(VisibilityConfig&& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = std::move(value); }
134 inline UpdateRuleGroupRequest& WithVisibilityConfig(VisibilityConfig&& value) { SetVisibilityConfig(std::move(value)); return *this;}
136
138
148 inline const Aws::String& GetLockToken() const{ return m_lockToken; }
149 inline bool LockTokenHasBeenSet() const { return m_lockTokenHasBeenSet; }
150 inline void SetLockToken(const Aws::String& value) { m_lockTokenHasBeenSet = true; m_lockToken = value; }
151 inline void SetLockToken(Aws::String&& value) { m_lockTokenHasBeenSet = true; m_lockToken = std::move(value); }
152 inline void SetLockToken(const char* value) { m_lockTokenHasBeenSet = true; m_lockToken.assign(value); }
153 inline UpdateRuleGroupRequest& WithLockToken(const Aws::String& value) { SetLockToken(value); return *this;}
154 inline UpdateRuleGroupRequest& WithLockToken(Aws::String&& value) { SetLockToken(std::move(value)); return *this;}
155 inline UpdateRuleGroupRequest& WithLockToken(const char* value) { SetLockToken(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 UpdateRuleGroupRequest& AddCustomResponseBodies(const Aws::String& key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, value); return *this; }
179 inline UpdateRuleGroupRequest& AddCustomResponseBodies(Aws::String&& key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(std::move(key), value); return *this; }
180 inline UpdateRuleGroupRequest& AddCustomResponseBodies(const Aws::String& key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, std::move(value)); return *this; }
181 inline UpdateRuleGroupRequest& AddCustomResponseBodies(Aws::String&& key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(std::move(key), std::move(value)); return *this; }
182 inline UpdateRuleGroupRequest& AddCustomResponseBodies(const char* key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, std::move(value)); return *this; }
183 inline UpdateRuleGroupRequest& 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 Aws::String m_id;
194 bool m_idHasBeenSet = 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::String m_lockToken;
206 bool m_lockTokenHasBeenSet = 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
UpdateRuleGroupRequest & WithRules(Aws::Vector< Rule > &&value)
void SetRules(const Aws::Vector< Rule > &value)
UpdateRuleGroupRequest & WithLockToken(const char *value)
UpdateRuleGroupRequest & WithVisibilityConfig(VisibilityConfig &&value)
UpdateRuleGroupRequest & WithName(const Aws::String &value)
void SetVisibilityConfig(VisibilityConfig &&value)
UpdateRuleGroupRequest & WithDescription(Aws::String &&value)
UpdateRuleGroupRequest & WithCustomResponseBodies(const Aws::Map< Aws::String, CustomResponseBody > &value)
const VisibilityConfig & GetVisibilityConfig() const
UpdateRuleGroupRequest & AddCustomResponseBodies(Aws::String &&key, const CustomResponseBody &value)
UpdateRuleGroupRequest & AddCustomResponseBodies(const Aws::String &key, const CustomResponseBody &value)
AWS_WAFV2_API Aws::String SerializePayload() const override
UpdateRuleGroupRequest & WithScope(Scope &&value)
const Aws::Map< Aws::String, CustomResponseBody > & GetCustomResponseBodies() const
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Rule > & GetRules() const
UpdateRuleGroupRequest & WithName(const char *value)
UpdateRuleGroupRequest & AddRules(const Rule &value)
void SetCustomResponseBodies(const Aws::Map< Aws::String, CustomResponseBody > &value)
void SetCustomResponseBodies(Aws::Map< Aws::String, CustomResponseBody > &&value)
UpdateRuleGroupRequest & WithName(Aws::String &&value)
UpdateRuleGroupRequest & WithId(const Aws::String &value)
UpdateRuleGroupRequest & AddCustomResponseBodies(const Aws::String &key, CustomResponseBody &&value)
UpdateRuleGroupRequest & WithLockToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateRuleGroupRequest & WithDescription(const char *value)
UpdateRuleGroupRequest & AddCustomResponseBodies(Aws::String &&key, CustomResponseBody &&value)
UpdateRuleGroupRequest & WithId(Aws::String &&value)
UpdateRuleGroupRequest & AddCustomResponseBodies(const char *key, const CustomResponseBody &value)
UpdateRuleGroupRequest & WithId(const char *value)
UpdateRuleGroupRequest & WithScope(const Scope &value)
UpdateRuleGroupRequest & WithVisibilityConfig(const VisibilityConfig &value)
UpdateRuleGroupRequest & WithRules(const Aws::Vector< Rule > &value)
UpdateRuleGroupRequest & WithCustomResponseBodies(Aws::Map< Aws::String, CustomResponseBody > &&value)
void SetRules(Aws::Vector< Rule > &&value)
void SetVisibilityConfig(const VisibilityConfig &value)
UpdateRuleGroupRequest & AddCustomResponseBodies(const char *key, CustomResponseBody &&value)
UpdateRuleGroupRequest & WithLockToken(Aws::String &&value)
UpdateRuleGroupRequest & WithDescription(const Aws::String &value)
UpdateRuleGroupRequest & AddRules(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