AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
JsonMatchPattern.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
32 public:
33 AWS_WAFV2_API JsonMatchPattern() = default;
36 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
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 JsonMatchPattern& WithAll(AllT&& value) {
53 SetAll(std::forward<AllT>(value));
54 return *this;
55 }
57
59
69 inline const Aws::Vector<Aws::String>& GetIncludedPaths() const { return m_includedPaths; }
70 inline bool IncludedPathsHasBeenSet() const { return m_includedPathsHasBeenSet; }
71 template <typename IncludedPathsT = Aws::Vector<Aws::String>>
72 void SetIncludedPaths(IncludedPathsT&& value) {
73 m_includedPathsHasBeenSet = true;
74 m_includedPaths = std::forward<IncludedPathsT>(value);
75 }
76 template <typename IncludedPathsT = Aws::Vector<Aws::String>>
77 JsonMatchPattern& WithIncludedPaths(IncludedPathsT&& value) {
78 SetIncludedPaths(std::forward<IncludedPathsT>(value));
79 return *this;
80 }
81 template <typename IncludedPathsT = Aws::String>
82 JsonMatchPattern& AddIncludedPaths(IncludedPathsT&& value) {
83 m_includedPathsHasBeenSet = true;
84 m_includedPaths.emplace_back(std::forward<IncludedPathsT>(value));
85 return *this;
86 }
88 private:
89 All m_all;
90
91 Aws::Vector<Aws::String> m_includedPaths;
92 bool m_allHasBeenSet = false;
93 bool m_includedPathsHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace WAFV2
98} // namespace Aws
JsonMatchPattern & AddIncludedPaths(IncludedPathsT &&value)
JsonMatchPattern & WithAll(AllT &&value)
JsonMatchPattern & WithIncludedPaths(IncludedPathsT &&value)
AWS_WAFV2_API JsonMatchPattern(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetIncludedPaths() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API JsonMatchPattern()=default
AWS_WAFV2_API JsonMatchPattern & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIncludedPaths(IncludedPathsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue