AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
54
55
57
67 inline const Aws::String& GetXssMatchSetId() const{ return m_xssMatchSetId; }
68 inline bool XssMatchSetIdHasBeenSet() const { return m_xssMatchSetIdHasBeenSet; }
69 inline void SetXssMatchSetId(const Aws::String& value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId = value; }
70 inline void SetXssMatchSetId(Aws::String&& value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId = std::move(value); }
71 inline void SetXssMatchSetId(const char* value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId.assign(value); }
72 inline XssMatchSet& WithXssMatchSetId(const Aws::String& value) { SetXssMatchSetId(value); return *this;}
73 inline XssMatchSet& WithXssMatchSetId(Aws::String&& value) { SetXssMatchSetId(std::move(value)); return *this;}
74 inline XssMatchSet& WithXssMatchSetId(const char* value) { SetXssMatchSetId(value); return *this;}
76
78
81 inline const Aws::String& GetName() const{ return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
84 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
85 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
86 inline XssMatchSet& WithName(const Aws::String& value) { SetName(value); return *this;}
87 inline XssMatchSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
88 inline XssMatchSet& WithName(const char* value) { SetName(value); return *this;}
90
92
96 inline const Aws::Vector<XssMatchTuple>& GetXssMatchTuples() const{ return m_xssMatchTuples; }
97 inline bool XssMatchTuplesHasBeenSet() const { return m_xssMatchTuplesHasBeenSet; }
98 inline void SetXssMatchTuples(const Aws::Vector<XssMatchTuple>& value) { m_xssMatchTuplesHasBeenSet = true; m_xssMatchTuples = value; }
99 inline void SetXssMatchTuples(Aws::Vector<XssMatchTuple>&& value) { m_xssMatchTuplesHasBeenSet = true; m_xssMatchTuples = std::move(value); }
100 inline XssMatchSet& WithXssMatchTuples(const Aws::Vector<XssMatchTuple>& value) { SetXssMatchTuples(value); return *this;}
101 inline XssMatchSet& WithXssMatchTuples(Aws::Vector<XssMatchTuple>&& value) { SetXssMatchTuples(std::move(value)); return *this;}
102 inline XssMatchSet& AddXssMatchTuples(const XssMatchTuple& value) { m_xssMatchTuplesHasBeenSet = true; m_xssMatchTuples.push_back(value); return *this; }
103 inline XssMatchSet& AddXssMatchTuples(XssMatchTuple&& value) { m_xssMatchTuplesHasBeenSet = true; m_xssMatchTuples.push_back(std::move(value)); return *this; }
105 private:
106
107 Aws::String m_xssMatchSetId;
108 bool m_xssMatchSetIdHasBeenSet = false;
109
110 Aws::String m_name;
111 bool m_nameHasBeenSet = false;
112
113 Aws::Vector<XssMatchTuple> m_xssMatchTuples;
114 bool m_xssMatchTuplesHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace WAF
119} // namespace Aws
AWS_WAF_API XssMatchSet & operator=(Aws::Utils::Json::JsonView jsonValue)
bool XssMatchSetIdHasBeenSet() const
Definition XssMatchSet.h:68
void SetXssMatchSetId(const char *value)
Definition XssMatchSet.h:71
bool XssMatchTuplesHasBeenSet() const
Definition XssMatchSet.h:97
XssMatchSet & WithName(Aws::String &&value)
Definition XssMatchSet.h:87
XssMatchSet & AddXssMatchTuples(XssMatchTuple &&value)
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
XssMatchSet & WithXssMatchSetId(Aws::String &&value)
Definition XssMatchSet.h:73
const Aws::String & GetXssMatchSetId() const
Definition XssMatchSet.h:67
void SetName(const Aws::String &value)
Definition XssMatchSet.h:83
XssMatchSet & WithXssMatchTuples(const Aws::Vector< XssMatchTuple > &value)
void SetXssMatchTuples(const Aws::Vector< XssMatchTuple > &value)
Definition XssMatchSet.h:98
XssMatchSet & AddXssMatchTuples(const XssMatchTuple &value)
XssMatchSet & WithXssMatchSetId(const char *value)
Definition XssMatchSet.h:74
AWS_WAF_API XssMatchSet(Aws::Utils::Json::JsonView jsonValue)
XssMatchSet & WithName(const char *value)
Definition XssMatchSet.h:88
XssMatchSet & WithXssMatchTuples(Aws::Vector< XssMatchTuple > &&value)
void SetXssMatchSetId(Aws::String &&value)
Definition XssMatchSet.h:70
XssMatchSet & WithName(const Aws::String &value)
Definition XssMatchSet.h:86
XssMatchSet & WithXssMatchSetId(const Aws::String &value)
Definition XssMatchSet.h:72
const Aws::String & GetName() const
Definition XssMatchSet.h:81
void SetXssMatchTuples(Aws::Vector< XssMatchTuple > &&value)
Definition XssMatchSet.h:99
void SetName(const char *value)
Definition XssMatchSet.h:85
void SetName(Aws::String &&value)
Definition XssMatchSet.h:84
const Aws::Vector< XssMatchTuple > & GetXssMatchTuples() const
Definition XssMatchSet.h:96
void SetXssMatchSetId(const Aws::String &value)
Definition XssMatchSet.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue