AWS SDK for C++  1.9.153
AWS SDK for C++
IPSetUpdate.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/waf/WAF_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace WAF
23 {
24 namespace Model
25 {
26 
42  {
43  public:
48 
49 
54  inline const ChangeAction& GetAction() const{ return m_action; }
55 
60  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
61 
66  inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
67 
72  inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
73 
78  inline IPSetUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
79 
84  inline IPSetUpdate& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;}
85 
86 
91  inline const IPSetDescriptor& GetIPSetDescriptor() const{ return m_iPSetDescriptor; }
92 
97  inline bool IPSetDescriptorHasBeenSet() const { return m_iPSetDescriptorHasBeenSet; }
98 
103  inline void SetIPSetDescriptor(const IPSetDescriptor& value) { m_iPSetDescriptorHasBeenSet = true; m_iPSetDescriptor = value; }
104 
109  inline void SetIPSetDescriptor(IPSetDescriptor&& value) { m_iPSetDescriptorHasBeenSet = true; m_iPSetDescriptor = std::move(value); }
110 
115  inline IPSetUpdate& WithIPSetDescriptor(const IPSetDescriptor& value) { SetIPSetDescriptor(value); return *this;}
116 
121  inline IPSetUpdate& WithIPSetDescriptor(IPSetDescriptor&& value) { SetIPSetDescriptor(std::move(value)); return *this;}
122 
123  private:
124 
125  ChangeAction m_action;
126  bool m_actionHasBeenSet;
127 
128  IPSetDescriptor m_iPSetDescriptor;
129  bool m_iPSetDescriptorHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace WAF
134 } // namespace Aws
Aws::WAF::Model::IPSetUpdate::operator=
IPSetUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAF::Model::IPSetUpdate::IPSetUpdate
IPSetUpdate(Aws::Utils::Json::JsonView jsonValue)
Aws::WAF::Model::IPSetUpdate::WithIPSetDescriptor
IPSetUpdate & WithIPSetDescriptor(IPSetDescriptor &&value)
Definition: IPSetUpdate.h:121
Aws::WAF::Model::IPSetUpdate::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: IPSetUpdate.h:60
Aws::WAF::Model::IPSetUpdate::GetIPSetDescriptor
const IPSetDescriptor & GetIPSetDescriptor() const
Definition: IPSetUpdate.h:91
Aws::WAF::Model::ChangeAction
ChangeAction
Definition: ChangeAction.h:17
Aws::WAF::Model::IPSetUpdate::SetIPSetDescriptor
void SetIPSetDescriptor(IPSetDescriptor &&value)
Definition: IPSetUpdate.h:109
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
IPSetDescriptor.h
Aws::WAF::Model::IPSetUpdate::SetIPSetDescriptor
void SetIPSetDescriptor(const IPSetDescriptor &value)
Definition: IPSetUpdate.h:103
Aws::WAF::Model::IPSetUpdate
Definition: IPSetUpdate.h:42
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAF::Model::IPSetDescriptor
Definition: IPSetDescriptor.h:42
ChangeAction.h
Aws::WAF::Model::IPSetUpdate::IPSetUpdate
IPSetUpdate()
WAF_EXPORTS.h
Aws::WAF::Model::IPSetUpdate::WithAction
IPSetUpdate & WithAction(const ChangeAction &value)
Definition: IPSetUpdate.h:78
Aws::WAF::Model::IPSetUpdate::GetAction
const ChangeAction & GetAction() const
Definition: IPSetUpdate.h:54
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::WAF::Model::IPSetUpdate::WithAction
IPSetUpdate & WithAction(ChangeAction &&value)
Definition: IPSetUpdate.h:84
Aws::WAF::Model::IPSetUpdate::WithIPSetDescriptor
IPSetUpdate & WithIPSetDescriptor(const IPSetDescriptor &value)
Definition: IPSetUpdate.h:115
Aws::WAF::Model::IPSetUpdate::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAF::Model::IPSetUpdate::IPSetDescriptorHasBeenSet
bool IPSetDescriptorHasBeenSet() const
Definition: IPSetUpdate.h:97
Aws::WAF::Model::IPSetUpdate::SetAction
void SetAction(ChangeAction &&value)
Definition: IPSetUpdate.h:72
Aws::WAF::Model::IPSetUpdate::SetAction
void SetAction(const ChangeAction &value)
Definition: IPSetUpdate.h:66