AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GeoMatchSetUpdate.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/waf/model/ChangeAction.h>
9#include <aws/waf/model/GeoMatchConstraint.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 GeoMatchSetUpdate() = default;
48
49
51
55 inline ChangeAction GetAction() const { return m_action; }
56 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
57 inline void SetAction(ChangeAction value) { m_actionHasBeenSet = true; m_action = value; }
58 inline GeoMatchSetUpdate& WithAction(ChangeAction value) { SetAction(value); return *this;}
60
62
66 inline const GeoMatchConstraint& GetGeoMatchConstraint() const { return m_geoMatchConstraint; }
67 inline bool GeoMatchConstraintHasBeenSet() const { return m_geoMatchConstraintHasBeenSet; }
68 template<typename GeoMatchConstraintT = GeoMatchConstraint>
69 void SetGeoMatchConstraint(GeoMatchConstraintT&& value) { m_geoMatchConstraintHasBeenSet = true; m_geoMatchConstraint = std::forward<GeoMatchConstraintT>(value); }
70 template<typename GeoMatchConstraintT = GeoMatchConstraint>
71 GeoMatchSetUpdate& WithGeoMatchConstraint(GeoMatchConstraintT&& value) { SetGeoMatchConstraint(std::forward<GeoMatchConstraintT>(value)); return *this;}
73 private:
74
76 bool m_actionHasBeenSet = false;
77
78 GeoMatchConstraint m_geoMatchConstraint;
79 bool m_geoMatchConstraintHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace WAF
84} // namespace Aws
AWS_WAF_API GeoMatchSetUpdate()=default
void SetGeoMatchConstraint(GeoMatchConstraintT &&value)
const GeoMatchConstraint & GetGeoMatchConstraint() const
AWS_WAF_API GeoMatchSetUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAction(ChangeAction value)
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
GeoMatchSetUpdate & WithAction(ChangeAction value)
AWS_WAF_API GeoMatchSetUpdate(Aws::Utils::Json::JsonView jsonValue)
GeoMatchSetUpdate & WithGeoMatchConstraint(GeoMatchConstraintT &&value)
Aws::Utils::Json::JsonValue JsonValue