AWS SDK for C++  0.12.9
AWS SDK for C++
XssMatchTuple.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:
42  XssMatchTuple();
44  XssMatchTuple& 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 XssMatchTuple& WithFieldToMatch(const FieldToMatch& value) { SetFieldToMatch(value); return *this;}
58 
59 
60  inline XssMatchTuple& 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 XssMatchTuple& WithTextTransformation(const TextTransformation& value) { SetTextTransformation(value); return *this;}
201 
235  inline XssMatchTuple& 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
XssMatchTuple & WithTextTransformation(const TextTransformation &value)
XssMatchTuple & WithTextTransformation(TextTransformation &&value)
void SetFieldToMatch(FieldToMatch &&value)
Definition: XssMatchTuple.h:54
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:34
void SetTextTransformation(TextTransformation &&value)
const FieldToMatch & GetFieldToMatch() const
Definition: XssMatchTuple.h:48
const TextTransformation & GetTextTransformation() const
Definition: XssMatchTuple.h:95
XssMatchTuple & WithFieldToMatch(const FieldToMatch &value)
Definition: XssMatchTuple.h:57
void SetFieldToMatch(const FieldToMatch &value)
Definition: XssMatchTuple.h:51
void SetTextTransformation(const TextTransformation &value)
XssMatchTuple & WithFieldToMatch(FieldToMatch &&value)
Definition: XssMatchTuple.h:60
JSON (JavaScript Object Notation).