AWS SDK for C++  1.9.72
AWS SDK for C++
UpdateIPSetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/waf/WAF_EXPORTS.h>
8 #include <aws/waf/WAFRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace WAF
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 
44  inline const Aws::String& GetIPSetId() const{ return m_iPSetId; }
45 
51  inline bool IPSetIdHasBeenSet() const { return m_iPSetIdHasBeenSet; }
52 
58  inline void SetIPSetId(const Aws::String& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = value; }
59 
65  inline void SetIPSetId(Aws::String&& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = std::move(value); }
66 
72  inline void SetIPSetId(const char* value) { m_iPSetIdHasBeenSet = true; m_iPSetId.assign(value); }
73 
79  inline UpdateIPSetRequest& WithIPSetId(const Aws::String& value) { SetIPSetId(value); return *this;}
80 
86  inline UpdateIPSetRequest& WithIPSetId(Aws::String&& value) { SetIPSetId(std::move(value)); return *this;}
87 
93  inline UpdateIPSetRequest& WithIPSetId(const char* value) { SetIPSetId(value); return *this;}
94 
95 
99  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
100 
104  inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
105 
109  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
110 
114  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
115 
119  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
120 
124  inline UpdateIPSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
125 
129  inline UpdateIPSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
130 
134  inline UpdateIPSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
135 
136 
145  inline const Aws::Vector<IPSetUpdate>& GetUpdates() const{ return m_updates; }
146 
155  inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
156 
165  inline void SetUpdates(const Aws::Vector<IPSetUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
166 
175  inline void SetUpdates(Aws::Vector<IPSetUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
176 
185  inline UpdateIPSetRequest& WithUpdates(const Aws::Vector<IPSetUpdate>& value) { SetUpdates(value); return *this;}
186 
195  inline UpdateIPSetRequest& WithUpdates(Aws::Vector<IPSetUpdate>&& value) { SetUpdates(std::move(value)); return *this;}
196 
205  inline UpdateIPSetRequest& AddUpdates(const IPSetUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
206 
215  inline UpdateIPSetRequest& AddUpdates(IPSetUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
216 
217  private:
218 
219  Aws::String m_iPSetId;
220  bool m_iPSetIdHasBeenSet;
221 
222  Aws::String m_changeToken;
223  bool m_changeTokenHasBeenSet;
224 
225  Aws::Vector<IPSetUpdate> m_updates;
226  bool m_updatesHasBeenSet;
227  };
228 
229 } // namespace Model
230 } // namespace WAF
231 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAF::Model::UpdateIPSetRequest::SetIPSetId
void SetIPSetId(const char *value)
Definition: UpdateIPSetRequest.h:72
Aws::WAF::Model::UpdateIPSetRequest::WithUpdates
UpdateIPSetRequest & WithUpdates(Aws::Vector< IPSetUpdate > &&value)
Definition: UpdateIPSetRequest.h:195
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::WAF::Model::UpdateIPSetRequest::GetIPSetId
const Aws::String & GetIPSetId() const
Definition: UpdateIPSetRequest.h:44
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAF::Model::UpdateIPSetRequest::SetUpdates
void SetUpdates(const Aws::Vector< IPSetUpdate > &value)
Definition: UpdateIPSetRequest.h:165
Aws::WAF::Model::UpdateIPSetRequest::AddUpdates
UpdateIPSetRequest & AddUpdates(IPSetUpdate &&value)
Definition: UpdateIPSetRequest.h:215
Aws::WAF::Model::UpdateIPSetRequest::WithChangeToken
UpdateIPSetRequest & WithChangeToken(Aws::String &&value)
Definition: UpdateIPSetRequest.h:129
AWSVector.h
Aws::WAF::Model::UpdateIPSetRequest::UpdatesHasBeenSet
bool UpdatesHasBeenSet() const
Definition: UpdateIPSetRequest.h:155
Aws::WAF::Model::UpdateIPSetRequest::WithIPSetId
UpdateIPSetRequest & WithIPSetId(Aws::String &&value)
Definition: UpdateIPSetRequest.h:86
Aws::WAF::Model::UpdateIPSetRequest::WithUpdates
UpdateIPSetRequest & WithUpdates(const Aws::Vector< IPSetUpdate > &value)
Definition: UpdateIPSetRequest.h:185
Aws::WAF::Model::UpdateIPSetRequest::WithChangeToken
UpdateIPSetRequest & WithChangeToken(const Aws::String &value)
Definition: UpdateIPSetRequest.h:124
Aws::WAF::Model::UpdateIPSetRequest::UpdateIPSetRequest
UpdateIPSetRequest()
Aws::WAF::Model::UpdateIPSetRequest::SetChangeToken
void SetChangeToken(Aws::String &&value)
Definition: UpdateIPSetRequest.h:114
Aws::WAF::Model::UpdateIPSetRequest::SetIPSetId
void SetIPSetId(const Aws::String &value)
Definition: UpdateIPSetRequest.h:58
Aws::WAF::Model::UpdateIPSetRequest::ChangeTokenHasBeenSet
bool ChangeTokenHasBeenSet() const
Definition: UpdateIPSetRequest.h:104
Aws::WAF::Model::UpdateIPSetRequest::AddUpdates
UpdateIPSetRequest & AddUpdates(const IPSetUpdate &value)
Definition: UpdateIPSetRequest.h:205
Aws::WAF::Model::UpdateIPSetRequest
Definition: UpdateIPSetRequest.h:24
IPSetUpdate.h
Aws::WAF::Model::UpdateIPSetRequest::SetIPSetId
void SetIPSetId(Aws::String &&value)
Definition: UpdateIPSetRequest.h:65
Aws::WAF::Model::UpdateIPSetRequest::SetChangeToken
void SetChangeToken(const Aws::String &value)
Definition: UpdateIPSetRequest.h:109
Aws::WAF::Model::IPSetUpdate
Definition: IPSetUpdate.h:42
Aws::WAF::Model::UpdateIPSetRequest::GetUpdates
const Aws::Vector< IPSetUpdate > & GetUpdates() const
Definition: UpdateIPSetRequest.h:145
AWSString.h
Aws::WAF::Model::UpdateIPSetRequest::WithIPSetId
UpdateIPSetRequest & WithIPSetId(const char *value)
Definition: UpdateIPSetRequest.h:93
Aws::WAF::Model::UpdateIPSetRequest::WithChangeToken
UpdateIPSetRequest & WithChangeToken(const char *value)
Definition: UpdateIPSetRequest.h:134
WAF_EXPORTS.h
WAFRequest.h
Aws::WAF::Model::UpdateIPSetRequest::WithIPSetId
UpdateIPSetRequest & WithIPSetId(const Aws::String &value)
Definition: UpdateIPSetRequest.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAF::Model::UpdateIPSetRequest::GetChangeToken
const Aws::String & GetChangeToken() const
Definition: UpdateIPSetRequest.h:99
Aws::WAF::Model::UpdateIPSetRequest::IPSetIdHasBeenSet
bool IPSetIdHasBeenSet() const
Definition: UpdateIPSetRequest.h:51
Aws::WAF::Model::UpdateIPSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAF::Model::UpdateIPSetRequest::SetChangeToken
void SetChangeToken(const char *value)
Definition: UpdateIPSetRequest.h:119
Aws::WAF::Model::UpdateIPSetRequest::SetUpdates
void SetUpdates(Aws::Vector< IPSetUpdate > &&value)
Definition: UpdateIPSetRequest.h:175
Aws::WAF::WAFRequest
Definition: WAFRequest.h:17
Aws::WAF::Model::UpdateIPSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateIPSetRequest.h:32
Aws::WAF::Model::UpdateIPSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override