AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
48 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
49 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
50 inline UpdateRateBasedRuleRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
51 inline UpdateRateBasedRuleRequest& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
52 inline UpdateRateBasedRuleRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;}
54
56
59 inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
60 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
61 inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
62 inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
63 inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
64 inline UpdateRateBasedRuleRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
65 inline UpdateRateBasedRuleRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
66 inline UpdateRateBasedRuleRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
68
70
74 inline const Aws::Vector<RuleUpdate>& GetUpdates() const{ return m_updates; }
75 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
76 inline void SetUpdates(const Aws::Vector<RuleUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
77 inline void SetUpdates(Aws::Vector<RuleUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
78 inline UpdateRateBasedRuleRequest& WithUpdates(const Aws::Vector<RuleUpdate>& value) { SetUpdates(value); return *this;}
79 inline UpdateRateBasedRuleRequest& WithUpdates(Aws::Vector<RuleUpdate>&& value) { SetUpdates(std::move(value)); return *this;}
80 inline UpdateRateBasedRuleRequest& AddUpdates(const RuleUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
81 inline UpdateRateBasedRuleRequest& AddUpdates(RuleUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
83
85
92 inline long long GetRateLimit() const{ return m_rateLimit; }
93 inline bool RateLimitHasBeenSet() const { return m_rateLimitHasBeenSet; }
94 inline void SetRateLimit(long long value) { m_rateLimitHasBeenSet = true; m_rateLimit = value; }
95 inline UpdateRateBasedRuleRequest& WithRateLimit(long long value) { SetRateLimit(value); return *this;}
97 private:
98
99 Aws::String m_ruleId;
100 bool m_ruleIdHasBeenSet = false;
101
102 Aws::String m_changeToken;
103 bool m_changeTokenHasBeenSet = false;
104
105 Aws::Vector<RuleUpdate> m_updates;
106 bool m_updatesHasBeenSet = false;
107
108 long long m_rateLimit;
109 bool m_rateLimitHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace WAF
114} // namespace Aws
UpdateRateBasedRuleRequest & WithUpdates(const Aws::Vector< RuleUpdate > &value)
UpdateRateBasedRuleRequest & WithChangeToken(Aws::String &&value)
UpdateRateBasedRuleRequest & WithChangeToken(const char *value)
UpdateRateBasedRuleRequest & WithUpdates(Aws::Vector< RuleUpdate > &&value)
UpdateRateBasedRuleRequest & WithRuleId(Aws::String &&value)
UpdateRateBasedRuleRequest & AddUpdates(const RuleUpdate &value)
AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
void SetUpdates(const Aws::Vector< RuleUpdate > &value)
UpdateRateBasedRuleRequest & AddUpdates(RuleUpdate &&value)
UpdateRateBasedRuleRequest & WithRuleId(const Aws::String &value)
const Aws::Vector< RuleUpdate > & GetUpdates() const
UpdateRateBasedRuleRequest & WithRateLimit(long long value)
UpdateRateBasedRuleRequest & WithRuleId(const char *value)
AWS_WAF_API Aws::String SerializePayload() const override
void SetUpdates(Aws::Vector< RuleUpdate > &&value)
UpdateRateBasedRuleRequest & WithChangeToken(const Aws::String &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