AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HeaderMatchPattern.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 HeaderMatchPattern();
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 inline void SetAll(const All& value) { m_allHasBeenSet = true; m_all = value; }
53 inline void SetAll(All&& value) { m_allHasBeenSet = true; m_all = std::move(value); }
54 inline HeaderMatchPattern& WithAll(const All& value) { SetAll(value); return *this;}
55 inline HeaderMatchPattern& WithAll(All&& value) { SetAll(std::move(value)); return *this;}
57
59
63 inline const Aws::Vector<Aws::String>& GetIncludedHeaders() const{ return m_includedHeaders; }
64 inline bool IncludedHeadersHasBeenSet() const { return m_includedHeadersHasBeenSet; }
65 inline void SetIncludedHeaders(const Aws::Vector<Aws::String>& value) { m_includedHeadersHasBeenSet = true; m_includedHeaders = value; }
66 inline void SetIncludedHeaders(Aws::Vector<Aws::String>&& value) { m_includedHeadersHasBeenSet = true; m_includedHeaders = std::move(value); }
68 inline HeaderMatchPattern& WithIncludedHeaders(Aws::Vector<Aws::String>&& value) { SetIncludedHeaders(std::move(value)); return *this;}
69 inline HeaderMatchPattern& AddIncludedHeaders(const Aws::String& value) { m_includedHeadersHasBeenSet = true; m_includedHeaders.push_back(value); return *this; }
70 inline HeaderMatchPattern& AddIncludedHeaders(Aws::String&& value) { m_includedHeadersHasBeenSet = true; m_includedHeaders.push_back(std::move(value)); return *this; }
71 inline HeaderMatchPattern& AddIncludedHeaders(const char* value) { m_includedHeadersHasBeenSet = true; m_includedHeaders.push_back(value); return *this; }
73
75
79 inline const Aws::Vector<Aws::String>& GetExcludedHeaders() const{ return m_excludedHeaders; }
80 inline bool ExcludedHeadersHasBeenSet() const { return m_excludedHeadersHasBeenSet; }
81 inline void SetExcludedHeaders(const Aws::Vector<Aws::String>& value) { m_excludedHeadersHasBeenSet = true; m_excludedHeaders = value; }
82 inline void SetExcludedHeaders(Aws::Vector<Aws::String>&& value) { m_excludedHeadersHasBeenSet = true; m_excludedHeaders = std::move(value); }
84 inline HeaderMatchPattern& WithExcludedHeaders(Aws::Vector<Aws::String>&& value) { SetExcludedHeaders(std::move(value)); return *this;}
85 inline HeaderMatchPattern& AddExcludedHeaders(const Aws::String& value) { m_excludedHeadersHasBeenSet = true; m_excludedHeaders.push_back(value); return *this; }
86 inline HeaderMatchPattern& AddExcludedHeaders(Aws::String&& value) { m_excludedHeadersHasBeenSet = true; m_excludedHeaders.push_back(std::move(value)); return *this; }
87 inline HeaderMatchPattern& AddExcludedHeaders(const char* value) { m_excludedHeadersHasBeenSet = true; m_excludedHeaders.push_back(value); return *this; }
89 private:
90
91 All m_all;
92 bool m_allHasBeenSet = false;
93
94 Aws::Vector<Aws::String> m_includedHeaders;
95 bool m_includedHeadersHasBeenSet = false;
96
97 Aws::Vector<Aws::String> m_excludedHeaders;
98 bool m_excludedHeadersHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace WAFV2
103} // namespace Aws
void SetExcludedHeaders(Aws::Vector< Aws::String > &&value)
AWS_WAFV2_API HeaderMatchPattern & operator=(Aws::Utils::Json::JsonView jsonValue)
HeaderMatchPattern & AddExcludedHeaders(Aws::String &&value)
const Aws::Vector< Aws::String > & GetIncludedHeaders() const
HeaderMatchPattern & WithExcludedHeaders(const Aws::Vector< Aws::String > &value)
HeaderMatchPattern & AddIncludedHeaders(Aws::String &&value)
HeaderMatchPattern & WithExcludedHeaders(Aws::Vector< Aws::String > &&value)
HeaderMatchPattern & AddExcludedHeaders(const Aws::String &value)
void SetIncludedHeaders(const Aws::Vector< Aws::String > &value)
HeaderMatchPattern & WithIncludedHeaders(const Aws::Vector< Aws::String > &value)
HeaderMatchPattern & AddIncludedHeaders(const char *value)
const Aws::Vector< Aws::String > & GetExcludedHeaders() const
HeaderMatchPattern & AddExcludedHeaders(const char *value)
AWS_WAFV2_API HeaderMatchPattern(Aws::Utils::Json::JsonView jsonValue)
HeaderMatchPattern & WithAll(All &&value)
HeaderMatchPattern & WithAll(const All &value)
HeaderMatchPattern & WithIncludedHeaders(Aws::Vector< Aws::String > &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
HeaderMatchPattern & AddIncludedHeaders(const Aws::String &value)
void SetExcludedHeaders(const Aws::Vector< Aws::String > &value)
void SetIncludedHeaders(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue