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/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wafv2/model/Regex.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 WAFV2
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_WAFV2_API RegexPatternSet();
42 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline RegexPatternSet& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline RegexPatternSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline RegexPatternSet& WithName(const char* value) { SetName(value); return *this;}
58
60
65 inline const Aws::String& GetId() const{ return m_id; }
66 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
67 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
68 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
69 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
70 inline RegexPatternSet& WithId(const Aws::String& value) { SetId(value); return *this;}
71 inline RegexPatternSet& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
72 inline RegexPatternSet& WithId(const char* value) { SetId(value); return *this;}
74
76
79 inline const Aws::String& GetARN() const{ return m_aRN; }
80 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
81 inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
82 inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
83 inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
84 inline RegexPatternSet& WithARN(const Aws::String& value) { SetARN(value); return *this;}
85 inline RegexPatternSet& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
86 inline RegexPatternSet& WithARN(const char* value) { SetARN(value); return *this;}
88
90
93 inline const Aws::String& GetDescription() const{ return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
96 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
97 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
98 inline RegexPatternSet& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
99 inline RegexPatternSet& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
100 inline RegexPatternSet& WithDescription(const char* value) { SetDescription(value); return *this;}
102
104
107 inline const Aws::Vector<Regex>& GetRegularExpressionList() const{ return m_regularExpressionList; }
108 inline bool RegularExpressionListHasBeenSet() const { return m_regularExpressionListHasBeenSet; }
109 inline void SetRegularExpressionList(const Aws::Vector<Regex>& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList = value; }
110 inline void SetRegularExpressionList(Aws::Vector<Regex>&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList = std::move(value); }
113 inline RegexPatternSet& AddRegularExpressionList(const Regex& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList.push_back(value); return *this; }
114 inline RegexPatternSet& AddRegularExpressionList(Regex&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList.push_back(std::move(value)); return *this; }
116 private:
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 Aws::String m_id;
122 bool m_idHasBeenSet = false;
123
124 Aws::String m_aRN;
125 bool m_aRNHasBeenSet = false;
126
127 Aws::String m_description;
128 bool m_descriptionHasBeenSet = false;
129
130 Aws::Vector<Regex> m_regularExpressionList;
131 bool m_regularExpressionListHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace WAFV2
136} // namespace Aws
RegexPatternSet & WithRegularExpressionList(const Aws::Vector< Regex > &value)
void SetARN(const Aws::String &value)
RegexPatternSet & WithARN(const Aws::String &value)
void SetRegularExpressionList(Aws::Vector< Regex > &&value)
RegexPatternSet & WithDescription(const char *value)
RegexPatternSet & WithDescription(const Aws::String &value)
RegexPatternSet & WithARN(const char *value)
AWS_WAFV2_API RegexPatternSet(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
RegexPatternSet & AddRegularExpressionList(const Regex &value)
AWS_WAFV2_API RegexPatternSet & operator=(Aws::Utils::Json::JsonView jsonValue)
RegexPatternSet & WithId(const Aws::String &value)
void SetDescription(Aws::String &&value)
RegexPatternSet & WithName(const Aws::String &value)
void SetId(const Aws::String &value)
RegexPatternSet & WithId(Aws::String &&value)
RegexPatternSet & WithName(Aws::String &&value)
void SetId(Aws::String &&value)
const Aws::String & GetDescription() const
const Aws::String & GetId() const
const Aws::String & GetName() const
const Aws::Vector< Regex > & GetRegularExpressionList() const
void SetName(const Aws::String &value)
RegexPatternSet & AddRegularExpressionList(Regex &&value)
void SetRegularExpressionList(const Aws::Vector< Regex > &value)
const Aws::String & GetARN() const
void SetName(const char *value)
RegexPatternSet & WithName(const char *value)
RegexPatternSet & WithARN(Aws::String &&value)
void SetDescription(const char *value)
void SetARN(Aws::String &&value)
void SetName(Aws::String &&value)
RegexPatternSet & WithDescription(Aws::String &&value)
RegexPatternSet & WithRegularExpressionList(Aws::Vector< Regex > &&value)
RegexPatternSet & WithId(const char *value)
void SetDescription(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