AWS SDK for C++  1.9.161
AWS SDK for C++
WafAction.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/waf/WAF_EXPORTS.h>
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 WAF
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 WAF
138 } // namespace Aws
WafActionType.h
Aws::WAF::Model::WafAction::WithType
WafAction & WithType(const WafActionType &value)
Definition: WafAction.h:115
Aws::WAF::Model::WafActionType
WafActionType
Definition: WafActionType.h:17
Aws::WAF::Model::WafAction::WafAction
WafAction()
Aws::WAF::Model::WafAction::GetType
const WafActionType & GetType() const
Definition: WafAction.h:63
Aws::WAF::Model::WafAction::operator=
WafAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::WAF::Model::WafAction::WithType
WafAction & WithType(WafActionType &&value)
Definition: WafAction.h:128
Aws::WAF::Model::WafAction
Definition: WafAction.h:44
Aws::WAF::Model::WafAction::SetType
void SetType(const WafActionType &value)
Definition: WafAction.h:89
Aws::WAF::Model::WafAction::WafAction
WafAction(Aws::Utils::Json::JsonView jsonValue)
Aws::WAF::Model::WafAction::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: WafAction.h:76
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAF::Model::WafAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
WAF_EXPORTS.h
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::WAF::Model::WafAction::SetType
void SetType(WafActionType &&value)
Definition: WafAction.h:102