AWS SDK for C++  0.14.3
AWS SDK for C++
UpdateSqlInjectionMatchSetRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/waf/WAF_EXPORTS.h>
17 #include <aws/waf/WAFRequest.h>
21 
22 namespace Aws
23 {
24 namespace WAF
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
46  inline const Aws::String& GetSqlInjectionMatchSetId() const{ return m_sqlInjectionMatchSetId; }
47 
54  inline void SetSqlInjectionMatchSetId(const Aws::String& value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId = value; }
55 
62  inline void SetSqlInjectionMatchSetId(Aws::String&& value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId = value; }
63 
70  inline void SetSqlInjectionMatchSetId(const char* value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId.assign(value); }
71 
78  inline UpdateSqlInjectionMatchSetRequest& WithSqlInjectionMatchSetId(const Aws::String& value) { SetSqlInjectionMatchSetId(value); return *this;}
79 
86  inline UpdateSqlInjectionMatchSetRequest& WithSqlInjectionMatchSetId(Aws::String&& value) { SetSqlInjectionMatchSetId(value); return *this;}
87 
94  inline UpdateSqlInjectionMatchSetRequest& WithSqlInjectionMatchSetId(const char* value) { SetSqlInjectionMatchSetId(value); return *this;}
95 
99  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
100 
104  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
105 
109  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
110 
114  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
115 
119  inline UpdateSqlInjectionMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
120 
124  inline UpdateSqlInjectionMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(value); return *this;}
125 
129  inline UpdateSqlInjectionMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
130 
140  inline const Aws::Vector<SqlInjectionMatchSetUpdate>& GetUpdates() const{ return m_updates; }
141 
151  inline void SetUpdates(const Aws::Vector<SqlInjectionMatchSetUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
152 
162  inline void SetUpdates(Aws::Vector<SqlInjectionMatchSetUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = value; }
163 
173  inline UpdateSqlInjectionMatchSetRequest& WithUpdates(const Aws::Vector<SqlInjectionMatchSetUpdate>& value) { SetUpdates(value); return *this;}
174 
184  inline UpdateSqlInjectionMatchSetRequest& WithUpdates(Aws::Vector<SqlInjectionMatchSetUpdate>&& value) { SetUpdates(value); return *this;}
185 
195  inline UpdateSqlInjectionMatchSetRequest& AddUpdates(const SqlInjectionMatchSetUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
196 
206  inline UpdateSqlInjectionMatchSetRequest& AddUpdates(SqlInjectionMatchSetUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
207 
208  private:
209  Aws::String m_sqlInjectionMatchSetId;
210  bool m_sqlInjectionMatchSetIdHasBeenSet;
211  Aws::String m_changeToken;
212  bool m_changeTokenHasBeenSet;
214  bool m_updatesHasBeenSet;
215  };
216 
217 } // namespace Model
218 } // namespace WAF
219 } // namespace Aws
UpdateSqlInjectionMatchSetRequest & AddUpdates(const SqlInjectionMatchSetUpdate &value)
UpdateSqlInjectionMatchSetRequest & WithUpdates(Aws::Vector< SqlInjectionMatchSetUpdate > &&value)
void SetUpdates(Aws::Vector< SqlInjectionMatchSetUpdate > &&value)
UpdateSqlInjectionMatchSetRequest & WithChangeToken(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
UpdateSqlInjectionMatchSetRequest & WithSqlInjectionMatchSetId(const char *value)
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:37
UpdateSqlInjectionMatchSetRequest & WithSqlInjectionMatchSetId(Aws::String &&value)
UpdateSqlInjectionMatchSetRequest & WithSqlInjectionMatchSetId(const Aws::String &value)
UpdateSqlInjectionMatchSetRequest & WithUpdates(const Aws::Vector< SqlInjectionMatchSetUpdate > &value)
const Aws::Vector< SqlInjectionMatchSetUpdate > & GetUpdates() const
UpdateSqlInjectionMatchSetRequest & WithChangeToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetUpdates(const Aws::Vector< SqlInjectionMatchSetUpdate > &value)
UpdateSqlInjectionMatchSetRequest & AddUpdates(SqlInjectionMatchSetUpdate &&value)
UpdateSqlInjectionMatchSetRequest & WithChangeToken(Aws::String &&value)
JSON (JavaScript Object Notation).