AWS SDK for C++  0.12.9
AWS SDK for C++
UpdateByteMatchSetRequest.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 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
44  inline const Aws::String& GetByteMatchSetId() const{ return m_byteMatchSetId; }
45 
51  inline void SetByteMatchSetId(const Aws::String& value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId = value; }
52 
58  inline void SetByteMatchSetId(Aws::String&& value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId = value; }
59 
65  inline void SetByteMatchSetId(const char* value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId.assign(value); }
66 
72  inline UpdateByteMatchSetRequest& WithByteMatchSetId(const Aws::String& value) { SetByteMatchSetId(value); return *this;}
73 
79  inline UpdateByteMatchSetRequest& WithByteMatchSetId(Aws::String&& value) { SetByteMatchSetId(value); return *this;}
80 
86  inline UpdateByteMatchSetRequest& WithByteMatchSetId(const char* value) { SetByteMatchSetId(value); return *this;}
87 
91  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
92 
96  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
97 
101  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
102 
106  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
107 
111  inline UpdateByteMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
112 
116  inline UpdateByteMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(value); return *this;}
117 
121  inline UpdateByteMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
122 
133  inline const Aws::Vector<ByteMatchSetUpdate>& GetUpdates() const{ return m_updates; }
134 
145  inline void SetUpdates(const Aws::Vector<ByteMatchSetUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
146 
157  inline void SetUpdates(Aws::Vector<ByteMatchSetUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = value; }
158 
169  inline UpdateByteMatchSetRequest& WithUpdates(const Aws::Vector<ByteMatchSetUpdate>& value) { SetUpdates(value); return *this;}
170 
181  inline UpdateByteMatchSetRequest& WithUpdates(Aws::Vector<ByteMatchSetUpdate>&& value) { SetUpdates(value); return *this;}
182 
193  inline UpdateByteMatchSetRequest& AddUpdates(const ByteMatchSetUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
194 
205  inline UpdateByteMatchSetRequest& AddUpdates(ByteMatchSetUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
206 
207  private:
208  Aws::String m_byteMatchSetId;
209  bool m_byteMatchSetIdHasBeenSet;
210  Aws::String m_changeToken;
211  bool m_changeTokenHasBeenSet;
213  bool m_updatesHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace WAF
218 } // namespace Aws
UpdateByteMatchSetRequest & WithByteMatchSetId(const char *value)
UpdateByteMatchSetRequest & AddUpdates(ByteMatchSetUpdate &&value)
UpdateByteMatchSetRequest & WithUpdates(Aws::Vector< ByteMatchSetUpdate > &&value)
UpdateByteMatchSetRequest & WithChangeToken(const char *value)
UpdateByteMatchSetRequest & AddUpdates(const ByteMatchSetUpdate &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
UpdateByteMatchSetRequest & WithChangeToken(const Aws::String &value)
const Aws::Vector< ByteMatchSetUpdate > & GetUpdates() const
UpdateByteMatchSetRequest & WithByteMatchSetId(Aws::String &&value)
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:34
void SetUpdates(Aws::Vector< ByteMatchSetUpdate > &&value)
UpdateByteMatchSetRequest & WithUpdates(const Aws::Vector< ByteMatchSetUpdate > &value)
UpdateByteMatchSetRequest & WithByteMatchSetId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetUpdates(const Aws::Vector< ByteMatchSetUpdate > &value)
UpdateByteMatchSetRequest & WithChangeToken(Aws::String &&value)
JSON (JavaScript Object Notation).