AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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 <aws/wafv2/model/JA4Fingerprint.h>
21#include <aws/wafv2/model/UriFragment.h>
22#include <utility>
23
24namespace Aws
25{
26namespace Utils
27{
28namespace Json
29{
30 class JsonValue;
31 class JsonView;
32} // namespace Json
33} // namespace Utils
34namespace WAFV2
35{
36namespace Model
37{
38
69 {
70 public:
71 AWS_WAFV2_API FieldToMatch() = default;
72 AWS_WAFV2_API FieldToMatch(Aws::Utils::Json::JsonView jsonValue);
74 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
75
76
78
85 inline const SingleHeader& GetSingleHeader() const { return m_singleHeader; }
86 inline bool SingleHeaderHasBeenSet() const { return m_singleHeaderHasBeenSet; }
87 template<typename SingleHeaderT = SingleHeader>
88 void SetSingleHeader(SingleHeaderT&& value) { m_singleHeaderHasBeenSet = true; m_singleHeader = std::forward<SingleHeaderT>(value); }
89 template<typename SingleHeaderT = SingleHeader>
90 FieldToMatch& WithSingleHeader(SingleHeaderT&& value) { SetSingleHeader(std::forward<SingleHeaderT>(value)); return *this;}
92
94
100 inline const SingleQueryArgument& GetSingleQueryArgument() const { return m_singleQueryArgument; }
101 inline bool SingleQueryArgumentHasBeenSet() const { return m_singleQueryArgumentHasBeenSet; }
102 template<typename SingleQueryArgumentT = SingleQueryArgument>
103 void SetSingleQueryArgument(SingleQueryArgumentT&& value) { m_singleQueryArgumentHasBeenSet = true; m_singleQueryArgument = std::forward<SingleQueryArgumentT>(value); }
104 template<typename SingleQueryArgumentT = SingleQueryArgument>
105 FieldToMatch& WithSingleQueryArgument(SingleQueryArgumentT&& value) { SetSingleQueryArgument(std::forward<SingleQueryArgumentT>(value)); return *this;}
107
109
112 inline const AllQueryArguments& GetAllQueryArguments() const { return m_allQueryArguments; }
113 inline bool AllQueryArgumentsHasBeenSet() const { return m_allQueryArgumentsHasBeenSet; }
114 template<typename AllQueryArgumentsT = AllQueryArguments>
115 void SetAllQueryArguments(AllQueryArgumentsT&& value) { m_allQueryArgumentsHasBeenSet = true; m_allQueryArguments = std::forward<AllQueryArgumentsT>(value); }
116 template<typename AllQueryArgumentsT = AllQueryArguments>
117 FieldToMatch& WithAllQueryArguments(AllQueryArgumentsT&& value) { SetAllQueryArguments(std::forward<AllQueryArgumentsT>(value)); return *this;}
119
121
125 inline const UriPath& GetUriPath() const { return m_uriPath; }
126 inline bool UriPathHasBeenSet() const { return m_uriPathHasBeenSet; }
127 template<typename UriPathT = UriPath>
128 void SetUriPath(UriPathT&& value) { m_uriPathHasBeenSet = true; m_uriPath = std::forward<UriPathT>(value); }
129 template<typename UriPathT = UriPath>
130 FieldToMatch& WithUriPath(UriPathT&& value) { SetUriPath(std::forward<UriPathT>(value)); return *this;}
132
134
138 inline const QueryString& GetQueryString() const { return m_queryString; }
139 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
140 template<typename QueryStringT = QueryString>
141 void SetQueryString(QueryStringT&& value) { m_queryStringHasBeenSet = true; m_queryString = std::forward<QueryStringT>(value); }
142 template<typename QueryStringT = QueryString>
143 FieldToMatch& WithQueryString(QueryStringT&& value) { SetQueryString(std::forward<QueryStringT>(value)); return *this;}
145
147
164 inline const Body& GetBody() const { return m_body; }
165 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
166 template<typename BodyT = Body>
167 void SetBody(BodyT&& value) { m_bodyHasBeenSet = true; m_body = std::forward<BodyT>(value); }
168 template<typename BodyT = Body>
169 FieldToMatch& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
171
173
177 inline const Method& GetMethod() const { return m_method; }
178 inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
179 template<typename MethodT = Method>
180 void SetMethod(MethodT&& value) { m_methodHasBeenSet = true; m_method = std::forward<MethodT>(value); }
181 template<typename MethodT = Method>
182 FieldToMatch& WithMethod(MethodT&& value) { SetMethod(std::forward<MethodT>(value)); return *this;}
184
186
203 inline const JsonBody& GetJsonBody() const { return m_jsonBody; }
204 inline bool JsonBodyHasBeenSet() const { return m_jsonBodyHasBeenSet; }
205 template<typename JsonBodyT = JsonBody>
206 void SetJsonBody(JsonBodyT&& value) { m_jsonBodyHasBeenSet = true; m_jsonBody = std::forward<JsonBodyT>(value); }
207 template<typename JsonBodyT = JsonBody>
208 FieldToMatch& WithJsonBody(JsonBodyT&& value) { SetJsonBody(std::forward<JsonBodyT>(value)); return *this;}
210
212
222 inline const Headers& GetHeaders() const { return m_headers; }
223 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
224 template<typename HeadersT = Headers>
225 void SetHeaders(HeadersT&& value) { m_headersHasBeenSet = true; m_headers = std::forward<HeadersT>(value); }
226 template<typename HeadersT = Headers>
227 FieldToMatch& WithHeaders(HeadersT&& value) { SetHeaders(std::forward<HeadersT>(value)); return *this;}
229
231
241 inline const Cookies& GetCookies() const { return m_cookies; }
242 inline bool CookiesHasBeenSet() const { return m_cookiesHasBeenSet; }
243 template<typename CookiesT = Cookies>
244 void SetCookies(CookiesT&& value) { m_cookiesHasBeenSet = true; m_cookies = std::forward<CookiesT>(value); }
245 template<typename CookiesT = Cookies>
246 FieldToMatch& WithCookies(CookiesT&& value) { SetCookies(std::forward<CookiesT>(value)); return *this;}
248
250
258 inline const HeaderOrder& GetHeaderOrder() const { return m_headerOrder; }
259 inline bool HeaderOrderHasBeenSet() const { return m_headerOrderHasBeenSet; }
260 template<typename HeaderOrderT = HeaderOrder>
261 void SetHeaderOrder(HeaderOrderT&& value) { m_headerOrderHasBeenSet = true; m_headerOrder = std::forward<HeaderOrderT>(value); }
262 template<typename HeaderOrderT = HeaderOrder>
263 FieldToMatch& WithHeaderOrder(HeaderOrderT&& value) { SetHeaderOrder(std::forward<HeaderOrderT>(value)); return *this;}
265
267
285 inline const JA3Fingerprint& GetJA3Fingerprint() const { return m_jA3Fingerprint; }
286 inline bool JA3FingerprintHasBeenSet() const { return m_jA3FingerprintHasBeenSet; }
287 template<typename JA3FingerprintT = JA3Fingerprint>
288 void SetJA3Fingerprint(JA3FingerprintT&& value) { m_jA3FingerprintHasBeenSet = true; m_jA3Fingerprint = std::forward<JA3FingerprintT>(value); }
289 template<typename JA3FingerprintT = JA3Fingerprint>
290 FieldToMatch& WithJA3Fingerprint(JA3FingerprintT&& value) { SetJA3Fingerprint(std::forward<JA3FingerprintT>(value)); return *this;}
292
294
312 inline const JA4Fingerprint& GetJA4Fingerprint() const { return m_jA4Fingerprint; }
313 inline bool JA4FingerprintHasBeenSet() const { return m_jA4FingerprintHasBeenSet; }
314 template<typename JA4FingerprintT = JA4Fingerprint>
315 void SetJA4Fingerprint(JA4FingerprintT&& value) { m_jA4FingerprintHasBeenSet = true; m_jA4Fingerprint = std::forward<JA4FingerprintT>(value); }
316 template<typename JA4FingerprintT = JA4Fingerprint>
317 FieldToMatch& WithJA4Fingerprint(JA4FingerprintT&& value) { SetJA4Fingerprint(std::forward<JA4FingerprintT>(value)); return *this;}
319
321
331 inline const UriFragment& GetUriFragment() const { return m_uriFragment; }
332 inline bool UriFragmentHasBeenSet() const { return m_uriFragmentHasBeenSet; }
333 template<typename UriFragmentT = UriFragment>
334 void SetUriFragment(UriFragmentT&& value) { m_uriFragmentHasBeenSet = true; m_uriFragment = std::forward<UriFragmentT>(value); }
335 template<typename UriFragmentT = UriFragment>
336 FieldToMatch& WithUriFragment(UriFragmentT&& value) { SetUriFragment(std::forward<UriFragmentT>(value)); return *this;}
338 private:
339
340 SingleHeader m_singleHeader;
341 bool m_singleHeaderHasBeenSet = false;
342
343 SingleQueryArgument m_singleQueryArgument;
344 bool m_singleQueryArgumentHasBeenSet = false;
345
346 AllQueryArguments m_allQueryArguments;
347 bool m_allQueryArgumentsHasBeenSet = false;
348
349 UriPath m_uriPath;
350 bool m_uriPathHasBeenSet = false;
351
352 QueryString m_queryString;
353 bool m_queryStringHasBeenSet = false;
354
355 Body m_body;
356 bool m_bodyHasBeenSet = false;
357
358 Method m_method;
359 bool m_methodHasBeenSet = false;
360
361 JsonBody m_jsonBody;
362 bool m_jsonBodyHasBeenSet = false;
363
364 Headers m_headers;
365 bool m_headersHasBeenSet = false;
366
367 Cookies m_cookies;
368 bool m_cookiesHasBeenSet = false;
369
370 HeaderOrder m_headerOrder;
371 bool m_headerOrderHasBeenSet = false;
372
373 JA3Fingerprint m_jA3Fingerprint;
374 bool m_jA3FingerprintHasBeenSet = false;
375
376 JA4Fingerprint m_jA4Fingerprint;
377 bool m_jA4FingerprintHasBeenSet = false;
378
379 UriFragment m_uriFragment;
380 bool m_uriFragmentHasBeenSet = false;
381 };
382
383} // namespace Model
384} // namespace WAFV2
385} // namespace Aws
void SetMethod(MethodT &&value)
const UriFragment & GetUriFragment() const
FieldToMatch & WithSingleQueryArgument(SingleQueryArgumentT &&value)
FieldToMatch & WithMethod(MethodT &&value)
void SetAllQueryArguments(AllQueryArgumentsT &&value)
FieldToMatch & WithBody(BodyT &&value)
const Headers & GetHeaders() const
const JsonBody & GetJsonBody() const
void SetSingleQueryArgument(SingleQueryArgumentT &&value)
FieldToMatch & WithAllQueryArguments(AllQueryArgumentsT &&value)
void SetHeaders(HeadersT &&value)
FieldToMatch & WithQueryString(QueryStringT &&value)
void SetQueryString(QueryStringT &&value)
FieldToMatch & WithSingleHeader(SingleHeaderT &&value)
const SingleHeader & GetSingleHeader() const
const JA3Fingerprint & GetJA3Fingerprint() const
const HeaderOrder & GetHeaderOrder() const
AWS_WAFV2_API FieldToMatch(Aws::Utils::Json::JsonView jsonValue)
FieldToMatch & WithJsonBody(JsonBodyT &&value)
void SetHeaderOrder(HeaderOrderT &&value)
const Method & GetMethod() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetJsonBody(JsonBodyT &&value)
const QueryString & GetQueryString() const
void SetCookies(CookiesT &&value)
const Cookies & GetCookies() const
AWS_WAFV2_API FieldToMatch()=default
FieldToMatch & WithJA4Fingerprint(JA4FingerprintT &&value)
FieldToMatch & WithUriPath(UriPathT &&value)
FieldToMatch & WithHeaderOrder(HeaderOrderT &&value)
void SetJA4Fingerprint(JA4FingerprintT &&value)
void SetUriPath(UriPathT &&value)
FieldToMatch & WithHeaders(HeadersT &&value)
const UriPath & GetUriPath() const
const AllQueryArguments & GetAllQueryArguments() const
void SetSingleHeader(SingleHeaderT &&value)
FieldToMatch & WithJA3Fingerprint(JA3FingerprintT &&value)
void SetUriFragment(UriFragmentT &&value)
const SingleQueryArgument & GetSingleQueryArgument() const
FieldToMatch & WithUriFragment(UriFragmentT &&value)
void SetJA3Fingerprint(JA3FingerprintT &&value)
AWS_WAFV2_API FieldToMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
const Body & GetBody() const
const JA4Fingerprint & GetJA4Fingerprint() const
FieldToMatch & WithCookies(CookiesT &&value)
Aws::Utils::Json::JsonValue JsonValue