AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
58 template<typename NameT = Aws::String>
59 IPSet& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
61
63
68 inline const Aws::String& GetId() const { return m_id; }
69 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
70 template<typename IdT = Aws::String>
71 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
72 template<typename IdT = Aws::String>
73 IPSet& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
75
77
80 inline const Aws::String& GetARN() const { return m_aRN; }
81 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
82 template<typename ARNT = Aws::String>
83 void SetARN(ARNT&& value) { m_aRNHasBeenSet = true; m_aRN = std::forward<ARNT>(value); }
84 template<typename ARNT = Aws::String>
85 IPSet& WithARN(ARNT&& value) { SetARN(std::forward<ARNT>(value)); return *this;}
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template<typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
96 template<typename DescriptionT = Aws::String>
97 IPSet& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
99
101
105 inline IPAddressVersion GetIPAddressVersion() const { return m_iPAddressVersion; }
106 inline bool IPAddressVersionHasBeenSet() const { return m_iPAddressVersionHasBeenSet; }
107 inline void SetIPAddressVersion(IPAddressVersion value) { m_iPAddressVersionHasBeenSet = true; m_iPAddressVersion = value; }
108 inline IPSet& WithIPAddressVersion(IPAddressVersion value) { SetIPAddressVersion(value); return *this;}
110
112
137 inline const Aws::Vector<Aws::String>& GetAddresses() const { return m_addresses; }
138 inline bool AddressesHasBeenSet() const { return m_addressesHasBeenSet; }
139 template<typename AddressesT = Aws::Vector<Aws::String>>
140 void SetAddresses(AddressesT&& value) { m_addressesHasBeenSet = true; m_addresses = std::forward<AddressesT>(value); }
141 template<typename AddressesT = Aws::Vector<Aws::String>>
142 IPSet& WithAddresses(AddressesT&& value) { SetAddresses(std::forward<AddressesT>(value)); return *this;}
143 template<typename AddressesT = Aws::String>
144 IPSet& AddAddresses(AddressesT&& value) { m_addressesHasBeenSet = true; m_addresses.emplace_back(std::forward<AddressesT>(value)); return *this; }
146 private:
147
148 Aws::String m_name;
149 bool m_nameHasBeenSet = false;
150
151 Aws::String m_id;
152 bool m_idHasBeenSet = false;
153
154 Aws::String m_aRN;
155 bool m_aRNHasBeenSet = false;
156
157 Aws::String m_description;
158 bool m_descriptionHasBeenSet = false;
159
161 bool m_iPAddressVersionHasBeenSet = false;
162
163 Aws::Vector<Aws::String> m_addresses;
164 bool m_addressesHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace WAFV2
169} // namespace Aws
void SetIPAddressVersion(IPAddressVersion value)
Definition IPSet.h:107
void SetId(IdT &&value)
Definition IPSet.h:71
AWS_WAFV2_API IPSet & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition IPSet.h:54
const Aws::String & GetDescription() const
Definition IPSet.h:92
IPSet & WithARN(ARNT &&value)
Definition IPSet.h:85
AWS_WAFV2_API IPSet(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition IPSet.h:57
void SetARN(ARNT &&value)
Definition IPSet.h:83
IPSet & WithIPAddressVersion(IPAddressVersion value)
Definition IPSet.h:108
IPSet & WithAddresses(AddressesT &&value)
Definition IPSet.h:142
IPSet & WithId(IdT &&value)
Definition IPSet.h:73
const Aws::Vector< Aws::String > & GetAddresses() const
Definition IPSet.h:137
bool NameHasBeenSet() const
Definition IPSet.h:55
IPSet & WithDescription(DescriptionT &&value)
Definition IPSet.h:97
const Aws::String & GetId() const
Definition IPSet.h:68
bool IdHasBeenSet() const
Definition IPSet.h:69
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetARN() const
Definition IPSet.h:80
bool AddressesHasBeenSet() const
Definition IPSet.h:138
bool DescriptionHasBeenSet() const
Definition IPSet.h:93
bool ARNHasBeenSet() const
Definition IPSet.h:81
IPSet & WithName(NameT &&value)
Definition IPSet.h:59
void SetDescription(DescriptionT &&value)
Definition IPSet.h:95
AWS_WAFV2_API IPSet()=default
void SetAddresses(AddressesT &&value)
Definition IPSet.h:140
bool IPAddressVersionHasBeenSet() const
Definition IPSet.h:106
IPAddressVersion GetIPAddressVersion() const
Definition IPSet.h:105
IPSet & AddAddresses(AddressesT &&value)
Definition IPSet.h:144
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue