AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JsonBody.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/JsonMatchPattern.h>
9#include <aws/wafv2/model/JsonMatchScope.h>
10#include <aws/wafv2/model/BodyParsingFallbackBehavior.h>
11#include <aws/wafv2/model/OversizeHandling.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WAFV2
25{
26namespace Model
27{
28
44 {
45 public:
46 AWS_WAFV2_API JsonBody();
47 AWS_WAFV2_API JsonBody(Aws::Utils::Json::JsonView jsonValue);
49 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
57 inline const JsonMatchPattern& GetMatchPattern() const{ return m_matchPattern; }
58 inline bool MatchPatternHasBeenSet() const { return m_matchPatternHasBeenSet; }
59 inline void SetMatchPattern(const JsonMatchPattern& value) { m_matchPatternHasBeenSet = true; m_matchPattern = value; }
60 inline void SetMatchPattern(JsonMatchPattern&& value) { m_matchPatternHasBeenSet = true; m_matchPattern = std::move(value); }
61 inline JsonBody& WithMatchPattern(const JsonMatchPattern& value) { SetMatchPattern(value); return *this;}
62 inline JsonBody& WithMatchPattern(JsonMatchPattern&& value) { SetMatchPattern(std::move(value)); return *this;}
64
66
75 inline const JsonMatchScope& GetMatchScope() const{ return m_matchScope; }
76 inline bool MatchScopeHasBeenSet() const { return m_matchScopeHasBeenSet; }
77 inline void SetMatchScope(const JsonMatchScope& value) { m_matchScopeHasBeenSet = true; m_matchScope = value; }
78 inline void SetMatchScope(JsonMatchScope&& value) { m_matchScopeHasBeenSet = true; m_matchScope = std::move(value); }
79 inline JsonBody& WithMatchScope(const JsonMatchScope& value) { SetMatchScope(value); return *this;}
80 inline JsonBody& WithMatchScope(JsonMatchScope&& value) { SetMatchScope(std::move(value)); return *this;}
82
84
100 inline const BodyParsingFallbackBehavior& GetInvalidFallbackBehavior() const{ return m_invalidFallbackBehavior; }
101 inline bool InvalidFallbackBehaviorHasBeenSet() const { return m_invalidFallbackBehaviorHasBeenSet; }
102 inline void SetInvalidFallbackBehavior(const BodyParsingFallbackBehavior& value) { m_invalidFallbackBehaviorHasBeenSet = true; m_invalidFallbackBehavior = value; }
103 inline void SetInvalidFallbackBehavior(BodyParsingFallbackBehavior&& value) { m_invalidFallbackBehaviorHasBeenSet = true; m_invalidFallbackBehavior = std::move(value); }
107
109
130 inline const OversizeHandling& GetOversizeHandling() const{ return m_oversizeHandling; }
131 inline bool OversizeHandlingHasBeenSet() const { return m_oversizeHandlingHasBeenSet; }
132 inline void SetOversizeHandling(const OversizeHandling& value) { m_oversizeHandlingHasBeenSet = true; m_oversizeHandling = value; }
133 inline void SetOversizeHandling(OversizeHandling&& value) { m_oversizeHandlingHasBeenSet = true; m_oversizeHandling = std::move(value); }
134 inline JsonBody& WithOversizeHandling(const OversizeHandling& value) { SetOversizeHandling(value); return *this;}
135 inline JsonBody& WithOversizeHandling(OversizeHandling&& value) { SetOversizeHandling(std::move(value)); return *this;}
137 private:
138
139 JsonMatchPattern m_matchPattern;
140 bool m_matchPatternHasBeenSet = false;
141
142 JsonMatchScope m_matchScope;
143 bool m_matchScopeHasBeenSet = false;
144
145 BodyParsingFallbackBehavior m_invalidFallbackBehavior;
146 bool m_invalidFallbackBehaviorHasBeenSet = false;
147
148 OversizeHandling m_oversizeHandling;
149 bool m_oversizeHandlingHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace WAFV2
154} // namespace Aws
bool MatchPatternHasBeenSet() const
Definition JsonBody.h:58
JsonBody & WithInvalidFallbackBehavior(BodyParsingFallbackBehavior &&value)
Definition JsonBody.h:105
bool InvalidFallbackBehaviorHasBeenSet() const
Definition JsonBody.h:101
JsonBody & WithMatchScope(const JsonMatchScope &value)
Definition JsonBody.h:79
const JsonMatchPattern & GetMatchPattern() const
Definition JsonBody.h:57
JsonBody & WithMatchScope(JsonMatchScope &&value)
Definition JsonBody.h:80
const OversizeHandling & GetOversizeHandling() const
Definition JsonBody.h:130
void SetInvalidFallbackBehavior(BodyParsingFallbackBehavior &&value)
Definition JsonBody.h:103
const JsonMatchScope & GetMatchScope() const
Definition JsonBody.h:75
void SetMatchScope(const JsonMatchScope &value)
Definition JsonBody.h:77
const BodyParsingFallbackBehavior & GetInvalidFallbackBehavior() const
Definition JsonBody.h:100
void SetMatchPattern(const JsonMatchPattern &value)
Definition JsonBody.h:59
JsonBody & WithInvalidFallbackBehavior(const BodyParsingFallbackBehavior &value)
Definition JsonBody.h:104
AWS_WAFV2_API JsonBody & operator=(Aws::Utils::Json::JsonView jsonValue)
bool MatchScopeHasBeenSet() const
Definition JsonBody.h:76
JsonBody & WithMatchPattern(const JsonMatchPattern &value)
Definition JsonBody.h:61
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInvalidFallbackBehavior(const BodyParsingFallbackBehavior &value)
Definition JsonBody.h:102
void SetMatchPattern(JsonMatchPattern &&value)
Definition JsonBody.h:60
void SetOversizeHandling(OversizeHandling &&value)
Definition JsonBody.h:133
JsonBody & WithOversizeHandling(OversizeHandling &&value)
Definition JsonBody.h:135
bool OversizeHandlingHasBeenSet() const
Definition JsonBody.h:131
void SetMatchScope(JsonMatchScope &&value)
Definition JsonBody.h:78
JsonBody & WithOversizeHandling(const OversizeHandling &value)
Definition JsonBody.h:134
JsonBody & WithMatchPattern(JsonMatchPattern &&value)
Definition JsonBody.h:62
void SetOversizeHandling(const OversizeHandling &value)
Definition JsonBody.h:132
AWS_WAFV2_API JsonBody(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue