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/waf/WAF_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/waf/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 WAF
24{
25namespace Model
26{
27
45 {
46 public:
47 AWS_WAF_API HTTPRequest();
51
52
54
62 inline const Aws::String& GetClientIP() const{ return m_clientIP; }
63 inline bool ClientIPHasBeenSet() const { return m_clientIPHasBeenSet; }
64 inline void SetClientIP(const Aws::String& value) { m_clientIPHasBeenSet = true; m_clientIP = value; }
65 inline void SetClientIP(Aws::String&& value) { m_clientIPHasBeenSet = true; m_clientIP = std::move(value); }
66 inline void SetClientIP(const char* value) { m_clientIPHasBeenSet = true; m_clientIP.assign(value); }
67 inline HTTPRequest& WithClientIP(const Aws::String& value) { SetClientIP(value); return *this;}
68 inline HTTPRequest& WithClientIP(Aws::String&& value) { SetClientIP(std::move(value)); return *this;}
69 inline HTTPRequest& WithClientIP(const char* value) { SetClientIP(value); return *this;}
71
73
79 inline const Aws::String& GetCountry() const{ return m_country; }
80 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
81 inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
82 inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
83 inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
84 inline HTTPRequest& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
85 inline HTTPRequest& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
86 inline HTTPRequest& WithCountry(const char* value) { SetCountry(value); return *this;}
88
90
94 inline const Aws::String& GetURI() const{ return m_uRI; }
95 inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; }
96 inline void SetURI(const Aws::String& value) { m_uRIHasBeenSet = true; m_uRI = value; }
97 inline void SetURI(Aws::String&& value) { m_uRIHasBeenSet = true; m_uRI = std::move(value); }
98 inline void SetURI(const char* value) { m_uRIHasBeenSet = true; m_uRI.assign(value); }
99 inline HTTPRequest& WithURI(const Aws::String& value) { SetURI(value); return *this;}
100 inline HTTPRequest& WithURI(Aws::String&& value) { SetURI(std::move(value)); return *this;}
101 inline HTTPRequest& WithURI(const char* value) { SetURI(value); return *this;}
103
105
111 inline const Aws::String& GetMethod() const{ return m_method; }
112 inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
113 inline void SetMethod(const Aws::String& value) { m_methodHasBeenSet = true; m_method = value; }
114 inline void SetMethod(Aws::String&& value) { m_methodHasBeenSet = true; m_method = std::move(value); }
115 inline void SetMethod(const char* value) { m_methodHasBeenSet = true; m_method.assign(value); }
116 inline HTTPRequest& WithMethod(const Aws::String& value) { SetMethod(value); return *this;}
117 inline HTTPRequest& WithMethod(Aws::String&& value) { SetMethod(std::move(value)); return *this;}
118 inline HTTPRequest& WithMethod(const char* value) { SetMethod(value); return *this;}
120
122
126 inline const Aws::String& GetHTTPVersion() const{ return m_hTTPVersion; }
127 inline bool HTTPVersionHasBeenSet() const { return m_hTTPVersionHasBeenSet; }
128 inline void SetHTTPVersion(const Aws::String& value) { m_hTTPVersionHasBeenSet = true; m_hTTPVersion = value; }
129 inline void SetHTTPVersion(Aws::String&& value) { m_hTTPVersionHasBeenSet = true; m_hTTPVersion = std::move(value); }
130 inline void SetHTTPVersion(const char* value) { m_hTTPVersionHasBeenSet = true; m_hTTPVersion.assign(value); }
131 inline HTTPRequest& WithHTTPVersion(const Aws::String& value) { SetHTTPVersion(value); return *this;}
132 inline HTTPRequest& WithHTTPVersion(Aws::String&& value) { SetHTTPVersion(std::move(value)); return *this;}
133 inline HTTPRequest& WithHTTPVersion(const char* value) { SetHTTPVersion(value); return *this;}
135
137
141 inline const Aws::Vector<HTTPHeader>& GetHeaders() const{ return m_headers; }
142 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
143 inline void SetHeaders(const Aws::Vector<HTTPHeader>& value) { m_headersHasBeenSet = true; m_headers = value; }
144 inline void SetHeaders(Aws::Vector<HTTPHeader>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
145 inline HTTPRequest& WithHeaders(const Aws::Vector<HTTPHeader>& value) { SetHeaders(value); return *this;}
146 inline HTTPRequest& WithHeaders(Aws::Vector<HTTPHeader>&& value) { SetHeaders(std::move(value)); return *this;}
147 inline HTTPRequest& AddHeaders(const HTTPHeader& value) { m_headersHasBeenSet = true; m_headers.push_back(value); return *this; }
148 inline HTTPRequest& AddHeaders(HTTPHeader&& value) { m_headersHasBeenSet = true; m_headers.push_back(std::move(value)); return *this; }
150 private:
151
152 Aws::String m_clientIP;
153 bool m_clientIPHasBeenSet = false;
154
155 Aws::String m_country;
156 bool m_countryHasBeenSet = false;
157
158 Aws::String m_uRI;
159 bool m_uRIHasBeenSet = false;
160
161 Aws::String m_method;
162 bool m_methodHasBeenSet = false;
163
164 Aws::String m_hTTPVersion;
165 bool m_hTTPVersionHasBeenSet = false;
166
167 Aws::Vector<HTTPHeader> m_headers;
168 bool m_headersHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace WAF
173} // namespace Aws
void SetURI(const char *value)
Definition HTTPRequest.h:98
HTTPRequest & WithMethod(const char *value)
void SetHTTPVersion(Aws::String &&value)
void SetCountry(Aws::String &&value)
Definition HTTPRequest.h:82
const Aws::String & GetCountry() const
Definition HTTPRequest.h:79
HTTPRequest & WithCountry(const Aws::String &value)
Definition HTTPRequest.h:84
void SetClientIP(Aws::String &&value)
Definition HTTPRequest.h:65
void SetHeaders(Aws::Vector< HTTPHeader > &&value)
HTTPRequest & AddHeaders(HTTPHeader &&value)
void SetCountry(const char *value)
Definition HTTPRequest.h:83
HTTPRequest & WithCountry(const char *value)
Definition HTTPRequest.h:86
HTTPRequest & WithHTTPVersion(const char *value)
const Aws::String & GetClientIP() const
Definition HTTPRequest.h:62
HTTPRequest & AddHeaders(const HTTPHeader &value)
HTTPRequest & WithClientIP(const char *value)
Definition HTTPRequest.h:69
HTTPRequest & WithHTTPVersion(const Aws::String &value)
void SetURI(const Aws::String &value)
Definition HTTPRequest.h:96
HTTPRequest & WithURI(const Aws::String &value)
Definition HTTPRequest.h:99
AWS_WAF_API HTTPRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAF_API HTTPRequest(Aws::Utils::Json::JsonView jsonValue)
HTTPRequest & WithClientIP(Aws::String &&value)
Definition HTTPRequest.h:68
const Aws::String & GetMethod() const
void SetHTTPVersion(const char *value)
void SetMethod(const Aws::String &value)
void SetMethod(const char *value)
void SetHTTPVersion(const Aws::String &value)
void SetCountry(const Aws::String &value)
Definition HTTPRequest.h:81
const Aws::String & GetURI() const
Definition HTTPRequest.h:94
HTTPRequest & WithHeaders(Aws::Vector< HTTPHeader > &&value)
HTTPRequest & WithCountry(Aws::String &&value)
Definition HTTPRequest.h:85
HTTPRequest & WithClientIP(const Aws::String &value)
Definition HTTPRequest.h:67
HTTPRequest & WithHTTPVersion(Aws::String &&value)
void SetClientIP(const char *value)
Definition HTTPRequest.h:66
HTTPRequest & WithHeaders(const Aws::Vector< HTTPHeader > &value)
HTTPRequest & WithMethod(const Aws::String &value)
void SetClientIP(const Aws::String &value)
Definition HTTPRequest.h:64
void SetMethod(Aws::String &&value)
const Aws::String & GetHTTPVersion() const
HTTPRequest & WithMethod(Aws::String &&value)
void SetHeaders(const Aws::Vector< HTTPHeader > &value)
HTTPRequest & WithURI(const char *value)
const Aws::Vector< HTTPHeader > & GetHeaders() const
HTTPRequest & WithURI(Aws::String &&value)
void SetURI(Aws::String &&value)
Definition HTTPRequest.h:97
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue