AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 CreateIPSetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
64 inline Scope GetScope() const { return m_scope; }
65 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
66 inline void SetScope(Scope value) { m_scopeHasBeenSet = true; m_scope = value; }
67 inline CreateIPSetRequest& WithScope(Scope value) { SetScope(value); return *this;}
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template<typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
78 template<typename DescriptionT = Aws::String>
79 CreateIPSetRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
81
83
87 inline IPAddressVersion GetIPAddressVersion() const { return m_iPAddressVersion; }
88 inline bool IPAddressVersionHasBeenSet() const { return m_iPAddressVersionHasBeenSet; }
89 inline void SetIPAddressVersion(IPAddressVersion value) { m_iPAddressVersionHasBeenSet = true; m_iPAddressVersion = value; }
92
94
119 inline const Aws::Vector<Aws::String>& GetAddresses() const { return m_addresses; }
120 inline bool AddressesHasBeenSet() const { return m_addressesHasBeenSet; }
121 template<typename AddressesT = Aws::Vector<Aws::String>>
122 void SetAddresses(AddressesT&& value) { m_addressesHasBeenSet = true; m_addresses = std::forward<AddressesT>(value); }
123 template<typename AddressesT = Aws::Vector<Aws::String>>
124 CreateIPSetRequest& WithAddresses(AddressesT&& value) { SetAddresses(std::forward<AddressesT>(value)); return *this;}
125 template<typename AddressesT = Aws::String>
126 CreateIPSetRequest& AddAddresses(AddressesT&& value) { m_addressesHasBeenSet = true; m_addresses.emplace_back(std::forward<AddressesT>(value)); return *this; }
128
130
133 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
134 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
135 template<typename TagsT = Aws::Vector<Tag>>
136 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
137 template<typename TagsT = Aws::Vector<Tag>>
138 CreateIPSetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
139 template<typename TagsT = Tag>
140 CreateIPSetRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
142 private:
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
147 Scope m_scope{Scope::NOT_SET};
148 bool m_scopeHasBeenSet = false;
149
150 Aws::String m_description;
151 bool m_descriptionHasBeenSet = false;
152
154 bool m_iPAddressVersionHasBeenSet = false;
155
156 Aws::Vector<Aws::String> m_addresses;
157 bool m_addressesHasBeenSet = false;
158
159 Aws::Vector<Tag> m_tags;
160 bool m_tagsHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace WAFV2
165} // namespace Aws
const Aws::String & GetName() const
void SetDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetAddresses() const
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Tag > & GetTags() const
AWS_WAFV2_API Aws::String SerializePayload() const override
IPAddressVersion GetIPAddressVersion() const
CreateIPSetRequest & WithAddresses(AddressesT &&value)
CreateIPSetRequest & WithTags(TagsT &&value)
CreateIPSetRequest & WithDescription(DescriptionT &&value)
void SetIPAddressVersion(IPAddressVersion value)
const Aws::String & GetDescription() const
CreateIPSetRequest & AddTags(TagsT &&value)
AWS_WAFV2_API CreateIPSetRequest()=default
virtual const char * GetServiceRequestName() const override
CreateIPSetRequest & WithIPAddressVersion(IPAddressVersion value)
CreateIPSetRequest & AddAddresses(AddressesT &&value)
CreateIPSetRequest & WithScope(Scope value)
CreateIPSetRequest & WithName(NameT &&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