AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HTTPRequest.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wafv2/model/HTTPHeader.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WAFV2
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_WAFV2_API HTTPRequest();
40 AWS_WAFV2_API HTTPRequest(Aws::Utils::Json::JsonView jsonValue);
42 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
54 inline const Aws::String& GetClientIP() const{ return m_clientIP; }
55 inline bool ClientIPHasBeenSet() const { return m_clientIPHasBeenSet; }
56 inline void SetClientIP(const Aws::String& value) { m_clientIPHasBeenSet = true; m_clientIP = value; }
57 inline void SetClientIP(Aws::String&& value) { m_clientIPHasBeenSet = true; m_clientIP = std::move(value); }
58 inline void SetClientIP(const char* value) { m_clientIPHasBeenSet = true; m_clientIP.assign(value); }
59 inline HTTPRequest& WithClientIP(const Aws::String& value) { SetClientIP(value); return *this;}
60 inline HTTPRequest& WithClientIP(Aws::String&& value) { SetClientIP(std::move(value)); return *this;}
61 inline HTTPRequest& WithClientIP(const char* value) { SetClientIP(value); return *this;}
63
65
71 inline const Aws::String& GetCountry() const{ return m_country; }
72 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
73 inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
74 inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
75 inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
76 inline HTTPRequest& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
77 inline HTTPRequest& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
78 inline HTTPRequest& WithCountry(const char* value) { SetCountry(value); return *this;}
80
82
86 inline const Aws::String& GetURI() const{ return m_uRI; }
87 inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; }
88 inline void SetURI(const Aws::String& value) { m_uRIHasBeenSet = true; m_uRI = value; }
89 inline void SetURI(Aws::String&& value) { m_uRIHasBeenSet = true; m_uRI = std::move(value); }
90 inline void SetURI(const char* value) { m_uRIHasBeenSet = true; m_uRI.assign(value); }
91 inline HTTPRequest& WithURI(const Aws::String& value) { SetURI(value); return *this;}
92 inline HTTPRequest& WithURI(Aws::String&& value) { SetURI(std::move(value)); return *this;}
93 inline HTTPRequest& WithURI(const char* value) { SetURI(value); return *this;}
95
97
100 inline const Aws::String& GetMethod() const{ return m_method; }
101 inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
102 inline void SetMethod(const Aws::String& value) { m_methodHasBeenSet = true; m_method = value; }
103 inline void SetMethod(Aws::String&& value) { m_methodHasBeenSet = true; m_method = std::move(value); }
104 inline void SetMethod(const char* value) { m_methodHasBeenSet = true; m_method.assign(value); }
105 inline HTTPRequest& WithMethod(const Aws::String& value) { SetMethod(value); return *this;}
106 inline HTTPRequest& WithMethod(Aws::String&& value) { SetMethod(std::move(value)); return *this;}
107 inline HTTPRequest& WithMethod(const char* value) { SetMethod(value); return *this;}
109
111
115 inline const Aws::String& GetHTTPVersion() const{ return m_hTTPVersion; }
116 inline bool HTTPVersionHasBeenSet() const { return m_hTTPVersionHasBeenSet; }
117 inline void SetHTTPVersion(const Aws::String& value) { m_hTTPVersionHasBeenSet = true; m_hTTPVersion = value; }
118 inline void SetHTTPVersion(Aws::String&& value) { m_hTTPVersionHasBeenSet = true; m_hTTPVersion = std::move(value); }
119 inline void SetHTTPVersion(const char* value) { m_hTTPVersionHasBeenSet = true; m_hTTPVersion.assign(value); }
120 inline HTTPRequest& WithHTTPVersion(const Aws::String& value) { SetHTTPVersion(value); return *this;}
121 inline HTTPRequest& WithHTTPVersion(Aws::String&& value) { SetHTTPVersion(std::move(value)); return *this;}
122 inline HTTPRequest& WithHTTPVersion(const char* value) { SetHTTPVersion(value); return *this;}
124
126
130 inline const Aws::Vector<HTTPHeader>& GetHeaders() const{ return m_headers; }
131 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
132 inline void SetHeaders(const Aws::Vector<HTTPHeader>& value) { m_headersHasBeenSet = true; m_headers = value; }
133 inline void SetHeaders(Aws::Vector<HTTPHeader>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
134 inline HTTPRequest& WithHeaders(const Aws::Vector<HTTPHeader>& value) { SetHeaders(value); return *this;}
135 inline HTTPRequest& WithHeaders(Aws::Vector<HTTPHeader>&& value) { SetHeaders(std::move(value)); return *this;}
136 inline HTTPRequest& AddHeaders(const HTTPHeader& value) { m_headersHasBeenSet = true; m_headers.push_back(value); return *this; }
137 inline HTTPRequest& AddHeaders(HTTPHeader&& value) { m_headersHasBeenSet = true; m_headers.push_back(std::move(value)); return *this; }
139 private:
140
141 Aws::String m_clientIP;
142 bool m_clientIPHasBeenSet = false;
143
144 Aws::String m_country;
145 bool m_countryHasBeenSet = false;
146
147 Aws::String m_uRI;
148 bool m_uRIHasBeenSet = false;
149
150 Aws::String m_method;
151 bool m_methodHasBeenSet = false;
152
153 Aws::String m_hTTPVersion;
154 bool m_hTTPVersionHasBeenSet = false;
155
156 Aws::Vector<HTTPHeader> m_headers;
157 bool m_headersHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace WAFV2
162} // namespace Aws
void SetCountry(Aws::String &&value)
Definition HTTPRequest.h:74
HTTPRequest & WithCountry(const Aws::String &value)
Definition HTTPRequest.h:76
HTTPRequest & WithURI(Aws::String &&value)
Definition HTTPRequest.h:92
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetClientIP(const Aws::String &value)
Definition HTTPRequest.h:56
void SetHeaders(const Aws::Vector< HTTPHeader > &value)
HTTPRequest & WithClientIP(Aws::String &&value)
Definition HTTPRequest.h:60
HTTPRequest & WithHTTPVersion(const char *value)
void SetMethod(const char *value)
void SetHTTPVersion(Aws::String &&value)
const Aws::String & GetHTTPVersion() const
HTTPRequest & WithHTTPVersion(Aws::String &&value)
HTTPRequest & WithURI(const Aws::String &value)
Definition HTTPRequest.h:91
void SetHTTPVersion(const char *value)
HTTPRequest & WithMethod(const Aws::String &value)
void SetURI(const Aws::String &value)
Definition HTTPRequest.h:88
AWS_WAFV2_API HTTPRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API HTTPRequest(Aws::Utils::Json::JsonView jsonValue)
HTTPRequest & WithClientIP(const char *value)
Definition HTTPRequest.h:61
const Aws::Vector< HTTPHeader > & GetHeaders() const
const Aws::String & GetMethod() const
HTTPRequest & WithMethod(Aws::String &&value)
void SetURI(const char *value)
Definition HTTPRequest.h:90
HTTPRequest & WithMethod(const char *value)
const Aws::String & GetCountry() const
Definition HTTPRequest.h:71
HTTPRequest & WithHTTPVersion(const Aws::String &value)
void SetCountry(const char *value)
Definition HTTPRequest.h:75
HTTPRequest & WithClientIP(const Aws::String &value)
Definition HTTPRequest.h:59
void SetHeaders(Aws::Vector< HTTPHeader > &&value)
HTTPRequest & WithCountry(const char *value)
Definition HTTPRequest.h:78
const Aws::String & GetURI() const
Definition HTTPRequest.h:86
HTTPRequest & AddHeaders(const HTTPHeader &value)
void SetMethod(Aws::String &&value)
HTTPRequest & WithHeaders(Aws::Vector< HTTPHeader > &&value)
HTTPRequest & WithURI(const char *value)
Definition HTTPRequest.h:93
void SetMethod(const Aws::String &value)
void SetHTTPVersion(const Aws::String &value)
void SetClientIP(const char *value)
Definition HTTPRequest.h:58
HTTPRequest & AddHeaders(HTTPHeader &&value)
void SetCountry(const Aws::String &value)
Definition HTTPRequest.h:73
void SetClientIP(Aws::String &&value)
Definition HTTPRequest.h:57
HTTPRequest & WithCountry(Aws::String &&value)
Definition HTTPRequest.h:77
const Aws::String & GetClientIP() const
Definition HTTPRequest.h:54
HTTPRequest & WithHeaders(const Aws::Vector< HTTPHeader > &value)
void SetURI(Aws::String &&value)
Definition HTTPRequest.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue