AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
CreateIPSetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wafv2/WAFV2Request.h>
10#include <aws/wafv2/WAFV2_EXPORTS.h>
11#include <aws/wafv2/model/IPAddressVersion.h>
12#include <aws/wafv2/model/Scope.h>
13#include <aws/wafv2/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace WAFV2 {
19namespace Model {
20
24 public:
25 AWS_WAFV2_API CreateIPSetRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateIPSet"; }
32
33 AWS_WAFV2_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 CreateIPSetRequest& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
66 inline Scope GetScope() const { return m_scope; }
67 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
68 inline void SetScope(Scope value) {
69 m_scopeHasBeenSet = true;
70 m_scope = value;
71 }
73 SetScope(value);
74 return *this;
75 }
77
79
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template <typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) {
86 m_descriptionHasBeenSet = true;
87 m_description = std::forward<DescriptionT>(value);
88 }
89 template <typename DescriptionT = Aws::String>
90 CreateIPSetRequest& WithDescription(DescriptionT&& value) {
91 SetDescription(std::forward<DescriptionT>(value));
92 return *this;
93 }
95
97
101 inline IPAddressVersion GetIPAddressVersion() const { return m_iPAddressVersion; }
102 inline bool IPAddressVersionHasBeenSet() const { return m_iPAddressVersionHasBeenSet; }
104 m_iPAddressVersionHasBeenSet = true;
105 m_iPAddressVersion = value;
106 }
108 SetIPAddressVersion(value);
109 return *this;
110 }
112
114
139 inline const Aws::Vector<Aws::String>& GetAddresses() const { return m_addresses; }
140 inline bool AddressesHasBeenSet() const { return m_addressesHasBeenSet; }
141 template <typename AddressesT = Aws::Vector<Aws::String>>
142 void SetAddresses(AddressesT&& value) {
143 m_addressesHasBeenSet = true;
144 m_addresses = std::forward<AddressesT>(value);
145 }
146 template <typename AddressesT = Aws::Vector<Aws::String>>
147 CreateIPSetRequest& WithAddresses(AddressesT&& value) {
148 SetAddresses(std::forward<AddressesT>(value));
149 return *this;
150 }
151 template <typename AddressesT = Aws::String>
152 CreateIPSetRequest& AddAddresses(AddressesT&& value) {
153 m_addressesHasBeenSet = true;
154 m_addresses.emplace_back(std::forward<AddressesT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
164 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
165 template <typename TagsT = Aws::Vector<Tag>>
166 void SetTags(TagsT&& value) {
167 m_tagsHasBeenSet = true;
168 m_tags = std::forward<TagsT>(value);
169 }
170 template <typename TagsT = Aws::Vector<Tag>>
171 CreateIPSetRequest& WithTags(TagsT&& value) {
172 SetTags(std::forward<TagsT>(value));
173 return *this;
174 }
175 template <typename TagsT = Tag>
176 CreateIPSetRequest& AddTags(TagsT&& value) {
177 m_tagsHasBeenSet = true;
178 m_tags.emplace_back(std::forward<TagsT>(value));
179 return *this;
180 }
182 private:
183 Aws::String m_name;
184
185 Scope m_scope{Scope::NOT_SET};
186
187 Aws::String m_description;
188
190
191 Aws::Vector<Aws::String> m_addresses;
192
193 Aws::Vector<Tag> m_tags;
194 bool m_nameHasBeenSet = false;
195 bool m_scopeHasBeenSet = false;
196 bool m_descriptionHasBeenSet = false;
197 bool m_iPAddressVersionHasBeenSet = false;
198 bool m_addressesHasBeenSet = false;
199 bool m_tagsHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace WAFV2
204} // namespace Aws
const Aws::String & GetName() const
void SetDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetAddresses() const
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Tag > & GetTags() const
AWS_WAFV2_API Aws::String SerializePayload() const override
IPAddressVersion GetIPAddressVersion() const
CreateIPSetRequest & WithAddresses(AddressesT &&value)
CreateIPSetRequest & WithTags(TagsT &&value)
CreateIPSetRequest & WithDescription(DescriptionT &&value)
void SetIPAddressVersion(IPAddressVersion value)
const Aws::String & GetDescription() const
CreateIPSetRequest & AddTags(TagsT &&value)
AWS_WAFV2_API CreateIPSetRequest()=default
virtual const char * GetServiceRequestName() const override
CreateIPSetRequest & WithIPAddressVersion(IPAddressVersion value)
CreateIPSetRequest & AddAddresses(AddressesT &&value)
CreateIPSetRequest & WithScope(Scope value)
CreateIPSetRequest & WithName(NameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector