AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRateBasedRuleRequest.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/waf-regional/WAFRegionalRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/waf-regional/model/RateKey.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/waf-regional/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace WAFRegional
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_WAFREGIONAL_API CreateRateBasedRuleRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateRateBasedRule"; }
34
35 AWS_WAFREGIONAL_API Aws::String SerializePayload() const override;
36
37 AWS_WAFREGIONAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline CreateRateBasedRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline CreateRateBasedRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline CreateRateBasedRuleRequest& WithName(const char* value) { SetName(value); return *this;}
54
56
64 inline const Aws::String& GetMetricName() const{ return m_metricName; }
65 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
66 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
67 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
68 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
69 inline CreateRateBasedRuleRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
70 inline CreateRateBasedRuleRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
71 inline CreateRateBasedRuleRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
73
75
82 inline const RateKey& GetRateKey() const{ return m_rateKey; }
83 inline bool RateKeyHasBeenSet() const { return m_rateKeyHasBeenSet; }
84 inline void SetRateKey(const RateKey& value) { m_rateKeyHasBeenSet = true; m_rateKey = value; }
85 inline void SetRateKey(RateKey&& value) { m_rateKeyHasBeenSet = true; m_rateKey = std::move(value); }
86 inline CreateRateBasedRuleRequest& WithRateKey(const RateKey& value) { SetRateKey(value); return *this;}
87 inline CreateRateBasedRuleRequest& WithRateKey(RateKey&& value) { SetRateKey(std::move(value)); return *this;}
89
91
98 inline long long GetRateLimit() const{ return m_rateLimit; }
99 inline bool RateLimitHasBeenSet() const { return m_rateLimitHasBeenSet; }
100 inline void SetRateLimit(long long value) { m_rateLimitHasBeenSet = true; m_rateLimit = value; }
101 inline CreateRateBasedRuleRequest& WithRateLimit(long long value) { SetRateLimit(value); return *this;}
103
105
111 inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
112 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
113 inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
114 inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
115 inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
116 inline CreateRateBasedRuleRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
117 inline CreateRateBasedRuleRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
118 inline CreateRateBasedRuleRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
120
122
125 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
126 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
127 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
128 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
129 inline CreateRateBasedRuleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
130 inline CreateRateBasedRuleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
131 inline CreateRateBasedRuleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
132 inline CreateRateBasedRuleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
134 private:
135
136 Aws::String m_name;
137 bool m_nameHasBeenSet = false;
138
139 Aws::String m_metricName;
140 bool m_metricNameHasBeenSet = false;
141
142 RateKey m_rateKey;
143 bool m_rateKeyHasBeenSet = false;
144
145 long long m_rateLimit;
146 bool m_rateLimitHasBeenSet = false;
147
148 Aws::String m_changeToken;
149 bool m_changeTokenHasBeenSet = false;
150
151 Aws::Vector<Tag> m_tags;
152 bool m_tagsHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace WAFRegional
157} // namespace Aws
CreateRateBasedRuleRequest & WithRateKey(const RateKey &value)
CreateRateBasedRuleRequest & WithName(const Aws::String &value)
CreateRateBasedRuleRequest & WithChangeToken(Aws::String &&value)
CreateRateBasedRuleRequest & WithRateLimit(long long value)
CreateRateBasedRuleRequest & WithTags(Aws::Vector< Tag > &&value)
virtual const char * GetServiceRequestName() const override
AWS_WAFREGIONAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRateBasedRuleRequest & WithRateKey(RateKey &&value)
CreateRateBasedRuleRequest & WithTags(const Aws::Vector< Tag > &value)
CreateRateBasedRuleRequest & AddTags(const Tag &value)
CreateRateBasedRuleRequest & WithMetricName(const char *value)
CreateRateBasedRuleRequest & WithMetricName(const Aws::String &value)
CreateRateBasedRuleRequest & WithMetricName(Aws::String &&value)
CreateRateBasedRuleRequest & WithChangeToken(const Aws::String &value)
CreateRateBasedRuleRequest & WithName(Aws::String &&value)
AWS_WAFREGIONAL_API Aws::String SerializePayload() const override
CreateRateBasedRuleRequest & WithName(const char *value)
CreateRateBasedRuleRequest & WithChangeToken(const char *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