AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegexMatchSet.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 <aws/waf-regional/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 WAFRegional
24{
25namespace Model
26{
27
51 {
52 public:
53 AWS_WAFREGIONAL_API RegexMatchSet();
54 AWS_WAFREGIONAL_API RegexMatchSet(Aws::Utils::Json::JsonView jsonValue);
55 AWS_WAFREGIONAL_API RegexMatchSet& operator=(Aws::Utils::Json::JsonView jsonValue);
56 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
57
58
60
71 inline const Aws::String& GetRegexMatchSetId() const{ return m_regexMatchSetId; }
72 inline bool RegexMatchSetIdHasBeenSet() const { return m_regexMatchSetIdHasBeenSet; }
73 inline void SetRegexMatchSetId(const Aws::String& value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId = value; }
74 inline void SetRegexMatchSetId(Aws::String&& value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId = std::move(value); }
75 inline void SetRegexMatchSetId(const char* value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId.assign(value); }
76 inline RegexMatchSet& WithRegexMatchSetId(const Aws::String& value) { SetRegexMatchSetId(value); return *this;}
77 inline RegexMatchSet& WithRegexMatchSetId(Aws::String&& value) { SetRegexMatchSetId(std::move(value)); return *this;}
78 inline RegexMatchSet& WithRegexMatchSetId(const char* value) { SetRegexMatchSetId(value); return *this;}
80
82
86 inline const Aws::String& GetName() const{ return m_name; }
87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
89 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
90 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
91 inline RegexMatchSet& WithName(const Aws::String& value) { SetName(value); return *this;}
92 inline RegexMatchSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
93 inline RegexMatchSet& WithName(const char* value) { SetName(value); return *this;}
95
97
107 inline const Aws::Vector<RegexMatchTuple>& GetRegexMatchTuples() const{ return m_regexMatchTuples; }
108 inline bool RegexMatchTuplesHasBeenSet() const { return m_regexMatchTuplesHasBeenSet; }
109 inline void SetRegexMatchTuples(const Aws::Vector<RegexMatchTuple>& value) { m_regexMatchTuplesHasBeenSet = true; m_regexMatchTuples = value; }
110 inline void SetRegexMatchTuples(Aws::Vector<RegexMatchTuple>&& value) { m_regexMatchTuplesHasBeenSet = true; m_regexMatchTuples = std::move(value); }
112 inline RegexMatchSet& WithRegexMatchTuples(Aws::Vector<RegexMatchTuple>&& value) { SetRegexMatchTuples(std::move(value)); return *this;}
113 inline RegexMatchSet& AddRegexMatchTuples(const RegexMatchTuple& value) { m_regexMatchTuplesHasBeenSet = true; m_regexMatchTuples.push_back(value); return *this; }
114 inline RegexMatchSet& AddRegexMatchTuples(RegexMatchTuple&& value) { m_regexMatchTuplesHasBeenSet = true; m_regexMatchTuples.push_back(std::move(value)); return *this; }
116 private:
117
118 Aws::String m_regexMatchSetId;
119 bool m_regexMatchSetIdHasBeenSet = false;
120
121 Aws::String m_name;
122 bool m_nameHasBeenSet = false;
123
124 Aws::Vector<RegexMatchTuple> m_regexMatchTuples;
125 bool m_regexMatchTuplesHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace WAFRegional
130} // namespace Aws
void SetRegexMatchSetId(const char *value)
const Aws::Vector< RegexMatchTuple > & GetRegexMatchTuples() const
void SetName(const Aws::String &value)
RegexMatchSet & WithName(Aws::String &&value)
RegexMatchSet & WithRegexMatchSetId(Aws::String &&value)
void SetRegexMatchSetId(const Aws::String &value)
void SetRegexMatchTuples(const Aws::Vector< RegexMatchTuple > &value)
RegexMatchSet & WithName(const Aws::String &value)
AWS_WAFREGIONAL_API RegexMatchSet(Aws::Utils::Json::JsonView jsonValue)
RegexMatchSet & WithName(const char *value)
RegexMatchSet & AddRegexMatchTuples(RegexMatchTuple &&value)
RegexMatchSet & AddRegexMatchTuples(const RegexMatchTuple &value)
const Aws::String & GetRegexMatchSetId() const
void SetName(Aws::String &&value)
void SetRegexMatchTuples(Aws::Vector< RegexMatchTuple > &&value)
RegexMatchSet & WithRegexMatchTuples(const Aws::Vector< RegexMatchTuple > &value)
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
RegexMatchSet & WithRegexMatchTuples(Aws::Vector< RegexMatchTuple > &&value)
void SetRegexMatchSetId(Aws::String &&value)
const Aws::String & GetName() const
RegexMatchSet & WithRegexMatchSetId(const Aws::String &value)
AWS_WAFREGIONAL_API RegexMatchSet & operator=(Aws::Utils::Json::JsonView jsonValue)
RegexMatchSet & WithRegexMatchSetId(const char *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