AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateIPSetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/waf/WAFRequest.h>
10#include <aws/waf/WAF_EXPORTS.h>
11#include <aws/waf/model/IPSetUpdate.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WAF {
17namespace Model {
18
22 public:
23 AWS_WAF_API UpdateIPSetRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateIPSet"; }
30
31 AWS_WAF_API Aws::String SerializePayload() const override;
32
34
36
41 inline const Aws::String& GetIPSetId() const { return m_iPSetId; }
42 inline bool IPSetIdHasBeenSet() const { return m_iPSetIdHasBeenSet; }
43 template <typename IPSetIdT = Aws::String>
44 void SetIPSetId(IPSetIdT&& value) {
45 m_iPSetIdHasBeenSet = true;
46 m_iPSetId = std::forward<IPSetIdT>(value);
47 }
48 template <typename IPSetIdT = Aws::String>
49 UpdateIPSetRequest& WithIPSetId(IPSetIdT&& value) {
50 SetIPSetId(std::forward<IPSetIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetChangeToken() const { return m_changeToken; }
60 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
61 template <typename ChangeTokenT = Aws::String>
62 void SetChangeToken(ChangeTokenT&& value) {
63 m_changeTokenHasBeenSet = true;
64 m_changeToken = std::forward<ChangeTokenT>(value);
65 }
66 template <typename ChangeTokenT = Aws::String>
67 UpdateIPSetRequest& WithChangeToken(ChangeTokenT&& value) {
68 SetChangeToken(std::forward<ChangeTokenT>(value));
69 return *this;
70 }
72
74
82 inline const Aws::Vector<IPSetUpdate>& GetUpdates() const { return m_updates; }
83 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
84 template <typename UpdatesT = Aws::Vector<IPSetUpdate>>
85 void SetUpdates(UpdatesT&& value) {
86 m_updatesHasBeenSet = true;
87 m_updates = std::forward<UpdatesT>(value);
88 }
89 template <typename UpdatesT = Aws::Vector<IPSetUpdate>>
90 UpdateIPSetRequest& WithUpdates(UpdatesT&& value) {
91 SetUpdates(std::forward<UpdatesT>(value));
92 return *this;
93 }
94 template <typename UpdatesT = IPSetUpdate>
95 UpdateIPSetRequest& AddUpdates(UpdatesT&& value) {
96 m_updatesHasBeenSet = true;
97 m_updates.emplace_back(std::forward<UpdatesT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_iPSetId;
103
104 Aws::String m_changeToken;
105
106 Aws::Vector<IPSetUpdate> m_updates;
107 bool m_iPSetIdHasBeenSet = false;
108 bool m_changeTokenHasBeenSet = false;
109 bool m_updatesHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace WAF
114} // namespace Aws
AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateIPSetRequest & AddUpdates(UpdatesT &&value)
UpdateIPSetRequest & WithChangeToken(ChangeTokenT &&value)
const Aws::Vector< IPSetUpdate > & GetUpdates() const
AWS_WAF_API UpdateIPSetRequest()=default
AWS_WAF_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::String & GetChangeToken() const
void SetChangeToken(ChangeTokenT &&value)
UpdateIPSetRequest & WithIPSetId(IPSetIdT &&value)
UpdateIPSetRequest & WithUpdates(UpdatesT &&value)
const Aws::String & GetIPSetId() const
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