AWS SDK for C++

AWS SDK for C++ Version 1.11.757

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WAF {
21namespace Model {
22
38 public:
39 AWS_WAF_API GeoMatchConstraint() = default;
43
45
49 inline GeoMatchConstraintType GetType() const { return m_type; }
50 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 inline void SetType(GeoMatchConstraintType value) {
52 m_typeHasBeenSet = true;
53 m_type = value;
54 }
56 SetType(value);
57 return *this;
58 }
60
62
65 inline GeoMatchConstraintValue GetValue() const { return m_value; }
66 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
67 inline void SetValue(GeoMatchConstraintValue value) {
68 m_valueHasBeenSet = true;
69 m_value = value;
70 }
72 SetValue(value);
73 return *this;
74 }
76 private:
78
80 bool m_typeHasBeenSet = false;
81 bool m_valueHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace WAF
86} // 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