AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GeoMatchConstraint.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/waf/model/GeoMatchConstraintType.h>
9#include <aws/waf/model/GeoMatchConstraintValue.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WAF
23{
24namespace Model
25{
26
42 {
43 public:
44 AWS_WAF_API GeoMatchConstraint() = default;
48
49
51
55 inline GeoMatchConstraintType GetType() const { return m_type; }
56 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
57 inline void SetType(GeoMatchConstraintType value) { m_typeHasBeenSet = true; m_type = value; }
58 inline GeoMatchConstraint& WithType(GeoMatchConstraintType value) { SetType(value); return *this;}
60
62
65 inline GeoMatchConstraintValue GetValue() const { return m_value; }
66 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
67 inline void SetValue(GeoMatchConstraintValue value) { m_valueHasBeenSet = true; m_value = value; }
68 inline GeoMatchConstraint& WithValue(GeoMatchConstraintValue value) { SetValue(value); return *this;}
70 private:
71
73 bool m_typeHasBeenSet = false;
74
76 bool m_valueHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace WAF
81} // namespace Aws
GeoMatchConstraint & WithType(GeoMatchConstraintType value)
void SetValue(GeoMatchConstraintValue value)
GeoMatchConstraintType GetType() const
AWS_WAF_API GeoMatchConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)
GeoMatchConstraint & WithValue(GeoMatchConstraintValue value)
AWS_WAF_API GeoMatchConstraint(Aws::Utils::Json::JsonView jsonValue)
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(GeoMatchConstraintType value)
GeoMatchConstraintValue GetValue() const
AWS_WAF_API GeoMatchConstraint()=default
Aws::Utils::Json::JsonValue JsonValue