AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Headers.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/HeaderMatchPattern.h>
9#include <aws/wafv2/model/MapMatchScope.h>
10#include <aws/wafv2/model/OversizeHandling.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WAFV2
24{
25namespace Model
26{
27
40 class Headers
41 {
42 public:
43 AWS_WAFV2_API Headers();
44 AWS_WAFV2_API Headers(Aws::Utils::Json::JsonView jsonValue);
45 AWS_WAFV2_API Headers& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
57 inline const HeaderMatchPattern& GetMatchPattern() const{ return m_matchPattern; }
58 inline bool MatchPatternHasBeenSet() const { return m_matchPatternHasBeenSet; }
59 inline void SetMatchPattern(const HeaderMatchPattern& value) { m_matchPatternHasBeenSet = true; m_matchPattern = value; }
60 inline void SetMatchPattern(HeaderMatchPattern&& value) { m_matchPatternHasBeenSet = true; m_matchPattern = std::move(value); }
61 inline Headers& WithMatchPattern(const HeaderMatchPattern& value) { SetMatchPattern(value); return *this;}
62 inline Headers& WithMatchPattern(HeaderMatchPattern&& value) { SetMatchPattern(std::move(value)); return *this;}
64
66
75 inline const MapMatchScope& GetMatchScope() const{ return m_matchScope; }
76 inline bool MatchScopeHasBeenSet() const { return m_matchScopeHasBeenSet; }
77 inline void SetMatchScope(const MapMatchScope& value) { m_matchScopeHasBeenSet = true; m_matchScope = value; }
78 inline void SetMatchScope(MapMatchScope&& value) { m_matchScopeHasBeenSet = true; m_matchScope = std::move(value); }
79 inline Headers& WithMatchScope(const MapMatchScope& value) { SetMatchScope(value); return *this;}
80 inline Headers& WithMatchScope(MapMatchScope&& value) { SetMatchScope(std::move(value)); return *this;}
82
84
96 inline const OversizeHandling& GetOversizeHandling() const{ return m_oversizeHandling; }
97 inline bool OversizeHandlingHasBeenSet() const { return m_oversizeHandlingHasBeenSet; }
98 inline void SetOversizeHandling(const OversizeHandling& value) { m_oversizeHandlingHasBeenSet = true; m_oversizeHandling = value; }
99 inline void SetOversizeHandling(OversizeHandling&& value) { m_oversizeHandlingHasBeenSet = true; m_oversizeHandling = std::move(value); }
100 inline Headers& WithOversizeHandling(const OversizeHandling& value) { SetOversizeHandling(value); return *this;}
101 inline Headers& WithOversizeHandling(OversizeHandling&& value) { SetOversizeHandling(std::move(value)); return *this;}
103 private:
104
105 HeaderMatchPattern m_matchPattern;
106 bool m_matchPatternHasBeenSet = false;
107
108 MapMatchScope m_matchScope;
109 bool m_matchScopeHasBeenSet = false;
110
111 OversizeHandling m_oversizeHandling;
112 bool m_oversizeHandlingHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace WAFV2
117} // namespace Aws
bool MatchScopeHasBeenSet() const
Definition Headers.h:76
const MapMatchScope & GetMatchScope() const
Definition Headers.h:75
bool OversizeHandlingHasBeenSet() const
Definition Headers.h:97
AWS_WAFV2_API Headers & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMatchScope(MapMatchScope &&value)
Definition Headers.h:78
Headers & WithMatchPattern(HeaderMatchPattern &&value)
Definition Headers.h:62
void SetMatchPattern(HeaderMatchPattern &&value)
Definition Headers.h:60
void SetMatchPattern(const HeaderMatchPattern &value)
Definition Headers.h:59
Headers & WithOversizeHandling(const OversizeHandling &value)
Definition Headers.h:100
bool MatchPatternHasBeenSet() const
Definition Headers.h:58
Headers & WithMatchScope(const MapMatchScope &value)
Definition Headers.h:79
void SetOversizeHandling(OversizeHandling &&value)
Definition Headers.h:99
AWS_WAFV2_API Headers(Aws::Utils::Json::JsonView jsonValue)
Headers & WithMatchScope(MapMatchScope &&value)
Definition Headers.h:80
Headers & WithMatchPattern(const HeaderMatchPattern &value)
Definition Headers.h:61
void SetMatchScope(const MapMatchScope &value)
Definition Headers.h:77
const OversizeHandling & GetOversizeHandling() const
Definition Headers.h:96
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOversizeHandling(const OversizeHandling &value)
Definition Headers.h:98
const HeaderMatchPattern & GetMatchPattern() const
Definition Headers.h:57
Headers & WithOversizeHandling(OversizeHandling &&value)
Definition Headers.h:101
Aws::Utils::Json::JsonValue JsonValue