AWS SDK for C++  1.9.72
AWS SDK for C++
UpdateXssMatchSetRequest.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 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "UpdateXssMatchSet"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
47  inline const Aws::String& GetXssMatchSetId() const{ return m_xssMatchSetId; }
48 
54  inline bool XssMatchSetIdHasBeenSet() const { return m_xssMatchSetIdHasBeenSet; }
55 
61  inline void SetXssMatchSetId(const Aws::String& value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId = value; }
62 
68  inline void SetXssMatchSetId(Aws::String&& value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId = std::move(value); }
69 
75  inline void SetXssMatchSetId(const char* value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId.assign(value); }
76 
82  inline UpdateXssMatchSetRequest& WithXssMatchSetId(const Aws::String& value) { SetXssMatchSetId(value); return *this;}
83 
89  inline UpdateXssMatchSetRequest& WithXssMatchSetId(Aws::String&& value) { SetXssMatchSetId(std::move(value)); return *this;}
90 
96  inline UpdateXssMatchSetRequest& WithXssMatchSetId(const char* value) { SetXssMatchSetId(value); return *this;}
97 
98 
102  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
103 
107  inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
108 
112  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
113 
117  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
118 
122  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
123 
127  inline UpdateXssMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
128 
132  inline UpdateXssMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
133 
137  inline UpdateXssMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
138 
139 
149  inline const Aws::Vector<XssMatchSetUpdate>& GetUpdates() const{ return m_updates; }
150 
160  inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
161 
171  inline void SetUpdates(const Aws::Vector<XssMatchSetUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
172 
182  inline void SetUpdates(Aws::Vector<XssMatchSetUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
183 
193  inline UpdateXssMatchSetRequest& WithUpdates(const Aws::Vector<XssMatchSetUpdate>& value) { SetUpdates(value); return *this;}
194 
204  inline UpdateXssMatchSetRequest& WithUpdates(Aws::Vector<XssMatchSetUpdate>&& value) { SetUpdates(std::move(value)); return *this;}
205 
215  inline UpdateXssMatchSetRequest& AddUpdates(const XssMatchSetUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
216 
226  inline UpdateXssMatchSetRequest& AddUpdates(XssMatchSetUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
227 
228  private:
229 
230  Aws::String m_xssMatchSetId;
231  bool m_xssMatchSetIdHasBeenSet;
232 
233  Aws::String m_changeToken;
234  bool m_changeTokenHasBeenSet;
235 
237  bool m_updatesHasBeenSet;
238  };
239 
240 } // namespace Model
241 } // namespace WAF
242 } // namespace Aws
Aws::WAF::Model::UpdateXssMatchSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateXssMatchSetRequest.h:35
XssMatchSetUpdate.h
Aws::WAF::Model::UpdateXssMatchSetRequest::UpdateXssMatchSetRequest
UpdateXssMatchSetRequest()
Aws::WAF::Model::UpdateXssMatchSetRequest::GetChangeToken
const Aws::String & GetChangeToken() const
Definition: UpdateXssMatchSetRequest.h:102
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAF::Model::XssMatchSetUpdate
Definition: XssMatchSetUpdate.h:43
Aws::WAF::Model::UpdateXssMatchSetRequest::SetUpdates
void SetUpdates(const Aws::Vector< XssMatchSetUpdate > &value)
Definition: UpdateXssMatchSetRequest.h:171
Aws::WAF::Model::UpdateXssMatchSetRequest::WithUpdates
UpdateXssMatchSetRequest & WithUpdates(Aws::Vector< XssMatchSetUpdate > &&value)
Definition: UpdateXssMatchSetRequest.h:204
Aws::WAF::Model::UpdateXssMatchSetRequest::SetXssMatchSetId
void SetXssMatchSetId(Aws::String &&value)
Definition: UpdateXssMatchSetRequest.h:68
Aws::WAF::Model::UpdateXssMatchSetRequest::WithChangeToken
UpdateXssMatchSetRequest & WithChangeToken(const Aws::String &value)
Definition: UpdateXssMatchSetRequest.h:127
Aws::WAF::Model::UpdateXssMatchSetRequest::SetXssMatchSetId
void SetXssMatchSetId(const char *value)
Definition: UpdateXssMatchSetRequest.h:75
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::WAF::Model::UpdateXssMatchSetRequest::SetChangeToken
void SetChangeToken(const Aws::String &value)
Definition: UpdateXssMatchSetRequest.h:112
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAF::Model::UpdateXssMatchSetRequest::XssMatchSetIdHasBeenSet
bool XssMatchSetIdHasBeenSet() const
Definition: UpdateXssMatchSetRequest.h:54
Aws::WAF::Model::UpdateXssMatchSetRequest::WithXssMatchSetId
UpdateXssMatchSetRequest & WithXssMatchSetId(Aws::String &&value)
Definition: UpdateXssMatchSetRequest.h:89
AWSVector.h
Aws::WAF::Model::UpdateXssMatchSetRequest::WithXssMatchSetId
UpdateXssMatchSetRequest & WithXssMatchSetId(const Aws::String &value)
Definition: UpdateXssMatchSetRequest.h:82
Aws::WAF::Model::UpdateXssMatchSetRequest::WithXssMatchSetId
UpdateXssMatchSetRequest & WithXssMatchSetId(const char *value)
Definition: UpdateXssMatchSetRequest.h:96
Aws::WAF::Model::UpdateXssMatchSetRequest::UpdatesHasBeenSet
bool UpdatesHasBeenSet() const
Definition: UpdateXssMatchSetRequest.h:160
Aws::WAF::Model::UpdateXssMatchSetRequest::SetUpdates
void SetUpdates(Aws::Vector< XssMatchSetUpdate > &&value)
Definition: UpdateXssMatchSetRequest.h:182
Aws::WAF::Model::UpdateXssMatchSetRequest::GetXssMatchSetId
const Aws::String & GetXssMatchSetId() const
Definition: UpdateXssMatchSetRequest.h:47
Aws::WAF::Model::UpdateXssMatchSetRequest::SetChangeToken
void SetChangeToken(const char *value)
Definition: UpdateXssMatchSetRequest.h:122
AWSString.h
Aws::WAF::Model::UpdateXssMatchSetRequest::WithChangeToken
UpdateXssMatchSetRequest & WithChangeToken(const char *value)
Definition: UpdateXssMatchSetRequest.h:137
Aws::WAF::Model::UpdateXssMatchSetRequest
Definition: UpdateXssMatchSetRequest.h:27
Aws::WAF::Model::UpdateXssMatchSetRequest::AddUpdates
UpdateXssMatchSetRequest & AddUpdates(XssMatchSetUpdate &&value)
Definition: UpdateXssMatchSetRequest.h:226
WAF_EXPORTS.h
Aws::WAF::Model::UpdateXssMatchSetRequest::GetUpdates
const Aws::Vector< XssMatchSetUpdate > & GetUpdates() const
Definition: UpdateXssMatchSetRequest.h:149
Aws::WAF::Model::UpdateXssMatchSetRequest::SetXssMatchSetId
void SetXssMatchSetId(const Aws::String &value)
Definition: UpdateXssMatchSetRequest.h:61
WAFRequest.h
Aws::WAF::Model::UpdateXssMatchSetRequest::ChangeTokenHasBeenSet
bool ChangeTokenHasBeenSet() const
Definition: UpdateXssMatchSetRequest.h:107
Aws
Definition: AccessManagementClient.h:15
Aws::WAF::Model::UpdateXssMatchSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAF::Model::UpdateXssMatchSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAF::Model::UpdateXssMatchSetRequest::AddUpdates
UpdateXssMatchSetRequest & AddUpdates(const XssMatchSetUpdate &value)
Definition: UpdateXssMatchSetRequest.h:215
Aws::WAF::Model::UpdateXssMatchSetRequest::SetChangeToken
void SetChangeToken(Aws::String &&value)
Definition: UpdateXssMatchSetRequest.h:117
Aws::WAF::WAFRequest
Definition: WAFRequest.h:17
Aws::WAF::Model::UpdateXssMatchSetRequest::WithUpdates
UpdateXssMatchSetRequest & WithUpdates(const Aws::Vector< XssMatchSetUpdate > &value)
Definition: UpdateXssMatchSetRequest.h:193
Aws::WAF::Model::UpdateXssMatchSetRequest::WithChangeToken
UpdateXssMatchSetRequest & WithChangeToken(Aws::String &&value)
Definition: UpdateXssMatchSetRequest.h:132