AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FieldToMatch.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/SingleHeader.h>
9#include <aws/wafv2/model/SingleQueryArgument.h>
10#include <aws/wafv2/model/AllQueryArguments.h>
11#include <aws/wafv2/model/UriPath.h>
12#include <aws/wafv2/model/QueryString.h>
13#include <aws/wafv2/model/Body.h>
14#include <aws/wafv2/model/Method.h>
15#include <aws/wafv2/model/JsonBody.h>
16#include <aws/wafv2/model/Headers.h>
17#include <aws/wafv2/model/Cookies.h>
18#include <aws/wafv2/model/HeaderOrder.h>
19#include <aws/wafv2/model/JA3Fingerprint.h>
20#include <utility>
21
22namespace Aws
23{
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29 class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace WAFV2
33{
34namespace Model
35{
36
66 {
67 public:
68 AWS_WAFV2_API FieldToMatch();
69 AWS_WAFV2_API FieldToMatch(Aws::Utils::Json::JsonView jsonValue);
71 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
72
73
75
82 inline const SingleHeader& GetSingleHeader() const{ return m_singleHeader; }
83 inline bool SingleHeaderHasBeenSet() const { return m_singleHeaderHasBeenSet; }
84 inline void SetSingleHeader(const SingleHeader& value) { m_singleHeaderHasBeenSet = true; m_singleHeader = value; }
85 inline void SetSingleHeader(SingleHeader&& value) { m_singleHeaderHasBeenSet = true; m_singleHeader = std::move(value); }
86 inline FieldToMatch& WithSingleHeader(const SingleHeader& value) { SetSingleHeader(value); return *this;}
87 inline FieldToMatch& WithSingleHeader(SingleHeader&& value) { SetSingleHeader(std::move(value)); return *this;}
89
91
97 inline const SingleQueryArgument& GetSingleQueryArgument() const{ return m_singleQueryArgument; }
98 inline bool SingleQueryArgumentHasBeenSet() const { return m_singleQueryArgumentHasBeenSet; }
99 inline void SetSingleQueryArgument(const SingleQueryArgument& value) { m_singleQueryArgumentHasBeenSet = true; m_singleQueryArgument = value; }
100 inline void SetSingleQueryArgument(SingleQueryArgument&& value) { m_singleQueryArgumentHasBeenSet = true; m_singleQueryArgument = std::move(value); }
102 inline FieldToMatch& WithSingleQueryArgument(SingleQueryArgument&& value) { SetSingleQueryArgument(std::move(value)); return *this;}
104
106
109 inline const AllQueryArguments& GetAllQueryArguments() const{ return m_allQueryArguments; }
110 inline bool AllQueryArgumentsHasBeenSet() const { return m_allQueryArgumentsHasBeenSet; }
111 inline void SetAllQueryArguments(const AllQueryArguments& value) { m_allQueryArgumentsHasBeenSet = true; m_allQueryArguments = value; }
112 inline void SetAllQueryArguments(AllQueryArguments&& value) { m_allQueryArgumentsHasBeenSet = true; m_allQueryArguments = std::move(value); }
113 inline FieldToMatch& WithAllQueryArguments(const AllQueryArguments& value) { SetAllQueryArguments(value); return *this;}
114 inline FieldToMatch& WithAllQueryArguments(AllQueryArguments&& value) { SetAllQueryArguments(std::move(value)); return *this;}
116
118
122 inline const UriPath& GetUriPath() const{ return m_uriPath; }
123 inline bool UriPathHasBeenSet() const { return m_uriPathHasBeenSet; }
124 inline void SetUriPath(const UriPath& value) { m_uriPathHasBeenSet = true; m_uriPath = value; }
125 inline void SetUriPath(UriPath&& value) { m_uriPathHasBeenSet = true; m_uriPath = std::move(value); }
126 inline FieldToMatch& WithUriPath(const UriPath& value) { SetUriPath(value); return *this;}
127 inline FieldToMatch& WithUriPath(UriPath&& value) { SetUriPath(std::move(value)); return *this;}
129
131
135 inline const QueryString& GetQueryString() const{ return m_queryString; }
136 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
137 inline void SetQueryString(const QueryString& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
138 inline void SetQueryString(QueryString&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
139 inline FieldToMatch& WithQueryString(const QueryString& value) { SetQueryString(value); return *this;}
140 inline FieldToMatch& WithQueryString(QueryString&& value) { SetQueryString(std::move(value)); return *this;}
142
144
160 inline const Body& GetBody() const{ return m_body; }
161 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
162 inline void SetBody(const Body& value) { m_bodyHasBeenSet = true; m_body = value; }
163 inline void SetBody(Body&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
164 inline FieldToMatch& WithBody(const Body& value) { SetBody(value); return *this;}
165 inline FieldToMatch& WithBody(Body&& value) { SetBody(std::move(value)); return *this;}
167
169
173 inline const Method& GetMethod() const{ return m_method; }
174 inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
175 inline void SetMethod(const Method& value) { m_methodHasBeenSet = true; m_method = value; }
176 inline void SetMethod(Method&& value) { m_methodHasBeenSet = true; m_method = std::move(value); }
177 inline FieldToMatch& WithMethod(const Method& value) { SetMethod(value); return *this;}
178 inline FieldToMatch& WithMethod(Method&& value) { SetMethod(std::move(value)); return *this;}
180
182
198 inline const JsonBody& GetJsonBody() const{ return m_jsonBody; }
199 inline bool JsonBodyHasBeenSet() const { return m_jsonBodyHasBeenSet; }
200 inline void SetJsonBody(const JsonBody& value) { m_jsonBodyHasBeenSet = true; m_jsonBody = value; }
201 inline void SetJsonBody(JsonBody&& value) { m_jsonBodyHasBeenSet = true; m_jsonBody = std::move(value); }
202 inline FieldToMatch& WithJsonBody(const JsonBody& value) { SetJsonBody(value); return *this;}
203 inline FieldToMatch& WithJsonBody(JsonBody&& value) { SetJsonBody(std::move(value)); return *this;}
205
207
217 inline const Headers& GetHeaders() const{ return m_headers; }
218 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
219 inline void SetHeaders(const Headers& value) { m_headersHasBeenSet = true; m_headers = value; }
220 inline void SetHeaders(Headers&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
221 inline FieldToMatch& WithHeaders(const Headers& value) { SetHeaders(value); return *this;}
222 inline FieldToMatch& WithHeaders(Headers&& value) { SetHeaders(std::move(value)); return *this;}
224
226
236 inline const Cookies& GetCookies() const{ return m_cookies; }
237 inline bool CookiesHasBeenSet() const { return m_cookiesHasBeenSet; }
238 inline void SetCookies(const Cookies& value) { m_cookiesHasBeenSet = true; m_cookies = value; }
239 inline void SetCookies(Cookies&& value) { m_cookiesHasBeenSet = true; m_cookies = std::move(value); }
240 inline FieldToMatch& WithCookies(const Cookies& value) { SetCookies(value); return *this;}
241 inline FieldToMatch& WithCookies(Cookies&& value) { SetCookies(std::move(value)); return *this;}
243
245
253 inline const HeaderOrder& GetHeaderOrder() const{ return m_headerOrder; }
254 inline bool HeaderOrderHasBeenSet() const { return m_headerOrderHasBeenSet; }
255 inline void SetHeaderOrder(const HeaderOrder& value) { m_headerOrderHasBeenSet = true; m_headerOrder = value; }
256 inline void SetHeaderOrder(HeaderOrder&& value) { m_headerOrderHasBeenSet = true; m_headerOrder = std::move(value); }
257 inline FieldToMatch& WithHeaderOrder(const HeaderOrder& value) { SetHeaderOrder(value); return *this;}
258 inline FieldToMatch& WithHeaderOrder(HeaderOrder&& value) { SetHeaderOrder(std::move(value)); return *this;}
260
262
280 inline const JA3Fingerprint& GetJA3Fingerprint() const{ return m_jA3Fingerprint; }
281 inline bool JA3FingerprintHasBeenSet() const { return m_jA3FingerprintHasBeenSet; }
282 inline void SetJA3Fingerprint(const JA3Fingerprint& value) { m_jA3FingerprintHasBeenSet = true; m_jA3Fingerprint = value; }
283 inline void SetJA3Fingerprint(JA3Fingerprint&& value) { m_jA3FingerprintHasBeenSet = true; m_jA3Fingerprint = std::move(value); }
284 inline FieldToMatch& WithJA3Fingerprint(const JA3Fingerprint& value) { SetJA3Fingerprint(value); return *this;}
285 inline FieldToMatch& WithJA3Fingerprint(JA3Fingerprint&& value) { SetJA3Fingerprint(std::move(value)); return *this;}
287 private:
288
289 SingleHeader m_singleHeader;
290 bool m_singleHeaderHasBeenSet = false;
291
292 SingleQueryArgument m_singleQueryArgument;
293 bool m_singleQueryArgumentHasBeenSet = false;
294
295 AllQueryArguments m_allQueryArguments;
296 bool m_allQueryArgumentsHasBeenSet = false;
297
298 UriPath m_uriPath;
299 bool m_uriPathHasBeenSet = false;
300
301 QueryString m_queryString;
302 bool m_queryStringHasBeenSet = false;
303
304 Body m_body;
305 bool m_bodyHasBeenSet = false;
306
307 Method m_method;
308 bool m_methodHasBeenSet = false;
309
310 JsonBody m_jsonBody;
311 bool m_jsonBodyHasBeenSet = false;
312
313 Headers m_headers;
314 bool m_headersHasBeenSet = false;
315
316 Cookies m_cookies;
317 bool m_cookiesHasBeenSet = false;
318
319 HeaderOrder m_headerOrder;
320 bool m_headerOrderHasBeenSet = false;
321
322 JA3Fingerprint m_jA3Fingerprint;
323 bool m_jA3FingerprintHasBeenSet = false;
324 };
325
326} // namespace Model
327} // namespace WAFV2
328} // namespace Aws
FieldToMatch & WithAllQueryArguments(AllQueryArguments &&value)
void SetJsonBody(const JsonBody &value)
void SetSingleQueryArgument(SingleQueryArgument &&value)
FieldToMatch & WithCookies(const Cookies &value)
void SetHeaderOrder(const HeaderOrder &value)
const Headers & GetHeaders() const
FieldToMatch & WithBody(const Body &value)
const JsonBody & GetJsonBody() const
FieldToMatch & WithJsonBody(JsonBody &&value)
void SetSingleQueryArgument(const SingleQueryArgument &value)
void SetHeaders(const Headers &value)
FieldToMatch & WithMethod(const Method &value)
void SetCookies(const Cookies &value)
void SetQueryString(const QueryString &value)
FieldToMatch & WithQueryString(const QueryString &value)
FieldToMatch & WithCookies(Cookies &&value)
bool SingleQueryArgumentHasBeenSet() const
FieldToMatch & WithHeaders(const Headers &value)
void SetUriPath(UriPath &&value)
const SingleHeader & GetSingleHeader() const
const JA3Fingerprint & GetJA3Fingerprint() const
void SetCookies(Cookies &&value)
const HeaderOrder & GetHeaderOrder() const
AWS_WAFV2_API FieldToMatch(Aws::Utils::Json::JsonView jsonValue)
void SetQueryString(QueryString &&value)
FieldToMatch & WithSingleHeader(SingleHeader &&value)
FieldToMatch & WithSingleQueryArgument(const SingleQueryArgument &value)
FieldToMatch & WithSingleHeader(const SingleHeader &value)
const Method & GetMethod() const
void SetAllQueryArguments(const AllQueryArguments &value)
void SetUriPath(const UriPath &value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetJA3Fingerprint(const JA3Fingerprint &value)
void SetSingleHeader(SingleHeader &&value)
FieldToMatch & WithSingleQueryArgument(SingleQueryArgument &&value)
const QueryString & GetQueryString() const
void SetJA3Fingerprint(JA3Fingerprint &&value)
const Cookies & GetCookies() const
void SetMethod(const Method &value)
void SetAllQueryArguments(AllQueryArguments &&value)
FieldToMatch & WithBody(Body &&value)
FieldToMatch & WithUriPath(UriPath &&value)
FieldToMatch & WithQueryString(QueryString &&value)
void SetBody(const Body &value)
FieldToMatch & WithHeaders(Headers &&value)
FieldToMatch & WithJsonBody(const JsonBody &value)
FieldToMatch & WithAllQueryArguments(const AllQueryArguments &value)
void SetHeaders(Headers &&value)
const UriPath & GetUriPath() const
FieldToMatch & WithJA3Fingerprint(JA3Fingerprint &&value)
FieldToMatch & WithJA3Fingerprint(const JA3Fingerprint &value)
void SetJsonBody(JsonBody &&value)
void SetSingleHeader(const SingleHeader &value)
const AllQueryArguments & GetAllQueryArguments() const
void SetHeaderOrder(HeaderOrder &&value)
FieldToMatch & WithHeaderOrder(HeaderOrder &&value)
FieldToMatch & WithMethod(Method &&value)
const SingleQueryArgument & GetSingleQueryArgument() const
FieldToMatch & WithHeaderOrder(const HeaderOrder &value)
void SetMethod(Method &&value)
AWS_WAFV2_API FieldToMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
const Body & GetBody() const
FieldToMatch & WithUriPath(const UriPath &value)
Aws::Utils::Json::JsonValue JsonValue