AWS SDK for C++  1.9.131
AWS SDK for C++
WafAction.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace WAFRegional
22 {
23 namespace Model
24 {
25 
44  {
45  public:
50 
51 
63  inline const WafActionType& GetType() const{ return m_type; }
64 
76  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
77 
89  inline void SetType(const WafActionType& value) { m_typeHasBeenSet = true; m_type = value; }
90 
102  inline void SetType(WafActionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
103 
115  inline WafAction& WithType(const WafActionType& value) { SetType(value); return *this;}
116 
128  inline WafAction& WithType(WafActionType&& value) { SetType(std::move(value)); return *this;}
129 
130  private:
131 
132  WafActionType m_type;
133  bool m_typeHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace WAFRegional
138 } // namespace Aws
Aws::WAFRegional::Model::WafAction::SetType
void SetType(WafActionType &&value)
Definition: WafAction.h:102
Aws::WAFRegional::Model::WafAction::GetType
const WafActionType & GetType() const
Definition: WafAction.h:63
WafActionType.h
AWS_WAFREGIONAL_API
#define AWS_WAFREGIONAL_API
Definition: WAFRegional_EXPORTS.h:28
Aws::WAFRegional::Model::WafAction
Definition: WafAction.h:44
Aws::WAFRegional::Model::WafAction::WithType
WafAction & WithType(const WafActionType &value)
Definition: WafAction.h:115
Aws::WAFRegional::Model::WafAction::WafAction
WafAction()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::WAFRegional::Model::WafAction::SetType
void SetType(const WafActionType &value)
Definition: WafAction.h:89
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFRegional::Model::WafActionType
WafActionType
Definition: WafActionType.h:17
WAFRegional_EXPORTS.h
Aws::WAFRegional::Model::WafAction::operator=
WafAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFRegional::Model::WafAction::WafAction
WafAction(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFRegional::Model::WafAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFRegional::Model::WafAction::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: WafAction.h:76
Aws
Definition: AccessManagementClient.h:15
Aws::WAFRegional::Model::WafAction::WithType
WafAction & WithType(WafActionType &&value)
Definition: WafAction.h:128