AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
ByteMatchSetUpdate.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/waf/model/ByteMatchTuple.h>
9#include <aws/waf/model/ChangeAction.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WAF {
21namespace Model {
22
39 public:
40 AWS_WAF_API ByteMatchSetUpdate() = default;
44
46
49 inline ChangeAction GetAction() const { return m_action; }
50 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
51 inline void SetAction(ChangeAction value) {
52 m_actionHasBeenSet = true;
53 m_action = value;
54 }
56 SetAction(value);
57 return *this;
58 }
60
62
70 inline const ByteMatchTuple& GetByteMatchTuple() const { return m_byteMatchTuple; }
71 inline bool ByteMatchTupleHasBeenSet() const { return m_byteMatchTupleHasBeenSet; }
72 template <typename ByteMatchTupleT = ByteMatchTuple>
73 void SetByteMatchTuple(ByteMatchTupleT&& value) {
74 m_byteMatchTupleHasBeenSet = true;
75 m_byteMatchTuple = std::forward<ByteMatchTupleT>(value);
76 }
77 template <typename ByteMatchTupleT = ByteMatchTuple>
78 ByteMatchSetUpdate& WithByteMatchTuple(ByteMatchTupleT&& value) {
79 SetByteMatchTuple(std::forward<ByteMatchTupleT>(value));
80 return *this;
81 }
83 private:
85
86 ByteMatchTuple m_byteMatchTuple;
87 bool m_actionHasBeenSet = false;
88 bool m_byteMatchTupleHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace WAF
93} // namespace Aws
AWS_WAF_API ByteMatchSetUpdate()=default
AWS_WAF_API ByteMatchSetUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
ByteMatchSetUpdate & WithAction(ChangeAction value)
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
const ByteMatchTuple & GetByteMatchTuple() const
ByteMatchSetUpdate & WithByteMatchTuple(ByteMatchTupleT &&value)
void SetByteMatchTuple(ByteMatchTupleT &&value)
AWS_WAF_API ByteMatchSetUpdate(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue