AWS SDK for C++  1.9.108
AWS SDK for C++
Filter.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace WAFV2
25 {
26 namespace Model
27 {
28 
36  {
37  public:
38  Filter();
42 
43 
47  inline const FilterBehavior& GetBehavior() const{ return m_behavior; }
48 
52  inline bool BehaviorHasBeenSet() const { return m_behaviorHasBeenSet; }
53 
57  inline void SetBehavior(const FilterBehavior& value) { m_behaviorHasBeenSet = true; m_behavior = value; }
58 
62  inline void SetBehavior(FilterBehavior&& value) { m_behaviorHasBeenSet = true; m_behavior = std::move(value); }
63 
67  inline Filter& WithBehavior(const FilterBehavior& value) { SetBehavior(value); return *this;}
68 
72  inline Filter& WithBehavior(FilterBehavior&& value) { SetBehavior(std::move(value)); return *this;}
73 
74 
80  inline const FilterRequirement& GetRequirement() const{ return m_requirement; }
81 
87  inline bool RequirementHasBeenSet() const { return m_requirementHasBeenSet; }
88 
94  inline void SetRequirement(const FilterRequirement& value) { m_requirementHasBeenSet = true; m_requirement = value; }
95 
101  inline void SetRequirement(FilterRequirement&& value) { m_requirementHasBeenSet = true; m_requirement = std::move(value); }
102 
108  inline Filter& WithRequirement(const FilterRequirement& value) { SetRequirement(value); return *this;}
109 
115  inline Filter& WithRequirement(FilterRequirement&& value) { SetRequirement(std::move(value)); return *this;}
116 
117 
121  inline const Aws::Vector<Condition>& GetConditions() const{ return m_conditions; }
122 
126  inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
127 
131  inline void SetConditions(const Aws::Vector<Condition>& value) { m_conditionsHasBeenSet = true; m_conditions = value; }
132 
136  inline void SetConditions(Aws::Vector<Condition>&& value) { m_conditionsHasBeenSet = true; m_conditions = std::move(value); }
137 
141  inline Filter& WithConditions(const Aws::Vector<Condition>& value) { SetConditions(value); return *this;}
142 
146  inline Filter& WithConditions(Aws::Vector<Condition>&& value) { SetConditions(std::move(value)); return *this;}
147 
151  inline Filter& AddConditions(const Condition& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(value); return *this; }
152 
156  inline Filter& AddConditions(Condition&& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(std::move(value)); return *this; }
157 
158  private:
159 
160  FilterBehavior m_behavior;
161  bool m_behaviorHasBeenSet;
162 
163  FilterRequirement m_requirement;
164  bool m_requirementHasBeenSet;
165 
166  Aws::Vector<Condition> m_conditions;
167  bool m_conditionsHasBeenSet;
168  };
169 
170 } // namespace Model
171 } // namespace WAFV2
172 } // namespace Aws
Aws::WAFV2::Model::Filter::GetConditions
const Aws::Vector< Condition > & GetConditions() const
Definition: Filter.h:121
Aws::WAFV2::Model::Filter::ConditionsHasBeenSet
bool ConditionsHasBeenSet() const
Definition: Filter.h:126
Aws::WAFV2::Model::Filter::SetConditions
void SetConditions(Aws::Vector< Condition > &&value)
Definition: Filter.h:136
Aws::WAFV2::Model::Filter::AddConditions
Filter & AddConditions(Condition &&value)
Definition: Filter.h:156
Aws::WAFV2::Model::Filter::SetRequirement
void SetRequirement(const FilterRequirement &value)
Definition: Filter.h:94
Aws::WAFV2::Model::FilterBehavior
FilterBehavior
Definition: FilterBehavior.h:17
Aws::WAFV2::Model::Filter::BehaviorHasBeenSet
bool BehaviorHasBeenSet() const
Definition: Filter.h:52
Aws::WAFV2::Model::Filter
Definition: Filter.h:36
Aws::WAFV2::Model::Filter::SetBehavior
void SetBehavior(FilterBehavior &&value)
Definition: Filter.h:62
Aws::WAFV2::Model::Filter::WithBehavior
Filter & WithBehavior(FilterBehavior &&value)
Definition: Filter.h:72
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Condition.h
AWSVector.h
Aws::WAFV2::Model::Filter::WithRequirement
Filter & WithRequirement(FilterRequirement &&value)
Definition: Filter.h:115
Aws::WAFV2::Model::Filter::WithBehavior
Filter & WithBehavior(const FilterBehavior &value)
Definition: Filter.h:67
Aws::WAFV2::Model::Filter::SetBehavior
void SetBehavior(const FilterBehavior &value)
Definition: Filter.h:57
WAFV2_EXPORTS.h
Aws::WAFV2::Model::Filter::SetConditions
void SetConditions(const Aws::Vector< Condition > &value)
Definition: Filter.h:131
Aws::WAFV2::Model::Filter::Filter
Filter()
Aws::WAFV2::Model::FilterRequirement
FilterRequirement
Definition: FilterRequirement.h:17
FilterRequirement.h
Aws::WAFV2::Model::Filter::AddConditions
Filter & AddConditions(const Condition &value)
Definition: Filter.h:151
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::Filter::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::Filter::operator=
Filter & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::Filter::WithRequirement
Filter & WithRequirement(const FilterRequirement &value)
Definition: Filter.h:108
Aws::WAFV2::Model::Filter::GetBehavior
const FilterBehavior & GetBehavior() const
Definition: Filter.h:47
Aws::WAFV2::Model::Filter::Filter
Filter(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::Filter::WithConditions
Filter & WithConditions(Aws::Vector< Condition > &&value)
Definition: Filter.h:146
Aws::WAFV2::Model::Filter::GetRequirement
const FilterRequirement & GetRequirement() const
Definition: Filter.h:80
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::Condition
Definition: Condition.h:33
FilterBehavior.h
Aws::WAFV2::Model::Filter::SetRequirement
void SetRequirement(FilterRequirement &&value)
Definition: Filter.h:101
Aws::WAFV2::Model::Filter::WithConditions
Filter & WithConditions(const Aws::Vector< Condition > &value)
Definition: Filter.h:141
Aws::WAFV2::Model::Filter::RequirementHasBeenSet
bool RequirementHasBeenSet() const
Definition: Filter.h:87