AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateIPSetRequest.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/WAFV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/wafv2/model/Scope.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WAFV2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WAFV2_API UpdateIPSetRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateIPSet"; }
33
34 AWS_WAFV2_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 UpdateIPSetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
62 inline Scope GetScope() const { return m_scope; }
63 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
64 inline void SetScope(Scope value) { m_scopeHasBeenSet = true; m_scope = value; }
65 inline UpdateIPSetRequest& WithScope(Scope value) { SetScope(value); return *this;}
67
69
74 inline const Aws::String& GetId() const { return m_id; }
75 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
76 template<typename IdT = Aws::String>
77 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
78 template<typename IdT = Aws::String>
79 UpdateIPSetRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
81
83
86 inline const Aws::String& GetDescription() const { return m_description; }
87 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 template<typename DescriptionT = Aws::String>
89 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
90 template<typename DescriptionT = Aws::String>
91 UpdateIPSetRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
93
95
120 inline const Aws::Vector<Aws::String>& GetAddresses() const { return m_addresses; }
121 inline bool AddressesHasBeenSet() const { return m_addressesHasBeenSet; }
122 template<typename AddressesT = Aws::Vector<Aws::String>>
123 void SetAddresses(AddressesT&& value) { m_addressesHasBeenSet = true; m_addresses = std::forward<AddressesT>(value); }
124 template<typename AddressesT = Aws::Vector<Aws::String>>
125 UpdateIPSetRequest& WithAddresses(AddressesT&& value) { SetAddresses(std::forward<AddressesT>(value)); return *this;}
126 template<typename AddressesT = Aws::String>
127 UpdateIPSetRequest& AddAddresses(AddressesT&& value) { m_addressesHasBeenSet = true; m_addresses.emplace_back(std::forward<AddressesT>(value)); return *this; }
129
131
141 inline const Aws::String& GetLockToken() const { return m_lockToken; }
142 inline bool LockTokenHasBeenSet() const { return m_lockTokenHasBeenSet; }
143 template<typename LockTokenT = Aws::String>
144 void SetLockToken(LockTokenT&& value) { m_lockTokenHasBeenSet = true; m_lockToken = std::forward<LockTokenT>(value); }
145 template<typename LockTokenT = Aws::String>
146 UpdateIPSetRequest& WithLockToken(LockTokenT&& value) { SetLockToken(std::forward<LockTokenT>(value)); return *this;}
148 private:
149
150 Aws::String m_name;
151 bool m_nameHasBeenSet = false;
152
153 Scope m_scope{Scope::NOT_SET};
154 bool m_scopeHasBeenSet = false;
155
156 Aws::String m_id;
157 bool m_idHasBeenSet = false;
158
159 Aws::String m_description;
160 bool m_descriptionHasBeenSet = false;
161
162 Aws::Vector<Aws::String> m_addresses;
163 bool m_addressesHasBeenSet = false;
164
165 Aws::String m_lockToken;
166 bool m_lockTokenHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace WAFV2
171} // 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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector