AWS SDK for C++

AWS SDK for C++ Version 1.11.932

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
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAFV2 {
22namespace Model {
23
34class Cookies {
35 public:
36 AWS_WAFV2_API Cookies() = default;
37 AWS_WAFV2_API Cookies(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WAFV2_API Cookies& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
49 inline const CookieMatchPattern& GetMatchPattern() const { return m_matchPattern; }
50 inline bool MatchPatternHasBeenSet() const { return m_matchPatternHasBeenSet; }
51 template <typename MatchPatternT = CookieMatchPattern>
52 void SetMatchPattern(MatchPatternT&& value) {
53 m_matchPatternHasBeenSet = true;
54 m_matchPattern = std::forward<MatchPatternT>(value);
55 }
56 template <typename MatchPatternT = CookieMatchPattern>
57 Cookies& WithMatchPattern(MatchPatternT&& value) {
58 SetMatchPattern(std::forward<MatchPatternT>(value));
59 return *this;
60 }
62
64
73 inline MapMatchScope GetMatchScope() const { return m_matchScope; }
74 inline bool MatchScopeHasBeenSet() const { return m_matchScopeHasBeenSet; }
75 inline void SetMatchScope(MapMatchScope value) {
76 m_matchScopeHasBeenSet = true;
77 m_matchScope = value;
78 }
80 SetMatchScope(value);
81 return *this;
82 }
84
86
98 inline OversizeHandling GetOversizeHandling() const { return m_oversizeHandling; }
99 inline bool OversizeHandlingHasBeenSet() const { return m_oversizeHandlingHasBeenSet; }
101 m_oversizeHandlingHasBeenSet = true;
102 m_oversizeHandling = value;
103 }
105 SetOversizeHandling(value);
106 return *this;
107 }
109 private:
110 CookieMatchPattern m_matchPattern;
111
113
115 bool m_matchPatternHasBeenSet = false;
116 bool m_matchScopeHasBeenSet = false;
117 bool m_oversizeHandlingHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace WAFV2
122} // namespace Aws
bool MatchScopeHasBeenSet() const
Definition Cookies.h:74
void SetMatchScope(MapMatchScope value)
Definition Cookies.h:75
OversizeHandling GetOversizeHandling() const
Definition Cookies.h:98
void SetOversizeHandling(OversizeHandling value)
Definition Cookies.h:100
bool MatchPatternHasBeenSet() const
Definition Cookies.h:50
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
Cookies & WithMatchScope(MapMatchScope value)
Definition Cookies.h:79
Cookies & WithOversizeHandling(OversizeHandling value)
Definition Cookies.h:104
void SetMatchPattern(MatchPatternT &&value)
Definition Cookies.h:52
Cookies & WithMatchPattern(MatchPatternT &&value)
Definition Cookies.h:57
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:99
const CookieMatchPattern & GetMatchPattern() const
Definition Cookies.h:49
Aws::Utils::Json::JsonValue JsonValue