AWS SDK for C++  1.9.40
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 
97  inline const Scope& GetScope() const{ return m_scope; }
98 
108  inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
109 
119  inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
120 
130  inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
131 
141  inline UpdateIPSetRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
142 
152  inline UpdateIPSetRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
153 
154 
160  inline const Aws::String& GetId() const{ return m_id; }
161 
167  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
168 
174  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
175 
181  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
182 
188  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
189 
195  inline UpdateIPSetRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
196 
202  inline UpdateIPSetRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
203 
209  inline UpdateIPSetRequest& WithId(const char* value) { SetId(value); return *this;}
210 
211 
215  inline const Aws::String& GetDescription() const{ return m_description; }
216 
220  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
221 
225  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
226 
230  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
231 
235  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
236 
240  inline UpdateIPSetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
241 
245  inline UpdateIPSetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
246 
250  inline UpdateIPSetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
251 
252 
273  inline const Aws::Vector<Aws::String>& GetAddresses() const{ return m_addresses; }
274 
295  inline bool AddressesHasBeenSet() const { return m_addressesHasBeenSet; }
296 
317  inline void SetAddresses(const Aws::Vector<Aws::String>& value) { m_addressesHasBeenSet = true; m_addresses = value; }
318 
339  inline void SetAddresses(Aws::Vector<Aws::String>&& value) { m_addressesHasBeenSet = true; m_addresses = std::move(value); }
340 
361  inline UpdateIPSetRequest& WithAddresses(const Aws::Vector<Aws::String>& value) { SetAddresses(value); return *this;}
362 
383  inline UpdateIPSetRequest& WithAddresses(Aws::Vector<Aws::String>&& value) { SetAddresses(std::move(value)); return *this;}
384 
405  inline UpdateIPSetRequest& AddAddresses(const Aws::String& value) { m_addressesHasBeenSet = true; m_addresses.push_back(value); return *this; }
406 
427  inline UpdateIPSetRequest& AddAddresses(Aws::String&& value) { m_addressesHasBeenSet = true; m_addresses.push_back(std::move(value)); return *this; }
428 
449  inline UpdateIPSetRequest& AddAddresses(const char* value) { m_addressesHasBeenSet = true; m_addresses.push_back(value); return *this; }
450 
451 
462  inline const Aws::String& GetLockToken() const{ return m_lockToken; }
463 
474  inline bool LockTokenHasBeenSet() const { return m_lockTokenHasBeenSet; }
475 
486  inline void SetLockToken(const Aws::String& value) { m_lockTokenHasBeenSet = true; m_lockToken = value; }
487 
498  inline void SetLockToken(Aws::String&& value) { m_lockTokenHasBeenSet = true; m_lockToken = std::move(value); }
499 
510  inline void SetLockToken(const char* value) { m_lockTokenHasBeenSet = true; m_lockToken.assign(value); }
511 
522  inline UpdateIPSetRequest& WithLockToken(const Aws::String& value) { SetLockToken(value); return *this;}
523 
534  inline UpdateIPSetRequest& WithLockToken(Aws::String&& value) { SetLockToken(std::move(value)); return *this;}
535 
546  inline UpdateIPSetRequest& WithLockToken(const char* value) { SetLockToken(value); return *this;}
547 
548  private:
549 
550  Aws::String m_name;
551  bool m_nameHasBeenSet;
552 
553  Scope m_scope;
554  bool m_scopeHasBeenSet;
555 
556  Aws::String m_id;
557  bool m_idHasBeenSet;
558 
559  Aws::String m_description;
560  bool m_descriptionHasBeenSet;
561 
562  Aws::Vector<Aws::String> m_addresses;
563  bool m_addressesHasBeenSet;
564 
565  Aws::String m_lockToken;
566  bool m_lockTokenHasBeenSet;
567  };
568 
569 } // namespace Model
570 } // namespace WAFV2
571 } // namespace Aws
WAFV2Request.h
Scope.h
Aws::WAFV2::Model::UpdateIPSetRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateIPSetRequest.h:230
Aws::WAFV2::Model::UpdateIPSetRequest::SetScope
void SetScope(const Scope &value)
Definition: UpdateIPSetRequest.h:119
Aws::WAFV2::Model::UpdateIPSetRequest::SetAddresses
void SetAddresses(Aws::Vector< Aws::String > &&value)
Definition: UpdateIPSetRequest.h:339
Aws::WAFV2::Model::UpdateIPSetRequest::GetScope
const Scope & GetScope() const
Definition: UpdateIPSetRequest.h:97
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:235
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:474
Aws::WAFV2::Model::UpdateIPSetRequest::WithDescription
UpdateIPSetRequest & WithDescription(Aws::String &&value)
Definition: UpdateIPSetRequest.h:245
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:202
Aws::WAFV2::Model::UpdateIPSetRequest::UpdateIPSetRequest
UpdateIPSetRequest()
Aws::WAFV2::Model::UpdateIPSetRequest::SetId
void SetId(const Aws::String &value)
Definition: UpdateIPSetRequest.h:174
Aws::WAFV2::Model::UpdateIPSetRequest::WithLockToken
UpdateIPSetRequest & WithLockToken(const Aws::String &value)
Definition: UpdateIPSetRequest.h:522
Aws::WAFV2::Model::UpdateIPSetRequest::AddAddresses
UpdateIPSetRequest & AddAddresses(const char *value)
Definition: UpdateIPSetRequest.h:449
Aws::WAFV2::Model::UpdateIPSetRequest::WithScope
UpdateIPSetRequest & WithScope(const Scope &value)
Definition: UpdateIPSetRequest.h:141
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:188
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:498
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:215
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:295
AWSVector.h
Aws::WAFV2::Model::UpdateIPSetRequest::SetLockToken
void SetLockToken(const char *value)
Definition: UpdateIPSetRequest.h:510
Aws::WAFV2::Model::UpdateIPSetRequest::GetId
const Aws::String & GetId() const
Definition: UpdateIPSetRequest.h:160
Aws::WAFV2::Model::UpdateIPSetRequest::AddAddresses
UpdateIPSetRequest & AddAddresses(const Aws::String &value)
Definition: UpdateIPSetRequest.h:405
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:361
Aws::WAFV2::Model::UpdateIPSetRequest::WithScope
UpdateIPSetRequest & WithScope(Scope &&value)
Definition: UpdateIPSetRequest.h:152
Aws::WAFV2::Model::UpdateIPSetRequest::WithId
UpdateIPSetRequest & WithId(const char *value)
Definition: UpdateIPSetRequest.h:209
WAFV2_EXPORTS.h
Aws::WAFV2::Model::UpdateIPSetRequest::SetScope
void SetScope(Scope &&value)
Definition: UpdateIPSetRequest.h:130
Aws::WAFV2::Model::UpdateIPSetRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateIPSetRequest.h:225
Aws::WAFV2::Model::UpdateIPSetRequest::GetAddresses
const Aws::Vector< Aws::String > & GetAddresses() const
Definition: UpdateIPSetRequest.h:273
Aws::WAFV2::Model::UpdateIPSetRequest::WithDescription
UpdateIPSetRequest & WithDescription(const Aws::String &value)
Definition: UpdateIPSetRequest.h:240
Aws::WAFV2::Model::UpdateIPSetRequest::GetLockToken
const Aws::String & GetLockToken() const
Definition: UpdateIPSetRequest.h:462
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:181
Aws::WAFV2::Model::UpdateIPSetRequest::WithLockToken
UpdateIPSetRequest & WithLockToken(Aws::String &&value)
Definition: UpdateIPSetRequest.h:534
AWSString.h
Aws::WAFV2::Model::UpdateIPSetRequest::SetLockToken
void SetLockToken(const Aws::String &value)
Definition: UpdateIPSetRequest.h:486
Aws::WAFV2::Model::UpdateIPSetRequest::WithLockToken
UpdateIPSetRequest & WithLockToken(const char *value)
Definition: UpdateIPSetRequest.h:546
Aws::WAFV2::Model::UpdateIPSetRequest::WithDescription
UpdateIPSetRequest & WithDescription(const char *value)
Definition: UpdateIPSetRequest.h:250
Aws::WAFV2::Model::UpdateIPSetRequest::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: UpdateIPSetRequest.h:108
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:195
Aws::WAFV2::Model::UpdateIPSetRequest::IdHasBeenSet
bool IdHasBeenSet() const
Definition: UpdateIPSetRequest.h:167
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:220
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::UpdateIPSetRequest::AddAddresses
UpdateIPSetRequest & AddAddresses(Aws::String &&value)
Definition: UpdateIPSetRequest.h:427
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:317
Aws::WAFV2::Model::UpdateIPSetRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateIPSetRequest.h:49