AWS SDK for C++  1.9.104
AWS SDK for C++
JsonMatchPattern.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/wafv2/model/All.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 
36  {
37  public:
42 
43 
49  inline const All& GetAll() const{ return m_all; }
50 
56  inline bool AllHasBeenSet() const { return m_allHasBeenSet; }
57 
63  inline void SetAll(const All& value) { m_allHasBeenSet = true; m_all = value; }
64 
70  inline void SetAll(All&& value) { m_allHasBeenSet = true; m_all = std::move(value); }
71 
77  inline JsonMatchPattern& WithAll(const All& value) { SetAll(value); return *this;}
78 
84  inline JsonMatchPattern& WithAll(All&& value) { SetAll(std::move(value)); return *this;}
85 
86 
97  inline const Aws::Vector<Aws::String>& GetIncludedPaths() const{ return m_includedPaths; }
98 
109  inline bool IncludedPathsHasBeenSet() const { return m_includedPathsHasBeenSet; }
110 
121  inline void SetIncludedPaths(const Aws::Vector<Aws::String>& value) { m_includedPathsHasBeenSet = true; m_includedPaths = value; }
122 
133  inline void SetIncludedPaths(Aws::Vector<Aws::String>&& value) { m_includedPathsHasBeenSet = true; m_includedPaths = std::move(value); }
134 
145  inline JsonMatchPattern& WithIncludedPaths(const Aws::Vector<Aws::String>& value) { SetIncludedPaths(value); return *this;}
146 
157  inline JsonMatchPattern& WithIncludedPaths(Aws::Vector<Aws::String>&& value) { SetIncludedPaths(std::move(value)); return *this;}
158 
169  inline JsonMatchPattern& AddIncludedPaths(const Aws::String& value) { m_includedPathsHasBeenSet = true; m_includedPaths.push_back(value); return *this; }
170 
181  inline JsonMatchPattern& AddIncludedPaths(Aws::String&& value) { m_includedPathsHasBeenSet = true; m_includedPaths.push_back(std::move(value)); return *this; }
182 
193  inline JsonMatchPattern& AddIncludedPaths(const char* value) { m_includedPathsHasBeenSet = true; m_includedPaths.push_back(value); return *this; }
194 
195  private:
196 
197  All m_all;
198  bool m_allHasBeenSet;
199 
200  Aws::Vector<Aws::String> m_includedPaths;
201  bool m_includedPathsHasBeenSet;
202  };
203 
204 } // namespace Model
205 } // namespace WAFV2
206 } // namespace Aws
Aws::WAFV2::Model::JsonMatchPattern::AddIncludedPaths
JsonMatchPattern & AddIncludedPaths(const Aws::String &value)
Definition: JsonMatchPattern.h:169
Aws::WAFV2::Model::JsonMatchPattern::WithAll
JsonMatchPattern & WithAll(All &&value)
Definition: JsonMatchPattern.h:84
Aws::WAFV2::Model::JsonMatchPattern::WithAll
JsonMatchPattern & WithAll(const All &value)
Definition: JsonMatchPattern.h:77
Aws::WAFV2::Model::JsonMatchPattern::JsonMatchPattern
JsonMatchPattern(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::JsonMatchPattern::GetIncludedPaths
const Aws::Vector< Aws::String > & GetIncludedPaths() const
Definition: JsonMatchPattern.h:97
Aws::WAFV2::Model::JsonMatchPattern::WithIncludedPaths
JsonMatchPattern & WithIncludedPaths(const Aws::Vector< Aws::String > &value)
Definition: JsonMatchPattern.h:145
Aws::WAFV2::Model::JsonMatchPattern::SetIncludedPaths
void SetIncludedPaths(const Aws::Vector< Aws::String > &value)
Definition: JsonMatchPattern.h:121
Aws::WAFV2::Model::JsonMatchPattern::SetAll
void SetAll(All &&value)
Definition: JsonMatchPattern.h:70
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
All.h
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
AWSVector.h
Aws::WAFV2::Model::JsonMatchPattern::WithIncludedPaths
JsonMatchPattern & WithIncludedPaths(Aws::Vector< Aws::String > &&value)
Definition: JsonMatchPattern.h:157
Aws::WAFV2::Model::JsonMatchPattern
Definition: JsonMatchPattern.h:36
WAFV2_EXPORTS.h
Aws::WAFV2::Model::JsonMatchPattern::SetAll
void SetAll(const All &value)
Definition: JsonMatchPattern.h:63
Aws::WAFV2::Model::JsonMatchPattern::operator=
JsonMatchPattern & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::JsonMatchPattern::AddIncludedPaths
JsonMatchPattern & AddIncludedPaths(Aws::String &&value)
Definition: JsonMatchPattern.h:181
Aws::WAFV2::Model::JsonMatchPattern::AddIncludedPaths
JsonMatchPattern & AddIncludedPaths(const char *value)
Definition: JsonMatchPattern.h:193
Aws::WAFV2::Model::JsonMatchPattern::JsonMatchPattern
JsonMatchPattern()
Aws::WAFV2::Model::JsonMatchPattern::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::JsonMatchPattern::AllHasBeenSet
bool AllHasBeenSet() const
Definition: JsonMatchPattern.h:56
Aws::WAFV2::Model::JsonMatchPattern::IncludedPathsHasBeenSet
bool IncludedPathsHasBeenSet() const
Definition: JsonMatchPattern.h:109
Aws::WAFV2::Model::JsonMatchPattern::GetAll
const All & GetAll() const
Definition: JsonMatchPattern.h:49
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::JsonMatchPattern::SetIncludedPaths
void SetIncludedPaths(Aws::Vector< Aws::String > &&value)
Definition: JsonMatchPattern.h:133
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::All
Definition: All.h:35