AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IPSet.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/waf/model/IPSetDescriptor.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WAF
24{
25namespace Model
26{
27
50 class IPSet
51 {
52 public:
53 AWS_WAF_API IPSet();
54 AWS_WAF_API IPSet(Aws::Utils::Json::JsonView jsonValue);
57
58
60
69 inline const Aws::String& GetIPSetId() const{ return m_iPSetId; }
70 inline bool IPSetIdHasBeenSet() const { return m_iPSetIdHasBeenSet; }
71 inline void SetIPSetId(const Aws::String& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = value; }
72 inline void SetIPSetId(Aws::String&& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = std::move(value); }
73 inline void SetIPSetId(const char* value) { m_iPSetIdHasBeenSet = true; m_iPSetId.assign(value); }
74 inline IPSet& WithIPSetId(const Aws::String& value) { SetIPSetId(value); return *this;}
75 inline IPSet& WithIPSetId(Aws::String&& value) { SetIPSetId(std::move(value)); return *this;}
76 inline IPSet& WithIPSetId(const char* value) { SetIPSetId(value); return *this;}
78
80
84 inline const Aws::String& GetName() const{ return m_name; }
85 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
86 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
87 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
88 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
89 inline IPSet& WithName(const Aws::String& value) { SetName(value); return *this;}
90 inline IPSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
91 inline IPSet& WithName(const char* value) { SetName(value); return *this;}
93
95
102 inline const Aws::Vector<IPSetDescriptor>& GetIPSetDescriptors() const{ return m_iPSetDescriptors; }
103 inline bool IPSetDescriptorsHasBeenSet() const { return m_iPSetDescriptorsHasBeenSet; }
104 inline void SetIPSetDescriptors(const Aws::Vector<IPSetDescriptor>& value) { m_iPSetDescriptorsHasBeenSet = true; m_iPSetDescriptors = value; }
105 inline void SetIPSetDescriptors(Aws::Vector<IPSetDescriptor>&& value) { m_iPSetDescriptorsHasBeenSet = true; m_iPSetDescriptors = std::move(value); }
106 inline IPSet& WithIPSetDescriptors(const Aws::Vector<IPSetDescriptor>& value) { SetIPSetDescriptors(value); return *this;}
107 inline IPSet& WithIPSetDescriptors(Aws::Vector<IPSetDescriptor>&& value) { SetIPSetDescriptors(std::move(value)); return *this;}
108 inline IPSet& AddIPSetDescriptors(const IPSetDescriptor& value) { m_iPSetDescriptorsHasBeenSet = true; m_iPSetDescriptors.push_back(value); return *this; }
109 inline IPSet& AddIPSetDescriptors(IPSetDescriptor&& value) { m_iPSetDescriptorsHasBeenSet = true; m_iPSetDescriptors.push_back(std::move(value)); return *this; }
111 private:
112
113 Aws::String m_iPSetId;
114 bool m_iPSetIdHasBeenSet = false;
115
116 Aws::String m_name;
117 bool m_nameHasBeenSet = false;
118
119 Aws::Vector<IPSetDescriptor> m_iPSetDescriptors;
120 bool m_iPSetDescriptorsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace WAF
125} // namespace Aws
IPSet & WithName(const char *value)
Definition IPSet.h:91
bool IPSetDescriptorsHasBeenSet() const
Definition IPSet.h:103
void SetIPSetDescriptors(Aws::Vector< IPSetDescriptor > &&value)
Definition IPSet.h:105
IPSet & WithIPSetDescriptors(Aws::Vector< IPSetDescriptor > &&value)
Definition IPSet.h:107
IPSet & WithIPSetId(Aws::String &&value)
Definition IPSet.h:75
const Aws::String & GetIPSetId() const
Definition IPSet.h:69
IPSet & AddIPSetDescriptors(IPSetDescriptor &&value)
Definition IPSet.h:109
const Aws::String & GetName() const
Definition IPSet.h:84
AWS_WAF_API IPSet(Aws::Utils::Json::JsonView jsonValue)
bool IPSetIdHasBeenSet() const
Definition IPSet.h:70
IPSet & WithName(const Aws::String &value)
Definition IPSet.h:89
AWS_WAF_API IPSet & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(const char *value)
Definition IPSet.h:88
bool NameHasBeenSet() const
Definition IPSet.h:85
const Aws::Vector< IPSetDescriptor > & GetIPSetDescriptors() const
Definition IPSet.h:102
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIPSetId(Aws::String &&value)
Definition IPSet.h:72
IPSet & AddIPSetDescriptors(const IPSetDescriptor &value)
Definition IPSet.h:108
IPSet & WithIPSetId(const Aws::String &value)
Definition IPSet.h:74
void SetIPSetId(const Aws::String &value)
Definition IPSet.h:71
IPSet & WithIPSetId(const char *value)
Definition IPSet.h:76
void SetIPSetId(const char *value)
Definition IPSet.h:73
void SetName(const Aws::String &value)
Definition IPSet.h:86
void SetName(Aws::String &&value)
Definition IPSet.h:87
void SetIPSetDescriptors(const Aws::Vector< IPSetDescriptor > &value)
Definition IPSet.h:104
IPSet & WithName(Aws::String &&value)
Definition IPSet.h:90
IPSet & WithIPSetDescriptors(const Aws::Vector< IPSetDescriptor > &value)
Definition IPSet.h:106
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue