AWS SDK for C++  0.14.3
AWS SDK for C++
SampledHTTPRequest.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>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace WAF
31 {
32 namespace Model
33 {
34 
44  {
45  public:
48  SampledHTTPRequest& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
49  Aws::Utils::Json::JsonValue Jsonize() const;
50 
54  inline const HTTPRequest& GetRequest() const{ return m_request; }
55 
59  inline void SetRequest(const HTTPRequest& value) { m_requestHasBeenSet = true; m_request = value; }
60 
64  inline void SetRequest(HTTPRequest&& value) { m_requestHasBeenSet = true; m_request = value; }
65 
69  inline SampledHTTPRequest& WithRequest(const HTTPRequest& value) { SetRequest(value); return *this;}
70 
74  inline SampledHTTPRequest& WithRequest(HTTPRequest&& value) { SetRequest(value); return *this;}
75 
82  inline long long GetWeight() const{ return m_weight; }
83 
90  inline void SetWeight(long long value) { m_weightHasBeenSet = true; m_weight = value; }
91 
98  inline SampledHTTPRequest& WithWeight(long long value) { SetWeight(value); return *this;}
99 
104  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
105 
110  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
111 
116  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
117 
122  inline SampledHTTPRequest& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
123 
128  inline SampledHTTPRequest& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(value); return *this;}
129 
134  inline const Aws::String& GetAction() const{ return m_action; }
135 
140  inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
141 
146  inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = value; }
147 
152  inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
153 
158  inline SampledHTTPRequest& WithAction(const Aws::String& value) { SetAction(value); return *this;}
159 
164  inline SampledHTTPRequest& WithAction(Aws::String&& value) { SetAction(value); return *this;}
165 
170  inline SampledHTTPRequest& WithAction(const char* value) { SetAction(value); return *this;}
171 
172  private:
173  HTTPRequest m_request;
174  bool m_requestHasBeenSet;
175  long long m_weight;
176  bool m_weightHasBeenSet;
177  Aws::Utils::DateTime m_timestamp;
178  bool m_timestampHasBeenSet;
179  Aws::String m_action;
180  bool m_actionHasBeenSet;
181  };
182 
183 } // namespace Model
184 } // namespace WAF
185 } // namespace Aws
const Aws::Utils::DateTime & GetTimestamp() const
const HTTPRequest & GetRequest() const
void SetAction(const Aws::String &value)
void SetTimestamp(Aws::Utils::DateTime &&value)
const Aws::String & GetAction() const
SampledHTTPRequest & WithAction(const Aws::String &value)
SampledHTTPRequest & WithAction(const char *value)
SampledHTTPRequest & WithRequest(const HTTPRequest &value)
SampledHTTPRequest & WithRequest(HTTPRequest &&value)
void SetRequest(HTTPRequest &&value)
SampledHTTPRequest & WithTimestamp(const Aws::Utils::DateTime &value)
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:37
SampledHTTPRequest & WithTimestamp(Aws::Utils::DateTime &&value)
SampledHTTPRequest & WithAction(Aws::String &&value)
void SetAction(Aws::String &&value)
void SetRequest(const HTTPRequest &value)
void SetTimestamp(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SampledHTTPRequest & WithWeight(long long value)
JSON (JavaScript Object Notation).