AWS SDK for C++  0.12.9
AWS SDK for C++
ByteMatchSetUpdate.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  ByteMatchSetUpdate& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const ChangeAction& GetAction() const{ return m_action; }
51 
55  inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
56 
60  inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = value; }
61 
65  inline ByteMatchSetUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
66 
70  inline ByteMatchSetUpdate& WithAction(ChangeAction&& value) { SetAction(value); return *this;}
71 
80  inline const ByteMatchTuple& GetByteMatchTuple() const{ return m_byteMatchTuple; }
81 
90  inline void SetByteMatchTuple(const ByteMatchTuple& value) { m_byteMatchTupleHasBeenSet = true; m_byteMatchTuple = value; }
91 
100  inline void SetByteMatchTuple(ByteMatchTuple&& value) { m_byteMatchTupleHasBeenSet = true; m_byteMatchTuple = value; }
101 
110  inline ByteMatchSetUpdate& WithByteMatchTuple(const ByteMatchTuple& value) { SetByteMatchTuple(value); return *this;}
111 
120  inline ByteMatchSetUpdate& WithByteMatchTuple(ByteMatchTuple&& value) { SetByteMatchTuple(value); return *this;}
121 
122  private:
123  ChangeAction m_action;
124  bool m_actionHasBeenSet;
125  ByteMatchTuple m_byteMatchTuple;
126  bool m_byteMatchTupleHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace WAF
131 } // namespace Aws
ByteMatchSetUpdate & WithByteMatchTuple(ByteMatchTuple &&value)
const ByteMatchTuple & GetByteMatchTuple() const
void SetByteMatchTuple(const ByteMatchTuple &value)
ByteMatchSetUpdate & WithAction(const ChangeAction &value)
ByteMatchSetUpdate & WithByteMatchTuple(const ByteMatchTuple &value)
const ChangeAction & GetAction() const
void SetAction(ChangeAction &&value)
void SetAction(const ChangeAction &value)
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:34
void SetByteMatchTuple(ByteMatchTuple &&value)
ByteMatchSetUpdate & WithAction(ChangeAction &&value)
JSON (JavaScript Object Notation).