AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
XssMatchSet.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/waf/model/XssMatchTuple.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 WAF
24{
25namespace Model
26{
27
48 {
49 public:
50 AWS_WAF_API XssMatchSet() = default;
54
55
57
67 inline const Aws::String& GetXssMatchSetId() const { return m_xssMatchSetId; }
68 inline bool XssMatchSetIdHasBeenSet() const { return m_xssMatchSetIdHasBeenSet; }
69 template<typename XssMatchSetIdT = Aws::String>
70 void SetXssMatchSetId(XssMatchSetIdT&& value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId = std::forward<XssMatchSetIdT>(value); }
71 template<typename XssMatchSetIdT = Aws::String>
72 XssMatchSet& WithXssMatchSetId(XssMatchSetIdT&& value) { SetXssMatchSetId(std::forward<XssMatchSetIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
83 template<typename NameT = Aws::String>
84 XssMatchSet& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
86
88
92 inline const Aws::Vector<XssMatchTuple>& GetXssMatchTuples() const { return m_xssMatchTuples; }
93 inline bool XssMatchTuplesHasBeenSet() const { return m_xssMatchTuplesHasBeenSet; }
94 template<typename XssMatchTuplesT = Aws::Vector<XssMatchTuple>>
95 void SetXssMatchTuples(XssMatchTuplesT&& value) { m_xssMatchTuplesHasBeenSet = true; m_xssMatchTuples = std::forward<XssMatchTuplesT>(value); }
96 template<typename XssMatchTuplesT = Aws::Vector<XssMatchTuple>>
97 XssMatchSet& WithXssMatchTuples(XssMatchTuplesT&& value) { SetXssMatchTuples(std::forward<XssMatchTuplesT>(value)); return *this;}
98 template<typename XssMatchTuplesT = XssMatchTuple>
99 XssMatchSet& AddXssMatchTuples(XssMatchTuplesT&& value) { m_xssMatchTuplesHasBeenSet = true; m_xssMatchTuples.emplace_back(std::forward<XssMatchTuplesT>(value)); return *this; }
101 private:
102
103 Aws::String m_xssMatchSetId;
104 bool m_xssMatchSetIdHasBeenSet = false;
105
106 Aws::String m_name;
107 bool m_nameHasBeenSet = false;
108
109 Aws::Vector<XssMatchTuple> m_xssMatchTuples;
110 bool m_xssMatchTuplesHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace WAF
115} // namespace Aws
AWS_WAF_API XssMatchSet & operator=(Aws::Utils::Json::JsonView jsonValue)
bool XssMatchSetIdHasBeenSet() const
Definition XssMatchSet.h:68
bool XssMatchTuplesHasBeenSet() const
Definition XssMatchSet.h:93
XssMatchSet & WithXssMatchTuples(XssMatchTuplesT &&value)
Definition XssMatchSet.h:97
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetXssMatchSetId() const
Definition XssMatchSet.h:67
void SetXssMatchSetId(XssMatchSetIdT &&value)
Definition XssMatchSet.h:70
XssMatchSet & WithName(NameT &&value)
Definition XssMatchSet.h:84
XssMatchSet & WithXssMatchSetId(XssMatchSetIdT &&value)
Definition XssMatchSet.h:72
void SetXssMatchTuples(XssMatchTuplesT &&value)
Definition XssMatchSet.h:95
XssMatchSet & AddXssMatchTuples(XssMatchTuplesT &&value)
Definition XssMatchSet.h:99
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:92
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue