AWS SDK for C++  0.12.9
AWS SDK for C++
IPSetDescriptor.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>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace WAF
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  IPSetDescriptor& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const IPSetDescriptorType& GetType() const{ return m_type; }
50 
54  inline void SetType(const IPSetDescriptorType& value) { m_typeHasBeenSet = true; m_type = value; }
55 
59  inline void SetType(IPSetDescriptorType&& value) { m_typeHasBeenSet = true; m_type = value; }
60 
64  inline IPSetDescriptor& WithType(const IPSetDescriptorType& value) { SetType(value); return *this;}
65 
69  inline IPSetDescriptor& WithType(IPSetDescriptorType&& value) { SetType(value); return *this;}
70 
82  inline const Aws::String& GetValue() const{ return m_value; }
83 
95  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
96 
108  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = value; }
109 
121  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
122 
134  inline IPSetDescriptor& WithValue(const Aws::String& value) { SetValue(value); return *this;}
135 
147  inline IPSetDescriptor& WithValue(Aws::String&& value) { SetValue(value); return *this;}
148 
160  inline IPSetDescriptor& WithValue(const char* value) { SetValue(value); return *this;}
161 
162  private:
163  IPSetDescriptorType m_type;
164  bool m_typeHasBeenSet;
165  Aws::String m_value;
166  bool m_valueHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace WAF
171 } // namespace Aws
IPSetDescriptor & WithType(const IPSetDescriptorType &value)
void SetType(const IPSetDescriptorType &value)
void SetValue(const char *value)
void SetValue(const Aws::String &value)
void SetValue(Aws::String &&value)
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:34
const IPSetDescriptorType & GetType() const
IPSetDescriptor & WithType(IPSetDescriptorType &&value)
void SetType(IPSetDescriptorType &&value)
const Aws::String & GetValue() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
IPSetDescriptor & WithValue(const char *value)
IPSetDescriptor & WithValue(const Aws::String &value)
IPSetDescriptor & WithValue(Aws::String &&value)
JSON (JavaScript Object Notation).