AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Cookies.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/CookieMatchPattern.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
38 class Cookies
39 {
40 public:
41 AWS_WAFV2_API Cookies() = default;
42 AWS_WAFV2_API Cookies(Aws::Utils::Json::JsonView jsonValue);
43 AWS_WAFV2_API Cookies& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
55 inline const CookieMatchPattern& GetMatchPattern() const { return m_matchPattern; }
56 inline bool MatchPatternHasBeenSet() const { return m_matchPatternHasBeenSet; }
57 template<typename MatchPatternT = CookieMatchPattern>
58 void SetMatchPattern(MatchPatternT&& value) { m_matchPatternHasBeenSet = true; m_matchPattern = std::forward<MatchPatternT>(value); }
59 template<typename MatchPatternT = CookieMatchPattern>
60 Cookies& WithMatchPattern(MatchPatternT&& value) { SetMatchPattern(std::forward<MatchPatternT>(value)); return *this;}
62
64
73 inline MapMatchScope GetMatchScope() const { return m_matchScope; }
74 inline bool MatchScopeHasBeenSet() const { return m_matchScopeHasBeenSet; }
75 inline void SetMatchScope(MapMatchScope value) { m_matchScopeHasBeenSet = true; m_matchScope = value; }
76 inline Cookies& WithMatchScope(MapMatchScope value) { SetMatchScope(value); return *this;}
78
80
92 inline OversizeHandling GetOversizeHandling() const { return m_oversizeHandling; }
93 inline bool OversizeHandlingHasBeenSet() const { return m_oversizeHandlingHasBeenSet; }
94 inline void SetOversizeHandling(OversizeHandling value) { m_oversizeHandlingHasBeenSet = true; m_oversizeHandling = value; }
95 inline Cookies& WithOversizeHandling(OversizeHandling value) { SetOversizeHandling(value); return *this;}
97 private:
98
99 CookieMatchPattern m_matchPattern;
100 bool m_matchPatternHasBeenSet = false;
101
103 bool m_matchScopeHasBeenSet = false;
104
106 bool m_oversizeHandlingHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace WAFV2
111} // namespace Aws
bool MatchScopeHasBeenSet() const
Definition Cookies.h:74
void SetMatchScope(MapMatchScope value)
Definition Cookies.h:75
OversizeHandling GetOversizeHandling() const
Definition Cookies.h:92
void SetOversizeHandling(OversizeHandling value)
Definition Cookies.h:94
bool MatchPatternHasBeenSet() const
Definition Cookies.h:56
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
Cookies & WithMatchScope(MapMatchScope value)
Definition Cookies.h:76
Cookies & WithOversizeHandling(OversizeHandling value)
Definition Cookies.h:95
void SetMatchPattern(MatchPatternT &&value)
Definition Cookies.h:58
Cookies & WithMatchPattern(MatchPatternT &&value)
Definition Cookies.h:60
MapMatchScope GetMatchScope() const
Definition Cookies.h:73
AWS_WAFV2_API Cookies(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Cookies & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Cookies()=default
bool OversizeHandlingHasBeenSet() const
Definition Cookies.h:93
const CookieMatchPattern & GetMatchPattern() const
Definition Cookies.h:55
Aws::Utils::Json::JsonValue JsonValue