AWS SDK for C++  1.9.153
AWS SDK for C++
SizeConstraintSetUpdate.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 
43  {
44  public:
49 
50 
56  inline const ChangeAction& GetAction() const{ return m_action; }
57 
63  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
64 
70  inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
71 
77  inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
78 
84  inline SizeConstraintSetUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
85 
91  inline SizeConstraintSetUpdate& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;}
92 
93 
102  inline const SizeConstraint& GetSizeConstraint() const{ return m_sizeConstraint; }
103 
112  inline bool SizeConstraintHasBeenSet() const { return m_sizeConstraintHasBeenSet; }
113 
122  inline void SetSizeConstraint(const SizeConstraint& value) { m_sizeConstraintHasBeenSet = true; m_sizeConstraint = value; }
123 
132  inline void SetSizeConstraint(SizeConstraint&& value) { m_sizeConstraintHasBeenSet = true; m_sizeConstraint = std::move(value); }
133 
142  inline SizeConstraintSetUpdate& WithSizeConstraint(const SizeConstraint& value) { SetSizeConstraint(value); return *this;}
143 
152  inline SizeConstraintSetUpdate& WithSizeConstraint(SizeConstraint&& value) { SetSizeConstraint(std::move(value)); return *this;}
153 
154  private:
155 
156  ChangeAction m_action;
157  bool m_actionHasBeenSet;
158 
159  SizeConstraint m_sizeConstraint;
160  bool m_sizeConstraintHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace WAF
165 } // namespace Aws
Aws::WAF::Model::SizeConstraintSetUpdate::GetSizeConstraint
const SizeConstraint & GetSizeConstraint() const
Definition: SizeConstraintSetUpdate.h:102
Aws::WAF::Model::SizeConstraintSetUpdate::WithAction
SizeConstraintSetUpdate & WithAction(const ChangeAction &value)
Definition: SizeConstraintSetUpdate.h:84
Aws::WAF::Model::SizeConstraintSetUpdate::WithSizeConstraint
SizeConstraintSetUpdate & WithSizeConstraint(SizeConstraint &&value)
Definition: SizeConstraintSetUpdate.h:152
Aws::WAF::Model::SizeConstraintSetUpdate::SetAction
void SetAction(const ChangeAction &value)
Definition: SizeConstraintSetUpdate.h:70
Aws::WAF::Model::ChangeAction
ChangeAction
Definition: ChangeAction.h:17
Aws::WAF::Model::SizeConstraintSetUpdate::WithSizeConstraint
SizeConstraintSetUpdate & WithSizeConstraint(const SizeConstraint &value)
Definition: SizeConstraintSetUpdate.h:142
Aws::WAF::Model::SizeConstraintSetUpdate::WithAction
SizeConstraintSetUpdate & WithAction(ChangeAction &&value)
Definition: SizeConstraintSetUpdate.h:91
Aws::WAF::Model::SizeConstraintSetUpdate::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: SizeConstraintSetUpdate.h:63
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::WAF::Model::SizeConstraintSetUpdate::operator=
SizeConstraintSetUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAF::Model::SizeConstraintSetUpdate::SetSizeConstraint
void SetSizeConstraint(SizeConstraint &&value)
Definition: SizeConstraintSetUpdate.h:132
Aws::WAF::Model::SizeConstraintSetUpdate::GetAction
const ChangeAction & GetAction() const
Definition: SizeConstraintSetUpdate.h:56
SizeConstraint.h
Aws::WAF::Model::SizeConstraintSetUpdate::SizeConstraintSetUpdate
SizeConstraintSetUpdate()
Aws::WAF::Model::SizeConstraintSetUpdate::SizeConstraintSetUpdate
SizeConstraintSetUpdate(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
ChangeAction.h
WAF_EXPORTS.h
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::WAF::Model::SizeConstraintSetUpdate::SetAction
void SetAction(ChangeAction &&value)
Definition: SizeConstraintSetUpdate.h:77
Aws::WAF::Model::SizeConstraintSetUpdate::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAF::Model::SizeConstraintSetUpdate::SetSizeConstraint
void SetSizeConstraint(const SizeConstraint &value)
Definition: SizeConstraintSetUpdate.h:122
Aws::WAF::Model::SizeConstraint
Definition: SizeConstraint.h:47
Aws::WAF::Model::SizeConstraintSetUpdate
Definition: SizeConstraintSetUpdate.h:43
Aws::WAF::Model::SizeConstraintSetUpdate::SizeConstraintHasBeenSet
bool SizeConstraintHasBeenSet() const
Definition: SizeConstraintSetUpdate.h:112