AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
GeoMatchSet.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/GeoMatchConstraint.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
38 public:
39 AWS_WAF_API GeoMatchSet() = default;
43
45
55 inline const Aws::String& GetGeoMatchSetId() const { return m_geoMatchSetId; }
56 inline bool GeoMatchSetIdHasBeenSet() const { return m_geoMatchSetIdHasBeenSet; }
57 template <typename GeoMatchSetIdT = Aws::String>
58 void SetGeoMatchSetId(GeoMatchSetIdT&& value) {
59 m_geoMatchSetIdHasBeenSet = true;
60 m_geoMatchSetId = std::forward<GeoMatchSetIdT>(value);
61 }
62 template <typename GeoMatchSetIdT = Aws::String>
63 GeoMatchSet& WithGeoMatchSetId(GeoMatchSetIdT&& value) {
64 SetGeoMatchSetId(std::forward<GeoMatchSetIdT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::String& GetName() const { return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 template <typename NameT = Aws::String>
77 void SetName(NameT&& value) {
78 m_nameHasBeenSet = true;
79 m_name = std::forward<NameT>(value);
80 }
81 template <typename NameT = Aws::String>
82 GeoMatchSet& WithName(NameT&& value) {
83 SetName(std::forward<NameT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::Vector<GeoMatchConstraint>& GetGeoMatchConstraints() const { return m_geoMatchConstraints; }
94 inline bool GeoMatchConstraintsHasBeenSet() const { return m_geoMatchConstraintsHasBeenSet; }
95 template <typename GeoMatchConstraintsT = Aws::Vector<GeoMatchConstraint>>
96 void SetGeoMatchConstraints(GeoMatchConstraintsT&& value) {
97 m_geoMatchConstraintsHasBeenSet = true;
98 m_geoMatchConstraints = std::forward<GeoMatchConstraintsT>(value);
99 }
100 template <typename GeoMatchConstraintsT = Aws::Vector<GeoMatchConstraint>>
101 GeoMatchSet& WithGeoMatchConstraints(GeoMatchConstraintsT&& value) {
102 SetGeoMatchConstraints(std::forward<GeoMatchConstraintsT>(value));
103 return *this;
104 }
105 template <typename GeoMatchConstraintsT = GeoMatchConstraint>
106 GeoMatchSet& AddGeoMatchConstraints(GeoMatchConstraintsT&& value) {
107 m_geoMatchConstraintsHasBeenSet = true;
108 m_geoMatchConstraints.emplace_back(std::forward<GeoMatchConstraintsT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_geoMatchSetId;
114
115 Aws::String m_name;
116
117 Aws::Vector<GeoMatchConstraint> m_geoMatchConstraints;
118 bool m_geoMatchSetIdHasBeenSet = false;
119 bool m_nameHasBeenSet = false;
120 bool m_geoMatchConstraintsHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace WAF
125} // namespace Aws
void SetGeoMatchSetId(GeoMatchSetIdT &&value)
Definition GeoMatchSet.h:58
AWS_WAF_API GeoMatchSet()=default
AWS_WAF_API GeoMatchSet & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GeoMatchConstraintsHasBeenSet() const
Definition GeoMatchSet.h:94
const Aws::Vector< GeoMatchConstraint > & GetGeoMatchConstraints() const
Definition GeoMatchSet.h:93
GeoMatchSet & WithGeoMatchConstraints(GeoMatchConstraintsT &&value)
const Aws::String & GetGeoMatchSetId() const
Definition GeoMatchSet.h:55
const Aws::String & GetName() const
Definition GeoMatchSet.h:74
void SetGeoMatchConstraints(GeoMatchConstraintsT &&value)
Definition GeoMatchSet.h:96
GeoMatchSet & WithGeoMatchSetId(GeoMatchSetIdT &&value)
Definition GeoMatchSet.h:63
AWS_WAF_API GeoMatchSet(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition GeoMatchSet.h:77
bool GeoMatchSetIdHasBeenSet() const
Definition GeoMatchSet.h:56
GeoMatchSet & WithName(NameT &&value)
Definition GeoMatchSet.h:82
GeoMatchSet & AddGeoMatchConstraints(GeoMatchConstraintsT &&value)
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue