AWS SDK for C++  1.9.66
AWS SDK for C++
IPSet.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/waf/WAF_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace WAF
24 {
25 namespace Model
26 {
27 
51  {
52  public:
53  IPSet();
57 
58 
68  inline const Aws::String& GetIPSetId() const{ return m_iPSetId; }
69 
79  inline bool IPSetIdHasBeenSet() const { return m_iPSetIdHasBeenSet; }
80 
90  inline void SetIPSetId(const Aws::String& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = value; }
91 
101  inline void SetIPSetId(Aws::String&& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = std::move(value); }
102 
112  inline void SetIPSetId(const char* value) { m_iPSetIdHasBeenSet = true; m_iPSetId.assign(value); }
113 
123  inline IPSet& WithIPSetId(const Aws::String& value) { SetIPSetId(value); return *this;}
124 
134  inline IPSet& WithIPSetId(Aws::String&& value) { SetIPSetId(std::move(value)); return *this;}
135 
145  inline IPSet& WithIPSetId(const char* value) { SetIPSetId(value); return *this;}
146 
147 
152  inline const Aws::String& GetName() const{ return m_name; }
153 
158  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
159 
164  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
165 
170  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
171 
176  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
177 
182  inline IPSet& WithName(const Aws::String& value) { SetName(value); return *this;}
183 
188  inline IPSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
189 
194  inline IPSet& WithName(const char* value) { SetName(value); return *this;}
195 
196 
204  inline const Aws::Vector<IPSetDescriptor>& GetIPSetDescriptors() const{ return m_iPSetDescriptors; }
205 
213  inline bool IPSetDescriptorsHasBeenSet() const { return m_iPSetDescriptorsHasBeenSet; }
214 
222  inline void SetIPSetDescriptors(const Aws::Vector<IPSetDescriptor>& value) { m_iPSetDescriptorsHasBeenSet = true; m_iPSetDescriptors = value; }
223 
231  inline void SetIPSetDescriptors(Aws::Vector<IPSetDescriptor>&& value) { m_iPSetDescriptorsHasBeenSet = true; m_iPSetDescriptors = std::move(value); }
232 
240  inline IPSet& WithIPSetDescriptors(const Aws::Vector<IPSetDescriptor>& value) { SetIPSetDescriptors(value); return *this;}
241 
249  inline IPSet& WithIPSetDescriptors(Aws::Vector<IPSetDescriptor>&& value) { SetIPSetDescriptors(std::move(value)); return *this;}
250 
258  inline IPSet& AddIPSetDescriptors(const IPSetDescriptor& value) { m_iPSetDescriptorsHasBeenSet = true; m_iPSetDescriptors.push_back(value); return *this; }
259 
267  inline IPSet& AddIPSetDescriptors(IPSetDescriptor&& value) { m_iPSetDescriptorsHasBeenSet = true; m_iPSetDescriptors.push_back(std::move(value)); return *this; }
268 
269  private:
270 
271  Aws::String m_iPSetId;
272  bool m_iPSetIdHasBeenSet;
273 
274  Aws::String m_name;
275  bool m_nameHasBeenSet;
276 
277  Aws::Vector<IPSetDescriptor> m_iPSetDescriptors;
278  bool m_iPSetDescriptorsHasBeenSet;
279  };
280 
281 } // namespace Model
282 } // namespace WAF
283 } // namespace Aws
Aws::WAF::Model::IPSet::SetIPSetId
void SetIPSetId(const Aws::String &value)
Definition: IPSet.h:90
Aws::WAF::Model::IPSet::SetName
void SetName(const Aws::String &value)
Definition: IPSet.h:164
Aws::WAF::Model::IPSet::GetIPSetId
const Aws::String & GetIPSetId() const
Definition: IPSet.h:68
Aws::WAF::Model::IPSet::GetName
const Aws::String & GetName() const
Definition: IPSet.h:152
Aws::WAF::Model::IPSet::IPSet
IPSet(Aws::Utils::Json::JsonView jsonValue)
Aws::WAF::Model::IPSet::SetName
void SetName(Aws::String &&value)
Definition: IPSet.h:170
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::WAF::Model::IPSet::operator=
IPSet & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAF::Model::IPSet::AddIPSetDescriptors
IPSet & AddIPSetDescriptors(const IPSetDescriptor &value)
Definition: IPSet.h:258
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAF::Model::IPSet::SetIPSetId
void SetIPSetId(Aws::String &&value)
Definition: IPSet.h:101
Aws::WAF::Model::IPSet::WithName
IPSet & WithName(const Aws::String &value)
Definition: IPSet.h:182
AWSVector.h
Aws::WAF::Model::IPSet::IPSetDescriptorsHasBeenSet
bool IPSetDescriptorsHasBeenSet() const
Definition: IPSet.h:213
Aws::WAF::Model::IPSet::WithIPSetDescriptors
IPSet & WithIPSetDescriptors(Aws::Vector< IPSetDescriptor > &&value)
Definition: IPSet.h:249
IPSetDescriptor.h
Aws::WAF::Model::IPSet::SetName
void SetName(const char *value)
Definition: IPSet.h:176
Aws::WAF::Model::IPSet::WithIPSetDescriptors
IPSet & WithIPSetDescriptors(const Aws::Vector< IPSetDescriptor > &value)
Definition: IPSet.h:240
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::WAF::Model::IPSetDescriptor
Definition: IPSetDescriptor.h:42
WAF_EXPORTS.h
Aws::WAF::Model::IPSet::SetIPSetDescriptors
void SetIPSetDescriptors(const Aws::Vector< IPSetDescriptor > &value)
Definition: IPSet.h:222
Aws::WAF::Model::IPSet::WithName
IPSet & WithName(Aws::String &&value)
Definition: IPSet.h:188
Aws::WAF::Model::IPSet::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAF::Model::IPSet::NameHasBeenSet
bool NameHasBeenSet() const
Definition: IPSet.h:158
Aws
Definition: AccessManagementClient.h:15
Aws::WAF::Model::IPSet::WithIPSetId
IPSet & WithIPSetId(Aws::String &&value)
Definition: IPSet.h:134
Aws::WAF::Model::IPSet::IPSetIdHasBeenSet
bool IPSetIdHasBeenSet() const
Definition: IPSet.h:79
Aws::WAF::Model::IPSet
Definition: IPSet.h:51
Aws::WAF::Model::IPSet::GetIPSetDescriptors
const Aws::Vector< IPSetDescriptor > & GetIPSetDescriptors() const
Definition: IPSet.h:204
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAF::Model::IPSet::SetIPSetId
void SetIPSetId(const char *value)
Definition: IPSet.h:112
Aws::WAF::Model::IPSet::SetIPSetDescriptors
void SetIPSetDescriptors(Aws::Vector< IPSetDescriptor > &&value)
Definition: IPSet.h:231
Aws::WAF::Model::IPSet::AddIPSetDescriptors
IPSet & AddIPSetDescriptors(IPSetDescriptor &&value)
Definition: IPSet.h:267
Aws::WAF::Model::IPSet::WithIPSetId
IPSet & WithIPSetId(const Aws::String &value)
Definition: IPSet.h:123
Aws::WAF::Model::IPSet::WithName
IPSet & WithName(const char *value)
Definition: IPSet.h:194
Aws::WAF::Model::IPSet::IPSet
IPSet()
Aws::WAF::Model::IPSet::WithIPSetId
IPSet & WithIPSetId(const char *value)
Definition: IPSet.h:145