AWS SDK for C++  1.9.123
AWS SDK for C++
UpdateRuleGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/waf/WAF_EXPORTS.h>
8 #include <aws/waf/WAFRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace WAF
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "UpdateRuleGroup"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
44  inline const Aws::String& GetRuleGroupId() const{ return m_ruleGroupId; }
45 
51  inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
52 
58  inline void SetRuleGroupId(const Aws::String& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = value; }
59 
65  inline void SetRuleGroupId(Aws::String&& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = std::move(value); }
66 
72  inline void SetRuleGroupId(const char* value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId.assign(value); }
73 
79  inline UpdateRuleGroupRequest& WithRuleGroupId(const Aws::String& value) { SetRuleGroupId(value); return *this;}
80 
86  inline UpdateRuleGroupRequest& WithRuleGroupId(Aws::String&& value) { SetRuleGroupId(std::move(value)); return *this;}
87 
93  inline UpdateRuleGroupRequest& WithRuleGroupId(const char* value) { SetRuleGroupId(value); return *this;}
94 
95 
106  inline const Aws::Vector<RuleGroupUpdate>& GetUpdates() const{ return m_updates; }
107 
118  inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
119 
130  inline void SetUpdates(const Aws::Vector<RuleGroupUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
131 
142  inline void SetUpdates(Aws::Vector<RuleGroupUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
143 
154  inline UpdateRuleGroupRequest& WithUpdates(const Aws::Vector<RuleGroupUpdate>& value) { SetUpdates(value); return *this;}
155 
166  inline UpdateRuleGroupRequest& WithUpdates(Aws::Vector<RuleGroupUpdate>&& value) { SetUpdates(std::move(value)); return *this;}
167 
178  inline UpdateRuleGroupRequest& AddUpdates(const RuleGroupUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
179 
190  inline UpdateRuleGroupRequest& AddUpdates(RuleGroupUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
191 
192 
196  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
197 
201  inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
202 
206  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
207 
211  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
212 
216  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
217 
221  inline UpdateRuleGroupRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
222 
226  inline UpdateRuleGroupRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
227 
231  inline UpdateRuleGroupRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
232 
233  private:
234 
235  Aws::String m_ruleGroupId;
236  bool m_ruleGroupIdHasBeenSet;
237 
239  bool m_updatesHasBeenSet;
240 
241  Aws::String m_changeToken;
242  bool m_changeTokenHasBeenSet;
243  };
244 
245 } // namespace Model
246 } // namespace WAF
247 } // namespace Aws
Aws::WAF::Model::UpdateRuleGroupRequest::GetUpdates
const Aws::Vector< RuleGroupUpdate > & GetUpdates() const
Definition: UpdateRuleGroupRequest.h:106
Aws::WAF::Model::UpdateRuleGroupRequest::WithRuleGroupId
UpdateRuleGroupRequest & WithRuleGroupId(Aws::String &&value)
Definition: UpdateRuleGroupRequest.h:86
Aws::WAF::Model::UpdateRuleGroupRequest
Definition: UpdateRuleGroupRequest.h:24
Aws::WAF::Model::UpdateRuleGroupRequest::SetChangeToken
void SetChangeToken(const char *value)
Definition: UpdateRuleGroupRequest.h:216
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAF::Model::UpdateRuleGroupRequest::SetRuleGroupId
void SetRuleGroupId(Aws::String &&value)
Definition: UpdateRuleGroupRequest.h:65
Aws::WAF::Model::UpdateRuleGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateRuleGroupRequest.h:32
Aws::WAF::Model::RuleGroupUpdate
Definition: RuleGroupUpdate.h:43
Aws::WAF::Model::UpdateRuleGroupRequest::SetChangeToken
void SetChangeToken(const Aws::String &value)
Definition: UpdateRuleGroupRequest.h:206
Aws::WAF::Model::UpdateRuleGroupRequest::AddUpdates
UpdateRuleGroupRequest & AddUpdates(RuleGroupUpdate &&value)
Definition: UpdateRuleGroupRequest.h:190
Aws::WAF::Model::UpdateRuleGroupRequest::SetRuleGroupId
void SetRuleGroupId(const Aws::String &value)
Definition: UpdateRuleGroupRequest.h:58
Aws::WAF::Model::UpdateRuleGroupRequest::WithRuleGroupId
UpdateRuleGroupRequest & WithRuleGroupId(const char *value)
Definition: UpdateRuleGroupRequest.h:93
Aws::WAF::Model::UpdateRuleGroupRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAF::Model::UpdateRuleGroupRequest::WithChangeToken
UpdateRuleGroupRequest & WithChangeToken(const char *value)
Definition: UpdateRuleGroupRequest.h:231
Aws::WAF::Model::UpdateRuleGroupRequest::WithChangeToken
UpdateRuleGroupRequest & WithChangeToken(Aws::String &&value)
Definition: UpdateRuleGroupRequest.h:226
AWSVector.h
Aws::WAF::Model::UpdateRuleGroupRequest::ChangeTokenHasBeenSet
bool ChangeTokenHasBeenSet() const
Definition: UpdateRuleGroupRequest.h:201
Aws::WAF::Model::UpdateRuleGroupRequest::UpdatesHasBeenSet
bool UpdatesHasBeenSet() const
Definition: UpdateRuleGroupRequest.h:118
Aws::WAF::Model::UpdateRuleGroupRequest::SetRuleGroupId
void SetRuleGroupId(const char *value)
Definition: UpdateRuleGroupRequest.h:72
RuleGroupUpdate.h
AWSString.h
Aws::WAF::Model::UpdateRuleGroupRequest::WithChangeToken
UpdateRuleGroupRequest & WithChangeToken(const Aws::String &value)
Definition: UpdateRuleGroupRequest.h:221
Aws::WAF::Model::UpdateRuleGroupRequest::UpdateRuleGroupRequest
UpdateRuleGroupRequest()
WAF_EXPORTS.h
WAFRequest.h
Aws::WAF::Model::UpdateRuleGroupRequest::GetRuleGroupId
const Aws::String & GetRuleGroupId() const
Definition: UpdateRuleGroupRequest.h:44
Aws
Definition: AccessManagementClient.h:15
Aws::WAF::Model::UpdateRuleGroupRequest::WithUpdates
UpdateRuleGroupRequest & WithUpdates(Aws::Vector< RuleGroupUpdate > &&value)
Definition: UpdateRuleGroupRequest.h:166
Aws::WAF::Model::UpdateRuleGroupRequest::AddUpdates
UpdateRuleGroupRequest & AddUpdates(const RuleGroupUpdate &value)
Definition: UpdateRuleGroupRequest.h:178
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAF::Model::UpdateRuleGroupRequest::WithUpdates
UpdateRuleGroupRequest & WithUpdates(const Aws::Vector< RuleGroupUpdate > &value)
Definition: UpdateRuleGroupRequest.h:154
Aws::WAF::Model::UpdateRuleGroupRequest::RuleGroupIdHasBeenSet
bool RuleGroupIdHasBeenSet() const
Definition: UpdateRuleGroupRequest.h:51
Aws::WAF::Model::UpdateRuleGroupRequest::GetChangeToken
const Aws::String & GetChangeToken() const
Definition: UpdateRuleGroupRequest.h:196
Aws::WAF::Model::UpdateRuleGroupRequest::SetUpdates
void SetUpdates(const Aws::Vector< RuleGroupUpdate > &value)
Definition: UpdateRuleGroupRequest.h:130
Aws::WAF::Model::UpdateRuleGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAF::WAFRequest
Definition: WAFRequest.h:17
Aws::WAF::Model::UpdateRuleGroupRequest::SetUpdates
void SetUpdates(Aws::Vector< RuleGroupUpdate > &&value)
Definition: UpdateRuleGroupRequest.h:142
Aws::WAF::Model::UpdateRuleGroupRequest::SetChangeToken
void SetChangeToken(Aws::String &&value)
Definition: UpdateRuleGroupRequest.h:211
Aws::WAF::Model::UpdateRuleGroupRequest::WithRuleGroupId
UpdateRuleGroupRequest & WithRuleGroupId(const Aws::String &value)
Definition: UpdateRuleGroupRequest.h:79