AWS SDK for C++  0.14.3
AWS SDK for C++
WafAction.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>
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace WAF
29 {
30 namespace Model
31 {
32 
42  {
43  public:
44  WafAction();
45  WafAction(const Aws::Utils::Json::JsonValue& jsonValue);
46  WafAction& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
47  Aws::Utils::Json::JsonValue Jsonize() const;
48 
59  inline const WafActionType& GetType() const{ return m_type; }
60 
71  inline void SetType(const WafActionType& value) { m_typeHasBeenSet = true; m_type = value; }
72 
83  inline void SetType(WafActionType&& value) { m_typeHasBeenSet = true; m_type = value; }
84 
95  inline WafAction& WithType(const WafActionType& value) { SetType(value); return *this;}
96 
107  inline WafAction& WithType(WafActionType&& value) { SetType(value); return *this;}
108 
109  private:
110  WafActionType m_type;
111  bool m_typeHasBeenSet;
112  };
113 
114 } // namespace Model
115 } // namespace WAF
116 } // namespace Aws
const WafActionType & GetType() const
Definition: WafAction.h:59
void SetType(const WafActionType &value)
Definition: WafAction.h:71
void SetType(WafActionType &&value)
Definition: WafAction.h:83
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:37
WafAction & WithType(const WafActionType &value)
Definition: WafAction.h:95
WafAction & WithType(WafActionType &&value)
Definition: WafAction.h:107
JSON (JavaScript Object Notation).