AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateIPSetRequest.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/wafv2/model/IPAddressVersion.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/wafv2/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace WAFV2
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_WAFV2_API CreateIPSetRequest();
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_WAFV2_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline CreateIPSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline CreateIPSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline CreateIPSetRequest& WithName(const char* value) { SetName(value); return *this;}
55
57
68 inline const Scope& GetScope() const{ return m_scope; }
69 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
70 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
71 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
72 inline CreateIPSetRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
73 inline CreateIPSetRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
75
77
80 inline const Aws::String& GetDescription() const{ return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
83 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
84 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
85 inline CreateIPSetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
86 inline CreateIPSetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
87 inline CreateIPSetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
89
91
95 inline const IPAddressVersion& GetIPAddressVersion() const{ return m_iPAddressVersion; }
96 inline bool IPAddressVersionHasBeenSet() const { return m_iPAddressVersionHasBeenSet; }
97 inline void SetIPAddressVersion(const IPAddressVersion& value) { m_iPAddressVersionHasBeenSet = true; m_iPAddressVersion = value; }
98 inline void SetIPAddressVersion(IPAddressVersion&& value) { m_iPAddressVersionHasBeenSet = true; m_iPAddressVersion = std::move(value); }
99 inline CreateIPSetRequest& WithIPAddressVersion(const IPAddressVersion& value) { SetIPAddressVersion(value); return *this;}
100 inline CreateIPSetRequest& WithIPAddressVersion(IPAddressVersion&& value) { SetIPAddressVersion(std::move(value)); return *this;}
102
104
129 inline const Aws::Vector<Aws::String>& GetAddresses() const{ return m_addresses; }
130 inline bool AddressesHasBeenSet() const { return m_addressesHasBeenSet; }
131 inline void SetAddresses(const Aws::Vector<Aws::String>& value) { m_addressesHasBeenSet = true; m_addresses = value; }
132 inline void SetAddresses(Aws::Vector<Aws::String>&& value) { m_addressesHasBeenSet = true; m_addresses = std::move(value); }
133 inline CreateIPSetRequest& WithAddresses(const Aws::Vector<Aws::String>& value) { SetAddresses(value); return *this;}
134 inline CreateIPSetRequest& WithAddresses(Aws::Vector<Aws::String>&& value) { SetAddresses(std::move(value)); return *this;}
135 inline CreateIPSetRequest& AddAddresses(const Aws::String& value) { m_addressesHasBeenSet = true; m_addresses.push_back(value); return *this; }
136 inline CreateIPSetRequest& AddAddresses(Aws::String&& value) { m_addressesHasBeenSet = true; m_addresses.push_back(std::move(value)); return *this; }
137 inline CreateIPSetRequest& AddAddresses(const char* value) { m_addressesHasBeenSet = true; m_addresses.push_back(value); return *this; }
139
141
144 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
147 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
148 inline CreateIPSetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
149 inline CreateIPSetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
150 inline CreateIPSetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
151 inline CreateIPSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
153 private:
154
155 Aws::String m_name;
156 bool m_nameHasBeenSet = false;
157
158 Scope m_scope;
159 bool m_scopeHasBeenSet = false;
160
161 Aws::String m_description;
162 bool m_descriptionHasBeenSet = false;
163
164 IPAddressVersion m_iPAddressVersion;
165 bool m_iPAddressVersionHasBeenSet = false;
166
167 Aws::Vector<Aws::String> m_addresses;
168 bool m_addressesHasBeenSet = false;
169
170 Aws::Vector<Tag> m_tags;
171 bool m_tagsHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace WAFV2
176} // namespace Aws
const Aws::String & GetName() const
const Aws::Vector< Aws::String > & GetAddresses() const
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Tag > & GetTags() const
CreateIPSetRequest & WithAddresses(Aws::Vector< Aws::String > &&value)
CreateIPSetRequest & WithName(const Aws::String &value)
AWS_WAFV2_API Aws::String SerializePayload() const override
CreateIPSetRequest & AddTags(const Tag &value)
CreateIPSetRequest & WithName(const char *value)
CreateIPSetRequest & WithIPAddressVersion(const IPAddressVersion &value)
CreateIPSetRequest & WithScope(const Scope &value)
CreateIPSetRequest & WithDescription(const Aws::String &value)
CreateIPSetRequest & WithScope(Scope &&value)
void SetDescription(const Aws::String &value)
void SetIPAddressVersion(IPAddressVersion &&value)
CreateIPSetRequest & WithDescription(const char *value)
CreateIPSetRequest & AddTags(Tag &&value)
CreateIPSetRequest & WithTags(Aws::Vector< Tag > &&value)
void SetAddresses(const Aws::Vector< Aws::String > &value)
const Aws::String & GetDescription() const
CreateIPSetRequest & AddAddresses(Aws::String &&value)
CreateIPSetRequest & WithAddresses(const Aws::Vector< Aws::String > &value)
CreateIPSetRequest & AddAddresses(const char *value)
CreateIPSetRequest & WithTags(const Aws::Vector< Tag > &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateIPSetRequest & WithIPAddressVersion(IPAddressVersion &&value)
void SetDescription(Aws::String &&value)
void SetAddresses(Aws::Vector< Aws::String > &&value)
CreateIPSetRequest & WithName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateIPSetRequest & AddAddresses(const Aws::String &value)
const IPAddressVersion & GetIPAddressVersion() const
void SetTags(Aws::Vector< Tag > &&value)
void SetName(const Aws::String &value)
CreateIPSetRequest & WithDescription(Aws::String &&value)
void SetIPAddressVersion(const IPAddressVersion &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