AWS SDK for C++  1.9.108
AWS SDK for C++
GetSampledRequestsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/wafv2/model/Scope.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace WAFV2
17 {
18 namespace 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::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::String& GetWebAclArn() const{ return m_webAclArn; }
44 
49  inline bool WebAclArnHasBeenSet() const { return m_webAclArnHasBeenSet; }
50 
55  inline void SetWebAclArn(const Aws::String& value) { m_webAclArnHasBeenSet = true; m_webAclArn = value; }
56 
61  inline void SetWebAclArn(Aws::String&& value) { m_webAclArnHasBeenSet = true; m_webAclArn = std::move(value); }
62 
67  inline void SetWebAclArn(const char* value) { m_webAclArnHasBeenSet = true; m_webAclArn.assign(value); }
68 
73  inline GetSampledRequestsRequest& WithWebAclArn(const Aws::String& value) { SetWebAclArn(value); return *this;}
74 
79  inline GetSampledRequestsRequest& WithWebAclArn(Aws::String&& value) { SetWebAclArn(std::move(value)); return *this;}
80 
85  inline GetSampledRequestsRequest& WithWebAclArn(const char* value) { SetWebAclArn(value); return *this;}
86 
87 
92  inline const Aws::String& GetRuleMetricName() const{ return m_ruleMetricName; }
93 
98  inline bool RuleMetricNameHasBeenSet() const { return m_ruleMetricNameHasBeenSet; }
99 
104  inline void SetRuleMetricName(const Aws::String& value) { m_ruleMetricNameHasBeenSet = true; m_ruleMetricName = value; }
105 
110  inline void SetRuleMetricName(Aws::String&& value) { m_ruleMetricNameHasBeenSet = true; m_ruleMetricName = std::move(value); }
111 
116  inline void SetRuleMetricName(const char* value) { m_ruleMetricNameHasBeenSet = true; m_ruleMetricName.assign(value); }
117 
122  inline GetSampledRequestsRequest& WithRuleMetricName(const Aws::String& value) { SetRuleMetricName(value); return *this;}
123 
128  inline GetSampledRequestsRequest& WithRuleMetricName(Aws::String&& value) { SetRuleMetricName(std::move(value)); return *this;}
129 
134  inline GetSampledRequestsRequest& WithRuleMetricName(const char* value) { SetRuleMetricName(value); return *this;}
135 
136 
147  inline const Scope& GetScope() const{ return m_scope; }
148 
159  inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
160 
171  inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
172 
183  inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
184 
195  inline GetSampledRequestsRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
196 
207  inline GetSampledRequestsRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
208 
209 
219  inline const TimeWindow& GetTimeWindow() const{ return m_timeWindow; }
220 
230  inline bool TimeWindowHasBeenSet() const { return m_timeWindowHasBeenSet; }
231 
241  inline void SetTimeWindow(const TimeWindow& value) { m_timeWindowHasBeenSet = true; m_timeWindow = value; }
242 
252  inline void SetTimeWindow(TimeWindow&& value) { m_timeWindowHasBeenSet = true; m_timeWindow = std::move(value); }
253 
263  inline GetSampledRequestsRequest& WithTimeWindow(const TimeWindow& value) { SetTimeWindow(value); return *this;}
264 
274  inline GetSampledRequestsRequest& WithTimeWindow(TimeWindow&& value) { SetTimeWindow(std::move(value)); return *this;}
275 
276 
284  inline long long GetMaxItems() const{ return m_maxItems; }
285 
293  inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
294 
302  inline void SetMaxItems(long long value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
303 
311  inline GetSampledRequestsRequest& WithMaxItems(long long value) { SetMaxItems(value); return *this;}
312 
313  private:
314 
315  Aws::String m_webAclArn;
316  bool m_webAclArnHasBeenSet;
317 
318  Aws::String m_ruleMetricName;
319  bool m_ruleMetricNameHasBeenSet;
320 
321  Scope m_scope;
322  bool m_scopeHasBeenSet;
323 
324  TimeWindow m_timeWindow;
325  bool m_timeWindowHasBeenSet;
326 
327  long long m_maxItems;
328  bool m_maxItemsHasBeenSet;
329  };
330 
331 } // namespace Model
332 } // namespace WAFV2
333 } // namespace Aws
WAFV2Request.h
Aws::WAFV2::Model::GetSampledRequestsRequest::WithRuleMetricName
GetSampledRequestsRequest & WithRuleMetricName(const char *value)
Definition: GetSampledRequestsRequest.h:134
Scope.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAFV2::Model::GetSampledRequestsRequest::GetWebAclArn
const Aws::String & GetWebAclArn() const
Definition: GetSampledRequestsRequest.h:43
Aws::WAFV2::Model::GetSampledRequestsRequest::SetWebAclArn
void SetWebAclArn(const Aws::String &value)
Definition: GetSampledRequestsRequest.h:55
Aws::WAFV2::Model::GetSampledRequestsRequest::SetWebAclArn
void SetWebAclArn(const char *value)
Definition: GetSampledRequestsRequest.h:67
Aws::WAFV2::Model::GetSampledRequestsRequest::WithTimeWindow
GetSampledRequestsRequest & WithTimeWindow(const TimeWindow &value)
Definition: GetSampledRequestsRequest.h:263
Aws::WAFV2::Model::GetSampledRequestsRequest::WithRuleMetricName
GetSampledRequestsRequest & WithRuleMetricName(const Aws::String &value)
Definition: GetSampledRequestsRequest.h:122
Aws::WAFV2::Model::GetSampledRequestsRequest::GetSampledRequestsRequest
GetSampledRequestsRequest()
Aws::WAFV2::Model::GetSampledRequestsRequest::GetScope
const Scope & GetScope() const
Definition: GetSampledRequestsRequest.h:147
Aws::WAFV2::Model::GetSampledRequestsRequest::WithRuleMetricName
GetSampledRequestsRequest & WithRuleMetricName(Aws::String &&value)
Definition: GetSampledRequestsRequest.h:128
Aws::WAFV2::Model::GetSampledRequestsRequest::SetRuleMetricName
void SetRuleMetricName(const char *value)
Definition: GetSampledRequestsRequest.h:116
Aws::WAFV2::Model::GetSampledRequestsRequest::GetTimeWindow
const TimeWindow & GetTimeWindow() const
Definition: GetSampledRequestsRequest.h:219
Aws::WAFV2::Model::GetSampledRequestsRequest::GetRuleMetricName
const Aws::String & GetRuleMetricName() const
Definition: GetSampledRequestsRequest.h:92
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::GetSampledRequestsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetSampledRequestsRequest.h:32
Aws::WAFV2::Model::GetSampledRequestsRequest::WithWebAclArn
GetSampledRequestsRequest & WithWebAclArn(const Aws::String &value)
Definition: GetSampledRequestsRequest.h:73
Aws::WAFV2::Model::GetSampledRequestsRequest::SetScope
void SetScope(const Scope &value)
Definition: GetSampledRequestsRequest.h:171
Aws::WAFV2::Model::GetSampledRequestsRequest::WithMaxItems
GetSampledRequestsRequest & WithMaxItems(long long value)
Definition: GetSampledRequestsRequest.h:311
WAFV2_EXPORTS.h
Aws::WAFV2::Model::GetSampledRequestsRequest::WithWebAclArn
GetSampledRequestsRequest & WithWebAclArn(const char *value)
Definition: GetSampledRequestsRequest.h:85
Aws::WAFV2::Model::GetSampledRequestsRequest::SetTimeWindow
void SetTimeWindow(const TimeWindow &value)
Definition: GetSampledRequestsRequest.h:241
Aws::WAFV2::Model::GetSampledRequestsRequest::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: GetSampledRequestsRequest.h:159
Aws::WAFV2::Model::GetSampledRequestsRequest::TimeWindowHasBeenSet
bool TimeWindowHasBeenSet() const
Definition: GetSampledRequestsRequest.h:230
Aws::WAFV2::WAFV2Request
Definition: WAFV2Request.h:17
TimeWindow.h
Aws::WAFV2::Model::GetSampledRequestsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAFV2::Model::GetSampledRequestsRequest::SetRuleMetricName
void SetRuleMetricName(Aws::String &&value)
Definition: GetSampledRequestsRequest.h:110
Aws::WAFV2::Model::GetSampledRequestsRequest::WithScope
GetSampledRequestsRequest & WithScope(Scope &&value)
Definition: GetSampledRequestsRequest.h:207
Aws::WAFV2::Model::GetSampledRequestsRequest::SetMaxItems
void SetMaxItems(long long value)
Definition: GetSampledRequestsRequest.h:302
AWSString.h
Aws::WAFV2::Model::GetSampledRequestsRequest::WebAclArnHasBeenSet
bool WebAclArnHasBeenSet() const
Definition: GetSampledRequestsRequest.h:49
Aws::WAFV2::Model::GetSampledRequestsRequest::SetRuleMetricName
void SetRuleMetricName(const Aws::String &value)
Definition: GetSampledRequestsRequest.h:104
Aws::WAFV2::Model::GetSampledRequestsRequest::WithScope
GetSampledRequestsRequest & WithScope(const Scope &value)
Definition: GetSampledRequestsRequest.h:195
Aws::WAFV2::Model::GetSampledRequestsRequest::SetTimeWindow
void SetTimeWindow(TimeWindow &&value)
Definition: GetSampledRequestsRequest.h:252
Aws::WAFV2::Model::GetSampledRequestsRequest::WithWebAclArn
GetSampledRequestsRequest & WithWebAclArn(Aws::String &&value)
Definition: GetSampledRequestsRequest.h:79
Aws::WAFV2::Model::GetSampledRequestsRequest::WithTimeWindow
GetSampledRequestsRequest & WithTimeWindow(TimeWindow &&value)
Definition: GetSampledRequestsRequest.h:274
Aws::WAFV2::Model::GetSampledRequestsRequest
Definition: GetSampledRequestsRequest.h:24
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::GetSampledRequestsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAFV2::Model::GetSampledRequestsRequest::SetScope
void SetScope(Scope &&value)
Definition: GetSampledRequestsRequest.h:183
Aws::WAFV2::Model::GetSampledRequestsRequest::MaxItemsHasBeenSet
bool MaxItemsHasBeenSet() const
Definition: GetSampledRequestsRequest.h:293
Aws::WAFV2::Model::TimeWindow
Definition: TimeWindow.h:45
Aws::WAFV2::Model::Scope
Scope
Definition: Scope.h:17
Aws::WAFV2::Model::GetSampledRequestsRequest::GetMaxItems
long long GetMaxItems() const
Definition: GetSampledRequestsRequest.h:284
Aws::WAFV2::Model::GetSampledRequestsRequest::RuleMetricNameHasBeenSet
bool RuleMetricNameHasBeenSet() const
Definition: GetSampledRequestsRequest.h:98
Aws::WAFV2::Model::GetSampledRequestsRequest::SetWebAclArn
void SetWebAclArn(Aws::String &&value)
Definition: GetSampledRequestsRequest.h:61