AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
IPSet.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/waf-regional/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 WAFRegional
24{
25namespace Model
26{
27
50 class IPSet
51 {
52 public:
53 AWS_WAFREGIONAL_API IPSet() = default;
54 AWS_WAFREGIONAL_API IPSet(Aws::Utils::Json::JsonView jsonValue);
55 AWS_WAFREGIONAL_API IPSet& operator=(Aws::Utils::Json::JsonView jsonValue);
56 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
57
58
60
69 inline const Aws::String& GetIPSetId() const { return m_iPSetId; }
70 inline bool IPSetIdHasBeenSet() const { return m_iPSetIdHasBeenSet; }
71 template<typename IPSetIdT = Aws::String>
72 void SetIPSetId(IPSetIdT&& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = std::forward<IPSetIdT>(value); }
73 template<typename IPSetIdT = Aws::String>
74 IPSet& WithIPSetId(IPSetIdT&& value) { SetIPSetId(std::forward<IPSetIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
86 template<typename NameT = Aws::String>
87 IPSet& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
89
91
98 inline const Aws::Vector<IPSetDescriptor>& GetIPSetDescriptors() const { return m_iPSetDescriptors; }
99 inline bool IPSetDescriptorsHasBeenSet() const { return m_iPSetDescriptorsHasBeenSet; }
100 template<typename IPSetDescriptorsT = Aws::Vector<IPSetDescriptor>>
101 void SetIPSetDescriptors(IPSetDescriptorsT&& value) { m_iPSetDescriptorsHasBeenSet = true; m_iPSetDescriptors = std::forward<IPSetDescriptorsT>(value); }
102 template<typename IPSetDescriptorsT = Aws::Vector<IPSetDescriptor>>
103 IPSet& WithIPSetDescriptors(IPSetDescriptorsT&& value) { SetIPSetDescriptors(std::forward<IPSetDescriptorsT>(value)); return *this;}
104 template<typename IPSetDescriptorsT = IPSetDescriptor>
105 IPSet& AddIPSetDescriptors(IPSetDescriptorsT&& value) { m_iPSetDescriptorsHasBeenSet = true; m_iPSetDescriptors.emplace_back(std::forward<IPSetDescriptorsT>(value)); return *this; }
107 private:
108
109 Aws::String m_iPSetId;
110 bool m_iPSetIdHasBeenSet = false;
111
112 Aws::String m_name;
113 bool m_nameHasBeenSet = false;
114
115 Aws::Vector<IPSetDescriptor> m_iPSetDescriptors;
116 bool m_iPSetDescriptorsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace WAFRegional
121} // namespace Aws
const Aws::String & GetName() const
Definition IPSet.h:82
AWS_WAFREGIONAL_API IPSet(Aws::Utils::Json::JsonView jsonValue)
IPSet & AddIPSetDescriptors(IPSetDescriptorsT &&value)
Definition IPSet.h:105
AWS_WAFREGIONAL_API IPSet()=default
IPSet & WithIPSetId(IPSetIdT &&value)
Definition IPSet.h:74
bool IPSetIdHasBeenSet() const
Definition IPSet.h:70
void SetIPSetId(IPSetIdT &&value)
Definition IPSet.h:72
bool NameHasBeenSet() const
Definition IPSet.h:83
IPSet & WithName(NameT &&value)
Definition IPSet.h:87
AWS_WAFREGIONAL_API IPSet & operator=(Aws::Utils::Json::JsonView jsonValue)
IPSet & WithIPSetDescriptors(IPSetDescriptorsT &&value)
Definition IPSet.h:103
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< IPSetDescriptor > & GetIPSetDescriptors() const
Definition IPSet.h:98
void SetIPSetDescriptors(IPSetDescriptorsT &&value)
Definition IPSet.h:101
void SetName(NameT &&value)
Definition IPSet.h:85
bool IPSetDescriptorsHasBeenSet() const
Definition IPSet.h:99
const Aws::String & GetIPSetId() const
Definition IPSet.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue