AWS SDK for C++  0.14.3
AWS SDK for C++
UpdateRuleRequest.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 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
44  inline const Aws::String& GetRuleId() const{ return m_ruleId; }
45 
51  inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
52 
58  inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
59 
65  inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
66 
72  inline UpdateRuleRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
73 
79  inline UpdateRuleRequest& WithRuleId(Aws::String&& value) { SetRuleId(value); return *this;}
80 
86  inline UpdateRuleRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;}
87 
91  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
92 
96  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
97 
101  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
102 
106  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
107 
111  inline UpdateRuleRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
112 
116  inline UpdateRuleRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(value); return *this;}
117 
121  inline UpdateRuleRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
122 
131  inline const Aws::Vector<RuleUpdate>& GetUpdates() const{ return m_updates; }
132 
141  inline void SetUpdates(const Aws::Vector<RuleUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
142 
151  inline void SetUpdates(Aws::Vector<RuleUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = value; }
152 
161  inline UpdateRuleRequest& WithUpdates(const Aws::Vector<RuleUpdate>& value) { SetUpdates(value); return *this;}
162 
171  inline UpdateRuleRequest& WithUpdates(Aws::Vector<RuleUpdate>&& value) { SetUpdates(value); return *this;}
172 
181  inline UpdateRuleRequest& AddUpdates(const RuleUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
182 
191  inline UpdateRuleRequest& AddUpdates(RuleUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
192 
193  private:
194  Aws::String m_ruleId;
195  bool m_ruleIdHasBeenSet;
196  Aws::String m_changeToken;
197  bool m_changeTokenHasBeenSet;
198  Aws::Vector<RuleUpdate> m_updates;
199  bool m_updatesHasBeenSet;
200  };
201 
202 } // namespace Model
203 } // namespace WAF
204 } // namespace Aws
void SetRuleId(Aws::String &&value)
void SetUpdates(const Aws::Vector< RuleUpdate > &value)
UpdateRuleRequest & AddUpdates(RuleUpdate &&value)
const Aws::String & GetChangeToken() const
void SetChangeToken(Aws::String &&value)
void SetChangeToken(const Aws::String &value)
void SetRuleId(const char *value)
UpdateRuleRequest & WithUpdates(Aws::Vector< RuleUpdate > &&value)
UpdateRuleRequest & WithChangeToken(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
UpdateRuleRequest & WithRuleId(Aws::String &&value)
UpdateRuleRequest & WithChangeToken(const char *value)
const Aws::String & GetRuleId() const
UpdateRuleRequest & WithUpdates(const Aws::Vector< RuleUpdate > &value)
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:37
void SetUpdates(Aws::Vector< RuleUpdate > &&value)
UpdateRuleRequest & AddUpdates(const RuleUpdate &value)
void SetRuleId(const Aws::String &value)
void SetChangeToken(const char *value)
UpdateRuleRequest & WithRuleId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateRuleRequest & WithChangeToken(Aws::String &&value)
UpdateRuleRequest & WithRuleId(const char *value)
const Aws::Vector< RuleUpdate > & GetUpdates() const
JSON (JavaScript Object Notation).