AWS SDK for C++  1.9.40
AWS SDK for C++
CreateRegexPatternSetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/waf/WAF_EXPORTS.h>
8 #include <aws/waf/WAFRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace WAF
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "CreateRegexPatternSet"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetName() const{ return m_name; }
42 
47  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 
53  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
71  inline CreateRegexPatternSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
72 
77  inline CreateRegexPatternSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 
83  inline CreateRegexPatternSetRequest& WithName(const char* value) { SetName(value); return *this;}
84 
85 
89  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
90 
94  inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
95 
99  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
100 
104  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
105 
109  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
110 
114  inline CreateRegexPatternSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
115 
119  inline CreateRegexPatternSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
120 
124  inline CreateRegexPatternSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
125 
126  private:
127 
128  Aws::String m_name;
129  bool m_nameHasBeenSet;
130 
131  Aws::String m_changeToken;
132  bool m_changeTokenHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace WAF
137 } // namespace Aws
Aws::WAF::Model::CreateRegexPatternSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAF::Model::CreateRegexPatternSetRequest::WithChangeToken
CreateRegexPatternSetRequest & WithChangeToken(const Aws::String &value)
Definition: CreateRegexPatternSetRequest.h:114
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAF::Model::CreateRegexPatternSetRequest::WithName
CreateRegexPatternSetRequest & WithName(const Aws::String &value)
Definition: CreateRegexPatternSetRequest.h:71
Aws::WAF::Model::CreateRegexPatternSetRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateRegexPatternSetRequest.h:59
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::WAF::Model::CreateRegexPatternSetRequest::WithName
CreateRegexPatternSetRequest & WithName(Aws::String &&value)
Definition: CreateRegexPatternSetRequest.h:77
Aws::WAF::Model::CreateRegexPatternSetRequest::WithChangeToken
CreateRegexPatternSetRequest & WithChangeToken(const char *value)
Definition: CreateRegexPatternSetRequest.h:124
Aws::WAF::Model::CreateRegexPatternSetRequest::ChangeTokenHasBeenSet
bool ChangeTokenHasBeenSet() const
Definition: CreateRegexPatternSetRequest.h:94
Aws::WAF::Model::CreateRegexPatternSetRequest::GetChangeToken
const Aws::String & GetChangeToken() const
Definition: CreateRegexPatternSetRequest.h:89
Aws::WAF::Model::CreateRegexPatternSetRequest::WithName
CreateRegexPatternSetRequest & WithName(const char *value)
Definition: CreateRegexPatternSetRequest.h:83
Aws::WAF::Model::CreateRegexPatternSetRequest::WithChangeToken
CreateRegexPatternSetRequest & WithChangeToken(Aws::String &&value)
Definition: CreateRegexPatternSetRequest.h:119
Aws::WAF::Model::CreateRegexPatternSetRequest::SetChangeToken
void SetChangeToken(Aws::String &&value)
Definition: CreateRegexPatternSetRequest.h:104
Aws::WAF::Model::CreateRegexPatternSetRequest::SetChangeToken
void SetChangeToken(const Aws::String &value)
Definition: CreateRegexPatternSetRequest.h:99
Aws::WAF::Model::CreateRegexPatternSetRequest
Definition: CreateRegexPatternSetRequest.h:22
Aws::WAF::Model::CreateRegexPatternSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAF::Model::CreateRegexPatternSetRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateRegexPatternSetRequest.h:53
Aws::WAF::Model::CreateRegexPatternSetRequest::GetName
const Aws::String & GetName() const
Definition: CreateRegexPatternSetRequest.h:41
AWSString.h
Aws::WAF::Model::CreateRegexPatternSetRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateRegexPatternSetRequest.h:47
Aws::WAF::Model::CreateRegexPatternSetRequest::SetName
void SetName(const char *value)
Definition: CreateRegexPatternSetRequest.h:65
WAF_EXPORTS.h
WAFRequest.h
Aws::WAF::Model::CreateRegexPatternSetRequest::SetChangeToken
void SetChangeToken(const char *value)
Definition: CreateRegexPatternSetRequest.h:109
Aws
Definition: AccessManagementClient.h:15
Aws::WAF::Model::CreateRegexPatternSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateRegexPatternSetRequest.h:30
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAF::WAFRequest
Definition: WAFRequest.h:17
Aws::WAF::Model::CreateRegexPatternSetRequest::CreateRegexPatternSetRequest
CreateRegexPatternSetRequest()