AWS SDK for C++  0.12.9
AWS SDK for C++
CreateWebACLRequest.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>
20 
21 namespace Aws
22 {
23 namespace WAF
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
42  inline const Aws::String& GetName() const{ return m_name; }
43 
48  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 
54  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
55 
60  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 
66  inline CreateWebACLRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 
72  inline CreateWebACLRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
73 
78  inline CreateWebACLRequest& WithName(const char* value) { SetName(value); return *this;}
79 
86  inline const Aws::String& GetMetricName() const{ return m_metricName; }
87 
94  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
95 
102  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
103 
110  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
111 
118  inline CreateWebACLRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
119 
126  inline CreateWebACLRequest& WithMetricName(Aws::String&& value) { SetMetricName(value); return *this;}
127 
134  inline CreateWebACLRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
135 
141  inline const WafAction& GetDefaultAction() const{ return m_defaultAction; }
142 
148  inline void SetDefaultAction(const WafAction& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
149 
155  inline void SetDefaultAction(WafAction&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
156 
162  inline CreateWebACLRequest& WithDefaultAction(const WafAction& value) { SetDefaultAction(value); return *this;}
163 
169  inline CreateWebACLRequest& WithDefaultAction(WafAction&& value) { SetDefaultAction(value); return *this;}
170 
174  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
175 
179  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
180 
184  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
185 
189  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
190 
194  inline CreateWebACLRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
195 
199  inline CreateWebACLRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(value); return *this;}
200 
204  inline CreateWebACLRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
205 
206  private:
207  Aws::String m_name;
208  bool m_nameHasBeenSet;
209  Aws::String m_metricName;
210  bool m_metricNameHasBeenSet;
211  WafAction m_defaultAction;
212  bool m_defaultActionHasBeenSet;
213  Aws::String m_changeToken;
214  bool m_changeTokenHasBeenSet;
215  };
216 
217 } // namespace Model
218 } // namespace WAF
219 } // namespace Aws
CreateWebACLRequest & WithMetricName(const char *value)
CreateWebACLRequest & WithChangeToken(const Aws::String &value)
CreateWebACLRequest & WithName(const char *value)
void SetChangeToken(const Aws::String &value)
const Aws::String & GetMetricName() const
CreateWebACLRequest & WithDefaultAction(const WafAction &value)
CreateWebACLRequest & WithName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetChangeToken(Aws::String &&value)
void SetDefaultAction(const WafAction &value)
CreateWebACLRequest & WithChangeToken(const char *value)
void SetMetricName(Aws::String &&value)
CreateWebACLRequest & WithMetricName(Aws::String &&value)
CreateWebACLRequest & WithChangeToken(Aws::String &&value)
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:34
const Aws::String & GetChangeToken() const
void SetName(const Aws::String &value)
CreateWebACLRequest & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const WafAction & GetDefaultAction() const
CreateWebACLRequest & WithDefaultAction(WafAction &&value)
CreateWebACLRequest & WithMetricName(const Aws::String &value)
const Aws::String & GetName() const
void SetMetricName(const Aws::String &value)
JSON (JavaScript Object Notation).