AWS SDK for C++  1.9.108
AWS SDK for C++
RegexPatternSetReferenceStatement.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace WAFV2
25 {
26 namespace Model
27 {
28 
44  {
45  public:
50 
51 
56  inline const Aws::String& GetARN() const{ return m_aRN; }
57 
62  inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
63 
68  inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
69 
74  inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
75 
80  inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
81 
86  inline RegexPatternSetReferenceStatement& WithARN(const Aws::String& value) { SetARN(value); return *this;}
87 
92  inline RegexPatternSetReferenceStatement& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
93 
98  inline RegexPatternSetReferenceStatement& WithARN(const char* value) { SetARN(value); return *this;}
99 
100 
105  inline const FieldToMatch& GetFieldToMatch() const{ return m_fieldToMatch; }
106 
111  inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
112 
117  inline void SetFieldToMatch(const FieldToMatch& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = value; }
118 
123  inline void SetFieldToMatch(FieldToMatch&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = std::move(value); }
124 
129  inline RegexPatternSetReferenceStatement& WithFieldToMatch(const FieldToMatch& value) { SetFieldToMatch(value); return *this;}
130 
135  inline RegexPatternSetReferenceStatement& WithFieldToMatch(FieldToMatch&& value) { SetFieldToMatch(std::move(value)); return *this;}
136 
137 
146  inline const Aws::Vector<TextTransformation>& GetTextTransformations() const{ return m_textTransformations; }
147 
156  inline bool TextTransformationsHasBeenSet() const { return m_textTransformationsHasBeenSet; }
157 
166  inline void SetTextTransformations(const Aws::Vector<TextTransformation>& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = value; }
167 
176  inline void SetTextTransformations(Aws::Vector<TextTransformation>&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = std::move(value); }
177 
186  inline RegexPatternSetReferenceStatement& WithTextTransformations(const Aws::Vector<TextTransformation>& value) { SetTextTransformations(value); return *this;}
187 
196  inline RegexPatternSetReferenceStatement& WithTextTransformations(Aws::Vector<TextTransformation>&& value) { SetTextTransformations(std::move(value)); return *this;}
197 
206  inline RegexPatternSetReferenceStatement& AddTextTransformations(const TextTransformation& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.push_back(value); return *this; }
207 
216  inline RegexPatternSetReferenceStatement& AddTextTransformations(TextTransformation&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.push_back(std::move(value)); return *this; }
217 
218  private:
219 
220  Aws::String m_aRN;
221  bool m_aRNHasBeenSet;
222 
223  FieldToMatch m_fieldToMatch;
224  bool m_fieldToMatchHasBeenSet;
225 
226  Aws::Vector<TextTransformation> m_textTransformations;
227  bool m_textTransformationsHasBeenSet;
228  };
229 
230 } // namespace Model
231 } // namespace WAFV2
232 } // namespace Aws
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::SetFieldToMatch
void SetFieldToMatch(FieldToMatch &&value)
Definition: RegexPatternSetReferenceStatement.h:123
Aws::WAFV2::Model::RegexPatternSetReferenceStatement
Definition: RegexPatternSetReferenceStatement.h:44
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::operator=
RegexPatternSetReferenceStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::SetARN
void SetARN(const Aws::String &value)
Definition: RegexPatternSetReferenceStatement.h:68
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::GetFieldToMatch
const FieldToMatch & GetFieldToMatch() const
Definition: RegexPatternSetReferenceStatement.h:105
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::ARNHasBeenSet
bool ARNHasBeenSet() const
Definition: RegexPatternSetReferenceStatement.h:62
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::TextTransformation
Definition: TextTransformation.h:34
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::WithARN
RegexPatternSetReferenceStatement & WithARN(const char *value)
Definition: RegexPatternSetReferenceStatement.h:98
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::SetTextTransformations
void SetTextTransformations(const Aws::Vector< TextTransformation > &value)
Definition: RegexPatternSetReferenceStatement.h:166
AWSVector.h
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::RegexPatternSetReferenceStatement
RegexPatternSetReferenceStatement()
WAFV2_EXPORTS.h
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::TextTransformationsHasBeenSet
bool TextTransformationsHasBeenSet() const
Definition: RegexPatternSetReferenceStatement.h:156
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::WithTextTransformations
RegexPatternSetReferenceStatement & WithTextTransformations(const Aws::Vector< TextTransformation > &value)
Definition: RegexPatternSetReferenceStatement.h:186
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::SetARN
void SetARN(const char *value)
Definition: RegexPatternSetReferenceStatement.h:80
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::GetTextTransformations
const Aws::Vector< TextTransformation > & GetTextTransformations() const
Definition: RegexPatternSetReferenceStatement.h:146
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::WithARN
RegexPatternSetReferenceStatement & WithARN(Aws::String &&value)
Definition: RegexPatternSetReferenceStatement.h:92
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::SetTextTransformations
void SetTextTransformations(Aws::Vector< TextTransformation > &&value)
Definition: RegexPatternSetReferenceStatement.h:176
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::GetARN
const Aws::String & GetARN() const
Definition: RegexPatternSetReferenceStatement.h:56
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::AddTextTransformations
RegexPatternSetReferenceStatement & AddTextTransformations(TextTransformation &&value)
Definition: RegexPatternSetReferenceStatement.h:216
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::AddTextTransformations
RegexPatternSetReferenceStatement & AddTextTransformations(const TextTransformation &value)
Definition: RegexPatternSetReferenceStatement.h:206
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::SetARN
void SetARN(Aws::String &&value)
Definition: RegexPatternSetReferenceStatement.h:74
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::RegexPatternSetReferenceStatement
RegexPatternSetReferenceStatement(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::WithARN
RegexPatternSetReferenceStatement & WithARN(const Aws::String &value)
Definition: RegexPatternSetReferenceStatement.h:86
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::SetFieldToMatch
void SetFieldToMatch(const FieldToMatch &value)
Definition: RegexPatternSetReferenceStatement.h:117
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::WithTextTransformations
RegexPatternSetReferenceStatement & WithTextTransformations(Aws::Vector< TextTransformation > &&value)
Definition: RegexPatternSetReferenceStatement.h:196
FieldToMatch.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::WithFieldToMatch
RegexPatternSetReferenceStatement & WithFieldToMatch(const FieldToMatch &value)
Definition: RegexPatternSetReferenceStatement.h:129
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::WithFieldToMatch
RegexPatternSetReferenceStatement & WithFieldToMatch(FieldToMatch &&value)
Definition: RegexPatternSetReferenceStatement.h:135
Aws::WAFV2::Model::RegexPatternSetReferenceStatement::FieldToMatchHasBeenSet
bool FieldToMatchHasBeenSet() const
Definition: RegexPatternSetReferenceStatement.h:111
Aws::WAFV2::Model::FieldToMatch
Definition: FieldToMatch.h:48
TextTransformation.h