AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IPSet.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wafv2/model/IPAddressVersion.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WAFV2
24{
25namespace Model
26{
27
40 class IPSet
41 {
42 public:
43 AWS_WAFV2_API IPSet();
44 AWS_WAFV2_API IPSet(Aws::Utils::Json::JsonView jsonValue);
45 AWS_WAFV2_API IPSet& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
54 inline const Aws::String& GetName() const{ return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
59 inline IPSet& WithName(const Aws::String& value) { SetName(value); return *this;}
60 inline IPSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
61 inline IPSet& WithName(const char* value) { SetName(value); return *this;}
63
65
70 inline const Aws::String& GetId() const{ return m_id; }
71 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
72 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
73 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
74 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
75 inline IPSet& WithId(const Aws::String& value) { SetId(value); return *this;}
76 inline IPSet& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77 inline IPSet& WithId(const char* value) { SetId(value); return *this;}
79
81
84 inline const Aws::String& GetARN() const{ return m_aRN; }
85 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
86 inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
87 inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
88 inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
89 inline IPSet& WithARN(const Aws::String& value) { SetARN(value); return *this;}
90 inline IPSet& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
91 inline IPSet& WithARN(const char* value) { SetARN(value); return *this;}
93
95
98 inline const Aws::String& GetDescription() const{ return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
101 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
102 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
103 inline IPSet& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
104 inline IPSet& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
105 inline IPSet& WithDescription(const char* value) { SetDescription(value); return *this;}
107
109
113 inline const IPAddressVersion& GetIPAddressVersion() const{ return m_iPAddressVersion; }
114 inline bool IPAddressVersionHasBeenSet() const { return m_iPAddressVersionHasBeenSet; }
115 inline void SetIPAddressVersion(const IPAddressVersion& value) { m_iPAddressVersionHasBeenSet = true; m_iPAddressVersion = value; }
116 inline void SetIPAddressVersion(IPAddressVersion&& value) { m_iPAddressVersionHasBeenSet = true; m_iPAddressVersion = std::move(value); }
117 inline IPSet& WithIPAddressVersion(const IPAddressVersion& value) { SetIPAddressVersion(value); return *this;}
118 inline IPSet& WithIPAddressVersion(IPAddressVersion&& value) { SetIPAddressVersion(std::move(value)); return *this;}
120
122
147 inline const Aws::Vector<Aws::String>& GetAddresses() const{ return m_addresses; }
148 inline bool AddressesHasBeenSet() const { return m_addressesHasBeenSet; }
149 inline void SetAddresses(const Aws::Vector<Aws::String>& value) { m_addressesHasBeenSet = true; m_addresses = value; }
150 inline void SetAddresses(Aws::Vector<Aws::String>&& value) { m_addressesHasBeenSet = true; m_addresses = std::move(value); }
151 inline IPSet& WithAddresses(const Aws::Vector<Aws::String>& value) { SetAddresses(value); return *this;}
152 inline IPSet& WithAddresses(Aws::Vector<Aws::String>&& value) { SetAddresses(std::move(value)); return *this;}
153 inline IPSet& AddAddresses(const Aws::String& value) { m_addressesHasBeenSet = true; m_addresses.push_back(value); return *this; }
154 inline IPSet& AddAddresses(Aws::String&& value) { m_addressesHasBeenSet = true; m_addresses.push_back(std::move(value)); return *this; }
155 inline IPSet& AddAddresses(const char* value) { m_addressesHasBeenSet = true; m_addresses.push_back(value); return *this; }
157 private:
158
159 Aws::String m_name;
160 bool m_nameHasBeenSet = false;
161
162 Aws::String m_id;
163 bool m_idHasBeenSet = false;
164
165 Aws::String m_aRN;
166 bool m_aRNHasBeenSet = false;
167
168 Aws::String m_description;
169 bool m_descriptionHasBeenSet = false;
170
171 IPAddressVersion m_iPAddressVersion;
172 bool m_iPAddressVersionHasBeenSet = false;
173
174 Aws::Vector<Aws::String> m_addresses;
175 bool m_addressesHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace WAFV2
180} // namespace Aws
void SetId(const char *value)
Definition IPSet.h:74
void SetId(const Aws::String &value)
Definition IPSet.h:72
IPSet & WithARN(const char *value)
Definition IPSet.h:91
IPSet & AddAddresses(const char *value)
Definition IPSet.h:155
IPSet & WithARN(const Aws::String &value)
Definition IPSet.h:89
IPSet & WithDescription(const char *value)
Definition IPSet.h:105
IPSet & WithId(const Aws::String &value)
Definition IPSet.h:75
IPSet & WithName(Aws::String &&value)
Definition IPSet.h:60
AWS_WAFV2_API IPSet & operator=(Aws::Utils::Json::JsonView jsonValue)
IPSet & WithId(Aws::String &&value)
Definition IPSet.h:76
const Aws::String & GetName() const
Definition IPSet.h:54
void SetARN(const char *value)
Definition IPSet.h:88
const Aws::String & GetDescription() const
Definition IPSet.h:98
void SetDescription(const Aws::String &value)
Definition IPSet.h:100
void SetARN(const Aws::String &value)
Definition IPSet.h:86
void SetName(const char *value)
Definition IPSet.h:58
void SetIPAddressVersion(const IPAddressVersion &value)
Definition IPSet.h:115
void SetIPAddressVersion(IPAddressVersion &&value)
Definition IPSet.h:116
AWS_WAFV2_API IPSet(Aws::Utils::Json::JsonView jsonValue)
void SetARN(Aws::String &&value)
Definition IPSet.h:87
IPSet & WithAddresses(Aws::Vector< Aws::String > &&value)
Definition IPSet.h:152
void SetAddresses(Aws::Vector< Aws::String > &&value)
Definition IPSet.h:150
void SetId(Aws::String &&value)
Definition IPSet.h:73
AWS_WAFV2_API IPSet()
const Aws::Vector< Aws::String > & GetAddresses() const
Definition IPSet.h:147
IPSet & WithDescription(Aws::String &&value)
Definition IPSet.h:104
bool NameHasBeenSet() const
Definition IPSet.h:55
const Aws::String & GetId() const
Definition IPSet.h:70
bool IdHasBeenSet() const
Definition IPSet.h:71
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(const char *value)
Definition IPSet.h:102
void SetAddresses(const Aws::Vector< Aws::String > &value)
Definition IPSet.h:149
const Aws::String & GetARN() const
Definition IPSet.h:84
bool AddressesHasBeenSet() const
Definition IPSet.h:148
const IPAddressVersion & GetIPAddressVersion() const
Definition IPSet.h:113
bool DescriptionHasBeenSet() const
Definition IPSet.h:99
IPSet & WithARN(Aws::String &&value)
Definition IPSet.h:90
bool ARNHasBeenSet() const
Definition IPSet.h:85
IPSet & WithIPAddressVersion(IPAddressVersion &&value)
Definition IPSet.h:118
void SetName(Aws::String &&value)
Definition IPSet.h:57
IPSet & WithName(const char *value)
Definition IPSet.h:61
void SetDescription(Aws::String &&value)
Definition IPSet.h:101
IPSet & AddAddresses(const Aws::String &value)
Definition IPSet.h:153
IPSet & WithDescription(const Aws::String &value)
Definition IPSet.h:103
IPSet & WithName(const Aws::String &value)
Definition IPSet.h:59
void SetName(const Aws::String &value)
Definition IPSet.h:56
IPSet & WithId(const char *value)
Definition IPSet.h:77
IPSet & AddAddresses(Aws::String &&value)
Definition IPSet.h:154
bool IPAddressVersionHasBeenSet() const
Definition IPSet.h:114
IPSet & WithAddresses(const Aws::Vector< Aws::String > &value)
Definition IPSet.h:151
IPSet & WithIPAddressVersion(const IPAddressVersion &value)
Definition IPSet.h:117
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue