AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateRateBasedRuleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/waf/WAFRequest.h>
10#include <aws/waf/WAF_EXPORTS.h>
11#include <aws/waf/model/RuleUpdate.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WAF {
17namespace Model {
18
22 public:
23 AWS_WAF_API UpdateRateBasedRuleRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateRateBasedRule"; }
30
31 AWS_WAF_API Aws::String SerializePayload() const override;
32
34
36
41 inline const Aws::String& GetRuleId() const { return m_ruleId; }
42 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
43 template <typename RuleIdT = Aws::String>
44 void SetRuleId(RuleIdT&& value) {
45 m_ruleIdHasBeenSet = true;
46 m_ruleId = std::forward<RuleIdT>(value);
47 }
48 template <typename RuleIdT = Aws::String>
50 SetRuleId(std::forward<RuleIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetChangeToken() const { return m_changeToken; }
60 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
61 template <typename ChangeTokenT = Aws::String>
62 void SetChangeToken(ChangeTokenT&& value) {
63 m_changeTokenHasBeenSet = true;
64 m_changeToken = std::forward<ChangeTokenT>(value);
65 }
66 template <typename ChangeTokenT = Aws::String>
68 SetChangeToken(std::forward<ChangeTokenT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Vector<RuleUpdate>& GetUpdates() const { return m_updates; }
79 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
80 template <typename UpdatesT = Aws::Vector<RuleUpdate>>
81 void SetUpdates(UpdatesT&& value) {
82 m_updatesHasBeenSet = true;
83 m_updates = std::forward<UpdatesT>(value);
84 }
85 template <typename UpdatesT = Aws::Vector<RuleUpdate>>
87 SetUpdates(std::forward<UpdatesT>(value));
88 return *this;
89 }
90 template <typename UpdatesT = RuleUpdate>
92 m_updatesHasBeenSet = true;
93 m_updates.emplace_back(std::forward<UpdatesT>(value));
94 return *this;
95 }
97
99
106 inline long long GetRateLimit() const { return m_rateLimit; }
107 inline bool RateLimitHasBeenSet() const { return m_rateLimitHasBeenSet; }
108 inline void SetRateLimit(long long value) {
109 m_rateLimitHasBeenSet = true;
110 m_rateLimit = value;
111 }
112 inline UpdateRateBasedRuleRequest& WithRateLimit(long long value) {
113 SetRateLimit(value);
114 return *this;
115 }
117 private:
118 Aws::String m_ruleId;
119
120 Aws::String m_changeToken;
121
122 Aws::Vector<RuleUpdate> m_updates;
123
124 long long m_rateLimit{0};
125 bool m_ruleIdHasBeenSet = false;
126 bool m_changeTokenHasBeenSet = false;
127 bool m_updatesHasBeenSet = false;
128 bool m_rateLimitHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace WAF
133} // namespace Aws
AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateRateBasedRuleRequest & WithUpdates(UpdatesT &&value)
virtual const char * GetServiceRequestName() const override
UpdateRateBasedRuleRequest & AddUpdates(UpdatesT &&value)
const Aws::Vector< RuleUpdate > & GetUpdates() const
UpdateRateBasedRuleRequest & WithRateLimit(long long value)
AWS_WAF_API Aws::String SerializePayload() const override
AWS_WAF_API UpdateRateBasedRuleRequest()=default
UpdateRateBasedRuleRequest & WithChangeToken(ChangeTokenT &&value)
UpdateRateBasedRuleRequest & WithRuleId(RuleIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector