AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
XssMatchStatement.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/FieldToMatch.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wafv2/model/TextTransformation.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 WAFV2
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_WAFV2_API XssMatchStatement();
42 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const FieldToMatch& GetFieldToMatch() const{ return m_fieldToMatch; }
50 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
51 inline void SetFieldToMatch(const FieldToMatch& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = value; }
52 inline void SetFieldToMatch(FieldToMatch&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = std::move(value); }
53 inline XssMatchStatement& WithFieldToMatch(const FieldToMatch& value) { SetFieldToMatch(value); return *this;}
54 inline XssMatchStatement& WithFieldToMatch(FieldToMatch&& value) { SetFieldToMatch(std::move(value)); return *this;}
56
58
68 inline const Aws::Vector<TextTransformation>& GetTextTransformations() const{ return m_textTransformations; }
69 inline bool TextTransformationsHasBeenSet() const { return m_textTransformationsHasBeenSet; }
70 inline void SetTextTransformations(const Aws::Vector<TextTransformation>& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = value; }
71 inline void SetTextTransformations(Aws::Vector<TextTransformation>&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = std::move(value); }
74 inline XssMatchStatement& AddTextTransformations(const TextTransformation& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.push_back(value); return *this; }
75 inline XssMatchStatement& AddTextTransformations(TextTransformation&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.push_back(std::move(value)); return *this; }
77 private:
78
79 FieldToMatch m_fieldToMatch;
80 bool m_fieldToMatchHasBeenSet = false;
81
82 Aws::Vector<TextTransformation> m_textTransformations;
83 bool m_textTransformationsHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace WAFV2
88} // namespace Aws
void SetTextTransformations(const Aws::Vector< TextTransformation > &value)
XssMatchStatement & WithFieldToMatch(const FieldToMatch &value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTextTransformations(Aws::Vector< TextTransformation > &&value)
AWS_WAFV2_API XssMatchStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
XssMatchStatement & WithFieldToMatch(FieldToMatch &&value)
const FieldToMatch & GetFieldToMatch() const
XssMatchStatement & AddTextTransformations(TextTransformation &&value)
XssMatchStatement & WithTextTransformations(const Aws::Vector< TextTransformation > &value)
XssMatchStatement & AddTextTransformations(const TextTransformation &value)
AWS_WAFV2_API XssMatchStatement(Aws::Utils::Json::JsonView jsonValue)
void SetFieldToMatch(const FieldToMatch &value)
void SetFieldToMatch(FieldToMatch &&value)
XssMatchStatement & WithTextTransformations(Aws::Vector< TextTransformation > &&value)
const Aws::Vector< TextTransformation > & GetTextTransformations() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue