AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OverrideAction.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/CountAction.h>
9#include <aws/wafv2/model/NoneAction.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WAFV2
23{
24namespace Model
25{
26
43 {
44 public:
45 AWS_WAFV2_API OverrideAction();
48 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
60 inline const CountAction& GetCount() const{ return m_count; }
61 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
62 inline void SetCount(const CountAction& value) { m_countHasBeenSet = true; m_count = value; }
63 inline void SetCount(CountAction&& value) { m_countHasBeenSet = true; m_count = std::move(value); }
64 inline OverrideAction& WithCount(const CountAction& value) { SetCount(value); return *this;}
65 inline OverrideAction& WithCount(CountAction&& value) { SetCount(std::move(value)); return *this;}
67
69
73 inline const NoneAction& GetNone() const{ return m_none; }
74 inline bool NoneHasBeenSet() const { return m_noneHasBeenSet; }
75 inline void SetNone(const NoneAction& value) { m_noneHasBeenSet = true; m_none = value; }
76 inline void SetNone(NoneAction&& value) { m_noneHasBeenSet = true; m_none = std::move(value); }
77 inline OverrideAction& WithNone(const NoneAction& value) { SetNone(value); return *this;}
78 inline OverrideAction& WithNone(NoneAction&& value) { SetNone(std::move(value)); return *this;}
80 private:
81
82 CountAction m_count;
83 bool m_countHasBeenSet = false;
84
85 NoneAction m_none;
86 bool m_noneHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace WAFV2
91} // namespace Aws
AWS_WAFV2_API OverrideAction(Aws::Utils::Json::JsonView jsonValue)
const CountAction & GetCount() const
OverrideAction & WithCount(CountAction &&value)
const NoneAction & GetNone() const
AWS_WAFV2_API OverrideAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetNone(NoneAction &&value)
OverrideAction & WithCount(const CountAction &value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetNone(const NoneAction &value)
void SetCount(CountAction &&value)
void SetCount(const CountAction &value)
OverrideAction & WithNone(const NoneAction &value)
OverrideAction & WithNone(NoneAction &&value)
Aws::Utils::Json::JsonValue JsonValue