AWS SDK for C++  1.9.124
AWS SDK for C++
GeoMatchSet.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace WAFRegional
24 {
25 namespace Model
26 {
27 
42  {
43  public:
48 
49 
60  inline const Aws::String& GetGeoMatchSetId() const{ return m_geoMatchSetId; }
61 
72  inline bool GeoMatchSetIdHasBeenSet() const { return m_geoMatchSetIdHasBeenSet; }
73 
84  inline void SetGeoMatchSetId(const Aws::String& value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId = value; }
85 
96  inline void SetGeoMatchSetId(Aws::String&& value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId = std::move(value); }
97 
108  inline void SetGeoMatchSetId(const char* value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId.assign(value); }
109 
120  inline GeoMatchSet& WithGeoMatchSetId(const Aws::String& value) { SetGeoMatchSetId(value); return *this;}
121 
132  inline GeoMatchSet& WithGeoMatchSetId(Aws::String&& value) { SetGeoMatchSetId(std::move(value)); return *this;}
133 
144  inline GeoMatchSet& WithGeoMatchSetId(const char* value) { SetGeoMatchSetId(value); return *this;}
145 
146 
151  inline const Aws::String& GetName() const{ return m_name; }
152 
157  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
158 
163  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
164 
169  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
170 
175  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
176 
181  inline GeoMatchSet& WithName(const Aws::String& value) { SetName(value); return *this;}
182 
187  inline GeoMatchSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
188 
193  inline GeoMatchSet& WithName(const char* value) { SetName(value); return *this;}
194 
195 
200  inline const Aws::Vector<GeoMatchConstraint>& GetGeoMatchConstraints() const{ return m_geoMatchConstraints; }
201 
206  inline bool GeoMatchConstraintsHasBeenSet() const { return m_geoMatchConstraintsHasBeenSet; }
207 
212  inline void SetGeoMatchConstraints(const Aws::Vector<GeoMatchConstraint>& value) { m_geoMatchConstraintsHasBeenSet = true; m_geoMatchConstraints = value; }
213 
218  inline void SetGeoMatchConstraints(Aws::Vector<GeoMatchConstraint>&& value) { m_geoMatchConstraintsHasBeenSet = true; m_geoMatchConstraints = std::move(value); }
219 
224  inline GeoMatchSet& WithGeoMatchConstraints(const Aws::Vector<GeoMatchConstraint>& value) { SetGeoMatchConstraints(value); return *this;}
225 
230  inline GeoMatchSet& WithGeoMatchConstraints(Aws::Vector<GeoMatchConstraint>&& value) { SetGeoMatchConstraints(std::move(value)); return *this;}
231 
236  inline GeoMatchSet& AddGeoMatchConstraints(const GeoMatchConstraint& value) { m_geoMatchConstraintsHasBeenSet = true; m_geoMatchConstraints.push_back(value); return *this; }
237 
242  inline GeoMatchSet& AddGeoMatchConstraints(GeoMatchConstraint&& value) { m_geoMatchConstraintsHasBeenSet = true; m_geoMatchConstraints.push_back(std::move(value)); return *this; }
243 
244  private:
245 
246  Aws::String m_geoMatchSetId;
247  bool m_geoMatchSetIdHasBeenSet;
248 
249  Aws::String m_name;
250  bool m_nameHasBeenSet;
251 
252  Aws::Vector<GeoMatchConstraint> m_geoMatchConstraints;
253  bool m_geoMatchConstraintsHasBeenSet;
254  };
255 
256 } // namespace Model
257 } // namespace WAFRegional
258 } // namespace Aws
Aws::WAFRegional::Model::GeoMatchSet::WithName
GeoMatchSet & WithName(Aws::String &&value)
Definition: GeoMatchSet.h:187
Aws::WAFRegional::Model::GeoMatchSet::SetGeoMatchSetId
void SetGeoMatchSetId(const Aws::String &value)
Definition: GeoMatchSet.h:84
Aws::WAFRegional::Model::GeoMatchSet::WithGeoMatchConstraints
GeoMatchSet & WithGeoMatchConstraints(const Aws::Vector< GeoMatchConstraint > &value)
Definition: GeoMatchSet.h:224
Aws::WAFRegional::Model::GeoMatchSet::SetName
void SetName(Aws::String &&value)
Definition: GeoMatchSet.h:169
Aws::WAFRegional::Model::GeoMatchSet::GetGeoMatchConstraints
const Aws::Vector< GeoMatchConstraint > & GetGeoMatchConstraints() const
Definition: GeoMatchSet.h:200
Aws::WAFRegional::Model::GeoMatchSet::WithGeoMatchSetId
GeoMatchSet & WithGeoMatchSetId(const Aws::String &value)
Definition: GeoMatchSet.h:120
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_WAFREGIONAL_API
#define AWS_WAFREGIONAL_API
Definition: WAFRegional_EXPORTS.h:28
AWSVector.h
Aws::WAFRegional::Model::GeoMatchSet::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFRegional::Model::GeoMatchSet::AddGeoMatchConstraints
GeoMatchSet & AddGeoMatchConstraints(GeoMatchConstraint &&value)
Definition: GeoMatchSet.h:242
GeoMatchConstraint.h
Aws::WAFRegional::Model::GeoMatchSet::SetGeoMatchSetId
void SetGeoMatchSetId(const char *value)
Definition: GeoMatchSet.h:108
Aws::WAFRegional::Model::GeoMatchSet::WithName
GeoMatchSet & WithName(const char *value)
Definition: GeoMatchSet.h:193
Aws::WAFRegional::Model::GeoMatchSet::GeoMatchSet
GeoMatchSet(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFRegional::Model::GeoMatchSet::operator=
GeoMatchSet & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFRegional::Model::GeoMatchSet::SetName
void SetName(const Aws::String &value)
Definition: GeoMatchSet.h:163
Aws::WAFRegional::Model::GeoMatchSet::WithGeoMatchSetId
GeoMatchSet & WithGeoMatchSetId(Aws::String &&value)
Definition: GeoMatchSet.h:132
Aws::WAFRegional::Model::GeoMatchSet::WithGeoMatchConstraints
GeoMatchSet & WithGeoMatchConstraints(Aws::Vector< GeoMatchConstraint > &&value)
Definition: GeoMatchSet.h:230
Aws::WAFRegional::Model::GeoMatchSet::AddGeoMatchConstraints
GeoMatchSet & AddGeoMatchConstraints(const GeoMatchConstraint &value)
Definition: GeoMatchSet.h:236
Aws::WAFRegional::Model::GeoMatchSet::NameHasBeenSet
bool NameHasBeenSet() const
Definition: GeoMatchSet.h:157
Aws::WAFRegional::Model::GeoMatchSet::GeoMatchConstraintsHasBeenSet
bool GeoMatchConstraintsHasBeenSet() const
Definition: GeoMatchSet.h:206
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::WAFRegional::Model::GeoMatchSet::GeoMatchSetIdHasBeenSet
bool GeoMatchSetIdHasBeenSet() const
Definition: GeoMatchSet.h:72
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
WAFRegional_EXPORTS.h
Aws::WAFRegional::Model::GeoMatchConstraint
Definition: GeoMatchConstraint.h:42
Aws::WAFRegional::Model::GeoMatchSet
Definition: GeoMatchSet.h:42
Aws::WAFRegional::Model::GeoMatchSet::SetName
void SetName(const char *value)
Definition: GeoMatchSet.h:175
Aws::WAFRegional::Model::GeoMatchSet::SetGeoMatchConstraints
void SetGeoMatchConstraints(const Aws::Vector< GeoMatchConstraint > &value)
Definition: GeoMatchSet.h:212
Aws
Definition: AccessManagementClient.h:15
Aws::WAFRegional::Model::GeoMatchSet::WithName
GeoMatchSet & WithName(const Aws::String &value)
Definition: GeoMatchSet.h:181
Aws::WAFRegional::Model::GeoMatchSet::GetName
const Aws::String & GetName() const
Definition: GeoMatchSet.h:151
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFRegional::Model::GeoMatchSet::GeoMatchSet
GeoMatchSet()
Aws::WAFRegional::Model::GeoMatchSet::GetGeoMatchSetId
const Aws::String & GetGeoMatchSetId() const
Definition: GeoMatchSet.h:60
Aws::WAFRegional::Model::GeoMatchSet::SetGeoMatchSetId
void SetGeoMatchSetId(Aws::String &&value)
Definition: GeoMatchSet.h:96
Aws::WAFRegional::Model::GeoMatchSet::SetGeoMatchConstraints
void SetGeoMatchConstraints(Aws::Vector< GeoMatchConstraint > &&value)
Definition: GeoMatchSet.h:218
Aws::WAFRegional::Model::GeoMatchSet::WithGeoMatchSetId
GeoMatchSet & WithGeoMatchSetId(const char *value)
Definition: GeoMatchSet.h:144