AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
48
49
51
61 inline const Aws::String& GetGeoMatchSetId() const { return m_geoMatchSetId; }
62 inline bool GeoMatchSetIdHasBeenSet() const { return m_geoMatchSetIdHasBeenSet; }
63 template<typename GeoMatchSetIdT = Aws::String>
64 void SetGeoMatchSetId(GeoMatchSetIdT&& value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId = std::forward<GeoMatchSetIdT>(value); }
65 template<typename GeoMatchSetIdT = Aws::String>
66 GeoMatchSet& WithGeoMatchSetId(GeoMatchSetIdT&& value) { SetGeoMatchSetId(std::forward<GeoMatchSetIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
78 template<typename NameT = Aws::String>
79 GeoMatchSet& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
81
83
87 inline const Aws::Vector<GeoMatchConstraint>& GetGeoMatchConstraints() const { return m_geoMatchConstraints; }
88 inline bool GeoMatchConstraintsHasBeenSet() const { return m_geoMatchConstraintsHasBeenSet; }
89 template<typename GeoMatchConstraintsT = Aws::Vector<GeoMatchConstraint>>
90 void SetGeoMatchConstraints(GeoMatchConstraintsT&& value) { m_geoMatchConstraintsHasBeenSet = true; m_geoMatchConstraints = std::forward<GeoMatchConstraintsT>(value); }
91 template<typename GeoMatchConstraintsT = Aws::Vector<GeoMatchConstraint>>
92 GeoMatchSet& WithGeoMatchConstraints(GeoMatchConstraintsT&& value) { SetGeoMatchConstraints(std::forward<GeoMatchConstraintsT>(value)); return *this;}
93 template<typename GeoMatchConstraintsT = GeoMatchConstraint>
94 GeoMatchSet& AddGeoMatchConstraints(GeoMatchConstraintsT&& value) { m_geoMatchConstraintsHasBeenSet = true; m_geoMatchConstraints.emplace_back(std::forward<GeoMatchConstraintsT>(value)); return *this; }
96 private:
97
98 Aws::String m_geoMatchSetId;
99 bool m_geoMatchSetIdHasBeenSet = false;
100
101 Aws::String m_name;
102 bool m_nameHasBeenSet = false;
103
104 Aws::Vector<GeoMatchConstraint> m_geoMatchConstraints;
105 bool m_geoMatchConstraintsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace WAF
110} // namespace Aws
void SetGeoMatchSetId(GeoMatchSetIdT &&value)
Definition GeoMatchSet.h:64
AWS_WAF_API GeoMatchSet()=default
AWS_WAF_API GeoMatchSet & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GeoMatchConstraintsHasBeenSet() const
Definition GeoMatchSet.h:88
const Aws::Vector< GeoMatchConstraint > & GetGeoMatchConstraints() const
Definition GeoMatchSet.h:87
GeoMatchSet & WithGeoMatchConstraints(GeoMatchConstraintsT &&value)
Definition GeoMatchSet.h:92
const Aws::String & GetGeoMatchSetId() const
Definition GeoMatchSet.h:61
const Aws::String & GetName() const
Definition GeoMatchSet.h:74
void SetGeoMatchConstraints(GeoMatchConstraintsT &&value)
Definition GeoMatchSet.h:90
GeoMatchSet & WithGeoMatchSetId(GeoMatchSetIdT &&value)
Definition GeoMatchSet.h:66
AWS_WAF_API GeoMatchSet(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition GeoMatchSet.h:77
bool GeoMatchSetIdHasBeenSet() const
Definition GeoMatchSet.h:62
GeoMatchSet & WithName(NameT &&value)
Definition GeoMatchSet.h:79
GeoMatchSet & AddGeoMatchConstraints(GeoMatchConstraintsT &&value)
Definition GeoMatchSet.h:94
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