AWS SDK for C++  1.9.161
AWS SDK for C++
GeoMatchSetUpdate.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/waf/WAF_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace WAF
23 {
24 namespace Model
25 {
26 
42  {
43  public:
48 
49 
54  inline const ChangeAction& GetAction() const{ return m_action; }
55 
60  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
61 
66  inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
67 
72  inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
73 
78  inline GeoMatchSetUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
79 
84  inline GeoMatchSetUpdate& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;}
85 
86 
91  inline const GeoMatchConstraint& GetGeoMatchConstraint() const{ return m_geoMatchConstraint; }
92 
97  inline bool GeoMatchConstraintHasBeenSet() const { return m_geoMatchConstraintHasBeenSet; }
98 
103  inline void SetGeoMatchConstraint(const GeoMatchConstraint& value) { m_geoMatchConstraintHasBeenSet = true; m_geoMatchConstraint = value; }
104 
109  inline void SetGeoMatchConstraint(GeoMatchConstraint&& value) { m_geoMatchConstraintHasBeenSet = true; m_geoMatchConstraint = std::move(value); }
110 
115  inline GeoMatchSetUpdate& WithGeoMatchConstraint(const GeoMatchConstraint& value) { SetGeoMatchConstraint(value); return *this;}
116 
121  inline GeoMatchSetUpdate& WithGeoMatchConstraint(GeoMatchConstraint&& value) { SetGeoMatchConstraint(std::move(value)); return *this;}
122 
123  private:
124 
125  ChangeAction m_action;
126  bool m_actionHasBeenSet;
127 
128  GeoMatchConstraint m_geoMatchConstraint;
129  bool m_geoMatchConstraintHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace WAF
134 } // namespace Aws
Aws::WAF::Model::ChangeAction
ChangeAction
Definition: ChangeAction.h:17
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::WAF::Model::GeoMatchSetUpdate::WithAction
GeoMatchSetUpdate & WithAction(ChangeAction &&value)
Definition: GeoMatchSetUpdate.h:84
Aws::WAF::Model::GeoMatchSetUpdate::WithAction
GeoMatchSetUpdate & WithAction(const ChangeAction &value)
Definition: GeoMatchSetUpdate.h:78
Aws::WAF::Model::GeoMatchSetUpdate::WithGeoMatchConstraint
GeoMatchSetUpdate & WithGeoMatchConstraint(GeoMatchConstraint &&value)
Definition: GeoMatchSetUpdate.h:121
Aws::WAF::Model::GeoMatchSetUpdate::SetAction
void SetAction(const ChangeAction &value)
Definition: GeoMatchSetUpdate.h:66
Aws::WAF::Model::GeoMatchSetUpdate::operator=
GeoMatchSetUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAF::Model::GeoMatchSetUpdate::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: GeoMatchSetUpdate.h:60
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAF::Model::GeoMatchSetUpdate::GeoMatchSetUpdate
GeoMatchSetUpdate(Aws::Utils::Json::JsonView jsonValue)
ChangeAction.h
WAF_EXPORTS.h
Aws::WAF::Model::GeoMatchSetUpdate::GetAction
const ChangeAction & GetAction() const
Definition: GeoMatchSetUpdate.h:54
Aws::WAF::Model::GeoMatchSetUpdate::WithGeoMatchConstraint
GeoMatchSetUpdate & WithGeoMatchConstraint(const GeoMatchConstraint &value)
Definition: GeoMatchSetUpdate.h:115
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
GeoMatchConstraint.h
Aws
Definition: AccessManagementClient.h:15
Aws::WAF::Model::GeoMatchSetUpdate::GeoMatchSetUpdate
GeoMatchSetUpdate()
Aws::WAF::Model::GeoMatchSetUpdate::GeoMatchConstraintHasBeenSet
bool GeoMatchConstraintHasBeenSet() const
Definition: GeoMatchSetUpdate.h:97
Aws::WAF::Model::GeoMatchSetUpdate
Definition: GeoMatchSetUpdate.h:42
Aws::WAF::Model::GeoMatchSetUpdate::SetGeoMatchConstraint
void SetGeoMatchConstraint(GeoMatchConstraint &&value)
Definition: GeoMatchSetUpdate.h:109
Aws::WAF::Model::GeoMatchConstraint
Definition: GeoMatchConstraint.h:42
Aws::WAF::Model::GeoMatchSetUpdate::SetAction
void SetAction(ChangeAction &&value)
Definition: GeoMatchSetUpdate.h:72
Aws::WAF::Model::GeoMatchSetUpdate::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAF::Model::GeoMatchSetUpdate::SetGeoMatchConstraint
void SetGeoMatchConstraint(const GeoMatchConstraint &value)
Definition: GeoMatchSetUpdate.h:103
Aws::WAF::Model::GeoMatchSetUpdate::GetGeoMatchConstraint
const GeoMatchConstraint & GetGeoMatchConstraint() const
Definition: GeoMatchSetUpdate.h:91