AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GeoMatchSetUpdate.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/waf-regional/model/ChangeAction.h>
9#include <aws/waf-regional/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 WAFRegional
23{
24namespace Model
25{
26
42 {
43 public:
44 AWS_WAFREGIONAL_API GeoMatchSetUpdate();
45 AWS_WAFREGIONAL_API GeoMatchSetUpdate(Aws::Utils::Json::JsonView jsonValue);
47 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const ChangeAction& GetAction() const{ return m_action; }
56 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
57 inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
58 inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
59 inline GeoMatchSetUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
60 inline GeoMatchSetUpdate& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;}
62
64
68 inline const GeoMatchConstraint& GetGeoMatchConstraint() const{ return m_geoMatchConstraint; }
69 inline bool GeoMatchConstraintHasBeenSet() const { return m_geoMatchConstraintHasBeenSet; }
70 inline void SetGeoMatchConstraint(const GeoMatchConstraint& value) { m_geoMatchConstraintHasBeenSet = true; m_geoMatchConstraint = value; }
71 inline void SetGeoMatchConstraint(GeoMatchConstraint&& value) { m_geoMatchConstraintHasBeenSet = true; m_geoMatchConstraint = std::move(value); }
73 inline GeoMatchSetUpdate& WithGeoMatchConstraint(GeoMatchConstraint&& value) { SetGeoMatchConstraint(std::move(value)); return *this;}
75 private:
76
77 ChangeAction m_action;
78 bool m_actionHasBeenSet = false;
79
80 GeoMatchConstraint m_geoMatchConstraint;
81 bool m_geoMatchConstraintHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace WAFRegional
86} // namespace Aws
const GeoMatchConstraint & GetGeoMatchConstraint() const
GeoMatchSetUpdate & WithAction(ChangeAction &&value)
void SetGeoMatchConstraint(const GeoMatchConstraint &value)
void SetAction(const ChangeAction &value)
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
GeoMatchSetUpdate & WithGeoMatchConstraint(const GeoMatchConstraint &value)
void SetGeoMatchConstraint(GeoMatchConstraint &&value)
GeoMatchSetUpdate & WithGeoMatchConstraint(GeoMatchConstraint &&value)
AWS_WAFREGIONAL_API GeoMatchSetUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFREGIONAL_API GeoMatchSetUpdate(Aws::Utils::Json::JsonView jsonValue)
GeoMatchSetUpdate & WithAction(const ChangeAction &value)
Aws::Utils::Json::JsonValue JsonValue