AWS SDK for C++  0.12.9
AWS SDK for C++
UpdateWebACLRequest.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>
22 
23 namespace Aws
24 {
25 namespace WAF
26 {
27 namespace Model
28 {
29 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
45  inline const Aws::String& GetWebACLId() const{ return m_webACLId; }
46 
52  inline void SetWebACLId(const Aws::String& value) { m_webACLIdHasBeenSet = true; m_webACLId = value; }
53 
59  inline void SetWebACLId(Aws::String&& value) { m_webACLIdHasBeenSet = true; m_webACLId = value; }
60 
66  inline void SetWebACLId(const char* value) { m_webACLIdHasBeenSet = true; m_webACLId.assign(value); }
67 
73  inline UpdateWebACLRequest& WithWebACLId(const Aws::String& value) { SetWebACLId(value); return *this;}
74 
80  inline UpdateWebACLRequest& WithWebACLId(Aws::String&& value) { SetWebACLId(value); return *this;}
81 
87  inline UpdateWebACLRequest& WithWebACLId(const char* value) { SetWebACLId(value); return *this;}
88 
92  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
93 
97  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
98 
102  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
103 
107  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
108 
112  inline UpdateWebACLRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
113 
117  inline UpdateWebACLRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(value); return *this;}
118 
122  inline UpdateWebACLRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
123 
133  inline const Aws::Vector<WebACLUpdate>& GetUpdates() const{ return m_updates; }
134 
144  inline void SetUpdates(const Aws::Vector<WebACLUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
145 
155  inline void SetUpdates(Aws::Vector<WebACLUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = value; }
156 
166  inline UpdateWebACLRequest& WithUpdates(const Aws::Vector<WebACLUpdate>& value) { SetUpdates(value); return *this;}
167 
177  inline UpdateWebACLRequest& WithUpdates(Aws::Vector<WebACLUpdate>&& value) { SetUpdates(value); return *this;}
178 
188  inline UpdateWebACLRequest& AddUpdates(const WebACLUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
189 
199  inline UpdateWebACLRequest& AddUpdates(WebACLUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
200 
201 
202  inline const WafAction& GetDefaultAction() const{ return m_defaultAction; }
203 
204 
205  inline void SetDefaultAction(const WafAction& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
206 
207 
208  inline void SetDefaultAction(WafAction&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
209 
210 
211  inline UpdateWebACLRequest& WithDefaultAction(const WafAction& value) { SetDefaultAction(value); return *this;}
212 
213 
214  inline UpdateWebACLRequest& WithDefaultAction(WafAction&& value) { SetDefaultAction(value); return *this;}
215 
216  private:
217  Aws::String m_webACLId;
218  bool m_webACLIdHasBeenSet;
219  Aws::String m_changeToken;
220  bool m_changeTokenHasBeenSet;
221  Aws::Vector<WebACLUpdate> m_updates;
222  bool m_updatesHasBeenSet;
223  WafAction m_defaultAction;
224  bool m_defaultActionHasBeenSet;
225  };
226 
227 } // namespace Model
228 } // namespace WAF
229 } // namespace Aws
UpdateWebACLRequest & WithWebACLId(const char *value)
UpdateWebACLRequest & WithWebACLId(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetWebACLId(const Aws::String &value)
UpdateWebACLRequest & WithChangeToken(const char *value)
UpdateWebACLRequest & WithChangeToken(const Aws::String &value)
UpdateWebACLRequest & AddUpdates(WebACLUpdate &&value)
UpdateWebACLRequest & WithUpdates(const Aws::Vector< WebACLUpdate > &value)
const WafAction & GetDefaultAction() const
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:34
UpdateWebACLRequest & WithDefaultAction(WafAction &&value)
UpdateWebACLRequest & WithWebACLId(Aws::String &&value)
const Aws::Vector< WebACLUpdate > & GetUpdates() const
void SetChangeToken(Aws::String &&value)
UpdateWebACLRequest & WithDefaultAction(const WafAction &value)
void SetWebACLId(Aws::String &&value)
UpdateWebACLRequest & WithUpdates(Aws::Vector< WebACLUpdate > &&value)
const Aws::String & GetChangeToken() const
void SetDefaultAction(const WafAction &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetUpdates(Aws::Vector< WebACLUpdate > &&value)
const Aws::String & GetWebACLId() const
void SetChangeToken(const Aws::String &value)
void SetUpdates(const Aws::Vector< WebACLUpdate > &value)
UpdateWebACLRequest & WithChangeToken(Aws::String &&value)
UpdateWebACLRequest & AddUpdates(const WebACLUpdate &value)
JSON (JavaScript Object Notation).