AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
JsonMatchPattern.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
36 {
37 public:
38 AWS_WAFV2_API JsonMatchPattern() = default;
41 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
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 JsonMatchPattern& WithAll(AllT&& value) { SetAll(std::forward<AllT>(value)); return *this;}
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) { m_includedPathsHasBeenSet = true; m_includedPaths = std::forward<IncludedPathsT>(value); }
73 template<typename IncludedPathsT = Aws::Vector<Aws::String>>
74 JsonMatchPattern& WithIncludedPaths(IncludedPathsT&& value) { SetIncludedPaths(std::forward<IncludedPathsT>(value)); return *this;}
75 template<typename IncludedPathsT = Aws::String>
76 JsonMatchPattern& AddIncludedPaths(IncludedPathsT&& value) { m_includedPathsHasBeenSet = true; m_includedPaths.emplace_back(std::forward<IncludedPathsT>(value)); return *this; }
78 private:
79
80 All m_all;
81 bool m_allHasBeenSet = false;
82
83 Aws::Vector<Aws::String> m_includedPaths;
84 bool m_includedPathsHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace WAFV2
89} // 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