AWS SDK for C++  0.12.9
AWS SDK for C++
ByteMatchSet.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>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace WAF
31 {
32 namespace Model
33 {
34 
47  {
48  public:
49  ByteMatchSet();
50  ByteMatchSet(const Aws::Utils::Json::JsonValue& jsonValue);
51  ByteMatchSet& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
52  Aws::Utils::Json::JsonValue Jsonize() const;
53 
64  inline const Aws::String& GetByteMatchSetId() const{ return m_byteMatchSetId; }
65 
76  inline void SetByteMatchSetId(const Aws::String& value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId = value; }
77 
88  inline void SetByteMatchSetId(Aws::String&& value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId = value; }
89 
100  inline void SetByteMatchSetId(const char* value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId.assign(value); }
101 
112  inline ByteMatchSet& WithByteMatchSetId(const Aws::String& value) { SetByteMatchSetId(value); return *this;}
113 
124  inline ByteMatchSet& WithByteMatchSetId(Aws::String&& value) { SetByteMatchSetId(value); return *this;}
125 
136  inline ByteMatchSet& WithByteMatchSetId(const char* value) { SetByteMatchSetId(value); return *this;}
137 
142  inline const Aws::String& GetName() const{ return m_name; }
143 
148  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
149 
154  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
155 
160  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
161 
166  inline ByteMatchSet& WithName(const Aws::String& value) { SetName(value); return *this;}
167 
172  inline ByteMatchSet& WithName(Aws::String&& value) { SetName(value); return *this;}
173 
178  inline ByteMatchSet& WithName(const char* value) { SetName(value); return *this;}
179 
185  inline const Aws::Vector<ByteMatchTuple>& GetByteMatchTuples() const{ return m_byteMatchTuples; }
186 
192  inline void SetByteMatchTuples(const Aws::Vector<ByteMatchTuple>& value) { m_byteMatchTuplesHasBeenSet = true; m_byteMatchTuples = value; }
193 
199  inline void SetByteMatchTuples(Aws::Vector<ByteMatchTuple>&& value) { m_byteMatchTuplesHasBeenSet = true; m_byteMatchTuples = value; }
200 
206  inline ByteMatchSet& WithByteMatchTuples(const Aws::Vector<ByteMatchTuple>& value) { SetByteMatchTuples(value); return *this;}
207 
213  inline ByteMatchSet& WithByteMatchTuples(Aws::Vector<ByteMatchTuple>&& value) { SetByteMatchTuples(value); return *this;}
214 
220  inline ByteMatchSet& AddByteMatchTuples(const ByteMatchTuple& value) { m_byteMatchTuplesHasBeenSet = true; m_byteMatchTuples.push_back(value); return *this; }
221 
227  inline ByteMatchSet& AddByteMatchTuples(ByteMatchTuple&& value) { m_byteMatchTuplesHasBeenSet = true; m_byteMatchTuples.push_back(value); return *this; }
228 
229  private:
230  Aws::String m_byteMatchSetId;
231  bool m_byteMatchSetIdHasBeenSet;
232  Aws::String m_name;
233  bool m_nameHasBeenSet;
234  Aws::Vector<ByteMatchTuple> m_byteMatchTuples;
235  bool m_byteMatchTuplesHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace WAF
240 } // namespace Aws
void SetName(const char *value)
Definition: ByteMatchSet.h:160
ByteMatchSet & WithByteMatchSetId(const Aws::String &value)
Definition: ByteMatchSet.h:112
ByteMatchSet & AddByteMatchTuples(const ByteMatchTuple &value)
Definition: ByteMatchSet.h:220
void SetByteMatchSetId(const char *value)
Definition: ByteMatchSet.h:100
ByteMatchSet & WithName(const Aws::String &value)
Definition: ByteMatchSet.h:166
ByteMatchSet & WithByteMatchSetId(const char *value)
Definition: ByteMatchSet.h:136
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:34
void SetByteMatchSetId(const Aws::String &value)
Definition: ByteMatchSet.h:76
const Aws::Vector< ByteMatchTuple > & GetByteMatchTuples() const
Definition: ByteMatchSet.h:185
const Aws::String & GetName() const
Definition: ByteMatchSet.h:142
ByteMatchSet & WithByteMatchSetId(Aws::String &&value)
Definition: ByteMatchSet.h:124
const Aws::String & GetByteMatchSetId() const
Definition: ByteMatchSet.h:64
void SetByteMatchTuples(const Aws::Vector< ByteMatchTuple > &value)
Definition: ByteMatchSet.h:192
void SetName(const Aws::String &value)
Definition: ByteMatchSet.h:148
ByteMatchSet & WithByteMatchTuples(const Aws::Vector< ByteMatchTuple > &value)
Definition: ByteMatchSet.h:206
ByteMatchSet & WithByteMatchTuples(Aws::Vector< ByteMatchTuple > &&value)
Definition: ByteMatchSet.h:213
ByteMatchSet & AddByteMatchTuples(ByteMatchTuple &&value)
Definition: ByteMatchSet.h:227
void SetByteMatchTuples(Aws::Vector< ByteMatchTuple > &&value)
Definition: ByteMatchSet.h:199
void SetName(Aws::String &&value)
Definition: ByteMatchSet.h:154
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ByteMatchSet & WithName(Aws::String &&value)
Definition: ByteMatchSet.h:172
ByteMatchSet & WithName(const char *value)
Definition: ByteMatchSet.h:178
void SetByteMatchSetId(Aws::String &&value)
Definition: ByteMatchSet.h:88
JSON (JavaScript Object Notation).