AWS SDK for C++  1.9.40
AWS SDK for C++
CreateIPSetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/wafv2/model/Scope.h>
13 #include <aws/wafv2/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace WAFV2
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateIPSet"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
51  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 
57  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 
63  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 
69  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70 
75  inline CreateIPSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
76 
81  inline CreateIPSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
82 
87  inline CreateIPSetRequest& WithName(const char* value) { SetName(value); return *this;}
88 
89 
99  inline const Scope& GetScope() const{ return m_scope; }
100 
110  inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
111 
121  inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
122 
132  inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
133 
143  inline CreateIPSetRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
144 
154  inline CreateIPSetRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
155 
156 
160  inline const Aws::String& GetDescription() const{ return m_description; }
161 
165  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
166 
170  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
171 
175  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
176 
180  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
181 
185  inline CreateIPSetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
186 
190  inline CreateIPSetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
191 
195  inline CreateIPSetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
196 
197 
201  inline const IPAddressVersion& GetIPAddressVersion() const{ return m_iPAddressVersion; }
202 
206  inline bool IPAddressVersionHasBeenSet() const { return m_iPAddressVersionHasBeenSet; }
207 
211  inline void SetIPAddressVersion(const IPAddressVersion& value) { m_iPAddressVersionHasBeenSet = true; m_iPAddressVersion = value; }
212 
216  inline void SetIPAddressVersion(IPAddressVersion&& value) { m_iPAddressVersionHasBeenSet = true; m_iPAddressVersion = std::move(value); }
217 
221  inline CreateIPSetRequest& WithIPAddressVersion(const IPAddressVersion& value) { SetIPAddressVersion(value); return *this;}
222 
226  inline CreateIPSetRequest& WithIPAddressVersion(IPAddressVersion&& value) { SetIPAddressVersion(std::move(value)); return *this;}
227 
228 
249  inline const Aws::Vector<Aws::String>& GetAddresses() const{ return m_addresses; }
250 
271  inline bool AddressesHasBeenSet() const { return m_addressesHasBeenSet; }
272 
293  inline void SetAddresses(const Aws::Vector<Aws::String>& value) { m_addressesHasBeenSet = true; m_addresses = value; }
294 
315  inline void SetAddresses(Aws::Vector<Aws::String>&& value) { m_addressesHasBeenSet = true; m_addresses = std::move(value); }
316 
337  inline CreateIPSetRequest& WithAddresses(const Aws::Vector<Aws::String>& value) { SetAddresses(value); return *this;}
338 
359  inline CreateIPSetRequest& WithAddresses(Aws::Vector<Aws::String>&& value) { SetAddresses(std::move(value)); return *this;}
360 
381  inline CreateIPSetRequest& AddAddresses(const Aws::String& value) { m_addressesHasBeenSet = true; m_addresses.push_back(value); return *this; }
382 
403  inline CreateIPSetRequest& AddAddresses(Aws::String&& value) { m_addressesHasBeenSet = true; m_addresses.push_back(std::move(value)); return *this; }
404 
425  inline CreateIPSetRequest& AddAddresses(const char* value) { m_addressesHasBeenSet = true; m_addresses.push_back(value); return *this; }
426 
427 
431  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
432 
436  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
437 
441  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
442 
446  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
447 
451  inline CreateIPSetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
452 
456  inline CreateIPSetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
457 
461  inline CreateIPSetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
462 
466  inline CreateIPSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
467 
468  private:
469 
470  Aws::String m_name;
471  bool m_nameHasBeenSet;
472 
473  Scope m_scope;
474  bool m_scopeHasBeenSet;
475 
476  Aws::String m_description;
477  bool m_descriptionHasBeenSet;
478 
479  IPAddressVersion m_iPAddressVersion;
480  bool m_iPAddressVersionHasBeenSet;
481 
482  Aws::Vector<Aws::String> m_addresses;
483  bool m_addressesHasBeenSet;
484 
485  Aws::Vector<Tag> m_tags;
486  bool m_tagsHasBeenSet;
487  };
488 
489 } // namespace Model
490 } // namespace WAFV2
491 } // namespace Aws
Aws::WAFV2::Model::CreateIPSetRequest::SetScope
void SetScope(Scope &&value)
Definition: CreateIPSetRequest.h:132
Aws::WAFV2::Model::CreateIPSetRequest::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: CreateIPSetRequest.h:110
WAFV2Request.h
Aws::WAFV2::Model::CreateIPSetRequest::SetName
void SetName(const char *value)
Definition: CreateIPSetRequest.h:69
Scope.h
Aws::WAFV2::Model::CreateIPSetRequest::WithAddresses
CreateIPSetRequest & WithAddresses(Aws::Vector< Aws::String > &&value)
Definition: CreateIPSetRequest.h:359
Aws::WAFV2::Model::CreateIPSetRequest::WithAddresses
CreateIPSetRequest & WithAddresses(const Aws::Vector< Aws::String > &value)
Definition: CreateIPSetRequest.h:337
Aws::WAFV2::Model::CreateIPSetRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateIPSetRequest.h:57
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAFV2::Model::CreateIPSetRequest::SetIPAddressVersion
void SetIPAddressVersion(IPAddressVersion &&value)
Definition: CreateIPSetRequest.h:216
Aws::WAFV2::Model::CreateIPSetRequest::WithName
CreateIPSetRequest & WithName(const Aws::String &value)
Definition: CreateIPSetRequest.h:75
Aws::WAFV2::Model::CreateIPSetRequest::WithScope
CreateIPSetRequest & WithScope(const Scope &value)
Definition: CreateIPSetRequest.h:143
Aws::WAFV2::Model::CreateIPSetRequest::WithName
CreateIPSetRequest & WithName(Aws::String &&value)
Definition: CreateIPSetRequest.h:81
Aws::WAFV2::Model::CreateIPSetRequest::WithDescription
CreateIPSetRequest & WithDescription(const Aws::String &value)
Definition: CreateIPSetRequest.h:185
Aws::WAFV2::Model::CreateIPSetRequest::WithDescription
CreateIPSetRequest & WithDescription(const char *value)
Definition: CreateIPSetRequest.h:195
Aws::WAFV2::Model::CreateIPSetRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateIPSetRequest.h:160
IPAddressVersion.h
Aws::WAFV2::Model::CreateIPSetRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateIPSetRequest.h:63
Aws::WAFV2::Model::CreateIPSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAFV2::Model::CreateIPSetRequest::GetName
const Aws::String & GetName() const
Definition: CreateIPSetRequest.h:45
Aws::WAFV2::Model::CreateIPSetRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateIPSetRequest.h:180
Aws::WAFV2::Model::CreateIPSetRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateIPSetRequest.h:170
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
AWSVector.h
Aws::WAFV2::Model::CreateIPSetRequest::AddressesHasBeenSet
bool AddressesHasBeenSet() const
Definition: CreateIPSetRequest.h:271
Aws::WAFV2::Model::CreateIPSetRequest::WithIPAddressVersion
CreateIPSetRequest & WithIPAddressVersion(const IPAddressVersion &value)
Definition: CreateIPSetRequest.h:221
WAFV2_EXPORTS.h
Aws::WAFV2::Model::CreateIPSetRequest::IPAddressVersionHasBeenSet
bool IPAddressVersionHasBeenSet() const
Definition: CreateIPSetRequest.h:206
Aws::WAFV2::Model::CreateIPSetRequest::AddAddresses
CreateIPSetRequest & AddAddresses(Aws::String &&value)
Definition: CreateIPSetRequest.h:403
Aws::WAFV2::Model::CreateIPSetRequest::GetIPAddressVersion
const IPAddressVersion & GetIPAddressVersion() const
Definition: CreateIPSetRequest.h:201
Aws::WAFV2::WAFV2Request
Definition: WAFV2Request.h:17
Aws::WAFV2::Model::CreateIPSetRequest::AddAddresses
CreateIPSetRequest & AddAddresses(const char *value)
Definition: CreateIPSetRequest.h:425
Aws::WAFV2::Model::CreateIPSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateIPSetRequest.h:34
Aws::WAFV2::Model::CreateIPSetRequest
Definition: CreateIPSetRequest.h:26
Aws::WAFV2::Model::CreateIPSetRequest::SetAddresses
void SetAddresses(Aws::Vector< Aws::String > &&value)
Definition: CreateIPSetRequest.h:315
Aws::WAFV2::Model::CreateIPSetRequest::CreateIPSetRequest
CreateIPSetRequest()
Aws::WAFV2::Model::CreateIPSetRequest::SetIPAddressVersion
void SetIPAddressVersion(const IPAddressVersion &value)
Definition: CreateIPSetRequest.h:211
AWSString.h
Aws::WAFV2::Model::CreateIPSetRequest::WithTags
CreateIPSetRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateIPSetRequest.h:451
Aws::WAFV2::Model::CreateIPSetRequest::GetScope
const Scope & GetScope() const
Definition: CreateIPSetRequest.h:99
Aws::WAFV2::Model::CreateIPSetRequest::AddTags
CreateIPSetRequest & AddTags(Tag &&value)
Definition: CreateIPSetRequest.h:466
Aws::WAFV2::Model::CreateIPSetRequest::AddTags
CreateIPSetRequest & AddTags(const Tag &value)
Definition: CreateIPSetRequest.h:461
Aws::WAFV2::Model::CreateIPSetRequest::AddAddresses
CreateIPSetRequest & AddAddresses(const Aws::String &value)
Definition: CreateIPSetRequest.h:381
Aws::WAFV2::Model::CreateIPSetRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateIPSetRequest.h:51
Aws::WAFV2::Model::CreateIPSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAFV2::Model::CreateIPSetRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateIPSetRequest.h:165
Aws::WAFV2::Model::CreateIPSetRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateIPSetRequest.h:441
Aws::WAFV2::Model::CreateIPSetRequest::SetScope
void SetScope(const Scope &value)
Definition: CreateIPSetRequest.h:121
Aws::WAFV2::Model::CreateIPSetRequest::GetAddresses
const Aws::Vector< Aws::String > & GetAddresses() const
Definition: CreateIPSetRequest.h:249
Aws::WAFV2::Model::CreateIPSetRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateIPSetRequest.h:436
Aws::WAFV2::Model::CreateIPSetRequest::WithTags
CreateIPSetRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateIPSetRequest.h:456
Aws::WAFV2::Model::IPAddressVersion
IPAddressVersion
Definition: IPAddressVersion.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::CreateIPSetRequest::WithDescription
CreateIPSetRequest & WithDescription(Aws::String &&value)
Definition: CreateIPSetRequest.h:190
Tag.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::CreateIPSetRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateIPSetRequest.h:446
Aws::WAFV2::Model::Tag
Definition: Tag.h:41
Aws::WAFV2::Model::CreateIPSetRequest::WithName
CreateIPSetRequest & WithName(const char *value)
Definition: CreateIPSetRequest.h:87
Aws::WAFV2::Model::CreateIPSetRequest::WithIPAddressVersion
CreateIPSetRequest & WithIPAddressVersion(IPAddressVersion &&value)
Definition: CreateIPSetRequest.h:226
Aws::WAFV2::Model::Scope
Scope
Definition: Scope.h:17
Aws::WAFV2::Model::CreateIPSetRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateIPSetRequest.h:175
Aws::WAFV2::Model::CreateIPSetRequest::WithScope
CreateIPSetRequest & WithScope(Scope &&value)
Definition: CreateIPSetRequest.h:154
Aws::WAFV2::Model::CreateIPSetRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateIPSetRequest.h:431
Aws::WAFV2::Model::CreateIPSetRequest::SetAddresses
void SetAddresses(const Aws::Vector< Aws::String > &value)
Definition: CreateIPSetRequest.h:293