AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename CountT = CountAction>
63 void SetCount(CountT&& value) { m_countHasBeenSet = true; m_count = std::forward<CountT>(value); }
64 template<typename CountT = CountAction>
65 OverrideAction& WithCount(CountT&& value) { SetCount(std::forward<CountT>(value)); return *this;}
67
69
73 inline const NoneAction& GetNone() const { return m_none; }
74 inline bool NoneHasBeenSet() const { return m_noneHasBeenSet; }
75 template<typename NoneT = NoneAction>
76 void SetNone(NoneT&& value) { m_noneHasBeenSet = true; m_none = std::forward<NoneT>(value); }
77 template<typename NoneT = NoneAction>
78 OverrideAction& WithNone(NoneT&& value) { SetNone(std::forward<NoneT>(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(CountT &&value)
const NoneAction & GetNone() const
AWS_WAFV2_API OverrideAction & operator=(Aws::Utils::Json::JsonView jsonValue)
OverrideAction & WithNone(NoneT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API OverrideAction()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue