AWS SDK for C++  0.14.3
AWS SDK for C++
CreateRuleRequest.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>
19 
20 namespace Aws
21 {
22 namespace WAF
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33  Aws::String SerializePayload() const override;
34 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
41  inline const Aws::String& GetName() const{ return m_name; }
42 
47  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 
53  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
54 
59  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
60 
65  inline CreateRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
66 
71  inline CreateRuleRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
72 
77  inline CreateRuleRequest& WithName(const char* value) { SetName(value); return *this;}
78 
85  inline const Aws::String& GetMetricName() const{ return m_metricName; }
86 
93  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
94 
101  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
102 
109  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
110 
117  inline CreateRuleRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
118 
125  inline CreateRuleRequest& WithMetricName(Aws::String&& value) { SetMetricName(value); return *this;}
126 
133  inline CreateRuleRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
134 
138  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
139 
143  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
144 
148  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
149 
153  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
154 
158  inline CreateRuleRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
159 
163  inline CreateRuleRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(value); return *this;}
164 
168  inline CreateRuleRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
169 
170  private:
171  Aws::String m_name;
172  bool m_nameHasBeenSet;
173  Aws::String m_metricName;
174  bool m_metricNameHasBeenSet;
175  Aws::String m_changeToken;
176  bool m_changeTokenHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace WAF
181 } // namespace Aws
void SetMetricName(const Aws::String &value)
void SetMetricName(const char *value)
void SetName(Aws::String &&value)
CreateRuleRequest & WithChangeToken(const Aws::String &value)
CreateRuleRequest & WithName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
CreateRuleRequest & WithMetricName(const Aws::String &value)
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:37
const Aws::String & GetChangeToken() const
void SetMetricName(Aws::String &&value)
CreateRuleRequest & WithChangeToken(const char *value)
void SetChangeToken(const char *value)
CreateRuleRequest & WithMetricName(const char *value)
CreateRuleRequest & WithName(const char *value)
void SetName(const Aws::String &value)
CreateRuleRequest & WithMetricName(Aws::String &&value)
const Aws::String & GetMetricName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetChangeToken(Aws::String &&value)
const Aws::String & GetName() const
CreateRuleRequest & WithChangeToken(Aws::String &&value)
void SetChangeToken(const Aws::String &value)
JSON (JavaScript Object Notation).
CreateRuleRequest & WithName(const Aws::String &value)