AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ActionCondition.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/ActionValue.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAFV2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_WAFV2_API ActionCondition();
38 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
50 inline const ActionValue& GetAction() const{ return m_action; }
51 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
52 inline void SetAction(const ActionValue& value) { m_actionHasBeenSet = true; m_action = value; }
53 inline void SetAction(ActionValue&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
54 inline ActionCondition& WithAction(const ActionValue& value) { SetAction(value); return *this;}
55 inline ActionCondition& WithAction(ActionValue&& value) { SetAction(std::move(value)); return *this;}
57 private:
58
59 ActionValue m_action;
60 bool m_actionHasBeenSet = false;
61 };
62
63} // namespace Model
64} // namespace WAFV2
65} // namespace Aws
AWS_WAFV2_API ActionCondition(Aws::Utils::Json::JsonView jsonValue)
ActionCondition & WithAction(const ActionValue &value)
void SetAction(ActionValue &&value)
const ActionValue & GetAction() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API ActionCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
ActionCondition & WithAction(ActionValue &&value)
void SetAction(const ActionValue &value)
Aws::Utils::Json::JsonValue JsonValue