AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
GetSampledRequestsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wafv2/WAFV2Request.h>
9#include <aws/wafv2/WAFV2_EXPORTS.h>
10#include <aws/wafv2/model/Scope.h>
11#include <aws/wafv2/model/TimeWindow.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WAFV2 {
17namespace Model {
18
22 public:
23 AWS_WAFV2_API GetSampledRequestsRequest() = 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 "GetSampledRequests"; }
30
31 AWS_WAFV2_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetWebAclArn() const { return m_webAclArn; }
41 inline bool WebAclArnHasBeenSet() const { return m_webAclArnHasBeenSet; }
42 template <typename WebAclArnT = Aws::String>
43 void SetWebAclArn(WebAclArnT&& value) {
44 m_webAclArnHasBeenSet = true;
45 m_webAclArn = std::forward<WebAclArnT>(value);
46 }
47 template <typename WebAclArnT = Aws::String>
49 SetWebAclArn(std::forward<WebAclArnT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetRuleMetricName() const { return m_ruleMetricName; }
60 inline bool RuleMetricNameHasBeenSet() const { return m_ruleMetricNameHasBeenSet; }
61 template <typename RuleMetricNameT = Aws::String>
62 void SetRuleMetricName(RuleMetricNameT&& value) {
63 m_ruleMetricNameHasBeenSet = true;
64 m_ruleMetricName = std::forward<RuleMetricNameT>(value);
65 }
66 template <typename RuleMetricNameT = Aws::String>
68 SetRuleMetricName(std::forward<RuleMetricNameT>(value));
69 return *this;
70 }
72
74
83 inline Scope GetScope() const { return m_scope; }
84 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
85 inline void SetScope(Scope value) {
86 m_scopeHasBeenSet = true;
87 m_scope = value;
88 }
90 SetScope(value);
91 return *this;
92 }
94
96
105 inline const TimeWindow& GetTimeWindow() const { return m_timeWindow; }
106 inline bool TimeWindowHasBeenSet() const { return m_timeWindowHasBeenSet; }
107 template <typename TimeWindowT = TimeWindow>
108 void SetTimeWindow(TimeWindowT&& value) {
109 m_timeWindowHasBeenSet = true;
110 m_timeWindow = std::forward<TimeWindowT>(value);
111 }
112 template <typename TimeWindowT = TimeWindow>
114 SetTimeWindow(std::forward<TimeWindowT>(value));
115 return *this;
116 }
118
120
127 inline long long GetMaxItems() const { return m_maxItems; }
128 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
129 inline void SetMaxItems(long long value) {
130 m_maxItemsHasBeenSet = true;
131 m_maxItems = value;
132 }
133 inline GetSampledRequestsRequest& WithMaxItems(long long value) {
134 SetMaxItems(value);
135 return *this;
136 }
138 private:
139 Aws::String m_webAclArn;
140
141 Aws::String m_ruleMetricName;
142
143 Scope m_scope{Scope::NOT_SET};
144
145 TimeWindow m_timeWindow;
146
147 long long m_maxItems{0};
148 bool m_webAclArnHasBeenSet = false;
149 bool m_ruleMetricNameHasBeenSet = false;
150 bool m_scopeHasBeenSet = false;
151 bool m_timeWindowHasBeenSet = false;
152 bool m_maxItemsHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace WAFV2
157} // namespace Aws
GetSampledRequestsRequest & WithWebAclArn(WebAclArnT &&value)
GetSampledRequestsRequest & WithMaxItems(long long value)
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
GetSampledRequestsRequest & WithTimeWindow(TimeWindowT &&value)
GetSampledRequestsRequest & WithScope(Scope value)
GetSampledRequestsRequest & WithRuleMetricName(RuleMetricNameT &&value)
AWS_WAFV2_API Aws::String SerializePayload() const override
AWS_WAFV2_API GetSampledRequestsRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String