AWS SDK for C++  0.14.3
AWS SDK for C++
CreateIPSetResult.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/model/IPSet.h>
19 
20 namespace Aws
21 {
22 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace WAF
33 {
34 namespace Model
35 {
37  {
38  public:
42 
46  inline const IPSet& GetIPSet() const{ return m_iPSet; }
47 
51  inline void SetIPSet(const IPSet& value) { m_iPSet = value; }
52 
56  inline void SetIPSet(IPSet&& value) { m_iPSet = value; }
57 
61  inline CreateIPSetResult& WithIPSet(const IPSet& value) { SetIPSet(value); return *this;}
62 
66  inline CreateIPSetResult& WithIPSet(IPSet&& value) { SetIPSet(value); return *this;}
67 
74  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
75 
82  inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
83 
90  inline void SetChangeToken(Aws::String&& value) { m_changeToken = value; }
91 
98  inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
99 
106  inline CreateIPSetResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
107 
114  inline CreateIPSetResult& WithChangeToken(Aws::String&& value) { SetChangeToken(value); return *this;}
115 
122  inline CreateIPSetResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
123 
124  private:
125  IPSet m_iPSet;
126  Aws::String m_changeToken;
127  };
128 
129 } // namespace Model
130 } // namespace WAF
131 } // namespace Aws
void SetIPSet(const IPSet &value)
void SetChangeToken(const char *value)
CreateIPSetResult & WithChangeToken(Aws::String &&value)
CreateIPSetResult & WithChangeToken(const char *value)
CreateIPSetResult & WithIPSet(IPSet &&value)
void SetChangeToken(Aws::String &&value)
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:37
void SetChangeToken(const Aws::String &value)
CreateIPSetResult & WithIPSet(const IPSet &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetChangeToken() const
CreateIPSetResult & WithChangeToken(const Aws::String &value)
JSON (JavaScript Object Notation).