AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline UpdateIPSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline UpdateIPSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline UpdateIPSetRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
66 inline const Scope& GetScope() const{ return m_scope; }
67 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
68 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
69 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
70 inline UpdateIPSetRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
71 inline UpdateIPSetRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
73
75
80 inline const Aws::String& GetId() const{ return m_id; }
81 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
82 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
83 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
84 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
85 inline UpdateIPSetRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
86 inline UpdateIPSetRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
87 inline UpdateIPSetRequest& WithId(const char* value) { SetId(value); return *this;}
89
91
94 inline const Aws::String& GetDescription() const{ return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
97 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
98 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
99 inline UpdateIPSetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
100 inline UpdateIPSetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
101 inline UpdateIPSetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
103
105
130 inline const Aws::Vector<Aws::String>& GetAddresses() const{ return m_addresses; }
131 inline bool AddressesHasBeenSet() const { return m_addressesHasBeenSet; }
132 inline void SetAddresses(const Aws::Vector<Aws::String>& value) { m_addressesHasBeenSet = true; m_addresses = value; }
133 inline void SetAddresses(Aws::Vector<Aws::String>&& value) { m_addressesHasBeenSet = true; m_addresses = std::move(value); }
134 inline UpdateIPSetRequest& WithAddresses(const Aws::Vector<Aws::String>& value) { SetAddresses(value); return *this;}
135 inline UpdateIPSetRequest& WithAddresses(Aws::Vector<Aws::String>&& value) { SetAddresses(std::move(value)); return *this;}
136 inline UpdateIPSetRequest& AddAddresses(const Aws::String& value) { m_addressesHasBeenSet = true; m_addresses.push_back(value); return *this; }
137 inline UpdateIPSetRequest& AddAddresses(Aws::String&& value) { m_addressesHasBeenSet = true; m_addresses.push_back(std::move(value)); return *this; }
138 inline UpdateIPSetRequest& AddAddresses(const char* value) { m_addressesHasBeenSet = true; m_addresses.push_back(value); return *this; }
140
142
152 inline const Aws::String& GetLockToken() const{ return m_lockToken; }
153 inline bool LockTokenHasBeenSet() const { return m_lockTokenHasBeenSet; }
154 inline void SetLockToken(const Aws::String& value) { m_lockTokenHasBeenSet = true; m_lockToken = value; }
155 inline void SetLockToken(Aws::String&& value) { m_lockTokenHasBeenSet = true; m_lockToken = std::move(value); }
156 inline void SetLockToken(const char* value) { m_lockTokenHasBeenSet = true; m_lockToken.assign(value); }
157 inline UpdateIPSetRequest& WithLockToken(const Aws::String& value) { SetLockToken(value); return *this;}
158 inline UpdateIPSetRequest& WithLockToken(Aws::String&& value) { SetLockToken(std::move(value)); return *this;}
159 inline UpdateIPSetRequest& WithLockToken(const char* value) { SetLockToken(value); return *this;}
161 private:
162
163 Aws::String m_name;
164 bool m_nameHasBeenSet = false;
165
166 Scope m_scope;
167 bool m_scopeHasBeenSet = false;
168
169 Aws::String m_id;
170 bool m_idHasBeenSet = false;
171
172 Aws::String m_description;
173 bool m_descriptionHasBeenSet = false;
174
175 Aws::Vector<Aws::String> m_addresses;
176 bool m_addressesHasBeenSet = false;
177
178 Aws::String m_lockToken;
179 bool m_lockTokenHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace WAFV2
184} // namespace Aws
UpdateIPSetRequest & WithAddresses(const Aws::Vector< Aws::String > &value)
UpdateIPSetRequest & WithLockToken(Aws::String &&value)
UpdateIPSetRequest & WithDescription(Aws::String &&value)
const Aws::String & GetName() const
UpdateIPSetRequest & WithName(const Aws::String &value)
UpdateIPSetRequest & WithId(const char *value)
void SetAddresses(const Aws::Vector< Aws::String > &value)
void SetLockToken(const Aws::String &value)
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateIPSetRequest & WithDescription(const Aws::String &value)
void SetName(const Aws::String &value)
UpdateIPSetRequest & WithDescription(const char *value)
AWS_WAFV2_API Aws::String SerializePayload() const override
UpdateIPSetRequest & WithScope(const Scope &value)
void SetDescription(Aws::String &&value)
UpdateIPSetRequest & WithId(Aws::String &&value)
UpdateIPSetRequest & WithId(const Aws::String &value)
UpdateIPSetRequest & WithLockToken(const char *value)
UpdateIPSetRequest & WithName(const char *value)
void SetId(const Aws::String &value)
UpdateIPSetRequest & WithAddresses(Aws::Vector< Aws::String > &&value)
UpdateIPSetRequest & AddAddresses(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAddresses() const
UpdateIPSetRequest & WithScope(Scope &&value)
UpdateIPSetRequest & WithLockToken(const Aws::String &value)
const Aws::String & GetDescription() const
UpdateIPSetRequest & WithName(Aws::String &&value)
const Aws::String & GetLockToken() const
void SetDescription(const Aws::String &value)
void SetAddresses(Aws::Vector< Aws::String > &&value)
UpdateIPSetRequest & AddAddresses(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateIPSetRequest & AddAddresses(const Aws::String &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