AWS SDK for C++  1.9.107
AWS SDK for C++
FieldToMatch.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <aws/wafv2/model/Body.h>
14 #include <aws/wafv2/model/Method.h>
16 #include <utility>
17 
18 namespace Aws
19 {
20 namespace Utils
21 {
22 namespace Json
23 {
24  class JsonValue;
25  class JsonView;
26 } // namespace Json
27 } // namespace Utils
28 namespace WAFV2
29 {
30 namespace Model
31 {
32 
48  {
49  public:
54 
55 
62  inline const SingleHeader& GetSingleHeader() const{ return m_singleHeader; }
63 
70  inline bool SingleHeaderHasBeenSet() const { return m_singleHeaderHasBeenSet; }
71 
78  inline void SetSingleHeader(const SingleHeader& value) { m_singleHeaderHasBeenSet = true; m_singleHeader = value; }
79 
86  inline void SetSingleHeader(SingleHeader&& value) { m_singleHeaderHasBeenSet = true; m_singleHeader = std::move(value); }
87 
94  inline FieldToMatch& WithSingleHeader(const SingleHeader& value) { SetSingleHeader(value); return *this;}
95 
102  inline FieldToMatch& WithSingleHeader(SingleHeader&& value) { SetSingleHeader(std::move(value)); return *this;}
103 
104 
113  inline const SingleQueryArgument& GetSingleQueryArgument() const{ return m_singleQueryArgument; }
114 
123  inline bool SingleQueryArgumentHasBeenSet() const { return m_singleQueryArgumentHasBeenSet; }
124 
133  inline void SetSingleQueryArgument(const SingleQueryArgument& value) { m_singleQueryArgumentHasBeenSet = true; m_singleQueryArgument = value; }
134 
143  inline void SetSingleQueryArgument(SingleQueryArgument&& value) { m_singleQueryArgumentHasBeenSet = true; m_singleQueryArgument = std::move(value); }
144 
153  inline FieldToMatch& WithSingleQueryArgument(const SingleQueryArgument& value) { SetSingleQueryArgument(value); return *this;}
154 
163  inline FieldToMatch& WithSingleQueryArgument(SingleQueryArgument&& value) { SetSingleQueryArgument(std::move(value)); return *this;}
164 
165 
169  inline const AllQueryArguments& GetAllQueryArguments() const{ return m_allQueryArguments; }
170 
174  inline bool AllQueryArgumentsHasBeenSet() const { return m_allQueryArgumentsHasBeenSet; }
175 
179  inline void SetAllQueryArguments(const AllQueryArguments& value) { m_allQueryArgumentsHasBeenSet = true; m_allQueryArguments = value; }
180 
184  inline void SetAllQueryArguments(AllQueryArguments&& value) { m_allQueryArgumentsHasBeenSet = true; m_allQueryArguments = std::move(value); }
185 
189  inline FieldToMatch& WithAllQueryArguments(const AllQueryArguments& value) { SetAllQueryArguments(value); return *this;}
190 
194  inline FieldToMatch& WithAllQueryArguments(AllQueryArguments&& value) { SetAllQueryArguments(std::move(value)); return *this;}
195 
196 
201  inline const UriPath& GetUriPath() const{ return m_uriPath; }
202 
207  inline bool UriPathHasBeenSet() const { return m_uriPathHasBeenSet; }
208 
213  inline void SetUriPath(const UriPath& value) { m_uriPathHasBeenSet = true; m_uriPath = value; }
214 
219  inline void SetUriPath(UriPath&& value) { m_uriPathHasBeenSet = true; m_uriPath = std::move(value); }
220 
225  inline FieldToMatch& WithUriPath(const UriPath& value) { SetUriPath(value); return *this;}
226 
231  inline FieldToMatch& WithUriPath(UriPath&& value) { SetUriPath(std::move(value)); return *this;}
232 
233 
238  inline const QueryString& GetQueryString() const{ return m_queryString; }
239 
244  inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
245 
250  inline void SetQueryString(const QueryString& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
251 
256  inline void SetQueryString(QueryString&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
257 
262  inline FieldToMatch& WithQueryString(const QueryString& value) { SetQueryString(value); return *this;}
263 
268  inline FieldToMatch& WithQueryString(QueryString&& value) { SetQueryString(std::move(value)); return *this;}
269 
270 
285  inline const Body& GetBody() const{ return m_body; }
286 
301  inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
302 
317  inline void SetBody(const Body& value) { m_bodyHasBeenSet = true; m_body = value; }
318 
333  inline void SetBody(Body&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
334 
349  inline FieldToMatch& WithBody(const Body& value) { SetBody(value); return *this;}
350 
365  inline FieldToMatch& WithBody(Body&& value) { SetBody(std::move(value)); return *this;}
366 
367 
372  inline const Method& GetMethod() const{ return m_method; }
373 
378  inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
379 
384  inline void SetMethod(const Method& value) { m_methodHasBeenSet = true; m_method = value; }
385 
390  inline void SetMethod(Method&& value) { m_methodHasBeenSet = true; m_method = std::move(value); }
391 
396  inline FieldToMatch& WithMethod(const Method& value) { SetMethod(value); return *this;}
397 
402  inline FieldToMatch& WithMethod(Method&& value) { SetMethod(std::move(value)); return *this;}
403 
404 
419  inline const JsonBody& GetJsonBody() const{ return m_jsonBody; }
420 
435  inline bool JsonBodyHasBeenSet() const { return m_jsonBodyHasBeenSet; }
436 
451  inline void SetJsonBody(const JsonBody& value) { m_jsonBodyHasBeenSet = true; m_jsonBody = value; }
452 
467  inline void SetJsonBody(JsonBody&& value) { m_jsonBodyHasBeenSet = true; m_jsonBody = std::move(value); }
468 
483  inline FieldToMatch& WithJsonBody(const JsonBody& value) { SetJsonBody(value); return *this;}
484 
499  inline FieldToMatch& WithJsonBody(JsonBody&& value) { SetJsonBody(std::move(value)); return *this;}
500 
501  private:
502 
503  SingleHeader m_singleHeader;
504  bool m_singleHeaderHasBeenSet;
505 
506  SingleQueryArgument m_singleQueryArgument;
507  bool m_singleQueryArgumentHasBeenSet;
508 
509  AllQueryArguments m_allQueryArguments;
510  bool m_allQueryArgumentsHasBeenSet;
511 
512  UriPath m_uriPath;
513  bool m_uriPathHasBeenSet;
514 
515  QueryString m_queryString;
516  bool m_queryStringHasBeenSet;
517 
518  Body m_body;
519  bool m_bodyHasBeenSet;
520 
521  Method m_method;
522  bool m_methodHasBeenSet;
523 
524  JsonBody m_jsonBody;
525  bool m_jsonBodyHasBeenSet;
526  };
527 
528 } // namespace Model
529 } // namespace WAFV2
530 } // namespace Aws
Aws::WAFV2::Model::FieldToMatch::GetQueryString
const QueryString & GetQueryString() const
Definition: FieldToMatch.h:238
Aws::WAFV2::Model::FieldToMatch::WithQueryString
FieldToMatch & WithQueryString(QueryString &&value)
Definition: FieldToMatch.h:268
Aws::WAFV2::Model::FieldToMatch::SetBody
void SetBody(const Body &value)
Definition: FieldToMatch.h:317
Aws::WAFV2::Model::FieldToMatch::FieldToMatch
FieldToMatch(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::AllQueryArguments
Definition: AllQueryArguments.h:33
Aws::WAFV2::Model::FieldToMatch::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::FieldToMatch::WithAllQueryArguments
FieldToMatch & WithAllQueryArguments(const AllQueryArguments &value)
Definition: FieldToMatch.h:189
Aws::WAFV2::Model::FieldToMatch::GetUriPath
const UriPath & GetUriPath() const
Definition: FieldToMatch.h:201
Aws::WAFV2::Model::FieldToMatch::SetSingleHeader
void SetSingleHeader(const SingleHeader &value)
Definition: FieldToMatch.h:78
Aws::WAFV2::Model::FieldToMatch::WithSingleQueryArgument
FieldToMatch & WithSingleQueryArgument(SingleQueryArgument &&value)
Definition: FieldToMatch.h:163
Aws::WAFV2::Model::FieldToMatch::WithJsonBody
FieldToMatch & WithJsonBody(JsonBody &&value)
Definition: FieldToMatch.h:499
Aws::WAFV2::Model::FieldToMatch::SetJsonBody
void SetJsonBody(const JsonBody &value)
Definition: FieldToMatch.h:451
Aws::WAFV2::Model::FieldToMatch::GetSingleHeader
const SingleHeader & GetSingleHeader() const
Definition: FieldToMatch.h:62
Aws::WAFV2::Model::FieldToMatch::SetSingleHeader
void SetSingleHeader(SingleHeader &&value)
Definition: FieldToMatch.h:86
Aws::WAFV2::Model::FieldToMatch::AllQueryArgumentsHasBeenSet
bool AllQueryArgumentsHasBeenSet() const
Definition: FieldToMatch.h:174
Aws::WAFV2::Model::FieldToMatch::WithMethod
FieldToMatch & WithMethod(Method &&value)
Definition: FieldToMatch.h:402
Body.h
Aws::WAFV2::Model::FieldToMatch::WithUriPath
FieldToMatch & WithUriPath(const UriPath &value)
Definition: FieldToMatch.h:225
Aws::WAFV2::Model::FieldToMatch::GetSingleQueryArgument
const SingleQueryArgument & GetSingleQueryArgument() const
Definition: FieldToMatch.h:113
Aws::WAFV2::Model::JsonBody
Definition: JsonBody.h:40
AllQueryArguments.h
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::QueryString
Definition: QueryString.h:34
Aws::WAFV2::Model::FieldToMatch::WithSingleHeader
FieldToMatch & WithSingleHeader(SingleHeader &&value)
Definition: FieldToMatch.h:102
JsonBody.h
QueryString.h
Aws::WAFV2::Model::FieldToMatch::SetMethod
void SetMethod(const Method &value)
Definition: FieldToMatch.h:384
Aws::WAFV2::Model::FieldToMatch::SetSingleQueryArgument
void SetSingleQueryArgument(SingleQueryArgument &&value)
Definition: FieldToMatch.h:143
Aws::WAFV2::Model::FieldToMatch::WithSingleHeader
FieldToMatch & WithSingleHeader(const SingleHeader &value)
Definition: FieldToMatch.h:94
WAFV2_EXPORTS.h
SingleHeader.h
Aws::WAFV2::Model::FieldToMatch::SetAllQueryArguments
void SetAllQueryArguments(AllQueryArguments &&value)
Definition: FieldToMatch.h:184
Aws::WAFV2::Model::FieldToMatch::SetQueryString
void SetQueryString(QueryString &&value)
Definition: FieldToMatch.h:256
Aws::WAFV2::Model::FieldToMatch::BodyHasBeenSet
bool BodyHasBeenSet() const
Definition: FieldToMatch.h:301
Aws::WAFV2::Model::UriPath
Definition: UriPath.h:34
SingleQueryArgument.h
Aws::WAFV2::Model::FieldToMatch::SetJsonBody
void SetJsonBody(JsonBody &&value)
Definition: FieldToMatch.h:467
Aws::WAFV2::Model::FieldToMatch::GetMethod
const Method & GetMethod() const
Definition: FieldToMatch.h:372
Aws::WAFV2::Model::FieldToMatch::SingleQueryArgumentHasBeenSet
bool SingleQueryArgumentHasBeenSet() const
Definition: FieldToMatch.h:123
Aws::WAFV2::Model::FieldToMatch::QueryStringHasBeenSet
bool QueryStringHasBeenSet() const
Definition: FieldToMatch.h:244
Aws::WAFV2::Model::FieldToMatch::SingleHeaderHasBeenSet
bool SingleHeaderHasBeenSet() const
Definition: FieldToMatch.h:70
Aws::WAFV2::Model::FieldToMatch::WithJsonBody
FieldToMatch & WithJsonBody(const JsonBody &value)
Definition: FieldToMatch.h:483
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::WAFV2::Model::FieldToMatch::operator=
FieldToMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::FieldToMatch::GetBody
const Body & GetBody() const
Definition: FieldToMatch.h:285
Aws::WAFV2::Model::FieldToMatch::SetBody
void SetBody(Body &&value)
Definition: FieldToMatch.h:333
Aws::WAFV2::Model::FieldToMatch::WithSingleQueryArgument
FieldToMatch & WithSingleQueryArgument(const SingleQueryArgument &value)
Definition: FieldToMatch.h:153
Aws::WAFV2::Model::SingleQueryArgument
Definition: SingleQueryArgument.h:35
Aws::WAFV2::Model::FieldToMatch::SetAllQueryArguments
void SetAllQueryArguments(const AllQueryArguments &value)
Definition: FieldToMatch.h:179
Aws::WAFV2::Model::FieldToMatch::WithAllQueryArguments
FieldToMatch & WithAllQueryArguments(AllQueryArguments &&value)
Definition: FieldToMatch.h:194
Method.h
Aws::WAFV2::Model::FieldToMatch::UriPathHasBeenSet
bool UriPathHasBeenSet() const
Definition: FieldToMatch.h:207
Aws::WAFV2::Model::FieldToMatch::WithQueryString
FieldToMatch & WithQueryString(const QueryString &value)
Definition: FieldToMatch.h:262
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::Method
Definition: Method.h:34
Aws::WAFV2::Model::FieldToMatch::SetSingleQueryArgument
void SetSingleQueryArgument(const SingleQueryArgument &value)
Definition: FieldToMatch.h:133
Aws::WAFV2::Model::FieldToMatch::JsonBodyHasBeenSet
bool JsonBodyHasBeenSet() const
Definition: FieldToMatch.h:435
Aws::WAFV2::Model::Body
Definition: Body.h:33
Aws::WAFV2::Model::SingleHeader
Definition: SingleHeader.h:37
Aws::WAFV2::Model::FieldToMatch::SetQueryString
void SetQueryString(const QueryString &value)
Definition: FieldToMatch.h:250
Aws::WAFV2::Model::FieldToMatch::SetMethod
void SetMethod(Method &&value)
Definition: FieldToMatch.h:390
Aws::WAFV2::Model::FieldToMatch::WithBody
FieldToMatch & WithBody(Body &&value)
Definition: FieldToMatch.h:365
Aws::WAFV2::Model::FieldToMatch::FieldToMatch
FieldToMatch()
Aws::WAFV2::Model::FieldToMatch::SetUriPath
void SetUriPath(UriPath &&value)
Definition: FieldToMatch.h:219
Aws::WAFV2::Model::FieldToMatch::WithUriPath
FieldToMatch & WithUriPath(UriPath &&value)
Definition: FieldToMatch.h:231
Aws::WAFV2::Model::FieldToMatch::MethodHasBeenSet
bool MethodHasBeenSet() const
Definition: FieldToMatch.h:378
Aws::WAFV2::Model::FieldToMatch::WithBody
FieldToMatch & WithBody(const Body &value)
Definition: FieldToMatch.h:349
Aws::WAFV2::Model::FieldToMatch
Definition: FieldToMatch.h:48
Aws::WAFV2::Model::FieldToMatch::GetJsonBody
const JsonBody & GetJsonBody() const
Definition: FieldToMatch.h:419
UriPath.h
Aws::WAFV2::Model::FieldToMatch::GetAllQueryArguments
const AllQueryArguments & GetAllQueryArguments() const
Definition: FieldToMatch.h:169
Aws::WAFV2::Model::FieldToMatch::WithMethod
FieldToMatch & WithMethod(const Method &value)
Definition: FieldToMatch.h:396
Aws::WAFV2::Model::FieldToMatch::SetUriPath
void SetUriPath(const UriPath &value)
Definition: FieldToMatch.h:213