AWS SDK for C++  1.9.108
AWS SDK for C++
UpdateIPSetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/wafv2/model/Scope.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace WAFV2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::String& GetName() const{ return m_name; }
44 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
61  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 
67  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 
73  inline UpdateIPSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
74 
79  inline UpdateIPSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 
85  inline UpdateIPSetRequest& WithName(const char* value) { SetName(value); return *this;}
86 
87 
98  inline const Scope& GetScope() const{ return m_scope; }
99 
110  inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
111 
122  inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
123 
134  inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
135 
146  inline UpdateIPSetRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
147 
158  inline UpdateIPSetRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
159 
160 
166  inline const Aws::String& GetId() const{ return m_id; }
167 
173  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
174 
180  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
181 
187  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
188 
194  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
195 
201  inline UpdateIPSetRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
202 
208  inline UpdateIPSetRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
209 
215  inline UpdateIPSetRequest& WithId(const char* value) { SetId(value); return *this;}
216 
217 
221  inline const Aws::String& GetDescription() const{ return m_description; }
222 
226  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
227 
231  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
232 
236  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
237 
241  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
242 
246  inline UpdateIPSetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
247 
251  inline UpdateIPSetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
252 
256  inline UpdateIPSetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
257 
258 
278  inline const Aws::Vector<Aws::String>& GetAddresses() const{ return m_addresses; }
279 
299  inline bool AddressesHasBeenSet() const { return m_addressesHasBeenSet; }
300 
320  inline void SetAddresses(const Aws::Vector<Aws::String>& value) { m_addressesHasBeenSet = true; m_addresses = value; }
321 
341  inline void SetAddresses(Aws::Vector<Aws::String>&& value) { m_addressesHasBeenSet = true; m_addresses = std::move(value); }
342 
362  inline UpdateIPSetRequest& WithAddresses(const Aws::Vector<Aws::String>& value) { SetAddresses(value); return *this;}
363 
383  inline UpdateIPSetRequest& WithAddresses(Aws::Vector<Aws::String>&& value) { SetAddresses(std::move(value)); return *this;}
384 
404  inline UpdateIPSetRequest& AddAddresses(const Aws::String& value) { m_addressesHasBeenSet = true; m_addresses.push_back(value); return *this; }
405 
425  inline UpdateIPSetRequest& AddAddresses(Aws::String&& value) { m_addressesHasBeenSet = true; m_addresses.push_back(std::move(value)); return *this; }
426 
446  inline UpdateIPSetRequest& AddAddresses(const char* value) { m_addressesHasBeenSet = true; m_addresses.push_back(value); return *this; }
447 
448 
459  inline const Aws::String& GetLockToken() const{ return m_lockToken; }
460 
471  inline bool LockTokenHasBeenSet() const { return m_lockTokenHasBeenSet; }
472 
483  inline void SetLockToken(const Aws::String& value) { m_lockTokenHasBeenSet = true; m_lockToken = value; }
484 
495  inline void SetLockToken(Aws::String&& value) { m_lockTokenHasBeenSet = true; m_lockToken = std::move(value); }
496 
507  inline void SetLockToken(const char* value) { m_lockTokenHasBeenSet = true; m_lockToken.assign(value); }
508 
519  inline UpdateIPSetRequest& WithLockToken(const Aws::String& value) { SetLockToken(value); return *this;}
520 
531  inline UpdateIPSetRequest& WithLockToken(Aws::String&& value) { SetLockToken(std::move(value)); return *this;}
532 
543  inline UpdateIPSetRequest& WithLockToken(const char* value) { SetLockToken(value); return *this;}
544 
545  private:
546 
547  Aws::String m_name;
548  bool m_nameHasBeenSet;
549 
550  Scope m_scope;
551  bool m_scopeHasBeenSet;
552 
553  Aws::String m_id;
554  bool m_idHasBeenSet;
555 
556  Aws::String m_description;
557  bool m_descriptionHasBeenSet;
558 
559  Aws::Vector<Aws::String> m_addresses;
560  bool m_addressesHasBeenSet;
561 
562  Aws::String m_lockToken;
563  bool m_lockTokenHasBeenSet;
564  };
565 
566 } // namespace Model
567 } // namespace WAFV2
568 } // namespace Aws
WAFV2Request.h
Scope.h
Aws::WAFV2::Model::UpdateIPSetRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateIPSetRequest.h:236
Aws::WAFV2::Model::UpdateIPSetRequest::SetScope
void SetScope(const Scope &value)
Definition: UpdateIPSetRequest.h:122
Aws::WAFV2::Model::UpdateIPSetRequest::SetAddresses
void SetAddresses(Aws::Vector< Aws::String > &&value)
Definition: UpdateIPSetRequest.h:341
Aws::WAFV2::Model::UpdateIPSetRequest::GetScope
const Scope & GetScope() const
Definition: UpdateIPSetRequest.h:98
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAFV2::Model::UpdateIPSetRequest
Definition: UpdateIPSetRequest.h:24
Aws::WAFV2::Model::UpdateIPSetRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateIPSetRequest.h:241
Aws::WAFV2::Model::UpdateIPSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAFV2::Model::UpdateIPSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAFV2::Model::UpdateIPSetRequest::LockTokenHasBeenSet
bool LockTokenHasBeenSet() const
Definition: UpdateIPSetRequest.h:471
Aws::WAFV2::Model::UpdateIPSetRequest::WithDescription
UpdateIPSetRequest & WithDescription(Aws::String &&value)
Definition: UpdateIPSetRequest.h:251
Aws::WAFV2::Model::UpdateIPSetRequest::WithName
UpdateIPSetRequest & WithName(const Aws::String &value)
Definition: UpdateIPSetRequest.h:73
Aws::WAFV2::Model::UpdateIPSetRequest::WithId
UpdateIPSetRequest & WithId(Aws::String &&value)
Definition: UpdateIPSetRequest.h:208
Aws::WAFV2::Model::UpdateIPSetRequest::UpdateIPSetRequest
UpdateIPSetRequest()
Aws::WAFV2::Model::UpdateIPSetRequest::SetId
void SetId(const Aws::String &value)
Definition: UpdateIPSetRequest.h:180
Aws::WAFV2::Model::UpdateIPSetRequest::WithLockToken
UpdateIPSetRequest & WithLockToken(const Aws::String &value)
Definition: UpdateIPSetRequest.h:519
Aws::WAFV2::Model::UpdateIPSetRequest::AddAddresses
UpdateIPSetRequest & AddAddresses(const char *value)
Definition: UpdateIPSetRequest.h:446
Aws::WAFV2::Model::UpdateIPSetRequest::WithScope
UpdateIPSetRequest & WithScope(const Scope &value)
Definition: UpdateIPSetRequest.h:146
Aws::WAFV2::Model::UpdateIPSetRequest::GetName
const Aws::String & GetName() const
Definition: UpdateIPSetRequest.h:43
Aws::WAFV2::Model::UpdateIPSetRequest::SetId
void SetId(const char *value)
Definition: UpdateIPSetRequest.h:194
Aws::WAFV2::Model::UpdateIPSetRequest::WithAddresses
UpdateIPSetRequest & WithAddresses(Aws::Vector< Aws::String > &&value)
Definition: UpdateIPSetRequest.h:383
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAFV2::Model::UpdateIPSetRequest::SetLockToken
void SetLockToken(Aws::String &&value)
Definition: UpdateIPSetRequest.h:495
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::UpdateIPSetRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateIPSetRequest.h:221
Aws::WAFV2::Model::UpdateIPSetRequest::SetName
void SetName(const char *value)
Definition: UpdateIPSetRequest.h:67
Aws::WAFV2::Model::UpdateIPSetRequest::AddressesHasBeenSet
bool AddressesHasBeenSet() const
Definition: UpdateIPSetRequest.h:299
AWSVector.h
Aws::WAFV2::Model::UpdateIPSetRequest::SetLockToken
void SetLockToken(const char *value)
Definition: UpdateIPSetRequest.h:507
Aws::WAFV2::Model::UpdateIPSetRequest::GetId
const Aws::String & GetId() const
Definition: UpdateIPSetRequest.h:166
Aws::WAFV2::Model::UpdateIPSetRequest::AddAddresses
UpdateIPSetRequest & AddAddresses(const Aws::String &value)
Definition: UpdateIPSetRequest.h:404
Aws::WAFV2::Model::UpdateIPSetRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateIPSetRequest.h:61
Aws::WAFV2::Model::UpdateIPSetRequest::WithAddresses
UpdateIPSetRequest & WithAddresses(const Aws::Vector< Aws::String > &value)
Definition: UpdateIPSetRequest.h:362
Aws::WAFV2::Model::UpdateIPSetRequest::WithScope
UpdateIPSetRequest & WithScope(Scope &&value)
Definition: UpdateIPSetRequest.h:158
Aws::WAFV2::Model::UpdateIPSetRequest::WithId
UpdateIPSetRequest & WithId(const char *value)
Definition: UpdateIPSetRequest.h:215
WAFV2_EXPORTS.h
Aws::WAFV2::Model::UpdateIPSetRequest::SetScope
void SetScope(Scope &&value)
Definition: UpdateIPSetRequest.h:134
Aws::WAFV2::Model::UpdateIPSetRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateIPSetRequest.h:231
Aws::WAFV2::Model::UpdateIPSetRequest::GetAddresses
const Aws::Vector< Aws::String > & GetAddresses() const
Definition: UpdateIPSetRequest.h:278
Aws::WAFV2::Model::UpdateIPSetRequest::WithDescription
UpdateIPSetRequest & WithDescription(const Aws::String &value)
Definition: UpdateIPSetRequest.h:246
Aws::WAFV2::Model::UpdateIPSetRequest::GetLockToken
const Aws::String & GetLockToken() const
Definition: UpdateIPSetRequest.h:459
Aws::WAFV2::WAFV2Request
Definition: WAFV2Request.h:17
Aws::WAFV2::Model::UpdateIPSetRequest::WithName
UpdateIPSetRequest & WithName(Aws::String &&value)
Definition: UpdateIPSetRequest.h:79
Aws::WAFV2::Model::UpdateIPSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateIPSetRequest.h:32
Aws::WAFV2::Model::UpdateIPSetRequest::SetId
void SetId(Aws::String &&value)
Definition: UpdateIPSetRequest.h:187
Aws::WAFV2::Model::UpdateIPSetRequest::WithLockToken
UpdateIPSetRequest & WithLockToken(Aws::String &&value)
Definition: UpdateIPSetRequest.h:531
AWSString.h
Aws::WAFV2::Model::UpdateIPSetRequest::SetLockToken
void SetLockToken(const Aws::String &value)
Definition: UpdateIPSetRequest.h:483
Aws::WAFV2::Model::UpdateIPSetRequest::WithLockToken
UpdateIPSetRequest & WithLockToken(const char *value)
Definition: UpdateIPSetRequest.h:543
Aws::WAFV2::Model::UpdateIPSetRequest::WithDescription
UpdateIPSetRequest & WithDescription(const char *value)
Definition: UpdateIPSetRequest.h:256
Aws::WAFV2::Model::UpdateIPSetRequest::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: UpdateIPSetRequest.h:110
Aws::WAFV2::Model::UpdateIPSetRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateIPSetRequest.h:55
Aws::WAFV2::Model::UpdateIPSetRequest::WithId
UpdateIPSetRequest & WithId(const Aws::String &value)
Definition: UpdateIPSetRequest.h:201
Aws::WAFV2::Model::UpdateIPSetRequest::IdHasBeenSet
bool IdHasBeenSet() const
Definition: UpdateIPSetRequest.h:173
Aws::WAFV2::Model::UpdateIPSetRequest::WithName
UpdateIPSetRequest & WithName(const char *value)
Definition: UpdateIPSetRequest.h:85
Aws::WAFV2::Model::UpdateIPSetRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateIPSetRequest.h:226
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::UpdateIPSetRequest::AddAddresses
UpdateIPSetRequest & AddAddresses(Aws::String &&value)
Definition: UpdateIPSetRequest.h:425
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::Scope
Scope
Definition: Scope.h:17
Aws::WAFV2::Model::UpdateIPSetRequest::SetAddresses
void SetAddresses(const Aws::Vector< Aws::String > &value)
Definition: UpdateIPSetRequest.h:320
Aws::WAFV2::Model::UpdateIPSetRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateIPSetRequest.h:49