AWS SDK for C++  0.14.3
AWS SDK for C++
IPSetSummary.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>
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace WAF
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  IPSetSummary();
40  IPSetSummary(const Aws::Utils::Json::JsonValue& jsonValue);
41  IPSetSummary& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
49  inline const Aws::String& GetIPSetId() const{ return m_iPSetId; }
50 
56  inline void SetIPSetId(const Aws::String& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = value; }
57 
63  inline void SetIPSetId(Aws::String&& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = value; }
64 
70  inline void SetIPSetId(const char* value) { m_iPSetIdHasBeenSet = true; m_iPSetId.assign(value); }
71 
77  inline IPSetSummary& WithIPSetId(const Aws::String& value) { SetIPSetId(value); return *this;}
78 
84  inline IPSetSummary& WithIPSetId(Aws::String&& value) { SetIPSetId(value); return *this;}
85 
91  inline IPSetSummary& WithIPSetId(const char* value) { SetIPSetId(value); return *this;}
92 
97  inline const Aws::String& GetName() const{ return m_name; }
98 
103  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
104 
109  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
110 
115  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
116 
121  inline IPSetSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
122 
127  inline IPSetSummary& WithName(Aws::String&& value) { SetName(value); return *this;}
128 
133  inline IPSetSummary& WithName(const char* value) { SetName(value); return *this;}
134 
135  private:
136  Aws::String m_iPSetId;
137  bool m_iPSetIdHasBeenSet;
138  Aws::String m_name;
139  bool m_nameHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace WAF
144 } // namespace Aws
IPSetSummary & WithIPSetId(const Aws::String &value)
Definition: IPSetSummary.h:77
void SetName(Aws::String &&value)
Definition: IPSetSummary.h:109
IPSetSummary & WithIPSetId(Aws::String &&value)
Definition: IPSetSummary.h:84
void SetIPSetId(const char *value)
Definition: IPSetSummary.h:70
IPSetSummary & WithName(Aws::String &&value)
Definition: IPSetSummary.h:127
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:37
void SetIPSetId(Aws::String &&value)
Definition: IPSetSummary.h:63
IPSetSummary & WithName(const char *value)
Definition: IPSetSummary.h:133
void SetName(const Aws::String &value)
Definition: IPSetSummary.h:103
IPSetSummary & WithName(const Aws::String &value)
Definition: IPSetSummary.h:121
void SetName(const char *value)
Definition: IPSetSummary.h:115
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
IPSetSummary & WithIPSetId(const char *value)
Definition: IPSetSummary.h:91
const Aws::String & GetName() const
Definition: IPSetSummary.h:97
const Aws::String & GetIPSetId() const
Definition: IPSetSummary.h:49
JSON (JavaScript Object Notation).
void SetIPSetId(const Aws::String &value)
Definition: IPSetSummary.h:56