AWS SDK for C++  1.9.104
AWS SDK for C++
IPSet.h
Go to the documentation of this file.
1 
6 #pragma once
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 WAFV2
24 {
25 namespace Model
26 {
27 
41  {
42  public:
43  IPSet();
47 
48 
53  inline const Aws::String& GetName() const{ return m_name; }
54 
59  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 
65  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 
71  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
72 
77  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
78 
83  inline IPSet& WithName(const Aws::String& value) { SetName(value); return *this;}
84 
89  inline IPSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
90 
95  inline IPSet& WithName(const char* value) { SetName(value); return *this;}
96 
97 
103  inline const Aws::String& GetId() const{ return m_id; }
104 
110  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
111 
117  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
118 
124  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
125 
131  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
132 
138  inline IPSet& WithId(const Aws::String& value) { SetId(value); return *this;}
139 
145  inline IPSet& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
146 
152  inline IPSet& WithId(const char* value) { SetId(value); return *this;}
153 
154 
158  inline const Aws::String& GetARN() const{ return m_aRN; }
159 
163  inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
164 
168  inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
169 
173  inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
174 
178  inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
179 
183  inline IPSet& WithARN(const Aws::String& value) { SetARN(value); return *this;}
184 
188  inline IPSet& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
189 
193  inline IPSet& WithARN(const char* value) { SetARN(value); return *this;}
194 
195 
199  inline const Aws::String& GetDescription() const{ return m_description; }
200 
204  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
205 
209  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
210 
214  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
215 
219  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
220 
224  inline IPSet& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
225 
229  inline IPSet& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
230 
234  inline IPSet& WithDescription(const char* value) { SetDescription(value); return *this;}
235 
236 
241  inline const IPAddressVersion& GetIPAddressVersion() const{ return m_iPAddressVersion; }
242 
247  inline bool IPAddressVersionHasBeenSet() const { return m_iPAddressVersionHasBeenSet; }
248 
253  inline void SetIPAddressVersion(const IPAddressVersion& value) { m_iPAddressVersionHasBeenSet = true; m_iPAddressVersion = value; }
254 
259  inline void SetIPAddressVersion(IPAddressVersion&& value) { m_iPAddressVersionHasBeenSet = true; m_iPAddressVersion = std::move(value); }
260 
265  inline IPSet& WithIPAddressVersion(const IPAddressVersion& value) { SetIPAddressVersion(value); return *this;}
266 
271  inline IPSet& WithIPAddressVersion(IPAddressVersion&& value) { SetIPAddressVersion(std::move(value)); return *this;}
272 
273 
293  inline const Aws::Vector<Aws::String>& GetAddresses() const{ return m_addresses; }
294 
314  inline bool AddressesHasBeenSet() const { return m_addressesHasBeenSet; }
315 
335  inline void SetAddresses(const Aws::Vector<Aws::String>& value) { m_addressesHasBeenSet = true; m_addresses = value; }
336 
356  inline void SetAddresses(Aws::Vector<Aws::String>&& value) { m_addressesHasBeenSet = true; m_addresses = std::move(value); }
357 
377  inline IPSet& WithAddresses(const Aws::Vector<Aws::String>& value) { SetAddresses(value); return *this;}
378 
398  inline IPSet& WithAddresses(Aws::Vector<Aws::String>&& value) { SetAddresses(std::move(value)); return *this;}
399 
419  inline IPSet& AddAddresses(const Aws::String& value) { m_addressesHasBeenSet = true; m_addresses.push_back(value); return *this; }
420 
440  inline IPSet& AddAddresses(Aws::String&& value) { m_addressesHasBeenSet = true; m_addresses.push_back(std::move(value)); return *this; }
441 
461  inline IPSet& AddAddresses(const char* value) { m_addressesHasBeenSet = true; m_addresses.push_back(value); return *this; }
462 
463  private:
464 
465  Aws::String m_name;
466  bool m_nameHasBeenSet;
467 
468  Aws::String m_id;
469  bool m_idHasBeenSet;
470 
471  Aws::String m_aRN;
472  bool m_aRNHasBeenSet;
473 
474  Aws::String m_description;
475  bool m_descriptionHasBeenSet;
476 
477  IPAddressVersion m_iPAddressVersion;
478  bool m_iPAddressVersionHasBeenSet;
479 
480  Aws::Vector<Aws::String> m_addresses;
481  bool m_addressesHasBeenSet;
482  };
483 
484 } // namespace Model
485 } // namespace WAFV2
486 } // namespace Aws
Aws::WAFV2::Model::IPSet::AddAddresses
IPSet & AddAddresses(const char *value)
Definition: IPSet.h:461
Aws::WAFV2::Model::IPSet::SetAddresses
void SetAddresses(Aws::Vector< Aws::String > &&value)
Definition: IPSet.h:356
Aws::WAFV2::Model::IPSet::SetId
void SetId(const Aws::String &value)
Definition: IPSet.h:117
Aws::WAFV2::Model::IPSet::AddAddresses
IPSet & AddAddresses(const Aws::String &value)
Definition: IPSet.h:419
Aws::WAFV2::Model::IPSet::AddressesHasBeenSet
bool AddressesHasBeenSet() const
Definition: IPSet.h:314
Aws::WAFV2::Model::IPSet::SetDescription
void SetDescription(const char *value)
Definition: IPSet.h:219
Aws::WAFV2::Model::IPSet::SetName
void SetName(const Aws::String &value)
Definition: IPSet.h:65
Aws::WAFV2::Model::IPSet::WithId
IPSet & WithId(const Aws::String &value)
Definition: IPSet.h:138
Aws::WAFV2::Model::IPSet::WithId
IPSet & WithId(const char *value)
Definition: IPSet.h:152
Aws::WAFV2::Model::IPSet::SetIPAddressVersion
void SetIPAddressVersion(const IPAddressVersion &value)
Definition: IPSet.h:253
Aws::WAFV2::Model::IPSet::AddAddresses
IPSet & AddAddresses(Aws::String &&value)
Definition: IPSet.h:440
IPAddressVersion.h
Aws::WAFV2::Model::IPSet::IPAddressVersionHasBeenSet
bool IPAddressVersionHasBeenSet() const
Definition: IPSet.h:247
Aws::WAFV2::Model::IPSet::WithDescription
IPSet & WithDescription(const Aws::String &value)
Definition: IPSet.h:224
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAFV2::Model::IPSet::WithARN
IPSet & WithARN(Aws::String &&value)
Definition: IPSet.h:188
Aws::WAFV2::Model::IPSet::SetARN
void SetARN(const char *value)
Definition: IPSet.h:178
Aws::WAFV2::Model::IPSet::SetAddresses
void SetAddresses(const Aws::Vector< Aws::String > &value)
Definition: IPSet.h:335
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::IPSet::WithDescription
IPSet & WithDescription(Aws::String &&value)
Definition: IPSet.h:229
AWSVector.h
Aws::WAFV2::Model::IPSet::WithIPAddressVersion
IPSet & WithIPAddressVersion(IPAddressVersion &&value)
Definition: IPSet.h:271
Aws::WAFV2::Model::IPSet::GetIPAddressVersion
const IPAddressVersion & GetIPAddressVersion() const
Definition: IPSet.h:241
Aws::WAFV2::Model::IPSet::WithAddresses
IPSet & WithAddresses(Aws::Vector< Aws::String > &&value)
Definition: IPSet.h:398
WAFV2_EXPORTS.h
Aws::WAFV2::Model::IPSet::SetARN
void SetARN(Aws::String &&value)
Definition: IPSet.h:173
Aws::WAFV2::Model::IPSet::WithName
IPSet & WithName(const Aws::String &value)
Definition: IPSet.h:83
Aws::WAFV2::Model::IPSet::SetName
void SetName(Aws::String &&value)
Definition: IPSet.h:71
Aws::WAFV2::Model::IPSet::SetName
void SetName(const char *value)
Definition: IPSet.h:77
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::WAFV2::Model::IPSet
Definition: IPSet.h:41
AWSString.h
Aws::WAFV2::Model::IPSet::NameHasBeenSet
bool NameHasBeenSet() const
Definition: IPSet.h:59
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::IPSet::SetDescription
void SetDescription(const Aws::String &value)
Definition: IPSet.h:209
Aws::WAFV2::Model::IPSet::operator=
IPSet & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::IPSet::WithIPAddressVersion
IPSet & WithIPAddressVersion(const IPAddressVersion &value)
Definition: IPSet.h:265
Aws::WAFV2::Model::IPSet::GetDescription
const Aws::String & GetDescription() const
Definition: IPSet.h:199
Aws::WAFV2::Model::IPSet::WithARN
IPSet & WithARN(const char *value)
Definition: IPSet.h:193
Aws::WAFV2::Model::IPSet::GetAddresses
const Aws::Vector< Aws::String > & GetAddresses() const
Definition: IPSet.h:293
Aws::WAFV2::Model::IPSet::WithARN
IPSet & WithARN(const Aws::String &value)
Definition: IPSet.h:183
Aws::WAFV2::Model::IPSet::SetId
void SetId(Aws::String &&value)
Definition: IPSet.h:124
Aws::WAFV2::Model::IPSet::WithName
IPSet & WithName(const char *value)
Definition: IPSet.h:95
Aws::WAFV2::Model::IPAddressVersion
IPAddressVersion
Definition: IPAddressVersion.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::IPSet::GetName
const Aws::String & GetName() const
Definition: IPSet.h:53
Aws::WAFV2::Model::IPSet::GetARN
const Aws::String & GetARN() const
Definition: IPSet.h:158
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::IPSet::WithId
IPSet & WithId(Aws::String &&value)
Definition: IPSet.h:145
Aws::WAFV2::Model::IPSet::IdHasBeenSet
bool IdHasBeenSet() const
Definition: IPSet.h:110
Aws::WAFV2::Model::IPSet::ARNHasBeenSet
bool ARNHasBeenSet() const
Definition: IPSet.h:163
Aws::WAFV2::Model::IPSet::SetDescription
void SetDescription(Aws::String &&value)
Definition: IPSet.h:214
Aws::WAFV2::Model::IPSet::WithDescription
IPSet & WithDescription(const char *value)
Definition: IPSet.h:234
Aws::WAFV2::Model::IPSet::SetId
void SetId(const char *value)
Definition: IPSet.h:131
Aws::WAFV2::Model::IPSet::WithName
IPSet & WithName(Aws::String &&value)
Definition: IPSet.h:89
Aws::WAFV2::Model::IPSet::IPSet
IPSet(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::IPSet::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::IPSet::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: IPSet.h:204
Aws::WAFV2::Model::IPSet::WithAddresses
IPSet & WithAddresses(const Aws::Vector< Aws::String > &value)
Definition: IPSet.h:377
Aws::WAFV2::Model::IPSet::SetIPAddressVersion
void SetIPAddressVersion(IPAddressVersion &&value)
Definition: IPSet.h:259
Aws::WAFV2::Model::IPSet::GetId
const Aws::String & GetId() const
Definition: IPSet.h:103
Aws::WAFV2::Model::IPSet::SetARN
void SetARN(const Aws::String &value)
Definition: IPSet.h:168
Aws::WAFV2::Model::IPSet::IPSet
IPSet()