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>
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>
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>
77 inline void SetScope(
Scope value) { m_scopeHasBeenSet =
true; m_scope = value; }
93 template<
typename TimeWindowT = TimeWindow>
94 void SetTimeWindow(TimeWindowT&& value) { m_timeWindowHasBeenSet =
true; m_timeWindow = std::forward<TimeWindowT>(value); }
95 template<
typename TimeWindowT = TimeWindow>
109 inline void SetMaxItems(
long long value) { m_maxItemsHasBeenSet =
true; m_maxItems = value; }
115 bool m_webAclArnHasBeenSet =
false;
118 bool m_ruleMetricNameHasBeenSet =
false;
121 bool m_scopeHasBeenSet =
false;
123 TimeWindow m_timeWindow;
124 bool m_timeWindowHasBeenSet =
false;
126 long long m_maxItems{0};
127 bool m_maxItemsHasBeenSet =
false;
GetSampledRequestsRequest & WithWebAclArn(WebAclArnT &&value)
GetSampledRequestsRequest & WithMaxItems(long long value)
bool TimeWindowHasBeenSet() const
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetRuleMetricName() const
virtual const char * GetServiceRequestName() const override
GetSampledRequestsRequest & WithTimeWindow(TimeWindowT &&value)
GetSampledRequestsRequest & WithScope(Scope value)
void SetRuleMetricName(RuleMetricNameT &&value)
bool WebAclArnHasBeenSet() const
void SetWebAclArn(WebAclArnT &&value)
long long GetMaxItems() const
const Aws::String & GetWebAclArn() const
void SetTimeWindow(TimeWindowT &&value)
bool ScopeHasBeenSet() const
const TimeWindow & GetTimeWindow() const
GetSampledRequestsRequest & WithRuleMetricName(RuleMetricNameT &&value)
bool MaxItemsHasBeenSet() const
void SetMaxItems(long long value)
void SetScope(Scope value)
bool RuleMetricNameHasBeenSet() const
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