AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RegexMatchSet.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/waf/model/RegexMatchTuple.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 WAF
24{
25namespace Model
26{
27
51 {
52 public:
53 AWS_WAF_API RegexMatchSet() = default;
57
58
60
71 inline const Aws::String& GetRegexMatchSetId() const { return m_regexMatchSetId; }
72 inline bool RegexMatchSetIdHasBeenSet() const { return m_regexMatchSetIdHasBeenSet; }
73 template<typename RegexMatchSetIdT = Aws::String>
74 void SetRegexMatchSetId(RegexMatchSetIdT&& value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId = std::forward<RegexMatchSetIdT>(value); }
75 template<typename RegexMatchSetIdT = Aws::String>
76 RegexMatchSet& WithRegexMatchSetId(RegexMatchSetIdT&& value) { SetRegexMatchSetId(std::forward<RegexMatchSetIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
88 template<typename NameT = Aws::String>
89 RegexMatchSet& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
91
93
103 inline const Aws::Vector<RegexMatchTuple>& GetRegexMatchTuples() const { return m_regexMatchTuples; }
104 inline bool RegexMatchTuplesHasBeenSet() const { return m_regexMatchTuplesHasBeenSet; }
105 template<typename RegexMatchTuplesT = Aws::Vector<RegexMatchTuple>>
106 void SetRegexMatchTuples(RegexMatchTuplesT&& value) { m_regexMatchTuplesHasBeenSet = true; m_regexMatchTuples = std::forward<RegexMatchTuplesT>(value); }
107 template<typename RegexMatchTuplesT = Aws::Vector<RegexMatchTuple>>
108 RegexMatchSet& WithRegexMatchTuples(RegexMatchTuplesT&& value) { SetRegexMatchTuples(std::forward<RegexMatchTuplesT>(value)); return *this;}
109 template<typename RegexMatchTuplesT = RegexMatchTuple>
110 RegexMatchSet& AddRegexMatchTuples(RegexMatchTuplesT&& value) { m_regexMatchTuplesHasBeenSet = true; m_regexMatchTuples.emplace_back(std::forward<RegexMatchTuplesT>(value)); return *this; }
112 private:
113
114 Aws::String m_regexMatchSetId;
115 bool m_regexMatchSetIdHasBeenSet = false;
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 Aws::Vector<RegexMatchTuple> m_regexMatchTuples;
121 bool m_regexMatchTuplesHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace WAF
126} // 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