AWS SDK for C++  0.14.3
AWS SDK for C++
SqlInjectionMatchSetUpdate.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 
41  {
42  public:
45  SqlInjectionMatchSetUpdate& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
54  inline const ChangeAction& GetAction() const{ return m_action; }
55 
62  inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
63 
70  inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = value; }
71 
78  inline SqlInjectionMatchSetUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
79 
86  inline SqlInjectionMatchSetUpdate& WithAction(ChangeAction&& value) { SetAction(value); return *this;}
87 
93  inline const SqlInjectionMatchTuple& GetSqlInjectionMatchTuple() const{ return m_sqlInjectionMatchTuple; }
94 
100  inline void SetSqlInjectionMatchTuple(const SqlInjectionMatchTuple& value) { m_sqlInjectionMatchTupleHasBeenSet = true; m_sqlInjectionMatchTuple = value; }
101 
107  inline void SetSqlInjectionMatchTuple(SqlInjectionMatchTuple&& value) { m_sqlInjectionMatchTupleHasBeenSet = true; m_sqlInjectionMatchTuple = value; }
108 
114  inline SqlInjectionMatchSetUpdate& WithSqlInjectionMatchTuple(const SqlInjectionMatchTuple& value) { SetSqlInjectionMatchTuple(value); return *this;}
115 
121  inline SqlInjectionMatchSetUpdate& WithSqlInjectionMatchTuple(SqlInjectionMatchTuple&& value) { SetSqlInjectionMatchTuple(value); return *this;}
122 
123  private:
124  ChangeAction m_action;
125  bool m_actionHasBeenSet;
126  SqlInjectionMatchTuple m_sqlInjectionMatchTuple;
127  bool m_sqlInjectionMatchTupleHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace WAF
132 } // namespace Aws
SqlInjectionMatchSetUpdate & WithSqlInjectionMatchTuple(SqlInjectionMatchTuple &&value)
void SetSqlInjectionMatchTuple(SqlInjectionMatchTuple &&value)
SqlInjectionMatchSetUpdate & WithAction(ChangeAction &&value)
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:37
const SqlInjectionMatchTuple & GetSqlInjectionMatchTuple() const
SqlInjectionMatchSetUpdate & WithAction(const ChangeAction &value)
SqlInjectionMatchSetUpdate & WithSqlInjectionMatchTuple(const SqlInjectionMatchTuple &value)
void SetSqlInjectionMatchTuple(const SqlInjectionMatchTuple &value)
JSON (JavaScript Object Notation).