AWS SDK for C++  1.9.104
AWS SDK for C++
Regex.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace WAFV2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  Regex();
39 
40 
44  inline const Aws::String& GetRegexString() const{ return m_regexString; }
45 
49  inline bool RegexStringHasBeenSet() const { return m_regexStringHasBeenSet; }
50 
54  inline void SetRegexString(const Aws::String& value) { m_regexStringHasBeenSet = true; m_regexString = value; }
55 
59  inline void SetRegexString(Aws::String&& value) { m_regexStringHasBeenSet = true; m_regexString = std::move(value); }
60 
64  inline void SetRegexString(const char* value) { m_regexStringHasBeenSet = true; m_regexString.assign(value); }
65 
69  inline Regex& WithRegexString(const Aws::String& value) { SetRegexString(value); return *this;}
70 
74  inline Regex& WithRegexString(Aws::String&& value) { SetRegexString(std::move(value)); return *this;}
75 
79  inline Regex& WithRegexString(const char* value) { SetRegexString(value); return *this;}
80 
81  private:
82 
83  Aws::String m_regexString;
84  bool m_regexStringHasBeenSet;
85  };
86 
87 } // namespace Model
88 } // namespace WAFV2
89 } // namespace Aws
Aws::WAFV2::Model::Regex::SetRegexString
void SetRegexString(const Aws::String &value)
Definition: Regex.h:54
Aws::WAFV2::Model::Regex::WithRegexString
Regex & WithRegexString(const Aws::String &value)
Definition: Regex.h:69
Aws::WAFV2::Model::Regex::GetRegexString
const Aws::String & GetRegexString() const
Definition: Regex.h:44
Aws::WAFV2::Model::Regex::SetRegexString
void SetRegexString(Aws::String &&value)
Definition: Regex.h:59
Aws::WAFV2::Model::Regex::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::Regex::SetRegexString
void SetRegexString(const char *value)
Definition: Regex.h:64
Aws::WAFV2::Model::Regex
Definition: Regex.h:33
WAFV2_EXPORTS.h
Aws::WAFV2::Model::Regex::WithRegexString
Regex & WithRegexString(Aws::String &&value)
Definition: Regex.h:74
Aws::WAFV2::Model::Regex::Regex
Regex()
Aws::WAFV2::Model::Regex::WithRegexString
Regex & WithRegexString(const char *value)
Definition: Regex.h:79
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::Regex::Regex
Regex(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::Regex::RegexStringHasBeenSet
bool RegexStringHasBeenSet() const
Definition: Regex.h:49
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::Regex::operator=
Regex & operator=(Aws::Utils::Json::JsonView jsonValue)