AWS SDK for C++  1.9.72
AWS SDK for C++
UpdateSqlInjectionMatchSetRequest.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>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace WAF
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "UpdateSqlInjectionMatchSet"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
49  inline const Aws::String& GetSqlInjectionMatchSetId() const{ return m_sqlInjectionMatchSetId; }
50 
57  inline bool SqlInjectionMatchSetIdHasBeenSet() const { return m_sqlInjectionMatchSetIdHasBeenSet; }
58 
65  inline void SetSqlInjectionMatchSetId(const Aws::String& value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId = value; }
66 
73  inline void SetSqlInjectionMatchSetId(Aws::String&& value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId = std::move(value); }
74 
81  inline void SetSqlInjectionMatchSetId(const char* value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId.assign(value); }
82 
89  inline UpdateSqlInjectionMatchSetRequest& WithSqlInjectionMatchSetId(const Aws::String& value) { SetSqlInjectionMatchSetId(value); return *this;}
90 
97  inline UpdateSqlInjectionMatchSetRequest& WithSqlInjectionMatchSetId(Aws::String&& value) { SetSqlInjectionMatchSetId(std::move(value)); return *this;}
98 
105  inline UpdateSqlInjectionMatchSetRequest& WithSqlInjectionMatchSetId(const char* value) { SetSqlInjectionMatchSetId(value); return *this;}
106 
107 
111  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
112 
116  inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
117 
121  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
122 
126  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
127 
131  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
132 
136  inline UpdateSqlInjectionMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
137 
141  inline UpdateSqlInjectionMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
142 
146  inline UpdateSqlInjectionMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
147 
148 
159  inline const Aws::Vector<SqlInjectionMatchSetUpdate>& GetUpdates() const{ return m_updates; }
160 
171  inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
172 
183  inline void SetUpdates(const Aws::Vector<SqlInjectionMatchSetUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
184 
195  inline void SetUpdates(Aws::Vector<SqlInjectionMatchSetUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
196 
207  inline UpdateSqlInjectionMatchSetRequest& WithUpdates(const Aws::Vector<SqlInjectionMatchSetUpdate>& value) { SetUpdates(value); return *this;}
208 
219  inline UpdateSqlInjectionMatchSetRequest& WithUpdates(Aws::Vector<SqlInjectionMatchSetUpdate>&& value) { SetUpdates(std::move(value)); return *this;}
220 
231  inline UpdateSqlInjectionMatchSetRequest& AddUpdates(const SqlInjectionMatchSetUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
232 
243  inline UpdateSqlInjectionMatchSetRequest& AddUpdates(SqlInjectionMatchSetUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
244 
245  private:
246 
247  Aws::String m_sqlInjectionMatchSetId;
248  bool m_sqlInjectionMatchSetIdHasBeenSet;
249 
250  Aws::String m_changeToken;
251  bool m_changeTokenHasBeenSet;
252 
254  bool m_updatesHasBeenSet;
255  };
256 
257 } // namespace Model
258 } // namespace WAF
259 } // namespace Aws
SqlInjectionMatchSetUpdate.h
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::SetSqlInjectionMatchSetId
void SetSqlInjectionMatchSetId(const Aws::String &value)
Definition: UpdateSqlInjectionMatchSetRequest.h:65
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::UpdatesHasBeenSet
bool UpdatesHasBeenSet() const
Definition: UpdateSqlInjectionMatchSetRequest.h:171
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest
Definition: UpdateSqlInjectionMatchSetRequest.h:28
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::SqlInjectionMatchSetIdHasBeenSet
bool SqlInjectionMatchSetIdHasBeenSet() const
Definition: UpdateSqlInjectionMatchSetRequest.h:57
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::ChangeTokenHasBeenSet
bool ChangeTokenHasBeenSet() const
Definition: UpdateSqlInjectionMatchSetRequest.h:116
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::SetUpdates
void SetUpdates(Aws::Vector< SqlInjectionMatchSetUpdate > &&value)
Definition: UpdateSqlInjectionMatchSetRequest.h:195
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::WithChangeToken
UpdateSqlInjectionMatchSetRequest & WithChangeToken(const Aws::String &value)
Definition: UpdateSqlInjectionMatchSetRequest.h:136
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::WithChangeToken
UpdateSqlInjectionMatchSetRequest & WithChangeToken(Aws::String &&value)
Definition: UpdateSqlInjectionMatchSetRequest.h:141
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::WithSqlInjectionMatchSetId
UpdateSqlInjectionMatchSetRequest & WithSqlInjectionMatchSetId(Aws::String &&value)
Definition: UpdateSqlInjectionMatchSetRequest.h:97
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::SetChangeToken
void SetChangeToken(Aws::String &&value)
Definition: UpdateSqlInjectionMatchSetRequest.h:126
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::WithSqlInjectionMatchSetId
UpdateSqlInjectionMatchSetRequest & WithSqlInjectionMatchSetId(const char *value)
Definition: UpdateSqlInjectionMatchSetRequest.h:105
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::AddUpdates
UpdateSqlInjectionMatchSetRequest & AddUpdates(const SqlInjectionMatchSetUpdate &value)
Definition: UpdateSqlInjectionMatchSetRequest.h:231
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::SetChangeToken
void SetChangeToken(const char *value)
Definition: UpdateSqlInjectionMatchSetRequest.h:131
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::WithUpdates
UpdateSqlInjectionMatchSetRequest & WithUpdates(const Aws::Vector< SqlInjectionMatchSetUpdate > &value)
Definition: UpdateSqlInjectionMatchSetRequest.h:207
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::SetUpdates
void SetUpdates(const Aws::Vector< SqlInjectionMatchSetUpdate > &value)
Definition: UpdateSqlInjectionMatchSetRequest.h:183
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateSqlInjectionMatchSetRequest.h:36
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::WithSqlInjectionMatchSetId
UpdateSqlInjectionMatchSetRequest & WithSqlInjectionMatchSetId(const Aws::String &value)
Definition: UpdateSqlInjectionMatchSetRequest.h:89
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::WithChangeToken
UpdateSqlInjectionMatchSetRequest & WithChangeToken(const char *value)
Definition: UpdateSqlInjectionMatchSetRequest.h:146
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::SetChangeToken
void SetChangeToken(const Aws::String &value)
Definition: UpdateSqlInjectionMatchSetRequest.h:121
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::GetSqlInjectionMatchSetId
const Aws::String & GetSqlInjectionMatchSetId() const
Definition: UpdateSqlInjectionMatchSetRequest.h:49
WAF_EXPORTS.h
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::GetChangeToken
const Aws::String & GetChangeToken() const
Definition: UpdateSqlInjectionMatchSetRequest.h:111
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::SetSqlInjectionMatchSetId
void SetSqlInjectionMatchSetId(const char *value)
Definition: UpdateSqlInjectionMatchSetRequest.h:81
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::UpdateSqlInjectionMatchSetRequest
UpdateSqlInjectionMatchSetRequest()
WAFRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::GetUpdates
const Aws::Vector< SqlInjectionMatchSetUpdate > & GetUpdates() const
Definition: UpdateSqlInjectionMatchSetRequest.h:159
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::WithUpdates
UpdateSqlInjectionMatchSetRequest & WithUpdates(Aws::Vector< SqlInjectionMatchSetUpdate > &&value)
Definition: UpdateSqlInjectionMatchSetRequest.h:219
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::AddUpdates
UpdateSqlInjectionMatchSetRequest & AddUpdates(SqlInjectionMatchSetUpdate &&value)
Definition: UpdateSqlInjectionMatchSetRequest.h:243
Aws::WAF::Model::SqlInjectionMatchSetUpdate
Definition: SqlInjectionMatchSetUpdate.h:44
Aws::WAF::Model::UpdateSqlInjectionMatchSetRequest::SetSqlInjectionMatchSetId
void SetSqlInjectionMatchSetId(Aws::String &&value)
Definition: UpdateSqlInjectionMatchSetRequest.h:73
Aws::WAF::WAFRequest
Definition: WAFRequest.h:17