AWS SDK for C++  1.9.129
AWS SDK for C++
UpdateRateBasedRuleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace WAFRegional
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 "UpdateRateBasedRule"; }
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 UpdateRateBasedRuleRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
80 
86  inline UpdateRateBasedRuleRequest& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
87 
93  inline UpdateRateBasedRuleRequest& 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 UpdateRateBasedRuleRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
125 
129  inline UpdateRateBasedRuleRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
130 
134  inline UpdateRateBasedRuleRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
135 
136 
141  inline const Aws::Vector<RuleUpdate>& GetUpdates() const{ return m_updates; }
142 
147  inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
148 
153  inline void SetUpdates(const Aws::Vector<RuleUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
154 
159  inline void SetUpdates(Aws::Vector<RuleUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
160 
165  inline UpdateRateBasedRuleRequest& WithUpdates(const Aws::Vector<RuleUpdate>& value) { SetUpdates(value); return *this;}
166 
171  inline UpdateRateBasedRuleRequest& WithUpdates(Aws::Vector<RuleUpdate>&& value) { SetUpdates(std::move(value)); return *this;}
172 
177  inline UpdateRateBasedRuleRequest& AddUpdates(const RuleUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
178 
183  inline UpdateRateBasedRuleRequest& AddUpdates(RuleUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
184 
185 
193  inline long long GetRateLimit() const{ return m_rateLimit; }
194 
202  inline bool RateLimitHasBeenSet() const { return m_rateLimitHasBeenSet; }
203 
211  inline void SetRateLimit(long long value) { m_rateLimitHasBeenSet = true; m_rateLimit = value; }
212 
220  inline UpdateRateBasedRuleRequest& WithRateLimit(long long value) { SetRateLimit(value); return *this;}
221 
222  private:
223 
224  Aws::String m_ruleId;
225  bool m_ruleIdHasBeenSet;
226 
227  Aws::String m_changeToken;
228  bool m_changeTokenHasBeenSet;
229 
230  Aws::Vector<RuleUpdate> m_updates;
231  bool m_updatesHasBeenSet;
232 
233  long long m_rateLimit;
234  bool m_rateLimitHasBeenSet;
235  };
236 
237 } // namespace Model
238 } // namespace WAFRegional
239 } // namespace Aws
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::SetChangeToken
void SetChangeToken(const char *value)
Definition: UpdateRateBasedRuleRequest.h:119
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateRateBasedRuleRequest.h:32
Aws::WAFRegional::WAFRegionalRequest
Definition: WAFRegionalRequest.h:17
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::WithChangeToken
UpdateRateBasedRuleRequest & WithChangeToken(const Aws::String &value)
Definition: UpdateRateBasedRuleRequest.h:124
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::WithChangeToken
UpdateRateBasedRuleRequest & WithChangeToken(const char *value)
Definition: UpdateRateBasedRuleRequest.h:134
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::SetUpdates
void SetUpdates(const Aws::Vector< RuleUpdate > &value)
Definition: UpdateRateBasedRuleRequest.h:153
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::RuleIdHasBeenSet
bool RuleIdHasBeenSet() const
Definition: UpdateRateBasedRuleRequest.h:51
AWS_WAFREGIONAL_API
#define AWS_WAFREGIONAL_API
Definition: WAFRegional_EXPORTS.h:28
WAFRegionalRequest.h
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::WithRuleId
UpdateRateBasedRuleRequest & WithRuleId(const char *value)
Definition: UpdateRateBasedRuleRequest.h:93
AWSVector.h
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::GetRateLimit
long long GetRateLimit() const
Definition: UpdateRateBasedRuleRequest.h:193
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::WithUpdates
UpdateRateBasedRuleRequest & WithUpdates(Aws::Vector< RuleUpdate > &&value)
Definition: UpdateRateBasedRuleRequest.h:171
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::WithRuleId
UpdateRateBasedRuleRequest & WithRuleId(Aws::String &&value)
Definition: UpdateRateBasedRuleRequest.h:86
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::SetChangeToken
void SetChangeToken(Aws::String &&value)
Definition: UpdateRateBasedRuleRequest.h:114
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::UpdateRateBasedRuleRequest
UpdateRateBasedRuleRequest()
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::SetRuleId
void SetRuleId(const Aws::String &value)
Definition: UpdateRateBasedRuleRequest.h:58
RuleUpdate.h
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest
Definition: UpdateRateBasedRuleRequest.h:24
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::GetChangeToken
const Aws::String & GetChangeToken() const
Definition: UpdateRateBasedRuleRequest.h:99
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::AddUpdates
UpdateRateBasedRuleRequest & AddUpdates(const RuleUpdate &value)
Definition: UpdateRateBasedRuleRequest.h:177
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::UpdatesHasBeenSet
bool UpdatesHasBeenSet() const
Definition: UpdateRateBasedRuleRequest.h:147
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::WithRuleId
UpdateRateBasedRuleRequest & WithRuleId(const Aws::String &value)
Definition: UpdateRateBasedRuleRequest.h:79
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::WithChangeToken
UpdateRateBasedRuleRequest & WithChangeToken(Aws::String &&value)
Definition: UpdateRateBasedRuleRequest.h:129
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::WithRateLimit
UpdateRateBasedRuleRequest & WithRateLimit(long long value)
Definition: UpdateRateBasedRuleRequest.h:220
AWSString.h
WAFRegional_EXPORTS.h
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::SetChangeToken
void SetChangeToken(const Aws::String &value)
Definition: UpdateRateBasedRuleRequest.h:109
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::SetRuleId
void SetRuleId(const char *value)
Definition: UpdateRateBasedRuleRequest.h:72
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::RateLimitHasBeenSet
bool RateLimitHasBeenSet() const
Definition: UpdateRateBasedRuleRequest.h:202
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::AddUpdates
UpdateRateBasedRuleRequest & AddUpdates(RuleUpdate &&value)
Definition: UpdateRateBasedRuleRequest.h:183
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::SetRateLimit
void SetRateLimit(long long value)
Definition: UpdateRateBasedRuleRequest.h:211
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::GetUpdates
const Aws::Vector< RuleUpdate > & GetUpdates() const
Definition: UpdateRateBasedRuleRequest.h:141
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::GetRuleId
const Aws::String & GetRuleId() const
Definition: UpdateRateBasedRuleRequest.h:44
Aws
Definition: AccessManagementClient.h:15
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::SetUpdates
void SetUpdates(Aws::Vector< RuleUpdate > &&value)
Definition: UpdateRateBasedRuleRequest.h:159
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFRegional::Model::RuleUpdate
Definition: RuleUpdate.h:43
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::WithUpdates
UpdateRateBasedRuleRequest & WithUpdates(const Aws::Vector< RuleUpdate > &value)
Definition: UpdateRateBasedRuleRequest.h:165
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::SetRuleId
void SetRuleId(Aws::String &&value)
Definition: UpdateRateBasedRuleRequest.h:65
Aws::WAFRegional::Model::UpdateRateBasedRuleRequest::ChangeTokenHasBeenSet
bool ChangeTokenHasBeenSet() const
Definition: UpdateRateBasedRuleRequest.h:104