AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetSampledRequestsRequest.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/waf/model/TimeWindow.h>
11#include <utility>
12
13namespace Aws
14{
15namespace WAF
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_WAF_API GetSampledRequestsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetSampledRequests"; }
32
33 AWS_WAF_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetWebAclId() const { return m_webAclId; }
44 inline bool WebAclIdHasBeenSet() const { return m_webAclIdHasBeenSet; }
45 template<typename WebAclIdT = Aws::String>
46 void SetWebAclId(WebAclIdT&& value) { m_webAclIdHasBeenSet = true; m_webAclId = std::forward<WebAclIdT>(value); }
47 template<typename WebAclIdT = Aws::String>
48 GetSampledRequestsRequest& WithWebAclId(WebAclIdT&& value) { SetWebAclId(std::forward<WebAclIdT>(value)); return *this;}
50
52
61 inline const Aws::String& GetRuleId() const { return m_ruleId; }
62 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
63 template<typename RuleIdT = Aws::String>
64 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::forward<RuleIdT>(value); }
65 template<typename RuleIdT = Aws::String>
66 GetSampledRequestsRequest& WithRuleId(RuleIdT&& value) { SetRuleId(std::forward<RuleIdT>(value)); return *this;}
68
70
78 inline const TimeWindow& GetTimeWindow() const { return m_timeWindow; }
79 inline bool TimeWindowHasBeenSet() const { return m_timeWindowHasBeenSet; }
80 template<typename TimeWindowT = TimeWindow>
81 void SetTimeWindow(TimeWindowT&& value) { m_timeWindowHasBeenSet = true; m_timeWindow = std::forward<TimeWindowT>(value); }
82 template<typename TimeWindowT = TimeWindow>
83 GetSampledRequestsRequest& WithTimeWindow(TimeWindowT&& value) { SetTimeWindow(std::forward<TimeWindowT>(value)); return *this;}
85
87
93 inline long long GetMaxItems() const { return m_maxItems; }
94 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
95 inline void SetMaxItems(long long value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
96 inline GetSampledRequestsRequest& WithMaxItems(long long value) { SetMaxItems(value); return *this;}
98 private:
99
100 Aws::String m_webAclId;
101 bool m_webAclIdHasBeenSet = false;
102
103 Aws::String m_ruleId;
104 bool m_ruleIdHasBeenSet = false;
105
106 TimeWindow m_timeWindow;
107 bool m_timeWindowHasBeenSet = false;
108
109 long long m_maxItems{0};
110 bool m_maxItemsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace WAF
115} // 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