AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
IPSetUpdate.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/waf-regional/model/ChangeAction.h>
9#include <aws/waf-regional/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 WAFRegional
23{
24namespace Model
25{
26
42 {
43 public:
44 AWS_WAFREGIONAL_API IPSetUpdate() = default;
45 AWS_WAFREGIONAL_API IPSetUpdate(Aws::Utils::Json::JsonView jsonValue);
46 AWS_WAFREGIONAL_API IPSetUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline ChangeAction GetAction() const { return m_action; }
56 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
57 inline void SetAction(ChangeAction value) { m_actionHasBeenSet = true; m_action = value; }
58 inline IPSetUpdate& WithAction(ChangeAction value) { SetAction(value); return *this;}
60
62
66 inline const IPSetDescriptor& GetIPSetDescriptor() const { return m_iPSetDescriptor; }
67 inline bool IPSetDescriptorHasBeenSet() const { return m_iPSetDescriptorHasBeenSet; }
68 template<typename IPSetDescriptorT = IPSetDescriptor>
69 void SetIPSetDescriptor(IPSetDescriptorT&& value) { m_iPSetDescriptorHasBeenSet = true; m_iPSetDescriptor = std::forward<IPSetDescriptorT>(value); }
70 template<typename IPSetDescriptorT = IPSetDescriptor>
71 IPSetUpdate& WithIPSetDescriptor(IPSetDescriptorT&& value) { SetIPSetDescriptor(std::forward<IPSetDescriptorT>(value)); return *this;}
73 private:
74
76 bool m_actionHasBeenSet = false;
77
78 IPSetDescriptor m_iPSetDescriptor;
79 bool m_iPSetDescriptorHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace WAFRegional
84} // namespace Aws
IPSetUpdate & WithIPSetDescriptor(IPSetDescriptorT &&value)
Definition IPSetUpdate.h:71
void SetIPSetDescriptor(IPSetDescriptorT &&value)
Definition IPSetUpdate.h:69
AWS_WAFREGIONAL_API IPSetUpdate()=default
const IPSetDescriptor & GetIPSetDescriptor() const
Definition IPSetUpdate.h:66
IPSetUpdate & WithAction(ChangeAction value)
Definition IPSetUpdate.h:58
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFREGIONAL_API IPSetUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAction(ChangeAction value)
Definition IPSetUpdate.h:57
AWS_WAFREGIONAL_API IPSetUpdate(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue