AWS SDK for C++  0.14.3
AWS SDK for C++
SizeConstraintSetUpdate.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/waf/WAF_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace WAF
30 {
31 namespace Model
32 {
33 
40  {
41  public:
44  SizeConstraintSetUpdate& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
52  inline const ChangeAction& GetAction() const{ return m_action; }
53 
59  inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
60 
66  inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = value; }
67 
73  inline SizeConstraintSetUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
74 
80  inline SizeConstraintSetUpdate& WithAction(ChangeAction&& value) { SetAction(value); return *this;}
81 
90  inline const SizeConstraint& GetSizeConstraint() const{ return m_sizeConstraint; }
91 
100  inline void SetSizeConstraint(const SizeConstraint& value) { m_sizeConstraintHasBeenSet = true; m_sizeConstraint = value; }
101 
110  inline void SetSizeConstraint(SizeConstraint&& value) { m_sizeConstraintHasBeenSet = true; m_sizeConstraint = value; }
111 
120  inline SizeConstraintSetUpdate& WithSizeConstraint(const SizeConstraint& value) { SetSizeConstraint(value); return *this;}
121 
130  inline SizeConstraintSetUpdate& WithSizeConstraint(SizeConstraint&& value) { SetSizeConstraint(value); return *this;}
131 
132  private:
133  ChangeAction m_action;
134  bool m_actionHasBeenSet;
135  SizeConstraint m_sizeConstraint;
136  bool m_sizeConstraintHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace WAF
141 } // namespace Aws
SizeConstraintSetUpdate & WithAction(ChangeAction &&value)
void SetAction(const ChangeAction &value)
SizeConstraintSetUpdate & WithSizeConstraint(SizeConstraint &&value)
void SetSizeConstraint(const SizeConstraint &value)
SizeConstraintSetUpdate & WithSizeConstraint(const SizeConstraint &value)
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:37
SizeConstraintSetUpdate & WithAction(const ChangeAction &value)
const SizeConstraint & GetSizeConstraint() const
JSON (JavaScript Object Notation).