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/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:
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 inline void SetWebAclArn(const Aws::String& value) { m_webAclArnHasBeenSet = true; m_webAclArn = value; }
47 inline void SetWebAclArn(Aws::String&& value) { m_webAclArnHasBeenSet = true; m_webAclArn = std::move(value); }
48 inline void SetWebAclArn(const char* value) { m_webAclArnHasBeenSet = true; m_webAclArn.assign(value); }
49 inline GetSampledRequestsRequest& WithWebAclArn(const Aws::String& value) { SetWebAclArn(value); return *this;}
50 inline GetSampledRequestsRequest& WithWebAclArn(Aws::String&& value) { SetWebAclArn(std::move(value)); return *this;}
51 inline GetSampledRequestsRequest& WithWebAclArn(const char* value) { SetWebAclArn(value); return *this;}
53
55
59 inline const Aws::String& GetRuleMetricName() const{ return m_ruleMetricName; }
60 inline bool RuleMetricNameHasBeenSet() const { return m_ruleMetricNameHasBeenSet; }
61 inline void SetRuleMetricName(const Aws::String& value) { m_ruleMetricNameHasBeenSet = true; m_ruleMetricName = value; }
62 inline void SetRuleMetricName(Aws::String&& value) { m_ruleMetricNameHasBeenSet = true; m_ruleMetricName = std::move(value); }
63 inline void SetRuleMetricName(const char* value) { m_ruleMetricNameHasBeenSet = true; m_ruleMetricName.assign(value); }
64 inline GetSampledRequestsRequest& WithRuleMetricName(const Aws::String& value) { SetRuleMetricName(value); return *this;}
65 inline GetSampledRequestsRequest& WithRuleMetricName(Aws::String&& value) { SetRuleMetricName(std::move(value)); return *this;}
66 inline GetSampledRequestsRequest& WithRuleMetricName(const char* value) { SetRuleMetricName(value); return *this;}
68
70
81 inline const Scope& GetScope() const{ return m_scope; }
82 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
83 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
84 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
85 inline GetSampledRequestsRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
86 inline GetSampledRequestsRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
88
90
99 inline const TimeWindow& GetTimeWindow() const{ return m_timeWindow; }
100 inline bool TimeWindowHasBeenSet() const { return m_timeWindowHasBeenSet; }
101 inline void SetTimeWindow(const TimeWindow& value) { m_timeWindowHasBeenSet = true; m_timeWindow = value; }
102 inline void SetTimeWindow(TimeWindow&& value) { m_timeWindowHasBeenSet = true; m_timeWindow = std::move(value); }
103 inline GetSampledRequestsRequest& WithTimeWindow(const TimeWindow& value) { SetTimeWindow(value); return *this;}
104 inline GetSampledRequestsRequest& WithTimeWindow(TimeWindow&& value) { SetTimeWindow(std::move(value)); return *this;}
106
108
115 inline long long GetMaxItems() const{ return m_maxItems; }
116 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
117 inline void SetMaxItems(long long value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
118 inline GetSampledRequestsRequest& WithMaxItems(long long value) { SetMaxItems(value); return *this;}
120 private:
121
122 Aws::String m_webAclArn;
123 bool m_webAclArnHasBeenSet = false;
124
125 Aws::String m_ruleMetricName;
126 bool m_ruleMetricNameHasBeenSet = false;
127
128 Scope m_scope;
129 bool m_scopeHasBeenSet = false;
130
131 TimeWindow m_timeWindow;
132 bool m_timeWindowHasBeenSet = false;
133
134 long long m_maxItems;
135 bool m_maxItemsHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace WAFV2
140} // namespace Aws
GetSampledRequestsRequest & WithRuleMetricName(Aws::String &&value)
GetSampledRequestsRequest & WithWebAclArn(const char *value)
GetSampledRequestsRequest & WithWebAclArn(Aws::String &&value)
GetSampledRequestsRequest & WithScope(Scope &&value)
GetSampledRequestsRequest & WithWebAclArn(const Aws::String &value)
GetSampledRequestsRequest & WithMaxItems(long long value)
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetSampledRequestsRequest & WithRuleMetricName(const char *value)
GetSampledRequestsRequest & WithScope(const Scope &value)
virtual const char * GetServiceRequestName() const override
GetSampledRequestsRequest & WithTimeWindow(TimeWindow &&value)
GetSampledRequestsRequest & WithTimeWindow(const TimeWindow &value)
GetSampledRequestsRequest & WithRuleMetricName(const Aws::String &value)
AWS_WAFV2_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String