AWS SDK for C++  0.14.3
AWS SDK for C++
IPSetUpdate.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:
41  IPSetUpdate();
42  IPSetUpdate(const Aws::Utils::Json::JsonValue& jsonValue);
43  IPSetUpdate& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
50  inline const ChangeAction& GetAction() const{ return m_action; }
51 
56  inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
57 
62  inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = value; }
63 
68  inline IPSetUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
69 
74  inline IPSetUpdate& WithAction(ChangeAction&& value) { SetAction(value); return *this;}
75 
80  inline const IPSetDescriptor& GetIPSetDescriptor() const{ return m_iPSetDescriptor; }
81 
86  inline void SetIPSetDescriptor(const IPSetDescriptor& value) { m_iPSetDescriptorHasBeenSet = true; m_iPSetDescriptor = value; }
87 
92  inline void SetIPSetDescriptor(IPSetDescriptor&& value) { m_iPSetDescriptorHasBeenSet = true; m_iPSetDescriptor = value; }
93 
98  inline IPSetUpdate& WithIPSetDescriptor(const IPSetDescriptor& value) { SetIPSetDescriptor(value); return *this;}
99 
104  inline IPSetUpdate& WithIPSetDescriptor(IPSetDescriptor&& value) { SetIPSetDescriptor(value); return *this;}
105 
106  private:
107  ChangeAction m_action;
108  bool m_actionHasBeenSet;
109  IPSetDescriptor m_iPSetDescriptor;
110  bool m_iPSetDescriptorHasBeenSet;
111  };
112 
113 } // namespace Model
114 } // namespace WAF
115 } // namespace Aws
IPSetUpdate & WithAction(const ChangeAction &value)
Definition: IPSetUpdate.h:68
const ChangeAction & GetAction() const
Definition: IPSetUpdate.h:50
IPSetUpdate & WithIPSetDescriptor(IPSetDescriptor &&value)
Definition: IPSetUpdate.h:104
const IPSetDescriptor & GetIPSetDescriptor() const
Definition: IPSetUpdate.h:80
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:37
IPSetUpdate & WithIPSetDescriptor(const IPSetDescriptor &value)
Definition: IPSetUpdate.h:98
void SetAction(const ChangeAction &value)
Definition: IPSetUpdate.h:56
void SetIPSetDescriptor(const IPSetDescriptor &value)
Definition: IPSetUpdate.h:86
void SetIPSetDescriptor(IPSetDescriptor &&value)
Definition: IPSetUpdate.h:92
IPSetUpdate & WithAction(ChangeAction &&value)
Definition: IPSetUpdate.h:74
void SetAction(ChangeAction &&value)
Definition: IPSetUpdate.h:62
JSON (JavaScript Object Notation).