AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetSampledRequestsRequest.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/WAFV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/wafv2/model/Scope.h>
11#include <aws/wafv2/model/TimeWindow.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WAFV2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WAFV2_API GetSampledRequestsRequest() = 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 "GetSampledRequests"; }
33
34 AWS_WAFV2_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetWebAclArn() const { return m_webAclArn; }
45 inline bool WebAclArnHasBeenSet() const { return m_webAclArnHasBeenSet; }
46 template<typename WebAclArnT = Aws::String>
47 void SetWebAclArn(WebAclArnT&& value) { m_webAclArnHasBeenSet = true; m_webAclArn = std::forward<WebAclArnT>(value); }
48 template<typename WebAclArnT = Aws::String>
49 GetSampledRequestsRequest& WithWebAclArn(WebAclArnT&& value) { SetWebAclArn(std::forward<WebAclArnT>(value)); return *this;}
51
53
57 inline const Aws::String& GetRuleMetricName() const { return m_ruleMetricName; }
58 inline bool RuleMetricNameHasBeenSet() const { return m_ruleMetricNameHasBeenSet; }
59 template<typename RuleMetricNameT = Aws::String>
60 void SetRuleMetricName(RuleMetricNameT&& value) { m_ruleMetricNameHasBeenSet = true; m_ruleMetricName = std::forward<RuleMetricNameT>(value); }
61 template<typename RuleMetricNameT = Aws::String>
62 GetSampledRequestsRequest& WithRuleMetricName(RuleMetricNameT&& value) { SetRuleMetricName(std::forward<RuleMetricNameT>(value)); return *this;}
64
66
75 inline Scope GetScope() const { return m_scope; }
76 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
77 inline void SetScope(Scope value) { m_scopeHasBeenSet = true; m_scope = value; }
78 inline GetSampledRequestsRequest& WithScope(Scope value) { SetScope(value); return *this;}
80
82
91 inline const TimeWindow& GetTimeWindow() const { return m_timeWindow; }
92 inline bool TimeWindowHasBeenSet() const { return m_timeWindowHasBeenSet; }
93 template<typename TimeWindowT = TimeWindow>
94 void SetTimeWindow(TimeWindowT&& value) { m_timeWindowHasBeenSet = true; m_timeWindow = std::forward<TimeWindowT>(value); }
95 template<typename TimeWindowT = TimeWindow>
96 GetSampledRequestsRequest& WithTimeWindow(TimeWindowT&& value) { SetTimeWindow(std::forward<TimeWindowT>(value)); return *this;}
98
100
107 inline long long GetMaxItems() const { return m_maxItems; }
108 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
109 inline void SetMaxItems(long long value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
110 inline GetSampledRequestsRequest& WithMaxItems(long long value) { SetMaxItems(value); return *this;}
112 private:
113
114 Aws::String m_webAclArn;
115 bool m_webAclArnHasBeenSet = false;
116
117 Aws::String m_ruleMetricName;
118 bool m_ruleMetricNameHasBeenSet = false;
119
120 Scope m_scope{Scope::NOT_SET};
121 bool m_scopeHasBeenSet = false;
122
123 TimeWindow m_timeWindow;
124 bool m_timeWindowHasBeenSet = false;
125
126 long long m_maxItems{0};
127 bool m_maxItemsHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace WAFV2
132} // 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