AWS SDK for C++  1.8.95
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 
37  {
38  public:
39  Regex();
41  Regex& operator=(Aws::Utils::Json::JsonView jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
44 
48  inline const Aws::String& GetRegexString() const{ return m_regexString; }
49 
53  inline bool RegexStringHasBeenSet() const { return m_regexStringHasBeenSet; }
54 
58  inline void SetRegexString(const Aws::String& value) { m_regexStringHasBeenSet = true; m_regexString = value; }
59 
63  inline void SetRegexString(Aws::String&& value) { m_regexStringHasBeenSet = true; m_regexString = std::move(value); }
64 
68  inline void SetRegexString(const char* value) { m_regexStringHasBeenSet = true; m_regexString.assign(value); }
69 
73  inline Regex& WithRegexString(const Aws::String& value) { SetRegexString(value); return *this;}
74 
78  inline Regex& WithRegexString(Aws::String&& value) { SetRegexString(std::move(value)); return *this;}
79 
83  inline Regex& WithRegexString(const char* value) { SetRegexString(value); return *this;}
84 
85  private:
86 
87  Aws::String m_regexString;
88  bool m_regexStringHasBeenSet;
89  };
90 
91 } // namespace Model
92 } // namespace WAFV2
93 } // namespace Aws
void SetRegexString(Aws::String &&value)
Definition: Regex.h:63
void SetRegexString(const Aws::String &value)
Definition: Regex.h:58
void SetRegexString(const char *value)
Definition: Regex.h:68
Regex & WithRegexString(const Aws::String &value)
Definition: Regex.h:73
bool RegexStringHasBeenSet() const
Definition: Regex.h:53
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Regex & WithRegexString(Aws::String &&value)
Definition: Regex.h:78
const Aws::String & GetRegexString() const
Definition: Regex.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Regex & WithRegexString(const char *value)
Definition: Regex.h:83