AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GeoMatchSet.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/GeoMatchConstraint.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
42 {
43 public:
44 AWS_WAF_API GeoMatchSet();
48
49
51
61 inline const Aws::String& GetGeoMatchSetId() const{ return m_geoMatchSetId; }
62 inline bool GeoMatchSetIdHasBeenSet() const { return m_geoMatchSetIdHasBeenSet; }
63 inline void SetGeoMatchSetId(const Aws::String& value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId = value; }
64 inline void SetGeoMatchSetId(Aws::String&& value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId = std::move(value); }
65 inline void SetGeoMatchSetId(const char* value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId.assign(value); }
66 inline GeoMatchSet& WithGeoMatchSetId(const Aws::String& value) { SetGeoMatchSetId(value); return *this;}
67 inline GeoMatchSet& WithGeoMatchSetId(Aws::String&& value) { SetGeoMatchSetId(std::move(value)); return *this;}
68 inline GeoMatchSet& WithGeoMatchSetId(const char* value) { SetGeoMatchSetId(value); return *this;}
70
72
76 inline const Aws::String& GetName() const{ return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 inline GeoMatchSet& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline GeoMatchSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline GeoMatchSet& WithName(const char* value) { SetName(value); return *this;}
85
87
91 inline const Aws::Vector<GeoMatchConstraint>& GetGeoMatchConstraints() const{ return m_geoMatchConstraints; }
92 inline bool GeoMatchConstraintsHasBeenSet() const { return m_geoMatchConstraintsHasBeenSet; }
93 inline void SetGeoMatchConstraints(const Aws::Vector<GeoMatchConstraint>& value) { m_geoMatchConstraintsHasBeenSet = true; m_geoMatchConstraints = value; }
94 inline void SetGeoMatchConstraints(Aws::Vector<GeoMatchConstraint>&& value) { m_geoMatchConstraintsHasBeenSet = true; m_geoMatchConstraints = std::move(value); }
97 inline GeoMatchSet& AddGeoMatchConstraints(const GeoMatchConstraint& value) { m_geoMatchConstraintsHasBeenSet = true; m_geoMatchConstraints.push_back(value); return *this; }
98 inline GeoMatchSet& AddGeoMatchConstraints(GeoMatchConstraint&& value) { m_geoMatchConstraintsHasBeenSet = true; m_geoMatchConstraints.push_back(std::move(value)); return *this; }
100 private:
101
102 Aws::String m_geoMatchSetId;
103 bool m_geoMatchSetIdHasBeenSet = false;
104
105 Aws::String m_name;
106 bool m_nameHasBeenSet = false;
107
108 Aws::Vector<GeoMatchConstraint> m_geoMatchConstraints;
109 bool m_geoMatchConstraintsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace WAF
114} // namespace Aws
GeoMatchSet & WithName(const char *value)
Definition GeoMatchSet.h:83
GeoMatchSet & AddGeoMatchConstraints(const GeoMatchConstraint &value)
Definition GeoMatchSet.h:97
void SetName(const Aws::String &value)
Definition GeoMatchSet.h:78
GeoMatchSet & WithName(const Aws::String &value)
Definition GeoMatchSet.h:81
void SetGeoMatchConstraints(Aws::Vector< GeoMatchConstraint > &&value)
Definition GeoMatchSet.h:94
AWS_WAF_API GeoMatchSet & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GeoMatchConstraintsHasBeenSet() const
Definition GeoMatchSet.h:92
void SetGeoMatchConstraints(const Aws::Vector< GeoMatchConstraint > &value)
Definition GeoMatchSet.h:93
const Aws::Vector< GeoMatchConstraint > & GetGeoMatchConstraints() const
Definition GeoMatchSet.h:91
GeoMatchSet & WithGeoMatchSetId(const Aws::String &value)
Definition GeoMatchSet.h:66
const Aws::String & GetGeoMatchSetId() const
Definition GeoMatchSet.h:61
const Aws::String & GetName() const
Definition GeoMatchSet.h:76
GeoMatchSet & WithGeoMatchConstraints(const Aws::Vector< GeoMatchConstraint > &value)
Definition GeoMatchSet.h:95
GeoMatchSet & WithGeoMatchSetId(const char *value)
Definition GeoMatchSet.h:68
void SetGeoMatchSetId(Aws::String &&value)
Definition GeoMatchSet.h:64
GeoMatchSet & WithGeoMatchSetId(Aws::String &&value)
Definition GeoMatchSet.h:67
GeoMatchSet & WithName(Aws::String &&value)
Definition GeoMatchSet.h:82
GeoMatchSet & WithGeoMatchConstraints(Aws::Vector< GeoMatchConstraint > &&value)
Definition GeoMatchSet.h:96
void SetGeoMatchSetId(const Aws::String &value)
Definition GeoMatchSet.h:63
AWS_WAF_API GeoMatchSet(Aws::Utils::Json::JsonView jsonValue)
bool GeoMatchSetIdHasBeenSet() const
Definition GeoMatchSet.h:62
void SetGeoMatchSetId(const char *value)
Definition GeoMatchSet.h:65
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const char *value)
Definition GeoMatchSet.h:80
void SetName(Aws::String &&value)
Definition GeoMatchSet.h:79
GeoMatchSet & AddGeoMatchConstraints(GeoMatchConstraint &&value)
Definition GeoMatchSet.h:98
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue