AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RegexPatternSet.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WAFRegional
23{
24namespace Model
25{
26
43 {
44 public:
45 AWS_WAFREGIONAL_API RegexPatternSet() = default;
46 AWS_WAFREGIONAL_API RegexPatternSet(Aws::Utils::Json::JsonView jsonValue);
47 AWS_WAFREGIONAL_API RegexPatternSet& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
61 inline const Aws::String& GetRegexPatternSetId() const { return m_regexPatternSetId; }
62 inline bool RegexPatternSetIdHasBeenSet() const { return m_regexPatternSetIdHasBeenSet; }
63 template<typename RegexPatternSetIdT = Aws::String>
64 void SetRegexPatternSetId(RegexPatternSetIdT&& value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId = std::forward<RegexPatternSetIdT>(value); }
65 template<typename RegexPatternSetIdT = Aws::String>
66 RegexPatternSet& WithRegexPatternSetId(RegexPatternSetIdT&& value) { SetRegexPatternSetId(std::forward<RegexPatternSetIdT>(value)); return *this;}
68
70
74 inline const Aws::String& GetName() const { return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 template<typename NameT = Aws::String>
77 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
78 template<typename NameT = Aws::String>
79 RegexPatternSet& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
81
83
87 inline const Aws::Vector<Aws::String>& GetRegexPatternStrings() const { return m_regexPatternStrings; }
88 inline bool RegexPatternStringsHasBeenSet() const { return m_regexPatternStringsHasBeenSet; }
89 template<typename RegexPatternStringsT = Aws::Vector<Aws::String>>
90 void SetRegexPatternStrings(RegexPatternStringsT&& value) { m_regexPatternStringsHasBeenSet = true; m_regexPatternStrings = std::forward<RegexPatternStringsT>(value); }
91 template<typename RegexPatternStringsT = Aws::Vector<Aws::String>>
92 RegexPatternSet& WithRegexPatternStrings(RegexPatternStringsT&& value) { SetRegexPatternStrings(std::forward<RegexPatternStringsT>(value)); return *this;}
93 template<typename RegexPatternStringsT = Aws::String>
94 RegexPatternSet& AddRegexPatternStrings(RegexPatternStringsT&& value) { m_regexPatternStringsHasBeenSet = true; m_regexPatternStrings.emplace_back(std::forward<RegexPatternStringsT>(value)); return *this; }
96 private:
97
98 Aws::String m_regexPatternSetId;
99 bool m_regexPatternSetIdHasBeenSet = false;
100
101 Aws::String m_name;
102 bool m_nameHasBeenSet = false;
103
104 Aws::Vector<Aws::String> m_regexPatternStrings;
105 bool m_regexPatternStringsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace WAFRegional
110} // namespace Aws
void SetRegexPatternSetId(RegexPatternSetIdT &&value)
RegexPatternSet & WithName(NameT &&value)
const Aws::Vector< Aws::String > & GetRegexPatternStrings() const
const Aws::String & GetRegexPatternSetId() const
AWS_WAFREGIONAL_API RegexPatternSet(Aws::Utils::Json::JsonView jsonValue)
RegexPatternSet & WithRegexPatternSetId(RegexPatternSetIdT &&value)
AWS_WAFREGIONAL_API RegexPatternSet & operator=(Aws::Utils::Json::JsonView jsonValue)
RegexPatternSet & WithRegexPatternStrings(RegexPatternStringsT &&value)
AWS_WAFREGIONAL_API RegexPatternSet()=default
RegexPatternSet & AddRegexPatternStrings(RegexPatternStringsT &&value)
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRegexPatternStrings(RegexPatternStringsT &&value)
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue