AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SqlInjectionMatchSet.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/SqlInjectionMatchTuple.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 SqlInjectionMatchSet();
51 AWS_WAFREGIONAL_API SqlInjectionMatchSet(Aws::Utils::Json::JsonView jsonValue);
53 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
54
55
57
69 inline const Aws::String& GetSqlInjectionMatchSetId() const{ return m_sqlInjectionMatchSetId; }
70 inline bool SqlInjectionMatchSetIdHasBeenSet() const { return m_sqlInjectionMatchSetIdHasBeenSet; }
71 inline void SetSqlInjectionMatchSetId(const Aws::String& value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId = value; }
72 inline void SetSqlInjectionMatchSetId(Aws::String&& value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId = std::move(value); }
73 inline void SetSqlInjectionMatchSetId(const char* value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId.assign(value); }
75 inline SqlInjectionMatchSet& WithSqlInjectionMatchSetId(Aws::String&& value) { SetSqlInjectionMatchSetId(std::move(value)); return *this;}
76 inline SqlInjectionMatchSet& WithSqlInjectionMatchSetId(const char* value) { SetSqlInjectionMatchSetId(value); return *this;}
78
80
83 inline const Aws::String& GetName() const{ return m_name; }
84 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
86 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
87 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
88 inline SqlInjectionMatchSet& WithName(const Aws::String& value) { SetName(value); return *this;}
89 inline SqlInjectionMatchSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
90 inline SqlInjectionMatchSet& WithName(const char* value) { SetName(value); return *this;}
92
94
98 inline const Aws::Vector<SqlInjectionMatchTuple>& GetSqlInjectionMatchTuples() const{ return m_sqlInjectionMatchTuples; }
99 inline bool SqlInjectionMatchTuplesHasBeenSet() const { return m_sqlInjectionMatchTuplesHasBeenSet; }
100 inline void SetSqlInjectionMatchTuples(const Aws::Vector<SqlInjectionMatchTuple>& value) { m_sqlInjectionMatchTuplesHasBeenSet = true; m_sqlInjectionMatchTuples = value; }
101 inline void SetSqlInjectionMatchTuples(Aws::Vector<SqlInjectionMatchTuple>&& value) { m_sqlInjectionMatchTuplesHasBeenSet = true; m_sqlInjectionMatchTuples = std::move(value); }
104 inline SqlInjectionMatchSet& AddSqlInjectionMatchTuples(const SqlInjectionMatchTuple& value) { m_sqlInjectionMatchTuplesHasBeenSet = true; m_sqlInjectionMatchTuples.push_back(value); return *this; }
105 inline SqlInjectionMatchSet& AddSqlInjectionMatchTuples(SqlInjectionMatchTuple&& value) { m_sqlInjectionMatchTuplesHasBeenSet = true; m_sqlInjectionMatchTuples.push_back(std::move(value)); return *this; }
107 private:
108
109 Aws::String m_sqlInjectionMatchSetId;
110 bool m_sqlInjectionMatchSetIdHasBeenSet = false;
111
112 Aws::String m_name;
113 bool m_nameHasBeenSet = false;
114
115 Aws::Vector<SqlInjectionMatchTuple> m_sqlInjectionMatchTuples;
116 bool m_sqlInjectionMatchTuplesHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace WAFRegional
121} // namespace Aws
SqlInjectionMatchSet & WithName(const Aws::String &value)
void SetSqlInjectionMatchTuples(Aws::Vector< SqlInjectionMatchTuple > &&value)
SqlInjectionMatchSet & WithName(Aws::String &&value)
SqlInjectionMatchSet & WithSqlInjectionMatchSetId(const char *value)
const Aws::Vector< SqlInjectionMatchTuple > & GetSqlInjectionMatchTuples() const
void SetSqlInjectionMatchTuples(const Aws::Vector< SqlInjectionMatchTuple > &value)
SqlInjectionMatchSet & AddSqlInjectionMatchTuples(SqlInjectionMatchTuple &&value)
SqlInjectionMatchSet & WithSqlInjectionMatchTuples(const Aws::Vector< SqlInjectionMatchTuple > &value)
SqlInjectionMatchSet & WithSqlInjectionMatchSetId(const Aws::String &value)
void SetSqlInjectionMatchSetId(const Aws::String &value)
SqlInjectionMatchSet & WithSqlInjectionMatchTuples(Aws::Vector< SqlInjectionMatchTuple > &&value)
AWS_WAFREGIONAL_API SqlInjectionMatchSet & operator=(Aws::Utils::Json::JsonView jsonValue)
SqlInjectionMatchSet & WithName(const char *value)
SqlInjectionMatchSet & AddSqlInjectionMatchTuples(const SqlInjectionMatchTuple &value)
AWS_WAFREGIONAL_API SqlInjectionMatchSet(Aws::Utils::Json::JsonView jsonValue)
SqlInjectionMatchSet & WithSqlInjectionMatchSetId(Aws::String &&value)
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() 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