AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateRateBasedRuleRequest.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/waf/WAFRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/waf/model/RuleUpdate.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WAF
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WAF_API UpdateRateBasedRuleRequest() = default;
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_WAF_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::String& GetRuleId() const { return m_ruleId; }
46 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
47 template<typename RuleIdT = Aws::String>
48 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::forward<RuleIdT>(value); }
49 template<typename RuleIdT = Aws::String>
50 UpdateRateBasedRuleRequest& WithRuleId(RuleIdT&& value) { SetRuleId(std::forward<RuleIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetChangeToken() const { return m_changeToken; }
58 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
59 template<typename ChangeTokenT = Aws::String>
60 void SetChangeToken(ChangeTokenT&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::forward<ChangeTokenT>(value); }
61 template<typename ChangeTokenT = Aws::String>
62 UpdateRateBasedRuleRequest& WithChangeToken(ChangeTokenT&& value) { SetChangeToken(std::forward<ChangeTokenT>(value)); return *this;}
64
66
70 inline const Aws::Vector<RuleUpdate>& GetUpdates() const { return m_updates; }
71 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
72 template<typename UpdatesT = Aws::Vector<RuleUpdate>>
73 void SetUpdates(UpdatesT&& value) { m_updatesHasBeenSet = true; m_updates = std::forward<UpdatesT>(value); }
74 template<typename UpdatesT = Aws::Vector<RuleUpdate>>
75 UpdateRateBasedRuleRequest& WithUpdates(UpdatesT&& value) { SetUpdates(std::forward<UpdatesT>(value)); return *this;}
76 template<typename UpdatesT = RuleUpdate>
77 UpdateRateBasedRuleRequest& AddUpdates(UpdatesT&& value) { m_updatesHasBeenSet = true; m_updates.emplace_back(std::forward<UpdatesT>(value)); return *this; }
79
81
88 inline long long GetRateLimit() const { return m_rateLimit; }
89 inline bool RateLimitHasBeenSet() const { return m_rateLimitHasBeenSet; }
90 inline void SetRateLimit(long long value) { m_rateLimitHasBeenSet = true; m_rateLimit = value; }
91 inline UpdateRateBasedRuleRequest& WithRateLimit(long long value) { SetRateLimit(value); return *this;}
93 private:
94
95 Aws::String m_ruleId;
96 bool m_ruleIdHasBeenSet = false;
97
98 Aws::String m_changeToken;
99 bool m_changeTokenHasBeenSet = false;
100
101 Aws::Vector<RuleUpdate> m_updates;
102 bool m_updatesHasBeenSet = false;
103
104 long long m_rateLimit{0};
105 bool m_rateLimitHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace WAF
110} // 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