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-regional/WAFRegional_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/waf-regional/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 WAFRegional
24{
25namespace Model
26{
27
45 {
46 public:
47 AWS_WAFREGIONAL_API HTTPRequest();
48 AWS_WAFREGIONAL_API HTTPRequest(Aws::Utils::Json::JsonView jsonValue);
49 AWS_WAFREGIONAL_API HTTPRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
50 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
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 WAFRegional
173} // namespace Aws
HTTPRequest & WithMethod(const char *value)
void SetCountry(Aws::String &&value)
Definition HTTPRequest.h:82
void SetURI(const Aws::String &value)
Definition HTTPRequest.h:96
void SetHeaders(Aws::Vector< HTTPHeader > &&value)
HTTPRequest & AddHeaders(const HTTPHeader &value)
void SetClientIP(const char *value)
Definition HTTPRequest.h:66
void SetMethod(const char *value)
HTTPRequest & WithURI(const Aws::String &value)
Definition HTTPRequest.h:99
const Aws::String & GetMethod() const
HTTPRequest & WithMethod(Aws::String &&value)
void SetHTTPVersion(const char *value)
void SetCountry(const Aws::String &value)
Definition HTTPRequest.h:81
AWS_WAFREGIONAL_API HTTPRequest(Aws::Utils::Json::JsonView jsonValue)
HTTPRequest & WithCountry(const char *value)
Definition HTTPRequest.h:86
void SetClientIP(const Aws::String &value)
Definition HTTPRequest.h:64
void SetURI(Aws::String &&value)
Definition HTTPRequest.h:97
HTTPRequest & WithURI(Aws::String &&value)
HTTPRequest & WithHTTPVersion(const char *value)
HTTPRequest & WithMethod(const Aws::String &value)
const Aws::Vector< HTTPHeader > & GetHeaders() const
HTTPRequest & WithClientIP(const char *value)
Definition HTTPRequest.h:69
void SetCountry(const char *value)
Definition HTTPRequest.h:83
HTTPRequest & WithHeaders(const Aws::Vector< HTTPHeader > &value)
AWS_WAFREGIONAL_API HTTPRequest()
void SetMethod(const Aws::String &value)
HTTPRequest & WithHTTPVersion(const Aws::String &value)
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetURI(const char *value)
Definition HTTPRequest.h:98
const Aws::String & GetClientIP() const
Definition HTTPRequest.h:62
void SetHeaders(const Aws::Vector< HTTPHeader > &value)
HTTPRequest & WithClientIP(Aws::String &&value)
Definition HTTPRequest.h:68
HTTPRequest & WithCountry(const Aws::String &value)
Definition HTTPRequest.h:84
HTTPRequest & WithURI(const char *value)
HTTPRequest & AddHeaders(HTTPHeader &&value)
HTTPRequest & WithClientIP(const Aws::String &value)
Definition HTTPRequest.h:67
const Aws::String & GetHTTPVersion() const
HTTPRequest & WithCountry(Aws::String &&value)
Definition HTTPRequest.h:85
HTTPRequest & WithHTTPVersion(Aws::String &&value)
HTTPRequest & WithHeaders(Aws::Vector< HTTPHeader > &&value)
AWS_WAFREGIONAL_API HTTPRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCountry() const
Definition HTTPRequest.h:79
const Aws::String & GetURI() const
Definition HTTPRequest.h:94
void SetMethod(Aws::String &&value)
void SetHTTPVersion(const Aws::String &value)
void SetHTTPVersion(Aws::String &&value)
void SetClientIP(Aws::String &&value)
Definition HTTPRequest.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue