AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
IPSet.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/waf/WAF_EXPORTS.h>
10#include <aws/waf/model/IPSetDescriptor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAF {
22namespace Model {
23
46class IPSet {
47 public:
48 AWS_WAF_API IPSet() = default;
49 AWS_WAF_API IPSet(Aws::Utils::Json::JsonView jsonValue);
52
54
63 inline const Aws::String& GetIPSetId() const { return m_iPSetId; }
64 inline bool IPSetIdHasBeenSet() const { return m_iPSetIdHasBeenSet; }
65 template <typename IPSetIdT = Aws::String>
66 void SetIPSetId(IPSetIdT&& value) {
67 m_iPSetIdHasBeenSet = true;
68 m_iPSetId = std::forward<IPSetIdT>(value);
69 }
70 template <typename IPSetIdT = Aws::String>
71 IPSet& WithIPSetId(IPSetIdT&& value) {
72 SetIPSetId(std::forward<IPSetIdT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetName() const { return m_name; }
83 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
84 template <typename NameT = Aws::String>
85 void SetName(NameT&& value) {
86 m_nameHasBeenSet = true;
87 m_name = std::forward<NameT>(value);
88 }
89 template <typename NameT = Aws::String>
90 IPSet& WithName(NameT&& value) {
91 SetName(std::forward<NameT>(value));
92 return *this;
93 }
95
97
104 inline const Aws::Vector<IPSetDescriptor>& GetIPSetDescriptors() const { return m_iPSetDescriptors; }
105 inline bool IPSetDescriptorsHasBeenSet() const { return m_iPSetDescriptorsHasBeenSet; }
106 template <typename IPSetDescriptorsT = Aws::Vector<IPSetDescriptor>>
107 void SetIPSetDescriptors(IPSetDescriptorsT&& value) {
108 m_iPSetDescriptorsHasBeenSet = true;
109 m_iPSetDescriptors = std::forward<IPSetDescriptorsT>(value);
110 }
111 template <typename IPSetDescriptorsT = Aws::Vector<IPSetDescriptor>>
112 IPSet& WithIPSetDescriptors(IPSetDescriptorsT&& value) {
113 SetIPSetDescriptors(std::forward<IPSetDescriptorsT>(value));
114 return *this;
115 }
116 template <typename IPSetDescriptorsT = IPSetDescriptor>
117 IPSet& AddIPSetDescriptors(IPSetDescriptorsT&& value) {
118 m_iPSetDescriptorsHasBeenSet = true;
119 m_iPSetDescriptors.emplace_back(std::forward<IPSetDescriptorsT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_iPSetId;
125
126 Aws::String m_name;
127
128 Aws::Vector<IPSetDescriptor> m_iPSetDescriptors;
129 bool m_iPSetIdHasBeenSet = false;
130 bool m_nameHasBeenSet = false;
131 bool m_iPSetDescriptorsHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace WAF
136} // namespace Aws
bool IPSetDescriptorsHasBeenSet() const
Definition IPSet.h:105
const Aws::String & GetIPSetId() const
Definition IPSet.h:63
IPSet & WithName(NameT &&value)
Definition IPSet.h:90
AWS_WAF_API IPSet()=default
const Aws::String & GetName() const
Definition IPSet.h:82
AWS_WAF_API IPSet(Aws::Utils::Json::JsonView jsonValue)
bool IPSetIdHasBeenSet() const
Definition IPSet.h:64
AWS_WAF_API IPSet & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIPSetId(IPSetIdT &&value)
Definition IPSet.h:66
bool NameHasBeenSet() const
Definition IPSet.h:83
const Aws::Vector< IPSetDescriptor > & GetIPSetDescriptors() const
Definition IPSet.h:104
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(NameT &&value)
Definition IPSet.h:85
IPSet & WithIPSetId(IPSetIdT &&value)
Definition IPSet.h:71
IPSet & AddIPSetDescriptors(IPSetDescriptorsT &&value)
Definition IPSet.h:117
IPSet & WithIPSetDescriptors(IPSetDescriptorsT &&value)
Definition IPSet.h:112
void SetIPSetDescriptors(IPSetDescriptorsT &&value)
Definition IPSet.h:107
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue