AWS SDK for C++  0.12.9
AWS SDK for C++
UpdateXssMatchSetRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/waf/WAF_EXPORTS.h>
17 #include <aws/waf/WAFRequest.h>
21 
22 namespace Aws
23 {
24 namespace WAF
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
45  inline const Aws::String& GetXssMatchSetId() const{ return m_xssMatchSetId; }
46 
52  inline void SetXssMatchSetId(const Aws::String& value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId = value; }
53 
59  inline void SetXssMatchSetId(Aws::String&& value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId = value; }
60 
66  inline void SetXssMatchSetId(const char* value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId.assign(value); }
67 
73  inline UpdateXssMatchSetRequest& WithXssMatchSetId(const Aws::String& value) { SetXssMatchSetId(value); return *this;}
74 
80  inline UpdateXssMatchSetRequest& WithXssMatchSetId(Aws::String&& value) { SetXssMatchSetId(value); return *this;}
81 
87  inline UpdateXssMatchSetRequest& WithXssMatchSetId(const char* value) { SetXssMatchSetId(value); return *this;}
88 
92  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
93 
97  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
98 
102  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
103 
107  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
108 
112  inline UpdateXssMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
113 
117  inline UpdateXssMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(value); return *this;}
118 
122  inline UpdateXssMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
123 
133  inline const Aws::Vector<XssMatchSetUpdate>& GetUpdates() const{ return m_updates; }
134 
144  inline void SetUpdates(const Aws::Vector<XssMatchSetUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
145 
155  inline void SetUpdates(Aws::Vector<XssMatchSetUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = value; }
156 
166  inline UpdateXssMatchSetRequest& WithUpdates(const Aws::Vector<XssMatchSetUpdate>& value) { SetUpdates(value); return *this;}
167 
177  inline UpdateXssMatchSetRequest& WithUpdates(Aws::Vector<XssMatchSetUpdate>&& value) { SetUpdates(value); return *this;}
178 
188  inline UpdateXssMatchSetRequest& AddUpdates(const XssMatchSetUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
189 
199  inline UpdateXssMatchSetRequest& AddUpdates(XssMatchSetUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
200 
201  private:
202  Aws::String m_xssMatchSetId;
203  bool m_xssMatchSetIdHasBeenSet;
204  Aws::String m_changeToken;
205  bool m_changeTokenHasBeenSet;
207  bool m_updatesHasBeenSet;
208  };
209 
210 } // namespace Model
211 } // namespace WAF
212 } // namespace Aws
void SetUpdates(const Aws::Vector< XssMatchSetUpdate > &value)
UpdateXssMatchSetRequest & WithChangeToken(Aws::String &&value)
UpdateXssMatchSetRequest & WithChangeToken(const Aws::String &value)
UpdateXssMatchSetRequest & AddUpdates(const XssMatchSetUpdate &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
UpdateXssMatchSetRequest & WithXssMatchSetId(const char *value)
void SetXssMatchSetId(const Aws::String &value)
UpdateXssMatchSetRequest & WithUpdates(const Aws::Vector< XssMatchSetUpdate > &value)
void SetUpdates(Aws::Vector< XssMatchSetUpdate > &&value)
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:34
UpdateXssMatchSetRequest & WithXssMatchSetId(Aws::String &&value)
const Aws::Vector< XssMatchSetUpdate > & GetUpdates() const
UpdateXssMatchSetRequest & WithXssMatchSetId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateXssMatchSetRequest & WithChangeToken(const char *value)
UpdateXssMatchSetRequest & WithUpdates(Aws::Vector< XssMatchSetUpdate > &&value)
UpdateXssMatchSetRequest & AddUpdates(XssMatchSetUpdate &&value)
JSON (JavaScript Object Notation).