AWS SDK for C++  0.14.3
AWS SDK for C++
WebACLUpdate.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 
39  {
40  public:
41  WebACLUpdate();
42  WebACLUpdate(const Aws::Utils::Json::JsonValue& jsonValue);
43  WebACLUpdate& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
50  inline const ChangeAction& GetAction() const{ return m_action; }
51 
56  inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
57 
62  inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = value; }
63 
68  inline WebACLUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
69 
74  inline WebACLUpdate& WithAction(ChangeAction&& value) { SetAction(value); return *this;}
75 
76 
77  inline const ActivatedRule& GetActivatedRule() const{ return m_activatedRule; }
78 
79 
80  inline void SetActivatedRule(const ActivatedRule& value) { m_activatedRuleHasBeenSet = true; m_activatedRule = value; }
81 
82 
83  inline void SetActivatedRule(ActivatedRule&& value) { m_activatedRuleHasBeenSet = true; m_activatedRule = value; }
84 
85 
86  inline WebACLUpdate& WithActivatedRule(const ActivatedRule& value) { SetActivatedRule(value); return *this;}
87 
88 
89  inline WebACLUpdate& WithActivatedRule(ActivatedRule&& value) { SetActivatedRule(value); return *this;}
90 
91  private:
92  ChangeAction m_action;
93  bool m_actionHasBeenSet;
94  ActivatedRule m_activatedRule;
95  bool m_activatedRuleHasBeenSet;
96  };
97 
98 } // namespace Model
99 } // namespace WAF
100 } // namespace Aws
const ActivatedRule & GetActivatedRule() const
Definition: WebACLUpdate.h:77
void SetActivatedRule(const ActivatedRule &value)
Definition: WebACLUpdate.h:80
void SetActivatedRule(ActivatedRule &&value)
Definition: WebACLUpdate.h:83
WebACLUpdate & WithActivatedRule(ActivatedRule &&value)
Definition: WebACLUpdate.h:89
const ChangeAction & GetAction() const
Definition: WebACLUpdate.h:50
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:37
WebACLUpdate & WithAction(ChangeAction &&value)
Definition: WebACLUpdate.h:74
WebACLUpdate & WithAction(const ChangeAction &value)
Definition: WebACLUpdate.h:68
void SetAction(const ChangeAction &value)
Definition: WebACLUpdate.h:56
WebACLUpdate & WithActivatedRule(const ActivatedRule &value)
Definition: WebACLUpdate.h:86
void SetAction(ChangeAction &&value)
Definition: WebACLUpdate.h:62
JSON (JavaScript Object Notation).