AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
XssMatchSet.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/waf/WAF_EXPORTS.h>
10#include <aws/waf/model/XssMatchTuple.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAF {
22namespace Model {
23
44 public:
45 AWS_WAF_API XssMatchSet() = default;
49
51
61 inline const Aws::String& GetXssMatchSetId() const { return m_xssMatchSetId; }
62 inline bool XssMatchSetIdHasBeenSet() const { return m_xssMatchSetIdHasBeenSet; }
63 template <typename XssMatchSetIdT = Aws::String>
64 void SetXssMatchSetId(XssMatchSetIdT&& value) {
65 m_xssMatchSetIdHasBeenSet = true;
66 m_xssMatchSetId = std::forward<XssMatchSetIdT>(value);
67 }
68 template <typename XssMatchSetIdT = Aws::String>
69 XssMatchSet& WithXssMatchSetId(XssMatchSetIdT&& value) {
70 SetXssMatchSetId(std::forward<XssMatchSetIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetName() const { return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 template <typename NameT = Aws::String>
82 void SetName(NameT&& value) {
83 m_nameHasBeenSet = true;
84 m_name = std::forward<NameT>(value);
85 }
86 template <typename NameT = Aws::String>
87 XssMatchSet& WithName(NameT&& value) {
88 SetName(std::forward<NameT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::Vector<XssMatchTuple>& GetXssMatchTuples() const { return m_xssMatchTuples; }
99 inline bool XssMatchTuplesHasBeenSet() const { return m_xssMatchTuplesHasBeenSet; }
100 template <typename XssMatchTuplesT = Aws::Vector<XssMatchTuple>>
101 void SetXssMatchTuples(XssMatchTuplesT&& value) {
102 m_xssMatchTuplesHasBeenSet = true;
103 m_xssMatchTuples = std::forward<XssMatchTuplesT>(value);
104 }
105 template <typename XssMatchTuplesT = Aws::Vector<XssMatchTuple>>
106 XssMatchSet& WithXssMatchTuples(XssMatchTuplesT&& value) {
107 SetXssMatchTuples(std::forward<XssMatchTuplesT>(value));
108 return *this;
109 }
110 template <typename XssMatchTuplesT = XssMatchTuple>
111 XssMatchSet& AddXssMatchTuples(XssMatchTuplesT&& value) {
112 m_xssMatchTuplesHasBeenSet = true;
113 m_xssMatchTuples.emplace_back(std::forward<XssMatchTuplesT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_xssMatchSetId;
119
120 Aws::String m_name;
121
122 Aws::Vector<XssMatchTuple> m_xssMatchTuples;
123 bool m_xssMatchSetIdHasBeenSet = false;
124 bool m_nameHasBeenSet = false;
125 bool m_xssMatchTuplesHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace WAF
130} // namespace Aws
AWS_WAF_API XssMatchSet & operator=(Aws::Utils::Json::JsonView jsonValue)
bool XssMatchSetIdHasBeenSet() const
Definition XssMatchSet.h:62
bool XssMatchTuplesHasBeenSet() const
Definition XssMatchSet.h:99
XssMatchSet & WithXssMatchTuples(XssMatchTuplesT &&value)
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetXssMatchSetId() const
Definition XssMatchSet.h:61
void SetXssMatchSetId(XssMatchSetIdT &&value)
Definition XssMatchSet.h:64
XssMatchSet & WithName(NameT &&value)
Definition XssMatchSet.h:87
XssMatchSet & WithXssMatchSetId(XssMatchSetIdT &&value)
Definition XssMatchSet.h:69
void SetXssMatchTuples(XssMatchTuplesT &&value)
XssMatchSet & AddXssMatchTuples(XssMatchTuplesT &&value)
AWS_WAF_API XssMatchSet(Aws::Utils::Json::JsonView jsonValue)
AWS_WAF_API XssMatchSet()=default
const Aws::String & GetName() const
Definition XssMatchSet.h:79
void SetName(NameT &&value)
Definition XssMatchSet.h:82
const Aws::Vector< XssMatchTuple > & GetXssMatchTuples() const
Definition XssMatchSet.h:98
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue