AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RegexMatchTuple.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/waf/model/FieldToMatch.h>
9#include <aws/waf/model/TextTransformation.h>
10#include <aws/core/utils/memory/stl/AWSString.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 WAF
24{
25namespace Model
26{
27
51 {
52 public:
53 AWS_WAF_API RegexMatchTuple() = default;
57
58
60
64 inline const FieldToMatch& GetFieldToMatch() const { return m_fieldToMatch; }
65 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
66 template<typename FieldToMatchT = FieldToMatch>
67 void SetFieldToMatch(FieldToMatchT&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = std::forward<FieldToMatchT>(value); }
68 template<typename FieldToMatchT = FieldToMatch>
69 RegexMatchTuple& WithFieldToMatch(FieldToMatchT&& value) { SetFieldToMatch(std::forward<FieldToMatchT>(value)); return *this;}
71
73
108 inline TextTransformation GetTextTransformation() const { return m_textTransformation; }
109 inline bool TextTransformationHasBeenSet() const { return m_textTransformationHasBeenSet; }
110 inline void SetTextTransformation(TextTransformation value) { m_textTransformationHasBeenSet = true; m_textTransformation = value; }
113
115
126 inline const Aws::String& GetRegexPatternSetId() const { return m_regexPatternSetId; }
127 inline bool RegexPatternSetIdHasBeenSet() const { return m_regexPatternSetIdHasBeenSet; }
128 template<typename RegexPatternSetIdT = Aws::String>
129 void SetRegexPatternSetId(RegexPatternSetIdT&& value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId = std::forward<RegexPatternSetIdT>(value); }
130 template<typename RegexPatternSetIdT = Aws::String>
131 RegexMatchTuple& WithRegexPatternSetId(RegexPatternSetIdT&& value) { SetRegexPatternSetId(std::forward<RegexPatternSetIdT>(value)); return *this;}
133 private:
134
135 FieldToMatch m_fieldToMatch;
136 bool m_fieldToMatchHasBeenSet = false;
137
139 bool m_textTransformationHasBeenSet = false;
140
141 Aws::String m_regexPatternSetId;
142 bool m_regexPatternSetIdHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace WAF
147} // 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