AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SqlInjectionMatchSet.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/SqlInjectionMatchTuple.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 SqlInjectionMatchSet() = default;
49
51
63 inline const Aws::String& GetSqlInjectionMatchSetId() const { return m_sqlInjectionMatchSetId; }
64 inline bool SqlInjectionMatchSetIdHasBeenSet() const { return m_sqlInjectionMatchSetIdHasBeenSet; }
65 template <typename SqlInjectionMatchSetIdT = Aws::String>
66 void SetSqlInjectionMatchSetId(SqlInjectionMatchSetIdT&& value) {
67 m_sqlInjectionMatchSetIdHasBeenSet = true;
68 m_sqlInjectionMatchSetId = std::forward<SqlInjectionMatchSetIdT>(value);
69 }
70 template <typename SqlInjectionMatchSetIdT = Aws::String>
71 SqlInjectionMatchSet& WithSqlInjectionMatchSetId(SqlInjectionMatchSetIdT&& value) {
72 SetSqlInjectionMatchSetId(std::forward<SqlInjectionMatchSetIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template <typename NameT = Aws::String>
84 void SetName(NameT&& value) {
85 m_nameHasBeenSet = true;
86 m_name = std::forward<NameT>(value);
87 }
88 template <typename NameT = Aws::String>
90 SetName(std::forward<NameT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Vector<SqlInjectionMatchTuple>& GetSqlInjectionMatchTuples() const { return m_sqlInjectionMatchTuples; }
101 inline bool SqlInjectionMatchTuplesHasBeenSet() const { return m_sqlInjectionMatchTuplesHasBeenSet; }
102 template <typename SqlInjectionMatchTuplesT = Aws::Vector<SqlInjectionMatchTuple>>
103 void SetSqlInjectionMatchTuples(SqlInjectionMatchTuplesT&& value) {
104 m_sqlInjectionMatchTuplesHasBeenSet = true;
105 m_sqlInjectionMatchTuples = std::forward<SqlInjectionMatchTuplesT>(value);
106 }
107 template <typename SqlInjectionMatchTuplesT = Aws::Vector<SqlInjectionMatchTuple>>
108 SqlInjectionMatchSet& WithSqlInjectionMatchTuples(SqlInjectionMatchTuplesT&& value) {
109 SetSqlInjectionMatchTuples(std::forward<SqlInjectionMatchTuplesT>(value));
110 return *this;
111 }
112 template <typename SqlInjectionMatchTuplesT = SqlInjectionMatchTuple>
113 SqlInjectionMatchSet& AddSqlInjectionMatchTuples(SqlInjectionMatchTuplesT&& value) {
114 m_sqlInjectionMatchTuplesHasBeenSet = true;
115 m_sqlInjectionMatchTuples.emplace_back(std::forward<SqlInjectionMatchTuplesT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_sqlInjectionMatchSetId;
121
122 Aws::String m_name;
123
124 Aws::Vector<SqlInjectionMatchTuple> m_sqlInjectionMatchTuples;
125 bool m_sqlInjectionMatchSetIdHasBeenSet = false;
126 bool m_nameHasBeenSet = false;
127 bool m_sqlInjectionMatchTuplesHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace WAF
132} // namespace Aws
void SetSqlInjectionMatchSetId(SqlInjectionMatchSetIdT &&value)
SqlInjectionMatchSet & WithSqlInjectionMatchTuples(SqlInjectionMatchTuplesT &&value)
void SetSqlInjectionMatchTuples(SqlInjectionMatchTuplesT &&value)
AWS_WAF_API SqlInjectionMatchSet()=default
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< SqlInjectionMatchTuple > & GetSqlInjectionMatchTuples() const
AWS_WAF_API SqlInjectionMatchSet & operator=(Aws::Utils::Json::JsonView jsonValue)
SqlInjectionMatchSet & AddSqlInjectionMatchTuples(SqlInjectionMatchTuplesT &&value)
AWS_WAF_API SqlInjectionMatchSet(Aws::Utils::Json::JsonView jsonValue)
SqlInjectionMatchSet & WithSqlInjectionMatchSetId(SqlInjectionMatchSetIdT &&value)
SqlInjectionMatchSet & WithName(NameT &&value)
const Aws::String & GetSqlInjectionMatchSetId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue