AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
RegexMatchTuple.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/waf/WAF_EXPORTS.h>
9#include <aws/waf/model/FieldToMatch.h>
10#include <aws/waf/model/TextTransformation.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAF {
22namespace Model {
23
47 public:
48 AWS_WAF_API RegexMatchTuple() = default;
52
54
58 inline const FieldToMatch& GetFieldToMatch() const { return m_fieldToMatch; }
59 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
60 template <typename FieldToMatchT = FieldToMatch>
61 void SetFieldToMatch(FieldToMatchT&& value) {
62 m_fieldToMatchHasBeenSet = true;
63 m_fieldToMatch = std::forward<FieldToMatchT>(value);
64 }
65 template <typename FieldToMatchT = FieldToMatch>
66 RegexMatchTuple& WithFieldToMatch(FieldToMatchT&& value) {
67 SetFieldToMatch(std::forward<FieldToMatchT>(value));
68 return *this;
69 }
71
73
108 inline TextTransformation GetTextTransformation() const { return m_textTransformation; }
109 inline bool TextTransformationHasBeenSet() const { return m_textTransformationHasBeenSet; }
111 m_textTransformationHasBeenSet = true;
112 m_textTransformation = value;
113 }
116 return *this;
117 }
119
121
132 inline const Aws::String& GetRegexPatternSetId() const { return m_regexPatternSetId; }
133 inline bool RegexPatternSetIdHasBeenSet() const { return m_regexPatternSetIdHasBeenSet; }
134 template <typename RegexPatternSetIdT = Aws::String>
135 void SetRegexPatternSetId(RegexPatternSetIdT&& value) {
136 m_regexPatternSetIdHasBeenSet = true;
137 m_regexPatternSetId = std::forward<RegexPatternSetIdT>(value);
138 }
139 template <typename RegexPatternSetIdT = Aws::String>
140 RegexMatchTuple& WithRegexPatternSetId(RegexPatternSetIdT&& value) {
141 SetRegexPatternSetId(std::forward<RegexPatternSetIdT>(value));
142 return *this;
143 }
145 private:
146 FieldToMatch m_fieldToMatch;
147
149
150 Aws::String m_regexPatternSetId;
151 bool m_fieldToMatchHasBeenSet = false;
152 bool m_textTransformationHasBeenSet = false;
153 bool m_regexPatternSetIdHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace WAF
158} // namespace Aws
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAF_API RegexMatchTuple & operator=(Aws::Utils::Json::JsonView jsonValue)
TextTransformation GetTextTransformation() const
const Aws::String & GetRegexPatternSetId() const
AWS_WAF_API RegexMatchTuple(Aws::Utils::Json::JsonView jsonValue)
RegexMatchTuple & WithRegexPatternSetId(RegexPatternSetIdT &&value)
const FieldToMatch & GetFieldToMatch() const
void SetFieldToMatch(FieldToMatchT &&value)
RegexMatchTuple & WithTextTransformation(TextTransformation value)
RegexMatchTuple & WithFieldToMatch(FieldToMatchT &&value)
void SetTextTransformation(TextTransformation value)
AWS_WAF_API RegexMatchTuple()=default
void SetRegexPatternSetId(RegexPatternSetIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue