AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetSampledRequestsRequest.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/TimeWindow.h>
11#include <utility>
12
13namespace Aws
14{
15namespace WAFRegional
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_WAFREGIONAL_API GetSampledRequestsRequest();
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_WAFREGIONAL_API Aws::String SerializePayload() const override;
34
35 AWS_WAFREGIONAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetWebAclId() const{ return m_webAclId; }
44 inline bool WebAclIdHasBeenSet() const { return m_webAclIdHasBeenSet; }
45 inline void SetWebAclId(const Aws::String& value) { m_webAclIdHasBeenSet = true; m_webAclId = value; }
46 inline void SetWebAclId(Aws::String&& value) { m_webAclIdHasBeenSet = true; m_webAclId = std::move(value); }
47 inline void SetWebAclId(const char* value) { m_webAclIdHasBeenSet = true; m_webAclId.assign(value); }
48 inline GetSampledRequestsRequest& WithWebAclId(const Aws::String& value) { SetWebAclId(value); return *this;}
49 inline GetSampledRequestsRequest& WithWebAclId(Aws::String&& value) { SetWebAclId(std::move(value)); return *this;}
50 inline GetSampledRequestsRequest& WithWebAclId(const char* value) { SetWebAclId(value); return *this;}
52
54
63 inline const Aws::String& GetRuleId() const{ return m_ruleId; }
64 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
65 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
66 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
67 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
68 inline GetSampledRequestsRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
69 inline GetSampledRequestsRequest& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
70 inline GetSampledRequestsRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;}
72
74
82 inline const TimeWindow& GetTimeWindow() const{ return m_timeWindow; }
83 inline bool TimeWindowHasBeenSet() const { return m_timeWindowHasBeenSet; }
84 inline void SetTimeWindow(const TimeWindow& value) { m_timeWindowHasBeenSet = true; m_timeWindow = value; }
85 inline void SetTimeWindow(TimeWindow&& value) { m_timeWindowHasBeenSet = true; m_timeWindow = std::move(value); }
86 inline GetSampledRequestsRequest& WithTimeWindow(const TimeWindow& value) { SetTimeWindow(value); return *this;}
87 inline GetSampledRequestsRequest& WithTimeWindow(TimeWindow&& value) { SetTimeWindow(std::move(value)); return *this;}
89
91
97 inline long long GetMaxItems() const{ return m_maxItems; }
98 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
99 inline void SetMaxItems(long long value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
100 inline GetSampledRequestsRequest& WithMaxItems(long long value) { SetMaxItems(value); return *this;}
102 private:
103
104 Aws::String m_webAclId;
105 bool m_webAclIdHasBeenSet = false;
106
107 Aws::String m_ruleId;
108 bool m_ruleIdHasBeenSet = false;
109
110 TimeWindow m_timeWindow;
111 bool m_timeWindowHasBeenSet = false;
112
113 long long m_maxItems;
114 bool m_maxItemsHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace WAFRegional
119} // namespace Aws
virtual const char * GetServiceRequestName() const override
GetSampledRequestsRequest & WithRuleId(Aws::String &&value)
GetSampledRequestsRequest & WithWebAclId(Aws::String &&value)
GetSampledRequestsRequest & WithWebAclId(const Aws::String &value)
GetSampledRequestsRequest & WithTimeWindow(TimeWindow &&value)
GetSampledRequestsRequest & WithRuleId(const Aws::String &value)
GetSampledRequestsRequest & WithWebAclId(const char *value)
GetSampledRequestsRequest & WithRuleId(const char *value)
GetSampledRequestsRequest & WithMaxItems(long long value)
AWS_WAFREGIONAL_API Aws::String SerializePayload() const override
GetSampledRequestsRequest & WithTimeWindow(const TimeWindow &value)
AWS_WAFREGIONAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String