AWS SDK for C++  1.9.107
AWS SDK for C++
OverrideAction.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace WAFV2
23 {
24 namespace Model
25 {
26 
44  {
45  public:
50 
51 
55  inline const CountAction& GetCount() const{ return m_count; }
56 
60  inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
61 
65  inline void SetCount(const CountAction& value) { m_countHasBeenSet = true; m_count = value; }
66 
70  inline void SetCount(CountAction&& value) { m_countHasBeenSet = true; m_count = std::move(value); }
71 
75  inline OverrideAction& WithCount(const CountAction& value) { SetCount(value); return *this;}
76 
80  inline OverrideAction& WithCount(CountAction&& value) { SetCount(std::move(value)); return *this;}
81 
82 
86  inline const NoneAction& GetNone() const{ return m_none; }
87 
91  inline bool NoneHasBeenSet() const { return m_noneHasBeenSet; }
92 
96  inline void SetNone(const NoneAction& value) { m_noneHasBeenSet = true; m_none = value; }
97 
101  inline void SetNone(NoneAction&& value) { m_noneHasBeenSet = true; m_none = std::move(value); }
102 
106  inline OverrideAction& WithNone(const NoneAction& value) { SetNone(value); return *this;}
107 
111  inline OverrideAction& WithNone(NoneAction&& value) { SetNone(std::move(value)); return *this;}
112 
113  private:
114 
115  CountAction m_count;
116  bool m_countHasBeenSet;
117 
118  NoneAction m_none;
119  bool m_noneHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace WAFV2
124 } // namespace Aws
Aws::WAFV2::Model::OverrideAction::OverrideAction
OverrideAction()
Aws::WAFV2::Model::OverrideAction::GetCount
const CountAction & GetCount() const
Definition: OverrideAction.h:55
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::OverrideAction::WithNone
OverrideAction & WithNone(NoneAction &&value)
Definition: OverrideAction.h:111
Aws::WAFV2::Model::OverrideAction::SetNone
void SetNone(const NoneAction &value)
Definition: OverrideAction.h:96
WAFV2_EXPORTS.h
Aws::WAFV2::Model::OverrideAction::operator=
OverrideAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::OverrideAction::SetCount
void SetCount(const CountAction &value)
Definition: OverrideAction.h:65
Aws::WAFV2::Model::OverrideAction::SetNone
void SetNone(NoneAction &&value)
Definition: OverrideAction.h:101
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::OverrideAction::WithNone
OverrideAction & WithNone(const NoneAction &value)
Definition: OverrideAction.h:106
Aws::WAFV2::Model::OverrideAction::NoneHasBeenSet
bool NoneHasBeenSet() const
Definition: OverrideAction.h:91
Aws::WAFV2::Model::OverrideAction::WithCount
OverrideAction & WithCount(CountAction &&value)
Definition: OverrideAction.h:80
Aws::WAFV2::Model::OverrideAction::SetCount
void SetCount(CountAction &&value)
Definition: OverrideAction.h:70
NoneAction.h
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::OverrideAction
Definition: OverrideAction.h:44
Aws::WAFV2::Model::OverrideAction::GetNone
const NoneAction & GetNone() const
Definition: OverrideAction.h:86
Aws::WAFV2::Model::OverrideAction::WithCount
OverrideAction & WithCount(const CountAction &value)
Definition: OverrideAction.h:75
Aws::WAFV2::Model::OverrideAction::OverrideAction
OverrideAction(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::OverrideAction::CountHasBeenSet
bool CountHasBeenSet() const
Definition: OverrideAction.h:60
Aws::WAFV2::Model::OverrideAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
CountAction.h
Aws::WAFV2::Model::CountAction
Definition: CountAction.h:35
Aws::WAFV2::Model::NoneAction
Definition: NoneAction.h:35