AWS SDK for C++  0.12.9
AWS SDK for C++
IPSet.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>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace WAF
31 {
32 namespace Model
33 {
34 
45  {
46  public:
47  IPSet();
48  IPSet(const Aws::Utils::Json::JsonValue& jsonValue);
49  IPSet& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
50  Aws::Utils::Json::JsonValue Jsonize() const;
51 
61  inline const Aws::String& GetIPSetId() const{ return m_iPSetId; }
62 
72  inline void SetIPSetId(const Aws::String& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = value; }
73 
83  inline void SetIPSetId(Aws::String&& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = value; }
84 
94  inline void SetIPSetId(const char* value) { m_iPSetIdHasBeenSet = true; m_iPSetId.assign(value); }
95 
105  inline IPSet& WithIPSetId(const Aws::String& value) { SetIPSetId(value); return *this;}
106 
116  inline IPSet& WithIPSetId(Aws::String&& value) { SetIPSetId(value); return *this;}
117 
127  inline IPSet& WithIPSetId(const char* value) { SetIPSetId(value); return *this;}
128 
133  inline const Aws::String& GetName() const{ return m_name; }
134 
139  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
140 
145  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
146 
151  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
152 
157  inline IPSet& WithName(const Aws::String& value) { SetName(value); return *this;}
158 
163  inline IPSet& WithName(Aws::String&& value) { SetName(value); return *this;}
164 
169  inline IPSet& WithName(const char* value) { SetName(value); return *this;}
170 
180  inline const Aws::Vector<IPSetDescriptor>& GetIPSetDescriptors() const{ return m_iPSetDescriptors; }
181 
191  inline void SetIPSetDescriptors(const Aws::Vector<IPSetDescriptor>& value) { m_iPSetDescriptorsHasBeenSet = true; m_iPSetDescriptors = value; }
192 
202  inline void SetIPSetDescriptors(Aws::Vector<IPSetDescriptor>&& value) { m_iPSetDescriptorsHasBeenSet = true; m_iPSetDescriptors = value; }
203 
213  inline IPSet& WithIPSetDescriptors(const Aws::Vector<IPSetDescriptor>& value) { SetIPSetDescriptors(value); return *this;}
214 
224  inline IPSet& WithIPSetDescriptors(Aws::Vector<IPSetDescriptor>&& value) { SetIPSetDescriptors(value); return *this;}
225 
235  inline IPSet& AddIPSetDescriptors(const IPSetDescriptor& value) { m_iPSetDescriptorsHasBeenSet = true; m_iPSetDescriptors.push_back(value); return *this; }
236 
246  inline IPSet& AddIPSetDescriptors(IPSetDescriptor&& value) { m_iPSetDescriptorsHasBeenSet = true; m_iPSetDescriptors.push_back(value); return *this; }
247 
248  private:
249  Aws::String m_iPSetId;
250  bool m_iPSetIdHasBeenSet;
251  Aws::String m_name;
252  bool m_nameHasBeenSet;
253  Aws::Vector<IPSetDescriptor> m_iPSetDescriptors;
254  bool m_iPSetDescriptorsHasBeenSet;
255  };
256 
257 } // namespace Model
258 } // namespace WAF
259 } // namespace Aws
void SetIPSetDescriptors(Aws::Vector< IPSetDescriptor > &&value)
Definition: IPSet.h:202
void SetIPSetId(Aws::String &&value)
Definition: IPSet.h:83
const Aws::String & GetName() const
Definition: IPSet.h:133
const Aws::String & GetIPSetId() const
Definition: IPSet.h:61
const Aws::Vector< IPSetDescriptor > & GetIPSetDescriptors() const
Definition: IPSet.h:180
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
IPSet & WithName(const Aws::String &value)
Definition: IPSet.h:157
IPSet & WithIPSetId(const char *value)
Definition: IPSet.h:127
void SetIPSetId(const char *value)
Definition: IPSet.h:94
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:34
void SetIPSetDescriptors(const Aws::Vector< IPSetDescriptor > &value)
Definition: IPSet.h:191
void SetName(const char *value)
Definition: IPSet.h:151
IPSet & WithIPSetDescriptors(Aws::Vector< IPSetDescriptor > &&value)
Definition: IPSet.h:224
IPSet & WithIPSetDescriptors(const Aws::Vector< IPSetDescriptor > &value)
Definition: IPSet.h:213
IPSet & WithName(Aws::String &&value)
Definition: IPSet.h:163
IPSet & AddIPSetDescriptors(IPSetDescriptor &&value)
Definition: IPSet.h:246
IPSet & WithIPSetId(const Aws::String &value)
Definition: IPSet.h:105
IPSet & AddIPSetDescriptors(const IPSetDescriptor &value)
Definition: IPSet.h:235
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetName(const Aws::String &value)
Definition: IPSet.h:139
IPSet & WithIPSetId(Aws::String &&value)
Definition: IPSet.h:116
IPSet & WithName(const char *value)
Definition: IPSet.h:169
void SetName(Aws::String &&value)
Definition: IPSet.h:145
void SetIPSetId(const Aws::String &value)
Definition: IPSet.h:72
JSON (JavaScript Object Notation).