AWS SDK for C++  0.12.9
AWS SDK for C++
UpdateIPSetRequest.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& GetIPSetId() const{ return m_iPSetId; }
45 
51  inline void SetIPSetId(const Aws::String& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = value; }
52 
58  inline void SetIPSetId(Aws::String&& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = value; }
59 
65  inline void SetIPSetId(const char* value) { m_iPSetIdHasBeenSet = true; m_iPSetId.assign(value); }
66 
72  inline UpdateIPSetRequest& WithIPSetId(const Aws::String& value) { SetIPSetId(value); return *this;}
73 
79  inline UpdateIPSetRequest& WithIPSetId(Aws::String&& value) { SetIPSetId(value); return *this;}
80 
86  inline UpdateIPSetRequest& WithIPSetId(const char* value) { SetIPSetId(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 UpdateIPSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
112 
116  inline UpdateIPSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(value); return *this;}
117 
121  inline UpdateIPSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
122 
130  inline const Aws::Vector<IPSetUpdate>& GetUpdates() const{ return m_updates; }
131 
139  inline void SetUpdates(const Aws::Vector<IPSetUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
140 
148  inline void SetUpdates(Aws::Vector<IPSetUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = value; }
149 
157  inline UpdateIPSetRequest& WithUpdates(const Aws::Vector<IPSetUpdate>& value) { SetUpdates(value); return *this;}
158 
166  inline UpdateIPSetRequest& WithUpdates(Aws::Vector<IPSetUpdate>&& value) { SetUpdates(value); return *this;}
167 
175  inline UpdateIPSetRequest& AddUpdates(const IPSetUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
176 
184  inline UpdateIPSetRequest& AddUpdates(IPSetUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
185 
186  private:
187  Aws::String m_iPSetId;
188  bool m_iPSetIdHasBeenSet;
189  Aws::String m_changeToken;
190  bool m_changeTokenHasBeenSet;
191  Aws::Vector<IPSetUpdate> m_updates;
192  bool m_updatesHasBeenSet;
193  };
194 
195 } // namespace Model
196 } // namespace WAF
197 } // namespace Aws
void SetChangeToken(const char *value)
UpdateIPSetRequest & WithUpdates(const Aws::Vector< IPSetUpdate > &value)
UpdateIPSetRequest & WithIPSetId(const char *value)
const Aws::String & GetIPSetId() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetUpdates(Aws::Vector< IPSetUpdate > &&value)
void SetUpdates(const Aws::Vector< IPSetUpdate > &value)
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:34
UpdateIPSetRequest & WithChangeToken(const char *value)
void SetIPSetId(Aws::String &&value)
UpdateIPSetRequest & WithIPSetId(Aws::String &&value)
UpdateIPSetRequest & WithUpdates(Aws::Vector< IPSetUpdate > &&value)
void SetChangeToken(const Aws::String &value)
UpdateIPSetRequest & AddUpdates(IPSetUpdate &&value)
const Aws::String & GetChangeToken() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetChangeToken(Aws::String &&value)
void SetIPSetId(const Aws::String &value)
UpdateIPSetRequest & AddUpdates(const IPSetUpdate &value)
UpdateIPSetRequest & WithChangeToken(const Aws::String &value)
UpdateIPSetRequest & WithIPSetId(const Aws::String &value)
UpdateIPSetRequest & WithChangeToken(Aws::String &&value)
JSON (JavaScript Object Notation).
const Aws::Vector< IPSetUpdate > & GetUpdates() const