AWS SDK for C++  0.12.9
AWS SDK for C++
RuleUpdate.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  RuleUpdate();
43  RuleUpdate(const Aws::Utils::Json::JsonValue& jsonValue);
44  RuleUpdate& 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 RuleUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
74 
80  inline RuleUpdate& WithAction(ChangeAction&& value) { SetAction(value); return *this;}
81 
86  inline const Predicate& GetPredicate() const{ return m_predicate; }
87 
92  inline void SetPredicate(const Predicate& value) { m_predicateHasBeenSet = true; m_predicate = value; }
93 
98  inline void SetPredicate(Predicate&& value) { m_predicateHasBeenSet = true; m_predicate = value; }
99 
104  inline RuleUpdate& WithPredicate(const Predicate& value) { SetPredicate(value); return *this;}
105 
110  inline RuleUpdate& WithPredicate(Predicate&& value) { SetPredicate(value); return *this;}
111 
112  private:
113  ChangeAction m_action;
114  bool m_actionHasBeenSet;
115  Predicate m_predicate;
116  bool m_predicateHasBeenSet;
117  };
118 
119 } // namespace Model
120 } // namespace WAF
121 } // namespace Aws
RuleUpdate & WithAction(const ChangeAction &value)
Definition: RuleUpdate.h:73
const Predicate & GetPredicate() const
Definition: RuleUpdate.h:86
void SetAction(ChangeAction &&value)
Definition: RuleUpdate.h:66
void SetPredicate(Predicate &&value)
Definition: RuleUpdate.h:98
const ChangeAction & GetAction() const
Definition: RuleUpdate.h:52
void SetPredicate(const Predicate &value)
Definition: RuleUpdate.h:92
void SetAction(const ChangeAction &value)
Definition: RuleUpdate.h:59
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:34
RuleUpdate & WithPredicate(Predicate &&value)
Definition: RuleUpdate.h:110
RuleUpdate & WithPredicate(const Predicate &value)
Definition: RuleUpdate.h:104
JSON (JavaScript Object Notation).
RuleUpdate & WithAction(ChangeAction &&value)
Definition: RuleUpdate.h:80