AWS SDK for C++  0.14.3
AWS SDK for C++
GetSampledRequestsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/waf/WAF_EXPORTS.h>
17 #include <aws/waf/WAFRequest.h>
20 
21 namespace Aws
22 {
23 namespace WAF
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
42  inline const Aws::String& GetWebAclId() const{ return m_webAclId; }
43 
48  inline void SetWebAclId(const Aws::String& value) { m_webAclIdHasBeenSet = true; m_webAclId = value; }
49 
54  inline void SetWebAclId(Aws::String&& value) { m_webAclIdHasBeenSet = true; m_webAclId = value; }
55 
60  inline void SetWebAclId(const char* value) { m_webAclIdHasBeenSet = true; m_webAclId.assign(value); }
61 
66  inline GetSampledRequestsRequest& WithWebAclId(const Aws::String& value) { SetWebAclId(value); return *this;}
67 
72  inline GetSampledRequestsRequest& WithWebAclId(Aws::String&& value) { SetWebAclId(value); return *this;}
73 
78  inline GetSampledRequestsRequest& WithWebAclId(const char* value) { SetWebAclId(value); return *this;}
79 
88  inline const Aws::String& GetRuleId() const{ return m_ruleId; }
89 
98  inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
99 
108  inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
109 
118  inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
119 
128  inline GetSampledRequestsRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
129 
138  inline GetSampledRequestsRequest& WithRuleId(Aws::String&& value) { SetRuleId(value); return *this;}
139 
148  inline GetSampledRequestsRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;}
149 
156  inline const TimeWindow& GetTimeWindow() const{ return m_timeWindow; }
157 
164  inline void SetTimeWindow(const TimeWindow& value) { m_timeWindowHasBeenSet = true; m_timeWindow = value; }
165 
172  inline void SetTimeWindow(TimeWindow&& value) { m_timeWindowHasBeenSet = true; m_timeWindow = value; }
173 
180  inline GetSampledRequestsRequest& WithTimeWindow(const TimeWindow& value) { SetTimeWindow(value); return *this;}
181 
188  inline GetSampledRequestsRequest& WithTimeWindow(TimeWindow&& value) { SetTimeWindow(value); return *this;}
189 
196  inline long long GetMaxItems() const{ return m_maxItems; }
197 
204  inline void SetMaxItems(long long value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
205 
212  inline GetSampledRequestsRequest& WithMaxItems(long long value) { SetMaxItems(value); return *this;}
213 
214  private:
215  Aws::String m_webAclId;
216  bool m_webAclIdHasBeenSet;
217  Aws::String m_ruleId;
218  bool m_ruleIdHasBeenSet;
219  TimeWindow m_timeWindow;
220  bool m_timeWindowHasBeenSet;
221  long long m_maxItems;
222  bool m_maxItemsHasBeenSet;
223  };
224 
225 } // namespace Model
226 } // namespace WAF
227 } // namespace Aws
GetSampledRequestsRequest & WithTimeWindow(TimeWindow &&value)
GetSampledRequestsRequest & WithTimeWindow(const TimeWindow &value)
GetSampledRequestsRequest & WithMaxItems(long long value)
GetSampledRequestsRequest & WithWebAclId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
GetSampledRequestsRequest & WithWebAclId(const Aws::String &value)
GetSampledRequestsRequest & WithRuleId(const Aws::String &value)
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:37
GetSampledRequestsRequest & WithRuleId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetSampledRequestsRequest & WithWebAclId(const char *value)
GetSampledRequestsRequest & WithRuleId(const char *value)
JSON (JavaScript Object Notation).