AWS SDK for C++  1.9.107
AWS SDK for C++
Condition.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 
33  {
34  public:
39 
40 
44  inline const ActionCondition& GetActionCondition() const{ return m_actionCondition; }
45 
49  inline bool ActionConditionHasBeenSet() const { return m_actionConditionHasBeenSet; }
50 
54  inline void SetActionCondition(const ActionCondition& value) { m_actionConditionHasBeenSet = true; m_actionCondition = value; }
55 
59  inline void SetActionCondition(ActionCondition&& value) { m_actionConditionHasBeenSet = true; m_actionCondition = std::move(value); }
60 
64  inline Condition& WithActionCondition(const ActionCondition& value) { SetActionCondition(value); return *this;}
65 
69  inline Condition& WithActionCondition(ActionCondition&& value) { SetActionCondition(std::move(value)); return *this;}
70 
71 
75  inline const LabelNameCondition& GetLabelNameCondition() const{ return m_labelNameCondition; }
76 
80  inline bool LabelNameConditionHasBeenSet() const { return m_labelNameConditionHasBeenSet; }
81 
85  inline void SetLabelNameCondition(const LabelNameCondition& value) { m_labelNameConditionHasBeenSet = true; m_labelNameCondition = value; }
86 
90  inline void SetLabelNameCondition(LabelNameCondition&& value) { m_labelNameConditionHasBeenSet = true; m_labelNameCondition = std::move(value); }
91 
95  inline Condition& WithLabelNameCondition(const LabelNameCondition& value) { SetLabelNameCondition(value); return *this;}
96 
100  inline Condition& WithLabelNameCondition(LabelNameCondition&& value) { SetLabelNameCondition(std::move(value)); return *this;}
101 
102  private:
103 
104  ActionCondition m_actionCondition;
105  bool m_actionConditionHasBeenSet;
106 
107  LabelNameCondition m_labelNameCondition;
108  bool m_labelNameConditionHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace WAFV2
113 } // namespace Aws
Aws::WAFV2::Model::Condition::WithActionCondition
Condition & WithActionCondition(ActionCondition &&value)
Definition: Condition.h:69
Aws::WAFV2::Model::Condition::SetActionCondition
void SetActionCondition(const ActionCondition &value)
Definition: Condition.h:54
Aws::WAFV2::Model::Condition::operator=
Condition & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::Condition::WithLabelNameCondition
Condition & WithLabelNameCondition(LabelNameCondition &&value)
Definition: Condition.h:100
Aws::WAFV2::Model::Condition::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
ActionCondition.h
Aws::WAFV2::Model::LabelNameCondition
Definition: LabelNameCondition.h:33
Aws::WAFV2::Model::Condition::WithLabelNameCondition
Condition & WithLabelNameCondition(const LabelNameCondition &value)
Definition: Condition.h:95
LabelNameCondition.h
Aws::WAFV2::Model::Condition::WithActionCondition
Condition & WithActionCondition(const ActionCondition &value)
Definition: Condition.h:64
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
WAFV2_EXPORTS.h
Aws::WAFV2::Model::Condition::SetActionCondition
void SetActionCondition(ActionCondition &&value)
Definition: Condition.h:59
Aws::WAFV2::Model::Condition::Condition
Condition(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::Condition::ActionConditionHasBeenSet
bool ActionConditionHasBeenSet() const
Definition: Condition.h:49
Aws::WAFV2::Model::Condition::GetActionCondition
const ActionCondition & GetActionCondition() const
Definition: Condition.h:44
Aws::WAFV2::Model::ActionCondition
Definition: ActionCondition.h:33
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::WAFV2::Model::Condition::LabelNameConditionHasBeenSet
bool LabelNameConditionHasBeenSet() const
Definition: Condition.h:80
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::Condition::GetLabelNameCondition
const LabelNameCondition & GetLabelNameCondition() const
Definition: Condition.h:75
Aws::WAFV2::Model::Condition::SetLabelNameCondition
void SetLabelNameCondition(LabelNameCondition &&value)
Definition: Condition.h:90
Aws::WAFV2::Model::Condition::Condition
Condition()
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::Condition
Definition: Condition.h:33
Aws::WAFV2::Model::Condition::SetLabelNameCondition
void SetLabelNameCondition(const LabelNameCondition &value)
Definition: Condition.h:85