AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Condition.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/ActionCondition.h>
9#include <aws/wafv2/model/LabelNameCondition.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
33 {
34 public:
35 AWS_WAFV2_API Condition();
36 AWS_WAFV2_API Condition(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const ActionCondition& GetActionCondition() const{ return m_actionCondition; }
47 inline bool ActionConditionHasBeenSet() const { return m_actionConditionHasBeenSet; }
48 inline void SetActionCondition(const ActionCondition& value) { m_actionConditionHasBeenSet = true; m_actionCondition = value; }
49 inline void SetActionCondition(ActionCondition&& value) { m_actionConditionHasBeenSet = true; m_actionCondition = std::move(value); }
50 inline Condition& WithActionCondition(const ActionCondition& value) { SetActionCondition(value); return *this;}
51 inline Condition& WithActionCondition(ActionCondition&& value) { SetActionCondition(std::move(value)); return *this;}
53
55
61 inline const LabelNameCondition& GetLabelNameCondition() const{ return m_labelNameCondition; }
62 inline bool LabelNameConditionHasBeenSet() const { return m_labelNameConditionHasBeenSet; }
63 inline void SetLabelNameCondition(const LabelNameCondition& value) { m_labelNameConditionHasBeenSet = true; m_labelNameCondition = value; }
64 inline void SetLabelNameCondition(LabelNameCondition&& value) { m_labelNameConditionHasBeenSet = true; m_labelNameCondition = std::move(value); }
65 inline Condition& WithLabelNameCondition(const LabelNameCondition& value) { SetLabelNameCondition(value); return *this;}
66 inline Condition& WithLabelNameCondition(LabelNameCondition&& value) { SetLabelNameCondition(std::move(value)); return *this;}
68 private:
69
70 ActionCondition m_actionCondition;
71 bool m_actionConditionHasBeenSet = false;
72
73 LabelNameCondition m_labelNameCondition;
74 bool m_labelNameConditionHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace WAFV2
79} // namespace Aws
void SetActionCondition(ActionCondition &&value)
Definition Condition.h:49
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
const LabelNameCondition & GetLabelNameCondition() const
Definition Condition.h:61
bool ActionConditionHasBeenSet() const
Definition Condition.h:47
AWS_WAFV2_API Condition & operator=(Aws::Utils::Json::JsonView jsonValue)
Condition & WithLabelNameCondition(LabelNameCondition &&value)
Definition Condition.h:66
void SetActionCondition(const ActionCondition &value)
Definition Condition.h:48
bool LabelNameConditionHasBeenSet() const
Definition Condition.h:62
const ActionCondition & GetActionCondition() const
Definition Condition.h:46
AWS_WAFV2_API Condition(Aws::Utils::Json::JsonView jsonValue)
Condition & WithActionCondition(ActionCondition &&value)
Definition Condition.h:51
Condition & WithActionCondition(const ActionCondition &value)
Definition Condition.h:50
void SetLabelNameCondition(const LabelNameCondition &value)
Definition Condition.h:63
void SetLabelNameCondition(LabelNameCondition &&value)
Definition Condition.h:64
Condition & WithLabelNameCondition(const LabelNameCondition &value)
Definition Condition.h:65
Aws::Utils::Json::JsonValue JsonValue