AWS SDK for C++  1.9.109
AWS SDK for C++
GetSampledRequestsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace WAFRegional
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetWebAclId() const{ return m_webAclId; }
43 
48  inline bool WebAclIdHasBeenSet() const { return m_webAclIdHasBeenSet; }
49 
54  inline void SetWebAclId(const Aws::String& value) { m_webAclIdHasBeenSet = true; m_webAclId = value; }
55 
60  inline void SetWebAclId(Aws::String&& value) { m_webAclIdHasBeenSet = true; m_webAclId = std::move(value); }
61 
66  inline void SetWebAclId(const char* value) { m_webAclIdHasBeenSet = true; m_webAclId.assign(value); }
67 
72  inline GetSampledRequestsRequest& WithWebAclId(const Aws::String& value) { SetWebAclId(value); return *this;}
73 
78  inline GetSampledRequestsRequest& WithWebAclId(Aws::String&& value) { SetWebAclId(std::move(value)); return *this;}
79 
84  inline GetSampledRequestsRequest& WithWebAclId(const char* value) { SetWebAclId(value); return *this;}
85 
86 
96  inline const Aws::String& GetRuleId() const{ return m_ruleId; }
97 
107  inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
108 
118  inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
119 
129  inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
130 
140  inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
141 
151  inline GetSampledRequestsRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
152 
162  inline GetSampledRequestsRequest& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
163 
173  inline GetSampledRequestsRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;}
174 
175 
184  inline const TimeWindow& GetTimeWindow() const{ return m_timeWindow; }
185 
194  inline bool TimeWindowHasBeenSet() const { return m_timeWindowHasBeenSet; }
195 
204  inline void SetTimeWindow(const TimeWindow& value) { m_timeWindowHasBeenSet = true; m_timeWindow = value; }
205 
214  inline void SetTimeWindow(TimeWindow&& value) { m_timeWindowHasBeenSet = true; m_timeWindow = std::move(value); }
215 
224  inline GetSampledRequestsRequest& WithTimeWindow(const TimeWindow& value) { SetTimeWindow(value); return *this;}
225 
234  inline GetSampledRequestsRequest& WithTimeWindow(TimeWindow&& value) { SetTimeWindow(std::move(value)); return *this;}
235 
236 
243  inline long long GetMaxItems() const{ return m_maxItems; }
244 
251  inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
252 
259  inline void SetMaxItems(long long value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
260 
267  inline GetSampledRequestsRequest& WithMaxItems(long long value) { SetMaxItems(value); return *this;}
268 
269  private:
270 
271  Aws::String m_webAclId;
272  bool m_webAclIdHasBeenSet;
273 
274  Aws::String m_ruleId;
275  bool m_ruleIdHasBeenSet;
276 
277  TimeWindow m_timeWindow;
278  bool m_timeWindowHasBeenSet;
279 
280  long long m_maxItems;
281  bool m_maxItemsHasBeenSet;
282  };
283 
284 } // namespace Model
285 } // namespace WAFRegional
286 } // namespace Aws
Aws::WAFRegional::Model::GetSampledRequestsRequest::SetRuleId
void SetRuleId(const char *value)
Definition: GetSampledRequestsRequest.h:140
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAFRegional::Model::TimeWindow
Definition: TimeWindow.h:52
Aws::WAFRegional::Model::GetSampledRequestsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAFRegional::WAFRegionalRequest
Definition: WAFRegionalRequest.h:17
Aws::WAFRegional::Model::GetSampledRequestsRequest::SetRuleId
void SetRuleId(Aws::String &&value)
Definition: GetSampledRequestsRequest.h:129
Aws::WAFRegional::Model::GetSampledRequestsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetSampledRequestsRequest.h:31
Aws::WAFRegional::Model::GetSampledRequestsRequest::WithWebAclId
GetSampledRequestsRequest & WithWebAclId(const Aws::String &value)
Definition: GetSampledRequestsRequest.h:72
AWS_WAFREGIONAL_API
#define AWS_WAFREGIONAL_API
Definition: WAFRegional_EXPORTS.h:28
WAFRegionalRequest.h
Aws::WAFRegional::Model::GetSampledRequestsRequest::SetTimeWindow
void SetTimeWindow(TimeWindow &&value)
Definition: GetSampledRequestsRequest.h:214
Aws::WAFRegional::Model::GetSampledRequestsRequest::WithTimeWindow
GetSampledRequestsRequest & WithTimeWindow(const TimeWindow &value)
Definition: GetSampledRequestsRequest.h:224
Aws::WAFRegional::Model::GetSampledRequestsRequest::MaxItemsHasBeenSet
bool MaxItemsHasBeenSet() const
Definition: GetSampledRequestsRequest.h:251
Aws::WAFRegional::Model::GetSampledRequestsRequest::WithRuleId
GetSampledRequestsRequest & WithRuleId(const char *value)
Definition: GetSampledRequestsRequest.h:173
Aws::WAFRegional::Model::GetSampledRequestsRequest
Definition: GetSampledRequestsRequest.h:23
Aws::WAFRegional::Model::GetSampledRequestsRequest::WithWebAclId
GetSampledRequestsRequest & WithWebAclId(const char *value)
Definition: GetSampledRequestsRequest.h:84
Aws::WAFRegional::Model::GetSampledRequestsRequest::WithMaxItems
GetSampledRequestsRequest & WithMaxItems(long long value)
Definition: GetSampledRequestsRequest.h:267
Aws::WAFRegional::Model::GetSampledRequestsRequest::GetSampledRequestsRequest
GetSampledRequestsRequest()
Aws::WAFRegional::Model::GetSampledRequestsRequest::RuleIdHasBeenSet
bool RuleIdHasBeenSet() const
Definition: GetSampledRequestsRequest.h:107
Aws::WAFRegional::Model::GetSampledRequestsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAFRegional::Model::GetSampledRequestsRequest::WithWebAclId
GetSampledRequestsRequest & WithWebAclId(Aws::String &&value)
Definition: GetSampledRequestsRequest.h:78
AWSString.h
Aws::WAFRegional::Model::GetSampledRequestsRequest::GetRuleId
const Aws::String & GetRuleId() const
Definition: GetSampledRequestsRequest.h:96
WAFRegional_EXPORTS.h
Aws::WAFRegional::Model::GetSampledRequestsRequest::SetRuleId
void SetRuleId(const Aws::String &value)
Definition: GetSampledRequestsRequest.h:118
Aws::WAFRegional::Model::GetSampledRequestsRequest::WithRuleId
GetSampledRequestsRequest & WithRuleId(Aws::String &&value)
Definition: GetSampledRequestsRequest.h:162
Aws::WAFRegional::Model::GetSampledRequestsRequest::GetTimeWindow
const TimeWindow & GetTimeWindow() const
Definition: GetSampledRequestsRequest.h:184
Aws::WAFRegional::Model::GetSampledRequestsRequest::SetWebAclId
void SetWebAclId(const char *value)
Definition: GetSampledRequestsRequest.h:66
Aws::WAFRegional::Model::GetSampledRequestsRequest::SetTimeWindow
void SetTimeWindow(const TimeWindow &value)
Definition: GetSampledRequestsRequest.h:204
Aws
Definition: AccessManagementClient.h:15
Aws::WAFRegional::Model::GetSampledRequestsRequest::GetMaxItems
long long GetMaxItems() const
Definition: GetSampledRequestsRequest.h:243
Aws::WAFRegional::Model::GetSampledRequestsRequest::GetWebAclId
const Aws::String & GetWebAclId() const
Definition: GetSampledRequestsRequest.h:42
Aws::WAFRegional::Model::GetSampledRequestsRequest::WithRuleId
GetSampledRequestsRequest & WithRuleId(const Aws::String &value)
Definition: GetSampledRequestsRequest.h:151
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFRegional::Model::GetSampledRequestsRequest::WithTimeWindow
GetSampledRequestsRequest & WithTimeWindow(TimeWindow &&value)
Definition: GetSampledRequestsRequest.h:234
Aws::WAFRegional::Model::GetSampledRequestsRequest::WebAclIdHasBeenSet
bool WebAclIdHasBeenSet() const
Definition: GetSampledRequestsRequest.h:48
Aws::WAFRegional::Model::GetSampledRequestsRequest::TimeWindowHasBeenSet
bool TimeWindowHasBeenSet() const
Definition: GetSampledRequestsRequest.h:194
TimeWindow.h
Aws::WAFRegional::Model::GetSampledRequestsRequest::SetWebAclId
void SetWebAclId(const Aws::String &value)
Definition: GetSampledRequestsRequest.h:54
Aws::WAFRegional::Model::GetSampledRequestsRequest::SetMaxItems
void SetMaxItems(long long value)
Definition: GetSampledRequestsRequest.h:259
Aws::WAFRegional::Model::GetSampledRequestsRequest::SetWebAclId
void SetWebAclId(Aws::String &&value)
Definition: GetSampledRequestsRequest.h:60