AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
UpdateIPSetRequest.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/Scope.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WAFV2 {
17namespace Model {
18
22 public:
23 AWS_WAFV2_API UpdateIPSetRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateIPSet"; }
30
31 AWS_WAFV2_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 UpdateIPSetRequest& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
64 inline Scope GetScope() const { return m_scope; }
65 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
66 inline void SetScope(Scope value) {
67 m_scopeHasBeenSet = true;
68 m_scope = value;
69 }
71 SetScope(value);
72 return *this;
73 }
75
77
82 inline const Aws::String& GetId() const { return m_id; }
83 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
84 template <typename IdT = Aws::String>
85 void SetId(IdT&& value) {
86 m_idHasBeenSet = true;
87 m_id = std::forward<IdT>(value);
88 }
89 template <typename IdT = Aws::String>
90 UpdateIPSetRequest& WithId(IdT&& value) {
91 SetId(std::forward<IdT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template <typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) {
104 m_descriptionHasBeenSet = true;
105 m_description = std::forward<DescriptionT>(value);
106 }
107 template <typename DescriptionT = Aws::String>
108 UpdateIPSetRequest& WithDescription(DescriptionT&& value) {
109 SetDescription(std::forward<DescriptionT>(value));
110 return *this;
111 }
113
115
140 inline const Aws::Vector<Aws::String>& GetAddresses() const { return m_addresses; }
141 inline bool AddressesHasBeenSet() const { return m_addressesHasBeenSet; }
142 template <typename AddressesT = Aws::Vector<Aws::String>>
143 void SetAddresses(AddressesT&& value) {
144 m_addressesHasBeenSet = true;
145 m_addresses = std::forward<AddressesT>(value);
146 }
147 template <typename AddressesT = Aws::Vector<Aws::String>>
148 UpdateIPSetRequest& WithAddresses(AddressesT&& value) {
149 SetAddresses(std::forward<AddressesT>(value));
150 return *this;
151 }
152 template <typename AddressesT = Aws::String>
153 UpdateIPSetRequest& AddAddresses(AddressesT&& value) {
154 m_addressesHasBeenSet = true;
155 m_addresses.emplace_back(std::forward<AddressesT>(value));
156 return *this;
157 }
159
161
171 inline const Aws::String& GetLockToken() const { return m_lockToken; }
172 inline bool LockTokenHasBeenSet() const { return m_lockTokenHasBeenSet; }
173 template <typename LockTokenT = Aws::String>
174 void SetLockToken(LockTokenT&& value) {
175 m_lockTokenHasBeenSet = true;
176 m_lockToken = std::forward<LockTokenT>(value);
177 }
178 template <typename LockTokenT = Aws::String>
179 UpdateIPSetRequest& WithLockToken(LockTokenT&& value) {
180 SetLockToken(std::forward<LockTokenT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_name;
186
187 Scope m_scope{Scope::NOT_SET};
188
189 Aws::String m_id;
190
191 Aws::String m_description;
192
193 Aws::Vector<Aws::String> m_addresses;
194
195 Aws::String m_lockToken;
196 bool m_nameHasBeenSet = false;
197 bool m_scopeHasBeenSet = false;
198 bool m_idHasBeenSet = false;
199 bool m_descriptionHasBeenSet = false;
200 bool m_addressesHasBeenSet = false;
201 bool m_lockTokenHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace WAFV2
206} // namespace Aws
UpdateIPSetRequest & WithId(IdT &&value)
const Aws::String & GetName() const
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateIPSetRequest & WithAddresses(AddressesT &&value)
UpdateIPSetRequest & WithName(NameT &&value)
AWS_WAFV2_API Aws::String SerializePayload() const override
UpdateIPSetRequest & WithScope(Scope value)
UpdateIPSetRequest & WithDescription(DescriptionT &&value)
void SetDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetAddresses() const
UpdateIPSetRequest & AddAddresses(AddressesT &&value)
const Aws::String & GetDescription() const
AWS_WAFV2_API UpdateIPSetRequest()=default
const Aws::String & GetLockToken() const
UpdateIPSetRequest & WithLockToken(LockTokenT &&value)
virtual const char * GetServiceRequestName() const override
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