AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRegexPatternSetId(const Aws::String& value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId = value; }
64 inline void SetRegexPatternSetId(Aws::String&& value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId = std::move(value); }
65 inline void SetRegexPatternSetId(const char* value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId.assign(value); }
66 inline RegexPatternSet& WithRegexPatternSetId(const Aws::String& value) { SetRegexPatternSetId(value); return *this;}
67 inline RegexPatternSet& WithRegexPatternSetId(Aws::String&& value) { SetRegexPatternSetId(std::move(value)); return *this;}
68 inline RegexPatternSet& WithRegexPatternSetId(const char* value) { SetRegexPatternSetId(value); return *this;}
70
72
76 inline const Aws::String& GetName() const{ return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 inline RegexPatternSet& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline RegexPatternSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline RegexPatternSet& WithName(const char* value) { SetName(value); return *this;}
85
87
91 inline const Aws::Vector<Aws::String>& GetRegexPatternStrings() const{ return m_regexPatternStrings; }
92 inline bool RegexPatternStringsHasBeenSet() const { return m_regexPatternStringsHasBeenSet; }
93 inline void SetRegexPatternStrings(const Aws::Vector<Aws::String>& value) { m_regexPatternStringsHasBeenSet = true; m_regexPatternStrings = value; }
94 inline void SetRegexPatternStrings(Aws::Vector<Aws::String>&& value) { m_regexPatternStringsHasBeenSet = true; m_regexPatternStrings = std::move(value); }
97 inline RegexPatternSet& AddRegexPatternStrings(const Aws::String& value) { m_regexPatternStringsHasBeenSet = true; m_regexPatternStrings.push_back(value); return *this; }
98 inline RegexPatternSet& AddRegexPatternStrings(Aws::String&& value) { m_regexPatternStringsHasBeenSet = true; m_regexPatternStrings.push_back(std::move(value)); return *this; }
99 inline RegexPatternSet& AddRegexPatternStrings(const char* value) { m_regexPatternStringsHasBeenSet = true; m_regexPatternStrings.push_back(value); return *this; }
101 private:
102
103 Aws::String m_regexPatternSetId;
104 bool m_regexPatternSetIdHasBeenSet = false;
105
106 Aws::String m_name;
107 bool m_nameHasBeenSet = false;
108
109 Aws::Vector<Aws::String> m_regexPatternStrings;
110 bool m_regexPatternStringsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace WAFRegional
115} // namespace Aws
RegexPatternSet & WithRegexPatternSetId(const Aws::String &value)
void SetRegexPatternSetId(Aws::String &&value)
const Aws::Vector< Aws::String > & GetRegexPatternStrings() const
const Aws::String & GetRegexPatternSetId() const
AWS_WAFREGIONAL_API RegexPatternSet(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFREGIONAL_API RegexPatternSet & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRegexPatternSetId(const char *value)
RegexPatternSet & WithName(const Aws::String &value)
RegexPatternSet & WithRegexPatternStrings(const Aws::Vector< Aws::String > &value)
void SetRegexPatternStrings(Aws::Vector< Aws::String > &&value)
RegexPatternSet & AddRegexPatternStrings(const char *value)
RegexPatternSet & WithRegexPatternSetId(Aws::String &&value)
RegexPatternSet & WithRegexPatternSetId(const char *value)
void SetRegexPatternStrings(const Aws::Vector< Aws::String > &value)
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
RegexPatternSet & WithName(Aws::String &&value)
RegexPatternSet & WithName(const char *value)
void SetRegexPatternSetId(const Aws::String &value)
const Aws::String & GetName() const
RegexPatternSet & AddRegexPatternStrings(Aws::String &&value)
void SetName(const Aws::String &value)
RegexPatternSet & WithRegexPatternStrings(Aws::Vector< Aws::String > &&value)
RegexPatternSet & AddRegexPatternStrings(const 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