AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
48
49
51
55 inline const GeoMatchConstraintType& GetType() const{ return m_type; }
56 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
57 inline void SetType(const GeoMatchConstraintType& value) { m_typeHasBeenSet = true; m_type = value; }
58 inline void SetType(GeoMatchConstraintType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
59 inline GeoMatchConstraint& WithType(const GeoMatchConstraintType& value) { SetType(value); return *this;}
60 inline GeoMatchConstraint& WithType(GeoMatchConstraintType&& value) { SetType(std::move(value)); return *this;}
62
64
67 inline const GeoMatchConstraintValue& GetValue() const{ return m_value; }
68 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
69 inline void SetValue(const GeoMatchConstraintValue& value) { m_valueHasBeenSet = true; m_value = value; }
70 inline void SetValue(GeoMatchConstraintValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
71 inline GeoMatchConstraint& WithValue(const GeoMatchConstraintValue& value) { SetValue(value); return *this;}
72 inline GeoMatchConstraint& WithValue(GeoMatchConstraintValue&& value) { SetValue(std::move(value)); return *this;}
74 private:
75
77 bool m_typeHasBeenSet = false;
78
80 bool m_valueHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace WAF
85} // namespace Aws
GeoMatchConstraint & WithType(const GeoMatchConstraintType &value)
void SetValue(GeoMatchConstraintValue &&value)
void SetType(GeoMatchConstraintType &&value)
const GeoMatchConstraintType & GetType() const
AWS_WAF_API GeoMatchConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)
GeoMatchConstraint & WithType(GeoMatchConstraintType &&value)
GeoMatchConstraint & WithValue(const GeoMatchConstraintValue &value)
AWS_WAF_API GeoMatchConstraint(Aws::Utils::Json::JsonView jsonValue)
GeoMatchConstraint & WithValue(GeoMatchConstraintValue &&value)
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(const GeoMatchConstraintType &value)
const GeoMatchConstraintValue & GetValue() const
void SetValue(const GeoMatchConstraintValue &value)
Aws::Utils::Json::JsonValue JsonValue