AWS SDK for C++  0.12.9
AWS SDK for C++
SqlInjectionMatchSet.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/waf/WAF_EXPORTS.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace WAF
31 {
32 namespace Model
33 {
34 
45  {
46  public:
49  SqlInjectionMatchSet& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
50  Aws::Utils::Json::JsonValue Jsonize() const;
51 
64  inline const Aws::String& GetSqlInjectionMatchSetId() const{ return m_sqlInjectionMatchSetId; }
65 
78  inline void SetSqlInjectionMatchSetId(const Aws::String& value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId = value; }
79 
92  inline void SetSqlInjectionMatchSetId(Aws::String&& value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId = value; }
93 
106  inline void SetSqlInjectionMatchSetId(const char* value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId.assign(value); }
107 
120  inline SqlInjectionMatchSet& WithSqlInjectionMatchSetId(const Aws::String& value) { SetSqlInjectionMatchSetId(value); return *this;}
121 
134  inline SqlInjectionMatchSet& WithSqlInjectionMatchSetId(Aws::String&& value) { SetSqlInjectionMatchSetId(value); return *this;}
135 
148  inline SqlInjectionMatchSet& WithSqlInjectionMatchSetId(const char* value) { SetSqlInjectionMatchSetId(value); return *this;}
149 
153  inline const Aws::String& GetName() const{ return m_name; }
154 
158  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
159 
163  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
164 
168  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
169 
173  inline SqlInjectionMatchSet& WithName(const Aws::String& value) { SetName(value); return *this;}
174 
178  inline SqlInjectionMatchSet& WithName(Aws::String&& value) { SetName(value); return *this;}
179 
183  inline SqlInjectionMatchSet& WithName(const char* value) { SetName(value); return *this;}
184 
189  inline const Aws::Vector<SqlInjectionMatchTuple>& GetSqlInjectionMatchTuples() const{ return m_sqlInjectionMatchTuples; }
190 
195  inline void SetSqlInjectionMatchTuples(const Aws::Vector<SqlInjectionMatchTuple>& value) { m_sqlInjectionMatchTuplesHasBeenSet = true; m_sqlInjectionMatchTuples = value; }
196 
201  inline void SetSqlInjectionMatchTuples(Aws::Vector<SqlInjectionMatchTuple>&& value) { m_sqlInjectionMatchTuplesHasBeenSet = true; m_sqlInjectionMatchTuples = value; }
202 
207  inline SqlInjectionMatchSet& WithSqlInjectionMatchTuples(const Aws::Vector<SqlInjectionMatchTuple>& value) { SetSqlInjectionMatchTuples(value); return *this;}
208 
213  inline SqlInjectionMatchSet& WithSqlInjectionMatchTuples(Aws::Vector<SqlInjectionMatchTuple>&& value) { SetSqlInjectionMatchTuples(value); return *this;}
214 
219  inline SqlInjectionMatchSet& AddSqlInjectionMatchTuples(const SqlInjectionMatchTuple& value) { m_sqlInjectionMatchTuplesHasBeenSet = true; m_sqlInjectionMatchTuples.push_back(value); return *this; }
220 
225  inline SqlInjectionMatchSet& AddSqlInjectionMatchTuples(SqlInjectionMatchTuple&& value) { m_sqlInjectionMatchTuplesHasBeenSet = true; m_sqlInjectionMatchTuples.push_back(value); return *this; }
226 
227  private:
228  Aws::String m_sqlInjectionMatchSetId;
229  bool m_sqlInjectionMatchSetIdHasBeenSet;
230  Aws::String m_name;
231  bool m_nameHasBeenSet;
232  Aws::Vector<SqlInjectionMatchTuple> m_sqlInjectionMatchTuples;
233  bool m_sqlInjectionMatchTuplesHasBeenSet;
234  };
235 
236 } // namespace Model
237 } // namespace WAF
238 } // namespace Aws
SqlInjectionMatchSet & WithSqlInjectionMatchSetId(Aws::String &&value)
const Aws::String & GetName() const
SqlInjectionMatchSet & WithName(const char *value)
void SetSqlInjectionMatchTuples(const Aws::Vector< SqlInjectionMatchTuple > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetSqlInjectionMatchSetId(const Aws::String &value)
void SetSqlInjectionMatchTuples(Aws::Vector< SqlInjectionMatchTuple > &&value)
void SetSqlInjectionMatchSetId(Aws::String &&value)
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:34
SqlInjectionMatchSet & WithSqlInjectionMatchSetId(const Aws::String &value)
void SetName(const Aws::String &value)
const Aws::Vector< SqlInjectionMatchTuple > & GetSqlInjectionMatchTuples() const
SqlInjectionMatchSet & WithSqlInjectionMatchSetId(const char *value)
SqlInjectionMatchSet & WithName(const Aws::String &value)
SqlInjectionMatchSet & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetSqlInjectionMatchSetId(const char *value)
const Aws::String & GetSqlInjectionMatchSetId() const
SqlInjectionMatchSet & WithSqlInjectionMatchTuples(const Aws::Vector< SqlInjectionMatchTuple > &value)
SqlInjectionMatchSet & AddSqlInjectionMatchTuples(SqlInjectionMatchTuple &&value)
JSON (JavaScript Object Notation).
SqlInjectionMatchSet & WithSqlInjectionMatchTuples(Aws::Vector< SqlInjectionMatchTuple > &&value)
SqlInjectionMatchSet & AddSqlInjectionMatchTuples(const SqlInjectionMatchTuple &value)