AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 JsonMatchPattern& WithAll(const All& value) { SetAll(value); return *this;}
55 inline JsonMatchPattern& WithAll(All&& value) { SetAll(std::move(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 inline void SetIncludedPaths(const Aws::Vector<Aws::String>& value) { m_includedPathsHasBeenSet = true; m_includedPaths = value; }
72 inline void SetIncludedPaths(Aws::Vector<Aws::String>&& value) { m_includedPathsHasBeenSet = true; m_includedPaths = std::move(value); }
73 inline JsonMatchPattern& WithIncludedPaths(const Aws::Vector<Aws::String>& value) { SetIncludedPaths(value); return *this;}
74 inline JsonMatchPattern& WithIncludedPaths(Aws::Vector<Aws::String>&& value) { SetIncludedPaths(std::move(value)); return *this;}
75 inline JsonMatchPattern& AddIncludedPaths(const Aws::String& value) { m_includedPathsHasBeenSet = true; m_includedPaths.push_back(value); return *this; }
76 inline JsonMatchPattern& AddIncludedPaths(Aws::String&& value) { m_includedPathsHasBeenSet = true; m_includedPaths.push_back(std::move(value)); return *this; }
77 inline JsonMatchPattern& AddIncludedPaths(const char* value) { m_includedPathsHasBeenSet = true; m_includedPaths.push_back(value); return *this; }
79 private:
80
81 All m_all;
82 bool m_allHasBeenSet = false;
83
84 Aws::Vector<Aws::String> m_includedPaths;
85 bool m_includedPathsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace WAFV2
90} // namespace Aws
JsonMatchPattern & WithAll(All &&value)
void SetIncludedPaths(Aws::Vector< Aws::String > &&value)
AWS_WAFV2_API JsonMatchPattern(Aws::Utils::Json::JsonView jsonValue)
JsonMatchPattern & WithAll(const All &value)
JsonMatchPattern & AddIncludedPaths(const char *value)
JsonMatchPattern & WithIncludedPaths(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetIncludedPaths() const
void SetIncludedPaths(const Aws::Vector< Aws::String > &value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
JsonMatchPattern & AddIncludedPaths(const Aws::String &value)
AWS_WAFV2_API JsonMatchPattern & operator=(Aws::Utils::Json::JsonView jsonValue)
JsonMatchPattern & AddIncludedPaths(Aws::String &&value)
JsonMatchPattern & WithIncludedPaths(const 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