AWS SDK for C++  0.14.3
AWS SDK for C++
XssMatchSetUpdate.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  XssMatchSetUpdate& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
52  inline const ChangeAction& GetAction() const{ return m_action; }
53 
59  inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
60 
66  inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = value; }
67 
73  inline XssMatchSetUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
74 
80  inline XssMatchSetUpdate& WithAction(ChangeAction&& value) { SetAction(value); return *this;}
81 
87  inline const XssMatchTuple& GetXssMatchTuple() const{ return m_xssMatchTuple; }
88 
94  inline void SetXssMatchTuple(const XssMatchTuple& value) { m_xssMatchTupleHasBeenSet = true; m_xssMatchTuple = value; }
95 
101  inline void SetXssMatchTuple(XssMatchTuple&& value) { m_xssMatchTupleHasBeenSet = true; m_xssMatchTuple = value; }
102 
108  inline XssMatchSetUpdate& WithXssMatchTuple(const XssMatchTuple& value) { SetXssMatchTuple(value); return *this;}
109 
115  inline XssMatchSetUpdate& WithXssMatchTuple(XssMatchTuple&& value) { SetXssMatchTuple(value); return *this;}
116 
117  private:
118  ChangeAction m_action;
119  bool m_actionHasBeenSet;
120  XssMatchTuple m_xssMatchTuple;
121  bool m_xssMatchTupleHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace WAF
126 } // namespace Aws
void SetAction(const ChangeAction &value)
XssMatchSetUpdate & WithAction(const ChangeAction &value)
const XssMatchTuple & GetXssMatchTuple() const
XssMatchSetUpdate & WithAction(ChangeAction &&value)
void SetAction(ChangeAction &&value)
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:37
XssMatchSetUpdate & WithXssMatchTuple(XssMatchTuple &&value)
void SetXssMatchTuple(XssMatchTuple &&value)
const ChangeAction & GetAction() const
XssMatchSetUpdate & WithXssMatchTuple(const XssMatchTuple &value)
void SetXssMatchTuple(const XssMatchTuple &value)
JSON (JavaScript Object Notation).