AWS SDK for C++  1.9.72
AWS SDK for C++
UpdateRuleRequest.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 "UpdateRule"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
44  inline const Aws::String& GetRuleId() const{ return m_ruleId; }
45 
51  inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
52 
58  inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
59 
65  inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
66 
72  inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
73 
79  inline UpdateRuleRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
80 
86  inline UpdateRuleRequest& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
87 
93  inline UpdateRuleRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;}
94 
95 
99  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
100 
104  inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
105 
109  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
110 
114  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
115 
119  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
120 
124  inline UpdateRuleRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
125 
129  inline UpdateRuleRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
130 
134  inline UpdateRuleRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
135 
136 
146  inline const Aws::Vector<RuleUpdate>& GetUpdates() const{ return m_updates; }
147 
157  inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
158 
168  inline void SetUpdates(const Aws::Vector<RuleUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
169 
179  inline void SetUpdates(Aws::Vector<RuleUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
180 
190  inline UpdateRuleRequest& WithUpdates(const Aws::Vector<RuleUpdate>& value) { SetUpdates(value); return *this;}
191 
201  inline UpdateRuleRequest& WithUpdates(Aws::Vector<RuleUpdate>&& value) { SetUpdates(std::move(value)); return *this;}
202 
212  inline UpdateRuleRequest& AddUpdates(const RuleUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
213 
223  inline UpdateRuleRequest& AddUpdates(RuleUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
224 
225  private:
226 
227  Aws::String m_ruleId;
228  bool m_ruleIdHasBeenSet;
229 
230  Aws::String m_changeToken;
231  bool m_changeTokenHasBeenSet;
232 
233  Aws::Vector<RuleUpdate> m_updates;
234  bool m_updatesHasBeenSet;
235  };
236 
237 } // namespace Model
238 } // namespace WAF
239 } // namespace Aws
Aws::WAF::Model::UpdateRuleRequest::WithRuleId
UpdateRuleRequest & WithRuleId(const Aws::String &value)
Definition: UpdateRuleRequest.h:79
Aws::WAF::Model::UpdateRuleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateRuleRequest.h:32
Aws::WAF::Model::UpdateRuleRequest::RuleIdHasBeenSet
bool RuleIdHasBeenSet() const
Definition: UpdateRuleRequest.h:51
Aws::WAF::Model::UpdateRuleRequest::WithRuleId
UpdateRuleRequest & WithRuleId(const char *value)
Definition: UpdateRuleRequest.h:93
Aws::WAF::Model::UpdateRuleRequest::GetUpdates
const Aws::Vector< RuleUpdate > & GetUpdates() const
Definition: UpdateRuleRequest.h:146
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAF::Model::UpdateRuleRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAF::Model::UpdateRuleRequest::SetChangeToken
void SetChangeToken(const char *value)
Definition: UpdateRuleRequest.h:119
Aws::WAF::Model::UpdateRuleRequest::AddUpdates
UpdateRuleRequest & AddUpdates(const RuleUpdate &value)
Definition: UpdateRuleRequest.h:212
Aws::WAF::Model::UpdateRuleRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAF::Model::UpdateRuleRequest::GetRuleId
const Aws::String & GetRuleId() const
Definition: UpdateRuleRequest.h:44
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::WAF::Model::UpdateRuleRequest::SetUpdates
void SetUpdates(const Aws::Vector< RuleUpdate > &value)
Definition: UpdateRuleRequest.h:168
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAF::Model::UpdateRuleRequest::WithChangeToken
UpdateRuleRequest & WithChangeToken(Aws::String &&value)
Definition: UpdateRuleRequest.h:129
AWSVector.h
Aws::WAF::Model::UpdateRuleRequest::ChangeTokenHasBeenSet
bool ChangeTokenHasBeenSet() const
Definition: UpdateRuleRequest.h:104
Aws::WAF::Model::UpdateRuleRequest::WithUpdates
UpdateRuleRequest & WithUpdates(const Aws::Vector< RuleUpdate > &value)
Definition: UpdateRuleRequest.h:190
Aws::WAF::Model::UpdateRuleRequest::SetChangeToken
void SetChangeToken(const Aws::String &value)
Definition: UpdateRuleRequest.h:109
Aws::WAF::Model::UpdateRuleRequest::WithUpdates
UpdateRuleRequest & WithUpdates(Aws::Vector< RuleUpdate > &&value)
Definition: UpdateRuleRequest.h:201
Aws::WAF::Model::UpdateRuleRequest::UpdatesHasBeenSet
bool UpdatesHasBeenSet() const
Definition: UpdateRuleRequest.h:157
Aws::WAF::Model::UpdateRuleRequest::SetUpdates
void SetUpdates(Aws::Vector< RuleUpdate > &&value)
Definition: UpdateRuleRequest.h:179
Aws::WAF::Model::UpdateRuleRequest::SetRuleId
void SetRuleId(const char *value)
Definition: UpdateRuleRequest.h:72
Aws::WAF::Model::UpdateRuleRequest::SetRuleId
void SetRuleId(Aws::String &&value)
Definition: UpdateRuleRequest.h:65
Aws::WAF::Model::UpdateRuleRequest::AddUpdates
UpdateRuleRequest & AddUpdates(RuleUpdate &&value)
Definition: UpdateRuleRequest.h:223
Aws::WAF::Model::UpdateRuleRequest::WithChangeToken
UpdateRuleRequest & WithChangeToken(const char *value)
Definition: UpdateRuleRequest.h:134
Aws::WAF::Model::UpdateRuleRequest
Definition: UpdateRuleRequest.h:24
AWSString.h
Aws::WAF::Model::UpdateRuleRequest::WithRuleId
UpdateRuleRequest & WithRuleId(Aws::String &&value)
Definition: UpdateRuleRequest.h:86
WAF_EXPORTS.h
Aws::WAF::Model::RuleUpdate
Definition: RuleUpdate.h:43
WAFRequest.h
Aws::WAF::Model::UpdateRuleRequest::GetChangeToken
const Aws::String & GetChangeToken() const
Definition: UpdateRuleRequest.h:99
Aws::WAF::Model::UpdateRuleRequest::WithChangeToken
UpdateRuleRequest & WithChangeToken(const Aws::String &value)
Definition: UpdateRuleRequest.h:124
Aws
Definition: AccessManagementClient.h:15
Aws::WAF::Model::UpdateRuleRequest::UpdateRuleRequest
UpdateRuleRequest()
Aws::WAF::Model::UpdateRuleRequest::SetChangeToken
void SetChangeToken(Aws::String &&value)
Definition: UpdateRuleRequest.h:114
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAF::Model::UpdateRuleRequest::SetRuleId
void SetRuleId(const Aws::String &value)
Definition: UpdateRuleRequest.h:58
RuleUpdate.h
Aws::WAF::WAFRequest
Definition: WAFRequest.h:17