AWS SDK for C++  1.9.108
AWS SDK for C++
LoggingFilter.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/wafv2/model/Filter.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace WAFV2
24 {
25 namespace Model
26 {
27 
37  {
38  public:
43 
44 
48  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
49 
53  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
54 
58  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
59 
63  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
64 
68  inline LoggingFilter& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
69 
73  inline LoggingFilter& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
74 
78  inline LoggingFilter& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
79 
83  inline LoggingFilter& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
84 
85 
90  inline const FilterBehavior& GetDefaultBehavior() const{ return m_defaultBehavior; }
91 
96  inline bool DefaultBehaviorHasBeenSet() const { return m_defaultBehaviorHasBeenSet; }
97 
102  inline void SetDefaultBehavior(const FilterBehavior& value) { m_defaultBehaviorHasBeenSet = true; m_defaultBehavior = value; }
103 
108  inline void SetDefaultBehavior(FilterBehavior&& value) { m_defaultBehaviorHasBeenSet = true; m_defaultBehavior = std::move(value); }
109 
114  inline LoggingFilter& WithDefaultBehavior(const FilterBehavior& value) { SetDefaultBehavior(value); return *this;}
115 
120  inline LoggingFilter& WithDefaultBehavior(FilterBehavior&& value) { SetDefaultBehavior(std::move(value)); return *this;}
121 
122  private:
123 
124  Aws::Vector<Filter> m_filters;
125  bool m_filtersHasBeenSet;
126 
127  FilterBehavior m_defaultBehavior;
128  bool m_defaultBehaviorHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace WAFV2
133 } // namespace Aws
Aws::WAFV2::Model::LoggingFilter::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: LoggingFilter.h:53
Aws::WAFV2::Model::LoggingFilter::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: LoggingFilter.h:63
Filter.h
Aws::WAFV2::Model::FilterBehavior
FilterBehavior
Definition: FilterBehavior.h:17
Aws::WAFV2::Model::Filter
Definition: Filter.h:36
Aws::WAFV2::Model::LoggingFilter::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: LoggingFilter.h:58
Aws::WAFV2::Model::LoggingFilter::SetDefaultBehavior
void SetDefaultBehavior(const FilterBehavior &value)
Definition: LoggingFilter.h:102
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
AWSVector.h
Aws::WAFV2::Model::LoggingFilter::WithDefaultBehavior
LoggingFilter & WithDefaultBehavior(FilterBehavior &&value)
Definition: LoggingFilter.h:120
Aws::WAFV2::Model::LoggingFilter::LoggingFilter
LoggingFilter()
Aws::WAFV2::Model::LoggingFilter::WithFilters
LoggingFilter & WithFilters(Aws::Vector< Filter > &&value)
Definition: LoggingFilter.h:73
Aws::WAFV2::Model::LoggingFilter::AddFilters
LoggingFilter & AddFilters(Filter &&value)
Definition: LoggingFilter.h:83
WAFV2_EXPORTS.h
Aws::WAFV2::Model::LoggingFilter::LoggingFilter
LoggingFilter(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::LoggingFilter::AddFilters
LoggingFilter & AddFilters(const Filter &value)
Definition: LoggingFilter.h:78
Aws::WAFV2::Model::LoggingFilter::GetDefaultBehavior
const FilterBehavior & GetDefaultBehavior() const
Definition: LoggingFilter.h:90
Aws::WAFV2::Model::LoggingFilter::WithFilters
LoggingFilter & WithFilters(const Aws::Vector< Filter > &value)
Definition: LoggingFilter.h:68
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::LoggingFilter::SetDefaultBehavior
void SetDefaultBehavior(FilterBehavior &&value)
Definition: LoggingFilter.h:108
Aws::WAFV2::Model::LoggingFilter::WithDefaultBehavior
LoggingFilter & WithDefaultBehavior(const FilterBehavior &value)
Definition: LoggingFilter.h:114
Aws::WAFV2::Model::LoggingFilter::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: LoggingFilter.h:48
Aws::WAFV2::Model::LoggingFilter::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::LoggingFilter::DefaultBehaviorHasBeenSet
bool DefaultBehaviorHasBeenSet() const
Definition: LoggingFilter.h:96
Aws
Definition: AccessManagementClient.h:15
FilterBehavior.h
Aws::WAFV2::Model::LoggingFilter::operator=
LoggingFilter & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::LoggingFilter
Definition: LoggingFilter.h:37