AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WAF {
21namespace Model {
22
38 public:
39 AWS_WAF_API IPSetUpdate() = default;
43
45
49 inline ChangeAction GetAction() const { return m_action; }
50 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
51 inline void SetAction(ChangeAction value) {
52 m_actionHasBeenSet = true;
53 m_action = value;
54 }
56 SetAction(value);
57 return *this;
58 }
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) {
70 m_iPSetDescriptorHasBeenSet = true;
71 m_iPSetDescriptor = std::forward<IPSetDescriptorT>(value);
72 }
73 template <typename IPSetDescriptorT = IPSetDescriptor>
74 IPSetUpdate& WithIPSetDescriptor(IPSetDescriptorT&& value) {
75 SetIPSetDescriptor(std::forward<IPSetDescriptorT>(value));
76 return *this;
77 }
79 private:
81
82 IPSetDescriptor m_iPSetDescriptor;
83 bool m_actionHasBeenSet = false;
84 bool m_iPSetDescriptorHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace WAF
89} // namespace Aws
IPSetUpdate & WithIPSetDescriptor(IPSetDescriptorT &&value)
Definition IPSetUpdate.h:74
void SetAction(ChangeAction value)
Definition IPSetUpdate.h:51
void SetIPSetDescriptor(IPSetDescriptorT &&value)
Definition IPSetUpdate.h:69
ChangeAction GetAction() const
Definition IPSetUpdate.h:49
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAF_API IPSetUpdate()=default
bool IPSetDescriptorHasBeenSet() const
Definition IPSetUpdate.h:67
AWS_WAF_API IPSetUpdate(Aws::Utils::Json::JsonView jsonValue)
AWS_WAF_API IPSetUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
IPSetUpdate & WithAction(ChangeAction value)
Definition IPSetUpdate.h:55
const IPSetDescriptor & GetIPSetDescriptor() const
Definition IPSetUpdate.h:66
Aws::Utils::Json::JsonValue JsonValue