AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
RegexMatchSet.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/waf/WAF_EXPORTS.h>
10#include <aws/waf/model/RegexMatchTuple.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAF {
22namespace Model {
23
47 public:
48 AWS_WAF_API RegexMatchSet() = default;
52
54
65 inline const Aws::String& GetRegexMatchSetId() const { return m_regexMatchSetId; }
66 inline bool RegexMatchSetIdHasBeenSet() const { return m_regexMatchSetIdHasBeenSet; }
67 template <typename RegexMatchSetIdT = Aws::String>
68 void SetRegexMatchSetId(RegexMatchSetIdT&& value) {
69 m_regexMatchSetIdHasBeenSet = true;
70 m_regexMatchSetId = std::forward<RegexMatchSetIdT>(value);
71 }
72 template <typename RegexMatchSetIdT = Aws::String>
73 RegexMatchSet& WithRegexMatchSetId(RegexMatchSetIdT&& value) {
74 SetRegexMatchSetId(std::forward<RegexMatchSetIdT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetName() const { return m_name; }
85 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
86 template <typename NameT = Aws::String>
87 void SetName(NameT&& value) {
88 m_nameHasBeenSet = true;
89 m_name = std::forward<NameT>(value);
90 }
91 template <typename NameT = Aws::String>
92 RegexMatchSet& WithName(NameT&& value) {
93 SetName(std::forward<NameT>(value));
94 return *this;
95 }
97
99
109 inline const Aws::Vector<RegexMatchTuple>& GetRegexMatchTuples() const { return m_regexMatchTuples; }
110 inline bool RegexMatchTuplesHasBeenSet() const { return m_regexMatchTuplesHasBeenSet; }
111 template <typename RegexMatchTuplesT = Aws::Vector<RegexMatchTuple>>
112 void SetRegexMatchTuples(RegexMatchTuplesT&& value) {
113 m_regexMatchTuplesHasBeenSet = true;
114 m_regexMatchTuples = std::forward<RegexMatchTuplesT>(value);
115 }
116 template <typename RegexMatchTuplesT = Aws::Vector<RegexMatchTuple>>
117 RegexMatchSet& WithRegexMatchTuples(RegexMatchTuplesT&& value) {
118 SetRegexMatchTuples(std::forward<RegexMatchTuplesT>(value));
119 return *this;
120 }
121 template <typename RegexMatchTuplesT = RegexMatchTuple>
122 RegexMatchSet& AddRegexMatchTuples(RegexMatchTuplesT&& value) {
123 m_regexMatchTuplesHasBeenSet = true;
124 m_regexMatchTuples.emplace_back(std::forward<RegexMatchTuplesT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_regexMatchSetId;
130
131 Aws::String m_name;
132
133 Aws::Vector<RegexMatchTuple> m_regexMatchTuples;
134 bool m_regexMatchSetIdHasBeenSet = false;
135 bool m_nameHasBeenSet = false;
136 bool m_regexMatchTuplesHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace WAF
141} // namespace Aws
RegexMatchSet & WithRegexMatchTuples(RegexMatchTuplesT &&value)
const Aws::String & GetName() const
RegexMatchSet & WithName(NameT &&value)
RegexMatchSet & WithRegexMatchSetId(RegexMatchSetIdT &&value)
RegexMatchSet & AddRegexMatchTuples(RegexMatchTuplesT &&value)
void SetName(NameT &&value)
const Aws::Vector< RegexMatchTuple > & GetRegexMatchTuples() const
const Aws::String & GetRegexMatchSetId() const
AWS_WAF_API RegexMatchSet()=default
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRegexMatchSetId(RegexMatchSetIdT &&value)
AWS_WAF_API RegexMatchSet(Aws::Utils::Json::JsonView jsonValue)
void SetRegexMatchTuples(RegexMatchTuplesT &&value)
AWS_WAF_API RegexMatchSet & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue