AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
RegexPatternSetUpdate.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/ChangeAction.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WAF {
21namespace Model {
22
40 public:
41 AWS_WAF_API RegexPatternSetUpdate() = default;
45
47
50 inline ChangeAction GetAction() const { return m_action; }
51 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
52 inline void SetAction(ChangeAction value) {
53 m_actionHasBeenSet = true;
54 m_action = value;
55 }
57 SetAction(value);
58 return *this;
59 }
61
63
67 inline const Aws::String& GetRegexPatternString() const { return m_regexPatternString; }
68 inline bool RegexPatternStringHasBeenSet() const { return m_regexPatternStringHasBeenSet; }
69 template <typename RegexPatternStringT = Aws::String>
70 void SetRegexPatternString(RegexPatternStringT&& value) {
71 m_regexPatternStringHasBeenSet = true;
72 m_regexPatternString = std::forward<RegexPatternStringT>(value);
73 }
74 template <typename RegexPatternStringT = Aws::String>
75 RegexPatternSetUpdate& WithRegexPatternString(RegexPatternStringT&& value) {
76 SetRegexPatternString(std::forward<RegexPatternStringT>(value));
77 return *this;
78 }
80 private:
82
83 Aws::String m_regexPatternString;
84 bool m_actionHasBeenSet = false;
85 bool m_regexPatternStringHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace WAF
90} // namespace Aws
AWS_WAF_API RegexPatternSetUpdate(Aws::Utils::Json::JsonView jsonValue)
RegexPatternSetUpdate & WithRegexPatternString(RegexPatternStringT &&value)
const Aws::String & GetRegexPatternString() const
RegexPatternSetUpdate & WithAction(ChangeAction value)
AWS_WAF_API RegexPatternSetUpdate()=default
AWS_WAF_API RegexPatternSetUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRegexPatternString(RegexPatternStringT &&value)
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue