AWS SDK for C++  1.9.131
AWS SDK for C++
CreateSqlInjectionMatchSetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace WAFRegional
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateSqlInjectionMatchSet"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
46  inline const Aws::String& GetName() const{ return m_name; }
47 
53  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 
60  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 
67  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 
74  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
75 
81  inline CreateSqlInjectionMatchSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
82 
88  inline CreateSqlInjectionMatchSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
89 
95  inline CreateSqlInjectionMatchSetRequest& WithName(const char* value) { SetName(value); return *this;}
96 
97 
101  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
102 
106  inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
107 
111  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
112 
116  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
117 
121  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
122 
126  inline CreateSqlInjectionMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
127 
131  inline CreateSqlInjectionMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
132 
136  inline CreateSqlInjectionMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
137 
138  private:
139 
140  Aws::String m_name;
141  bool m_nameHasBeenSet;
142 
143  Aws::String m_changeToken;
144  bool m_changeTokenHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace WAFRegional
149 } // namespace Aws
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::WithName
CreateSqlInjectionMatchSetRequest & WithName(const Aws::String &value)
Definition: CreateSqlInjectionMatchSetRequest.h:81
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateSqlInjectionMatchSetRequest.h:53
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::WithChangeToken
CreateSqlInjectionMatchSetRequest & WithChangeToken(Aws::String &&value)
Definition: CreateSqlInjectionMatchSetRequest.h:131
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::SetChangeToken
void SetChangeToken(const Aws::String &value)
Definition: CreateSqlInjectionMatchSetRequest.h:111
Aws::WAFRegional::WAFRegionalRequest
Definition: WAFRegionalRequest.h:17
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateSqlInjectionMatchSetRequest.h:60
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::WithChangeToken
CreateSqlInjectionMatchSetRequest & WithChangeToken(const char *value)
Definition: CreateSqlInjectionMatchSetRequest.h:136
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::CreateSqlInjectionMatchSetRequest
CreateSqlInjectionMatchSetRequest()
AWS_WAFREGIONAL_API
#define AWS_WAFREGIONAL_API
Definition: WAFRegional_EXPORTS.h:28
WAFRegionalRequest.h
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateSqlInjectionMatchSetRequest.h:34
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::GetChangeToken
const Aws::String & GetChangeToken() const
Definition: CreateSqlInjectionMatchSetRequest.h:101
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::WithChangeToken
CreateSqlInjectionMatchSetRequest & WithChangeToken(const Aws::String &value)
Definition: CreateSqlInjectionMatchSetRequest.h:126
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::WithName
CreateSqlInjectionMatchSetRequest & WithName(const char *value)
Definition: CreateSqlInjectionMatchSetRequest.h:95
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::SetName
void SetName(const char *value)
Definition: CreateSqlInjectionMatchSetRequest.h:74
AWSString.h
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::SerializePayload
Aws::String SerializePayload() const override
WAFRegional_EXPORTS.h
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::ChangeTokenHasBeenSet
bool ChangeTokenHasBeenSet() const
Definition: CreateSqlInjectionMatchSetRequest.h:106
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest
Definition: CreateSqlInjectionMatchSetRequest.h:26
Aws
Definition: AccessManagementClient.h:15
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::SetChangeToken
void SetChangeToken(Aws::String &&value)
Definition: CreateSqlInjectionMatchSetRequest.h:116
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateSqlInjectionMatchSetRequest.h:67
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::WithName
CreateSqlInjectionMatchSetRequest & WithName(Aws::String &&value)
Definition: CreateSqlInjectionMatchSetRequest.h:88
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::GetName
const Aws::String & GetName() const
Definition: CreateSqlInjectionMatchSetRequest.h:46
Aws::WAFRegional::Model::CreateSqlInjectionMatchSetRequest::SetChangeToken
void SetChangeToken(const char *value)
Definition: CreateSqlInjectionMatchSetRequest.h:121