AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GetSampledRequestsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/waf/WAFRequest.h>
9#include <aws/waf/WAF_EXPORTS.h>
10#include <aws/waf/model/TimeWindow.h>
11
12#include <utility>
13
14namespace Aws {
15namespace WAF {
16namespace Model {
17
21 public:
22 AWS_WAF_API GetSampledRequestsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetSampledRequests"; }
29
30 AWS_WAF_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetWebAclId() const { return m_webAclId; }
40 inline bool WebAclIdHasBeenSet() const { return m_webAclIdHasBeenSet; }
41 template <typename WebAclIdT = Aws::String>
42 void SetWebAclId(WebAclIdT&& value) {
43 m_webAclIdHasBeenSet = true;
44 m_webAclId = std::forward<WebAclIdT>(value);
45 }
46 template <typename WebAclIdT = Aws::String>
48 SetWebAclId(std::forward<WebAclIdT>(value));
49 return *this;
50 }
52
54
63 inline const Aws::String& GetRuleId() const { return m_ruleId; }
64 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
65 template <typename RuleIdT = Aws::String>
66 void SetRuleId(RuleIdT&& value) {
67 m_ruleIdHasBeenSet = true;
68 m_ruleId = std::forward<RuleIdT>(value);
69 }
70 template <typename RuleIdT = Aws::String>
72 SetRuleId(std::forward<RuleIdT>(value));
73 return *this;
74 }
76
78
86 inline const TimeWindow& GetTimeWindow() const { return m_timeWindow; }
87 inline bool TimeWindowHasBeenSet() const { return m_timeWindowHasBeenSet; }
88 template <typename TimeWindowT = TimeWindow>
89 void SetTimeWindow(TimeWindowT&& value) {
90 m_timeWindowHasBeenSet = true;
91 m_timeWindow = std::forward<TimeWindowT>(value);
92 }
93 template <typename TimeWindowT = TimeWindow>
95 SetTimeWindow(std::forward<TimeWindowT>(value));
96 return *this;
97 }
99
101
107 inline long long GetMaxItems() const { return m_maxItems; }
108 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
109 inline void SetMaxItems(long long value) {
110 m_maxItemsHasBeenSet = true;
111 m_maxItems = value;
112 }
113 inline GetSampledRequestsRequest& WithMaxItems(long long value) {
114 SetMaxItems(value);
115 return *this;
116 }
118 private:
119 Aws::String m_webAclId;
120
121 Aws::String m_ruleId;
122
123 TimeWindow m_timeWindow;
124
125 long long m_maxItems{0};
126 bool m_webAclIdHasBeenSet = false;
127 bool m_ruleIdHasBeenSet = false;
128 bool m_timeWindowHasBeenSet = false;
129 bool m_maxItemsHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace WAF
134} // namespace Aws
GetSampledRequestsRequest & WithRuleId(RuleIdT &&value)
GetSampledRequestsRequest & WithTimeWindow(TimeWindowT &&value)
AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_WAF_API GetSampledRequestsRequest()=default
GetSampledRequestsRequest & WithMaxItems(long long value)
AWS_WAF_API Aws::String SerializePayload() const override
GetSampledRequestsRequest & WithWebAclId(WebAclIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String