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-regional/WAFRegional_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/waf-regional/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 WAFRegional
24{
25namespace Model
26{
27
48 {
49 public:
50 AWS_WAFREGIONAL_API XssMatchSet();
51 AWS_WAFREGIONAL_API XssMatchSet(Aws::Utils::Json::JsonView jsonValue);
52 AWS_WAFREGIONAL_API XssMatchSet& operator=(Aws::Utils::Json::JsonView jsonValue);
53 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
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 WAFRegional
119} // namespace Aws
void SetXssMatchTuples(Aws::Vector< XssMatchTuple > &&value)
Definition XssMatchSet.h:99
void SetXssMatchSetId(Aws::String &&value)
Definition XssMatchSet.h:70
void SetXssMatchSetId(const char *value)
Definition XssMatchSet.h:71
void SetName(const char *value)
Definition XssMatchSet.h:85
AWS_WAFREGIONAL_API XssMatchSet()
void SetName(Aws::String &&value)
Definition XssMatchSet.h:84
XssMatchSet & WithXssMatchTuples(Aws::Vector< XssMatchTuple > &&value)
AWS_WAFREGIONAL_API XssMatchSet & operator=(Aws::Utils::Json::JsonView jsonValue)
XssMatchSet & AddXssMatchTuples(const XssMatchTuple &value)
XssMatchSet & WithName(const char *value)
Definition XssMatchSet.h:88
XssMatchSet & WithXssMatchSetId(const Aws::String &value)
Definition XssMatchSet.h:72
const Aws::String & GetXssMatchSetId() const
Definition XssMatchSet.h:67
XssMatchSet & WithXssMatchSetId(Aws::String &&value)
Definition XssMatchSet.h:73
XssMatchSet & WithXssMatchSetId(const char *value)
Definition XssMatchSet.h:74
XssMatchSet & WithName(Aws::String &&value)
Definition XssMatchSet.h:87
XssMatchSet & AddXssMatchTuples(XssMatchTuple &&value)
const Aws::String & GetName() const
Definition XssMatchSet.h:81
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
XssMatchSet & WithXssMatchTuples(const Aws::Vector< XssMatchTuple > &value)
XssMatchSet & WithName(const Aws::String &value)
Definition XssMatchSet.h:86
AWS_WAFREGIONAL_API XssMatchSet(Aws::Utils::Json::JsonView jsonValue)
void SetXssMatchSetId(const Aws::String &value)
Definition XssMatchSet.h:69
void SetName(const Aws::String &value)
Definition XssMatchSet.h:83
void SetXssMatchTuples(const Aws::Vector< XssMatchTuple > &value)
Definition XssMatchSet.h:98
const Aws::Vector< XssMatchTuple > & GetXssMatchTuples() const
Definition XssMatchSet.h:96
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue