AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
CookieMatchPattern.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wafv2/WAFV2_EXPORTS.h>
10#include <aws/wafv2/model/All.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
34 public:
35 AWS_WAFV2_API CookieMatchPattern() = default;
38 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const All& GetAll() const { return m_all; }
45 inline bool AllHasBeenSet() const { return m_allHasBeenSet; }
46 template <typename AllT = All>
47 void SetAll(AllT&& value) {
48 m_allHasBeenSet = true;
49 m_all = std::forward<AllT>(value);
50 }
51 template <typename AllT = All>
52 CookieMatchPattern& WithAll(AllT&& value) {
53 SetAll(std::forward<AllT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::Vector<Aws::String>& GetIncludedCookies() const { return m_includedCookies; }
64 inline bool IncludedCookiesHasBeenSet() const { return m_includedCookiesHasBeenSet; }
65 template <typename IncludedCookiesT = Aws::Vector<Aws::String>>
66 void SetIncludedCookies(IncludedCookiesT&& value) {
67 m_includedCookiesHasBeenSet = true;
68 m_includedCookies = std::forward<IncludedCookiesT>(value);
69 }
70 template <typename IncludedCookiesT = Aws::Vector<Aws::String>>
71 CookieMatchPattern& WithIncludedCookies(IncludedCookiesT&& value) {
72 SetIncludedCookies(std::forward<IncludedCookiesT>(value));
73 return *this;
74 }
75 template <typename IncludedCookiesT = Aws::String>
76 CookieMatchPattern& AddIncludedCookies(IncludedCookiesT&& value) {
77 m_includedCookiesHasBeenSet = true;
78 m_includedCookies.emplace_back(std::forward<IncludedCookiesT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::Vector<Aws::String>& GetExcludedCookies() const { return m_excludedCookies; }
89 inline bool ExcludedCookiesHasBeenSet() const { return m_excludedCookiesHasBeenSet; }
90 template <typename ExcludedCookiesT = Aws::Vector<Aws::String>>
91 void SetExcludedCookies(ExcludedCookiesT&& value) {
92 m_excludedCookiesHasBeenSet = true;
93 m_excludedCookies = std::forward<ExcludedCookiesT>(value);
94 }
95 template <typename ExcludedCookiesT = Aws::Vector<Aws::String>>
96 CookieMatchPattern& WithExcludedCookies(ExcludedCookiesT&& value) {
97 SetExcludedCookies(std::forward<ExcludedCookiesT>(value));
98 return *this;
99 }
100 template <typename ExcludedCookiesT = Aws::String>
101 CookieMatchPattern& AddExcludedCookies(ExcludedCookiesT&& value) {
102 m_excludedCookiesHasBeenSet = true;
103 m_excludedCookies.emplace_back(std::forward<ExcludedCookiesT>(value));
104 return *this;
105 }
107 private:
108 All m_all;
109
110 Aws::Vector<Aws::String> m_includedCookies;
111
112 Aws::Vector<Aws::String> m_excludedCookies;
113 bool m_allHasBeenSet = false;
114 bool m_includedCookiesHasBeenSet = false;
115 bool m_excludedCookiesHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace WAFV2
120} // namespace Aws
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue