AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegexPatternSetUpdate.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/waf-regional/model/ChangeAction.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WAFRegional
23{
24namespace Model
25{
26
44 {
45 public:
46 AWS_WAFREGIONAL_API RegexPatternSetUpdate();
47 AWS_WAFREGIONAL_API RegexPatternSetUpdate(Aws::Utils::Json::JsonView jsonValue);
49 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
56 inline const ChangeAction& GetAction() const{ return m_action; }
57 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
58 inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
59 inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
60 inline RegexPatternSetUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
61 inline RegexPatternSetUpdate& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;}
63
65
69 inline const Aws::String& GetRegexPatternString() const{ return m_regexPatternString; }
70 inline bool RegexPatternStringHasBeenSet() const { return m_regexPatternStringHasBeenSet; }
71 inline void SetRegexPatternString(const Aws::String& value) { m_regexPatternStringHasBeenSet = true; m_regexPatternString = value; }
72 inline void SetRegexPatternString(Aws::String&& value) { m_regexPatternStringHasBeenSet = true; m_regexPatternString = std::move(value); }
73 inline void SetRegexPatternString(const char* value) { m_regexPatternStringHasBeenSet = true; m_regexPatternString.assign(value); }
75 inline RegexPatternSetUpdate& WithRegexPatternString(Aws::String&& value) { SetRegexPatternString(std::move(value)); return *this;}
76 inline RegexPatternSetUpdate& WithRegexPatternString(const char* value) { SetRegexPatternString(value); return *this;}
78 private:
79
80 ChangeAction m_action;
81 bool m_actionHasBeenSet = false;
82
83 Aws::String m_regexPatternString;
84 bool m_regexPatternStringHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace WAFRegional
89} // namespace Aws
RegexPatternSetUpdate & WithRegexPatternString(const Aws::String &value)
RegexPatternSetUpdate & WithAction(const ChangeAction &value)
RegexPatternSetUpdate & WithRegexPatternString(Aws::String &&value)
AWS_WAFREGIONAL_API RegexPatternSetUpdate(Aws::Utils::Json::JsonView jsonValue)
RegexPatternSetUpdate & WithAction(ChangeAction &&value)
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
RegexPatternSetUpdate & WithRegexPatternString(const char *value)
AWS_WAFREGIONAL_API RegexPatternSetUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue