AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CookieMatchPattern.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/All.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.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 {
39 public:
40 AWS_WAFV2_API CookieMatchPattern() = default;
43 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const All& GetAll() const { return m_all; }
51 inline bool AllHasBeenSet() const { return m_allHasBeenSet; }
52 template<typename AllT = All>
53 void SetAll(AllT&& value) { m_allHasBeenSet = true; m_all = std::forward<AllT>(value); }
54 template<typename AllT = All>
55 CookieMatchPattern& WithAll(AllT&& value) { SetAll(std::forward<AllT>(value)); return *this;}
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) { m_includedCookiesHasBeenSet = true; m_includedCookies = std::forward<IncludedCookiesT>(value); }
67 template<typename IncludedCookiesT = Aws::Vector<Aws::String>>
68 CookieMatchPattern& WithIncludedCookies(IncludedCookiesT&& value) { SetIncludedCookies(std::forward<IncludedCookiesT>(value)); return *this;}
69 template<typename IncludedCookiesT = Aws::String>
70 CookieMatchPattern& AddIncludedCookies(IncludedCookiesT&& value) { m_includedCookiesHasBeenSet = true; m_includedCookies.emplace_back(std::forward<IncludedCookiesT>(value)); return *this; }
72
74
78 inline const Aws::Vector<Aws::String>& GetExcludedCookies() const { return m_excludedCookies; }
79 inline bool ExcludedCookiesHasBeenSet() const { return m_excludedCookiesHasBeenSet; }
80 template<typename ExcludedCookiesT = Aws::Vector<Aws::String>>
81 void SetExcludedCookies(ExcludedCookiesT&& value) { m_excludedCookiesHasBeenSet = true; m_excludedCookies = std::forward<ExcludedCookiesT>(value); }
82 template<typename ExcludedCookiesT = Aws::Vector<Aws::String>>
83 CookieMatchPattern& WithExcludedCookies(ExcludedCookiesT&& value) { SetExcludedCookies(std::forward<ExcludedCookiesT>(value)); return *this;}
84 template<typename ExcludedCookiesT = Aws::String>
85 CookieMatchPattern& AddExcludedCookies(ExcludedCookiesT&& value) { m_excludedCookiesHasBeenSet = true; m_excludedCookies.emplace_back(std::forward<ExcludedCookiesT>(value)); return *this; }
87 private:
88
89 All m_all;
90 bool m_allHasBeenSet = false;
91
92 Aws::Vector<Aws::String> m_includedCookies;
93 bool m_includedCookiesHasBeenSet = false;
94
95 Aws::Vector<Aws::String> m_excludedCookies;
96 bool m_excludedCookiesHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace WAFV2
101} // namespace Aws
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue