AWS SDK for C++  0.12.9
AWS SDK for C++
SqlInjectionMatchTuple.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>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace WAF
30 {
31 namespace Model
32 {
33 
40  {
41  public:
44  SqlInjectionMatchTuple& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
47 
48  inline const FieldToMatch& GetFieldToMatch() const{ return m_fieldToMatch; }
49 
50 
51  inline void SetFieldToMatch(const FieldToMatch& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = value; }
52 
53 
54  inline void SetFieldToMatch(FieldToMatch&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = value; }
55 
56 
57  inline SqlInjectionMatchTuple& WithFieldToMatch(const FieldToMatch& value) { SetFieldToMatch(value); return *this;}
58 
59 
60  inline SqlInjectionMatchTuple& WithFieldToMatch(FieldToMatch&& value) { SetFieldToMatch(value); return *this;}
61 
95  inline const TextTransformation& GetTextTransformation() const{ return m_textTransformation; }
96 
130  inline void SetTextTransformation(const TextTransformation& value) { m_textTransformationHasBeenSet = true; m_textTransformation = value; }
131 
165  inline void SetTextTransformation(TextTransformation&& value) { m_textTransformationHasBeenSet = true; m_textTransformation = value; }
166 
200  inline SqlInjectionMatchTuple& WithTextTransformation(const TextTransformation& value) { SetTextTransformation(value); return *this;}
201 
235  inline SqlInjectionMatchTuple& WithTextTransformation(TextTransformation&& value) { SetTextTransformation(value); return *this;}
236 
237  private:
238  FieldToMatch m_fieldToMatch;
239  bool m_fieldToMatchHasBeenSet;
240  TextTransformation m_textTransformation;
241  bool m_textTransformationHasBeenSet;
242  };
243 
244 } // namespace Model
245 } // namespace WAF
246 } // namespace Aws
void SetTextTransformation(const TextTransformation &value)
void SetFieldToMatch(const FieldToMatch &value)
SqlInjectionMatchTuple & WithFieldToMatch(FieldToMatch &&value)
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:34
const TextTransformation & GetTextTransformation() const
SqlInjectionMatchTuple & WithTextTransformation(const TextTransformation &value)
SqlInjectionMatchTuple & WithFieldToMatch(const FieldToMatch &value)
void SetTextTransformation(TextTransformation &&value)
SqlInjectionMatchTuple & WithTextTransformation(TextTransformation &&value)
const FieldToMatch & GetFieldToMatch() const
JSON (JavaScript Object Notation).