AWS SDK for C++  1.9.160
AWS SDK for C++
RegexPatternSetUpdate.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace WAFRegional
23 {
24 namespace Model
25 {
26 
44  {
45  public:
50 
51 
55  inline const ChangeAction& GetAction() const{ return m_action; }
56 
60  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
61 
65  inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
66 
70  inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
71 
75  inline RegexPatternSetUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
76 
80  inline RegexPatternSetUpdate& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;}
81 
82 
87  inline const Aws::String& GetRegexPatternString() const{ return m_regexPatternString; }
88 
93  inline bool RegexPatternStringHasBeenSet() const { return m_regexPatternStringHasBeenSet; }
94 
99  inline void SetRegexPatternString(const Aws::String& value) { m_regexPatternStringHasBeenSet = true; m_regexPatternString = value; }
100 
105  inline void SetRegexPatternString(Aws::String&& value) { m_regexPatternStringHasBeenSet = true; m_regexPatternString = std::move(value); }
106 
111  inline void SetRegexPatternString(const char* value) { m_regexPatternStringHasBeenSet = true; m_regexPatternString.assign(value); }
112 
117  inline RegexPatternSetUpdate& WithRegexPatternString(const Aws::String& value) { SetRegexPatternString(value); return *this;}
118 
123  inline RegexPatternSetUpdate& WithRegexPatternString(Aws::String&& value) { SetRegexPatternString(std::move(value)); return *this;}
124 
129  inline RegexPatternSetUpdate& WithRegexPatternString(const char* value) { SetRegexPatternString(value); return *this;}
130 
131  private:
132 
133  ChangeAction m_action;
134  bool m_actionHasBeenSet;
135 
136  Aws::String m_regexPatternString;
137  bool m_regexPatternStringHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace WAFRegional
142 } // namespace Aws
Aws::WAFRegional::Model::RegexPatternSetUpdate::WithAction
RegexPatternSetUpdate & WithAction(const ChangeAction &value)
Definition: RegexPatternSetUpdate.h:75
AWS_WAFREGIONAL_API
#define AWS_WAFREGIONAL_API
Definition: WAFRegional_EXPORTS.h:28
Aws::WAFRegional::Model::RegexPatternSetUpdate::operator=
RegexPatternSetUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFRegional::Model::RegexPatternSetUpdate::WithAction
RegexPatternSetUpdate & WithAction(ChangeAction &&value)
Definition: RegexPatternSetUpdate.h:80
Aws::WAFRegional::Model::RegexPatternSetUpdate::WithRegexPatternString
RegexPatternSetUpdate & WithRegexPatternString(const char *value)
Definition: RegexPatternSetUpdate.h:129
Aws::WAFRegional::Model::RegexPatternSetUpdate::SetRegexPatternString
void SetRegexPatternString(Aws::String &&value)
Definition: RegexPatternSetUpdate.h:105
Aws::WAFRegional::Model::RegexPatternSetUpdate::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: RegexPatternSetUpdate.h:60
Aws::WAFRegional::Model::RegexPatternSetUpdate
Definition: RegexPatternSetUpdate.h:44
Aws::WAFRegional::Model::RegexPatternSetUpdate::WithRegexPatternString
RegexPatternSetUpdate & WithRegexPatternString(const Aws::String &value)
Definition: RegexPatternSetUpdate.h:117
Aws::WAFRegional::Model::RegexPatternSetUpdate::GetRegexPatternString
const Aws::String & GetRegexPatternString() const
Definition: RegexPatternSetUpdate.h:87
Aws::WAFRegional::Model::RegexPatternSetUpdate::SetAction
void SetAction(const ChangeAction &value)
Definition: RegexPatternSetUpdate.h:65
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFRegional::Model::ChangeAction
ChangeAction
Definition: ChangeAction.h:17
WAFRegional_EXPORTS.h
Aws::WAFRegional::Model::RegexPatternSetUpdate::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFRegional::Model::RegexPatternSetUpdate::WithRegexPatternString
RegexPatternSetUpdate & WithRegexPatternString(Aws::String &&value)
Definition: RegexPatternSetUpdate.h:123
Aws::WAFRegional::Model::RegexPatternSetUpdate::RegexPatternStringHasBeenSet
bool RegexPatternStringHasBeenSet() const
Definition: RegexPatternSetUpdate.h:93
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::WAFRegional::Model::RegexPatternSetUpdate::GetAction
const ChangeAction & GetAction() const
Definition: RegexPatternSetUpdate.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::WAFRegional::Model::RegexPatternSetUpdate::SetRegexPatternString
void SetRegexPatternString(const Aws::String &value)
Definition: RegexPatternSetUpdate.h:99
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ChangeAction.h
Aws::WAFRegional::Model::RegexPatternSetUpdate::RegexPatternSetUpdate
RegexPatternSetUpdate()
Aws::WAFRegional::Model::RegexPatternSetUpdate::RegexPatternSetUpdate
RegexPatternSetUpdate(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFRegional::Model::RegexPatternSetUpdate::SetAction
void SetAction(ChangeAction &&value)
Definition: RegexPatternSetUpdate.h:70
Aws::WAFRegional::Model::RegexPatternSetUpdate::SetRegexPatternString
void SetRegexPatternString(const char *value)
Definition: RegexPatternSetUpdate.h:111