AWS SDK for C++  1.9.104
AWS SDK for C++
HTTPRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace WAFV2
24 {
25 namespace Model
26 {
27 
37  {
38  public:
43 
44 
53  inline const Aws::String& GetClientIP() const{ return m_clientIP; }
54 
63  inline bool ClientIPHasBeenSet() const { return m_clientIPHasBeenSet; }
64 
73  inline void SetClientIP(const Aws::String& value) { m_clientIPHasBeenSet = true; m_clientIP = value; }
74 
83  inline void SetClientIP(Aws::String&& value) { m_clientIPHasBeenSet = true; m_clientIP = std::move(value); }
84 
93  inline void SetClientIP(const char* value) { m_clientIPHasBeenSet = true; m_clientIP.assign(value); }
94 
103  inline HTTPRequest& WithClientIP(const Aws::String& value) { SetClientIP(value); return *this;}
104 
113  inline HTTPRequest& WithClientIP(Aws::String&& value) { SetClientIP(std::move(value)); return *this;}
114 
123  inline HTTPRequest& WithClientIP(const char* value) { SetClientIP(value); return *this;}
124 
125 
132  inline const Aws::String& GetCountry() const{ return m_country; }
133 
140  inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
141 
148  inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
149 
156  inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
157 
164  inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
165 
172  inline HTTPRequest& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
173 
180  inline HTTPRequest& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
181 
188  inline HTTPRequest& WithCountry(const char* value) { SetCountry(value); return *this;}
189 
190 
195  inline const Aws::String& GetURI() const{ return m_uRI; }
196 
201  inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; }
202 
207  inline void SetURI(const Aws::String& value) { m_uRIHasBeenSet = true; m_uRI = value; }
208 
213  inline void SetURI(Aws::String&& value) { m_uRIHasBeenSet = true; m_uRI = std::move(value); }
214 
219  inline void SetURI(const char* value) { m_uRIHasBeenSet = true; m_uRI.assign(value); }
220 
225  inline HTTPRequest& WithURI(const Aws::String& value) { SetURI(value); return *this;}
226 
231  inline HTTPRequest& WithURI(Aws::String&& value) { SetURI(std::move(value)); return *this;}
232 
237  inline HTTPRequest& WithURI(const char* value) { SetURI(value); return *this;}
238 
239 
243  inline const Aws::String& GetMethod() const{ return m_method; }
244 
248  inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
249 
253  inline void SetMethod(const Aws::String& value) { m_methodHasBeenSet = true; m_method = value; }
254 
258  inline void SetMethod(Aws::String&& value) { m_methodHasBeenSet = true; m_method = std::move(value); }
259 
263  inline void SetMethod(const char* value) { m_methodHasBeenSet = true; m_method.assign(value); }
264 
268  inline HTTPRequest& WithMethod(const Aws::String& value) { SetMethod(value); return *this;}
269 
273  inline HTTPRequest& WithMethod(Aws::String&& value) { SetMethod(std::move(value)); return *this;}
274 
278  inline HTTPRequest& WithMethod(const char* value) { SetMethod(value); return *this;}
279 
280 
285  inline const Aws::String& GetHTTPVersion() const{ return m_hTTPVersion; }
286 
291  inline bool HTTPVersionHasBeenSet() const { return m_hTTPVersionHasBeenSet; }
292 
297  inline void SetHTTPVersion(const Aws::String& value) { m_hTTPVersionHasBeenSet = true; m_hTTPVersion = value; }
298 
303  inline void SetHTTPVersion(Aws::String&& value) { m_hTTPVersionHasBeenSet = true; m_hTTPVersion = std::move(value); }
304 
309  inline void SetHTTPVersion(const char* value) { m_hTTPVersionHasBeenSet = true; m_hTTPVersion.assign(value); }
310 
315  inline HTTPRequest& WithHTTPVersion(const Aws::String& value) { SetHTTPVersion(value); return *this;}
316 
321  inline HTTPRequest& WithHTTPVersion(Aws::String&& value) { SetHTTPVersion(std::move(value)); return *this;}
322 
327  inline HTTPRequest& WithHTTPVersion(const char* value) { SetHTTPVersion(value); return *this;}
328 
329 
334  inline const Aws::Vector<HTTPHeader>& GetHeaders() const{ return m_headers; }
335 
340  inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
341 
346  inline void SetHeaders(const Aws::Vector<HTTPHeader>& value) { m_headersHasBeenSet = true; m_headers = value; }
347 
352  inline void SetHeaders(Aws::Vector<HTTPHeader>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
353 
358  inline HTTPRequest& WithHeaders(const Aws::Vector<HTTPHeader>& value) { SetHeaders(value); return *this;}
359 
364  inline HTTPRequest& WithHeaders(Aws::Vector<HTTPHeader>&& value) { SetHeaders(std::move(value)); return *this;}
365 
370  inline HTTPRequest& AddHeaders(const HTTPHeader& value) { m_headersHasBeenSet = true; m_headers.push_back(value); return *this; }
371 
376  inline HTTPRequest& AddHeaders(HTTPHeader&& value) { m_headersHasBeenSet = true; m_headers.push_back(std::move(value)); return *this; }
377 
378  private:
379 
380  Aws::String m_clientIP;
381  bool m_clientIPHasBeenSet;
382 
383  Aws::String m_country;
384  bool m_countryHasBeenSet;
385 
386  Aws::String m_uRI;
387  bool m_uRIHasBeenSet;
388 
389  Aws::String m_method;
390  bool m_methodHasBeenSet;
391 
392  Aws::String m_hTTPVersion;
393  bool m_hTTPVersionHasBeenSet;
394 
395  Aws::Vector<HTTPHeader> m_headers;
396  bool m_headersHasBeenSet;
397  };
398 
399 } // namespace Model
400 } // namespace WAFV2
401 } // namespace Aws
Aws::WAFV2::Model::HTTPRequest::HeadersHasBeenSet
bool HeadersHasBeenSet() const
Definition: HTTPRequest.h:340
Aws::WAFV2::Model::HTTPRequest::WithHTTPVersion
HTTPRequest & WithHTTPVersion(Aws::String &&value)
Definition: HTTPRequest.h:321
Aws::WAFV2::Model::HTTPRequest::SetHTTPVersion
void SetHTTPVersion(const Aws::String &value)
Definition: HTTPRequest.h:297
Aws::WAFV2::Model::HTTPRequest::WithMethod
HTTPRequest & WithMethod(Aws::String &&value)
Definition: HTTPRequest.h:273
Aws::WAFV2::Model::HTTPRequest::URIHasBeenSet
bool URIHasBeenSet() const
Definition: HTTPRequest.h:201
Aws::WAFV2::Model::HTTPRequest::WithCountry
HTTPRequest & WithCountry(const char *value)
Definition: HTTPRequest.h:188
Aws::WAFV2::Model::HTTPRequest::HTTPRequest
HTTPRequest(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::HTTPRequest::SetMethod
void SetMethod(const char *value)
Definition: HTTPRequest.h:263
Aws::WAFV2::Model::HTTPRequest::SetHTTPVersion
void SetHTTPVersion(const char *value)
Definition: HTTPRequest.h:309
Aws::WAFV2::Model::HTTPRequest::WithHTTPVersion
HTTPRequest & WithHTTPVersion(const char *value)
Definition: HTTPRequest.h:327
Aws::WAFV2::Model::HTTPRequest::WithHeaders
HTTPRequest & WithHeaders(Aws::Vector< HTTPHeader > &&value)
Definition: HTTPRequest.h:364
Aws::WAFV2::Model::HTTPRequest::SetHeaders
void SetHeaders(Aws::Vector< HTTPHeader > &&value)
Definition: HTTPRequest.h:352
Aws::WAFV2::Model::HTTPRequest::SetCountry
void SetCountry(Aws::String &&value)
Definition: HTTPRequest.h:156
Aws::WAFV2::Model::HTTPRequest::WithCountry
HTTPRequest & WithCountry(Aws::String &&value)
Definition: HTTPRequest.h:180
Aws::WAFV2::Model::HTTPRequest::WithURI
HTTPRequest & WithURI(const char *value)
Definition: HTTPRequest.h:237
Aws::WAFV2::Model::HTTPRequest::SetURI
void SetURI(const char *value)
Definition: HTTPRequest.h:219
Aws::WAFV2::Model::HTTPRequest::SetURI
void SetURI(const Aws::String &value)
Definition: HTTPRequest.h:207
Aws::WAFV2::Model::HTTPRequest::HTTPVersionHasBeenSet
bool HTTPVersionHasBeenSet() const
Definition: HTTPRequest.h:291
Aws::WAFV2::Model::HTTPRequest::GetCountry
const Aws::String & GetCountry() const
Definition: HTTPRequest.h:132
Aws::WAFV2::Model::HTTPRequest::AddHeaders
HTTPRequest & AddHeaders(HTTPHeader &&value)
Definition: HTTPRequest.h:376
Aws::WAFV2::Model::HTTPRequest
Definition: HTTPRequest.h:37
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::HTTPRequest::SetClientIP
void SetClientIP(const char *value)
Definition: HTTPRequest.h:93
Aws::WAFV2::Model::HTTPRequest::GetClientIP
const Aws::String & GetClientIP() const
Definition: HTTPRequest.h:53
AWSVector.h
Aws::WAFV2::Model::HTTPRequest::SetHTTPVersion
void SetHTTPVersion(Aws::String &&value)
Definition: HTTPRequest.h:303
Aws::WAFV2::Model::HTTPRequest::MethodHasBeenSet
bool MethodHasBeenSet() const
Definition: HTTPRequest.h:248
WAFV2_EXPORTS.h
Aws::WAFV2::Model::HTTPRequest::CountryHasBeenSet
bool CountryHasBeenSet() const
Definition: HTTPRequest.h:140
Aws::WAFV2::Model::HTTPRequest::SetMethod
void SetMethod(Aws::String &&value)
Definition: HTTPRequest.h:258
Aws::WAFV2::Model::HTTPRequest::WithHeaders
HTTPRequest & WithHeaders(const Aws::Vector< HTTPHeader > &value)
Definition: HTTPRequest.h:358
Aws::WAFV2::Model::HTTPRequest::SetURI
void SetURI(Aws::String &&value)
Definition: HTTPRequest.h:213
Aws::WAFV2::Model::HTTPRequest::GetMethod
const Aws::String & GetMethod() const
Definition: HTTPRequest.h:243
Aws::WAFV2::Model::HTTPRequest::operator=
HTTPRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::HTTPRequest::WithHTTPVersion
HTTPRequest & WithHTTPVersion(const Aws::String &value)
Definition: HTTPRequest.h:315
Aws::WAFV2::Model::HTTPRequest::SetCountry
void SetCountry(const Aws::String &value)
Definition: HTTPRequest.h:148
Aws::WAFV2::Model::HTTPRequest::WithURI
HTTPRequest & WithURI(const Aws::String &value)
Definition: HTTPRequest.h:225
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::WAFV2::Model::HTTPRequest::WithURI
HTTPRequest & WithURI(Aws::String &&value)
Definition: HTTPRequest.h:231
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::HTTPRequest::SetMethod
void SetMethod(const Aws::String &value)
Definition: HTTPRequest.h:253
Aws::WAFV2::Model::HTTPRequest::WithClientIP
HTTPRequest & WithClientIP(const char *value)
Definition: HTTPRequest.h:123
Aws::WAFV2::Model::HTTPRequest::WithClientIP
HTTPRequest & WithClientIP(const Aws::String &value)
Definition: HTTPRequest.h:103
Aws::WAFV2::Model::HTTPRequest::SetCountry
void SetCountry(const char *value)
Definition: HTTPRequest.h:164
Aws::WAFV2::Model::HTTPHeader
Definition: HTTPHeader.h:35
Aws::WAFV2::Model::HTTPRequest::SetClientIP
void SetClientIP(const Aws::String &value)
Definition: HTTPRequest.h:73
Aws::WAFV2::Model::HTTPRequest::HTTPRequest
HTTPRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::HTTPRequest::WithMethod
HTTPRequest & WithMethod(const Aws::String &value)
Definition: HTTPRequest.h:268
Aws::WAFV2::Model::HTTPRequest::ClientIPHasBeenSet
bool ClientIPHasBeenSet() const
Definition: HTTPRequest.h:63
Aws::WAFV2::Model::HTTPRequest::GetHTTPVersion
const Aws::String & GetHTTPVersion() const
Definition: HTTPRequest.h:285
Aws::WAFV2::Model::HTTPRequest::SetHeaders
void SetHeaders(const Aws::Vector< HTTPHeader > &value)
Definition: HTTPRequest.h:346
Aws::WAFV2::Model::HTTPRequest::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::HTTPRequest::WithMethod
HTTPRequest & WithMethod(const char *value)
Definition: HTTPRequest.h:278
Aws::WAFV2::Model::HTTPRequest::GetHeaders
const Aws::Vector< HTTPHeader > & GetHeaders() const
Definition: HTTPRequest.h:334
HTTPHeader.h
Aws::WAFV2::Model::HTTPRequest::WithCountry
HTTPRequest & WithCountry(const Aws::String &value)
Definition: HTTPRequest.h:172
Aws::WAFV2::Model::HTTPRequest::WithClientIP
HTTPRequest & WithClientIP(Aws::String &&value)
Definition: HTTPRequest.h:113
Aws::WAFV2::Model::HTTPRequest::GetURI
const Aws::String & GetURI() const
Definition: HTTPRequest.h:195
Aws::WAFV2::Model::HTTPRequest::AddHeaders
HTTPRequest & AddHeaders(const HTTPHeader &value)
Definition: HTTPRequest.h:370
Aws::WAFV2::Model::HTTPRequest::SetClientIP
void SetClientIP(Aws::String &&value)
Definition: HTTPRequest.h:83