AWS SDK for C++  0.12.9
AWS SDK for C++
XssMatchSet.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 
45  {
46  public:
47  XssMatchSet();
48  XssMatchSet(const Aws::Utils::Json::JsonValue& jsonValue);
49  XssMatchSet& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
50  Aws::Utils::Json::JsonValue Jsonize() const;
51 
62  inline const Aws::String& GetXssMatchSetId() const{ return m_xssMatchSetId; }
63 
74  inline void SetXssMatchSetId(const Aws::String& value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId = value; }
75 
86  inline void SetXssMatchSetId(Aws::String&& value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId = value; }
87 
98  inline void SetXssMatchSetId(const char* value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId.assign(value); }
99 
110  inline XssMatchSet& WithXssMatchSetId(const Aws::String& value) { SetXssMatchSetId(value); return *this;}
111 
122  inline XssMatchSet& WithXssMatchSetId(Aws::String&& value) { SetXssMatchSetId(value); return *this;}
123 
134  inline XssMatchSet& WithXssMatchSetId(const char* value) { SetXssMatchSetId(value); return *this;}
135 
139  inline const Aws::String& GetName() const{ return m_name; }
140 
144  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
145 
149  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
150 
154  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
155 
159  inline XssMatchSet& WithName(const Aws::String& value) { SetName(value); return *this;}
160 
164  inline XssMatchSet& WithName(Aws::String&& value) { SetName(value); return *this;}
165 
169  inline XssMatchSet& WithName(const char* value) { SetName(value); return *this;}
170 
175  inline const Aws::Vector<XssMatchTuple>& GetXssMatchTuples() const{ return m_xssMatchTuples; }
176 
181  inline void SetXssMatchTuples(const Aws::Vector<XssMatchTuple>& value) { m_xssMatchTuplesHasBeenSet = true; m_xssMatchTuples = value; }
182 
187  inline void SetXssMatchTuples(Aws::Vector<XssMatchTuple>&& value) { m_xssMatchTuplesHasBeenSet = true; m_xssMatchTuples = value; }
188 
193  inline XssMatchSet& WithXssMatchTuples(const Aws::Vector<XssMatchTuple>& value) { SetXssMatchTuples(value); return *this;}
194 
199  inline XssMatchSet& WithXssMatchTuples(Aws::Vector<XssMatchTuple>&& value) { SetXssMatchTuples(value); return *this;}
200 
205  inline XssMatchSet& AddXssMatchTuples(const XssMatchTuple& value) { m_xssMatchTuplesHasBeenSet = true; m_xssMatchTuples.push_back(value); return *this; }
206 
211  inline XssMatchSet& AddXssMatchTuples(XssMatchTuple&& value) { m_xssMatchTuplesHasBeenSet = true; m_xssMatchTuples.push_back(value); return *this; }
212 
213  private:
214  Aws::String m_xssMatchSetId;
215  bool m_xssMatchSetIdHasBeenSet;
216  Aws::String m_name;
217  bool m_nameHasBeenSet;
218  Aws::Vector<XssMatchTuple> m_xssMatchTuples;
219  bool m_xssMatchTuplesHasBeenSet;
220  };
221 
222 } // namespace Model
223 } // namespace WAF
224 } // namespace Aws
void SetName(const char *value)
Definition: XssMatchSet.h:154
XssMatchSet & AddXssMatchTuples(XssMatchTuple &&value)
Definition: XssMatchSet.h:211
const Aws::String & GetName() const
Definition: XssMatchSet.h:139
XssMatchSet & WithXssMatchTuples(const Aws::Vector< XssMatchTuple > &value)
Definition: XssMatchSet.h:193
void SetName(Aws::String &&value)
Definition: XssMatchSet.h:149
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetXssMatchTuples(Aws::Vector< XssMatchTuple > &&value)
Definition: XssMatchSet.h:187
const Aws::String & GetXssMatchSetId() const
Definition: XssMatchSet.h:62
XssMatchSet & WithXssMatchSetId(const Aws::String &value)
Definition: XssMatchSet.h:110
const Aws::Vector< XssMatchTuple > & GetXssMatchTuples() const
Definition: XssMatchSet.h:175
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:34
XssMatchSet & AddXssMatchTuples(const XssMatchTuple &value)
Definition: XssMatchSet.h:205
XssMatchSet & WithXssMatchSetId(Aws::String &&value)
Definition: XssMatchSet.h:122
void SetXssMatchSetId(const Aws::String &value)
Definition: XssMatchSet.h:74
void SetXssMatchSetId(Aws::String &&value)
Definition: XssMatchSet.h:86
XssMatchSet & WithName(const char *value)
Definition: XssMatchSet.h:169
XssMatchSet & WithName(const Aws::String &value)
Definition: XssMatchSet.h:159
void SetName(const Aws::String &value)
Definition: XssMatchSet.h:144
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
XssMatchSet & WithXssMatchSetId(const char *value)
Definition: XssMatchSet.h:134
void SetXssMatchTuples(const Aws::Vector< XssMatchTuple > &value)
Definition: XssMatchSet.h:181
void SetXssMatchSetId(const char *value)
Definition: XssMatchSet.h:98
XssMatchSet & WithName(Aws::String &&value)
Definition: XssMatchSet.h:164
XssMatchSet & WithXssMatchTuples(Aws::Vector< XssMatchTuple > &&value)
Definition: XssMatchSet.h:199
JSON (JavaScript Object Notation).