AWS SDK for C++  1.9.108
AWS SDK for C++
ActionCondition.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 WAFV2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
45  inline const ActionValue& GetAction() const{ return m_action; }
46 
51  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
52 
57  inline void SetAction(const ActionValue& value) { m_actionHasBeenSet = true; m_action = value; }
58 
63  inline void SetAction(ActionValue&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
64 
69  inline ActionCondition& WithAction(const ActionValue& value) { SetAction(value); return *this;}
70 
75  inline ActionCondition& WithAction(ActionValue&& value) { SetAction(std::move(value)); return *this;}
76 
77  private:
78 
79  ActionValue m_action;
80  bool m_actionHasBeenSet;
81  };
82 
83 } // namespace Model
84 } // namespace WAFV2
85 } // namespace Aws
Aws::WAFV2::Model::ActionCondition::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: ActionCondition.h:51
ActionValue.h
Aws::WAFV2::Model::ActionCondition::GetAction
const ActionValue & GetAction() const
Definition: ActionCondition.h:45
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::ActionCondition::operator=
ActionCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
WAFV2_EXPORTS.h
Aws::WAFV2::Model::ActionCondition::SetAction
void SetAction(const ActionValue &value)
Definition: ActionCondition.h:57
Aws::WAFV2::Model::ActionCondition::SetAction
void SetAction(ActionValue &&value)
Definition: ActionCondition.h:63
Aws::WAFV2::Model::ActionCondition::ActionCondition
ActionCondition(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::ActionCondition
Definition: ActionCondition.h:33
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::ActionCondition::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::ActionCondition::WithAction
ActionCondition & WithAction(const ActionValue &value)
Definition: ActionCondition.h:69
Aws::WAFV2::Model::ActionValue
ActionValue
Definition: ActionValue.h:17
Aws::WAFV2::Model::ActionCondition::WithAction
ActionCondition & WithAction(ActionValue &&value)
Definition: ActionCondition.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::ActionCondition::ActionCondition
ActionCondition()