AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IPSetUpdate.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/waf/model/ChangeAction.h>
9#include <aws/waf/model/IPSetDescriptor.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WAF
23{
24namespace Model
25{
26
42 {
43 public:
44 AWS_WAF_API IPSetUpdate();
48
49
51
55 inline const ChangeAction& GetAction() const{ return m_action; }
56 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
57 inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
58 inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
59 inline IPSetUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
60 inline IPSetUpdate& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;}
62
64
68 inline const IPSetDescriptor& GetIPSetDescriptor() const{ return m_iPSetDescriptor; }
69 inline bool IPSetDescriptorHasBeenSet() const { return m_iPSetDescriptorHasBeenSet; }
70 inline void SetIPSetDescriptor(const IPSetDescriptor& value) { m_iPSetDescriptorHasBeenSet = true; m_iPSetDescriptor = value; }
71 inline void SetIPSetDescriptor(IPSetDescriptor&& value) { m_iPSetDescriptorHasBeenSet = true; m_iPSetDescriptor = std::move(value); }
72 inline IPSetUpdate& WithIPSetDescriptor(const IPSetDescriptor& value) { SetIPSetDescriptor(value); return *this;}
73 inline IPSetUpdate& WithIPSetDescriptor(IPSetDescriptor&& value) { SetIPSetDescriptor(std::move(value)); return *this;}
75 private:
76
77 ChangeAction m_action;
78 bool m_actionHasBeenSet = false;
79
80 IPSetDescriptor m_iPSetDescriptor;
81 bool m_iPSetDescriptorHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace WAF
86} // namespace Aws
IPSetUpdate & WithAction(const ChangeAction &value)
Definition IPSetUpdate.h:59
void SetAction(const ChangeAction &value)
Definition IPSetUpdate.h:57
IPSetUpdate & WithIPSetDescriptor(IPSetDescriptor &&value)
Definition IPSetUpdate.h:73
void SetAction(ChangeAction &&value)
Definition IPSetUpdate.h:58
IPSetUpdate & WithAction(ChangeAction &&value)
Definition IPSetUpdate.h:60
const ChangeAction & GetAction() const
Definition IPSetUpdate.h:55
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
bool IPSetDescriptorHasBeenSet() const
Definition IPSetUpdate.h:69
AWS_WAF_API IPSetUpdate(Aws::Utils::Json::JsonView jsonValue)
void SetIPSetDescriptor(IPSetDescriptor &&value)
Definition IPSetUpdate.h:71
AWS_WAF_API IPSetUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
IPSetUpdate & WithIPSetDescriptor(const IPSetDescriptor &value)
Definition IPSetUpdate.h:72
void SetIPSetDescriptor(const IPSetDescriptor &value)
Definition IPSetUpdate.h:70
const IPSetDescriptor & GetIPSetDescriptor() const
Definition IPSetUpdate.h:68
Aws::Utils::Json::JsonValue JsonValue