AWS SDK for C++  1.9.106
AWS SDK for C++
JsonBody.h
Go to the documentation of this file.
1 
6 #pragma once
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 
40  {
41  public:
46 
47 
52  inline const JsonMatchPattern& GetMatchPattern() const{ return m_matchPattern; }
53 
58  inline bool MatchPatternHasBeenSet() const { return m_matchPatternHasBeenSet; }
59 
64  inline void SetMatchPattern(const JsonMatchPattern& value) { m_matchPatternHasBeenSet = true; m_matchPattern = value; }
65 
70  inline void SetMatchPattern(JsonMatchPattern&& value) { m_matchPatternHasBeenSet = true; m_matchPattern = std::move(value); }
71 
76  inline JsonBody& WithMatchPattern(const JsonMatchPattern& value) { SetMatchPattern(value); return *this;}
77 
82  inline JsonBody& WithMatchPattern(JsonMatchPattern&& value) { SetMatchPattern(std::move(value)); return *this;}
83 
84 
89  inline const JsonMatchScope& GetMatchScope() const{ return m_matchScope; }
90 
95  inline bool MatchScopeHasBeenSet() const { return m_matchScopeHasBeenSet; }
96 
101  inline void SetMatchScope(const JsonMatchScope& value) { m_matchScopeHasBeenSet = true; m_matchScope = value; }
102 
107  inline void SetMatchScope(JsonMatchScope&& value) { m_matchScopeHasBeenSet = true; m_matchScope = std::move(value); }
108 
113  inline JsonBody& WithMatchScope(const JsonMatchScope& value) { SetMatchScope(value); return *this;}
114 
119  inline JsonBody& WithMatchScope(JsonMatchScope&& value) { SetMatchScope(std::move(value)); return *this;}
120 
121 
140  inline const BodyParsingFallbackBehavior& GetInvalidFallbackBehavior() const{ return m_invalidFallbackBehavior; }
141 
160  inline bool InvalidFallbackBehaviorHasBeenSet() const { return m_invalidFallbackBehaviorHasBeenSet; }
161 
180  inline void SetInvalidFallbackBehavior(const BodyParsingFallbackBehavior& value) { m_invalidFallbackBehaviorHasBeenSet = true; m_invalidFallbackBehavior = value; }
181 
200  inline void SetInvalidFallbackBehavior(BodyParsingFallbackBehavior&& value) { m_invalidFallbackBehaviorHasBeenSet = true; m_invalidFallbackBehavior = std::move(value); }
201 
220  inline JsonBody& WithInvalidFallbackBehavior(const BodyParsingFallbackBehavior& value) { SetInvalidFallbackBehavior(value); return *this;}
221 
240  inline JsonBody& WithInvalidFallbackBehavior(BodyParsingFallbackBehavior&& value) { SetInvalidFallbackBehavior(std::move(value)); return *this;}
241 
242  private:
243 
244  JsonMatchPattern m_matchPattern;
245  bool m_matchPatternHasBeenSet;
246 
247  JsonMatchScope m_matchScope;
248  bool m_matchScopeHasBeenSet;
249 
250  BodyParsingFallbackBehavior m_invalidFallbackBehavior;
251  bool m_invalidFallbackBehaviorHasBeenSet;
252  };
253 
254 } // namespace Model
255 } // namespace WAFV2
256 } // namespace Aws
Aws::WAFV2::Model::JsonBody::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::JsonBody::SetInvalidFallbackBehavior
void SetInvalidFallbackBehavior(const BodyParsingFallbackBehavior &value)
Definition: JsonBody.h:180
Aws::WAFV2::Model::JsonBody::GetMatchPattern
const JsonMatchPattern & GetMatchPattern() const
Definition: JsonBody.h:52
Aws::WAFV2::Model::JsonBody::WithInvalidFallbackBehavior
JsonBody & WithInvalidFallbackBehavior(BodyParsingFallbackBehavior &&value)
Definition: JsonBody.h:240
Aws::WAFV2::Model::JsonBody::WithInvalidFallbackBehavior
JsonBody & WithInvalidFallbackBehavior(const BodyParsingFallbackBehavior &value)
Definition: JsonBody.h:220
Aws::WAFV2::Model::JsonBody::WithMatchPattern
JsonBody & WithMatchPattern(JsonMatchPattern &&value)
Definition: JsonBody.h:82
JsonMatchPattern.h
Aws::WAFV2::Model::JsonBody
Definition: JsonBody.h:40
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::JsonBody::SetMatchPattern
void SetMatchPattern(const JsonMatchPattern &value)
Definition: JsonBody.h:64
Aws::WAFV2::Model::JsonBody::MatchPatternHasBeenSet
bool MatchPatternHasBeenSet() const
Definition: JsonBody.h:58
Aws::WAFV2::Model::JsonBody::GetInvalidFallbackBehavior
const BodyParsingFallbackBehavior & GetInvalidFallbackBehavior() const
Definition: JsonBody.h:140
Aws::WAFV2::Model::JsonMatchPattern
Definition: JsonMatchPattern.h:36
WAFV2_EXPORTS.h
Aws::WAFV2::Model::JsonBody::InvalidFallbackBehaviorHasBeenSet
bool InvalidFallbackBehaviorHasBeenSet() const
Definition: JsonBody.h:160
Aws::WAFV2::Model::JsonBody::operator=
JsonBody & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::JsonBody::SetMatchPattern
void SetMatchPattern(JsonMatchPattern &&value)
Definition: JsonBody.h:70
Aws::WAFV2::Model::JsonBody::WithMatchScope
JsonBody & WithMatchScope(JsonMatchScope &&value)
Definition: JsonBody.h:119
Aws::WAFV2::Model::JsonBody::GetMatchScope
const JsonMatchScope & GetMatchScope() const
Definition: JsonBody.h:89
Aws::WAFV2::Model::BodyParsingFallbackBehavior
BodyParsingFallbackBehavior
Definition: BodyParsingFallbackBehavior.h:17
Aws::WAFV2::Model::JsonBody::SetInvalidFallbackBehavior
void SetInvalidFallbackBehavior(BodyParsingFallbackBehavior &&value)
Definition: JsonBody.h:200
Aws::WAFV2::Model::JsonBody::JsonBody
JsonBody()
Aws::WAFV2::Model::JsonBody::WithMatchPattern
JsonBody & WithMatchPattern(const JsonMatchPattern &value)
Definition: JsonBody.h:76
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::JsonBody::WithMatchScope
JsonBody & WithMatchScope(const JsonMatchScope &value)
Definition: JsonBody.h:113
Aws::WAFV2::Model::JsonBody::SetMatchScope
void SetMatchScope(JsonMatchScope &&value)
Definition: JsonBody.h:107
JsonMatchScope.h
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::JsonMatchScope
JsonMatchScope
Definition: JsonMatchScope.h:17
Aws::WAFV2::Model::JsonBody::SetMatchScope
void SetMatchScope(const JsonMatchScope &value)
Definition: JsonBody.h:101
Aws::WAFV2::Model::JsonBody::JsonBody
JsonBody(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::JsonBody::MatchScopeHasBeenSet
bool MatchScopeHasBeenSet() const
Definition: JsonBody.h:95
BodyParsingFallbackBehavior.h