AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ByteMatchSet.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/waf/WAF_EXPORTS.h>
10#include <aws/waf/model/ByteMatchTuple.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAF {
22namespace Model {
23
47 public:
48 AWS_WAF_API ByteMatchSet() = default;
52
54
64 inline const Aws::String& GetByteMatchSetId() const { return m_byteMatchSetId; }
65 inline bool ByteMatchSetIdHasBeenSet() const { return m_byteMatchSetIdHasBeenSet; }
66 template <typename ByteMatchSetIdT = Aws::String>
67 void SetByteMatchSetId(ByteMatchSetIdT&& value) {
68 m_byteMatchSetIdHasBeenSet = true;
69 m_byteMatchSetId = std::forward<ByteMatchSetIdT>(value);
70 }
71 template <typename ByteMatchSetIdT = Aws::String>
72 ByteMatchSet& WithByteMatchSetId(ByteMatchSetIdT&& value) {
73 SetByteMatchSetId(std::forward<ByteMatchSetIdT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetName() const { return m_name; }
84 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 template <typename NameT = Aws::String>
86 void SetName(NameT&& value) {
87 m_nameHasBeenSet = true;
88 m_name = std::forward<NameT>(value);
89 }
90 template <typename NameT = Aws::String>
91 ByteMatchSet& WithName(NameT&& value) {
92 SetName(std::forward<NameT>(value));
93 return *this;
94 }
96
98
103 inline const Aws::Vector<ByteMatchTuple>& GetByteMatchTuples() const { return m_byteMatchTuples; }
104 inline bool ByteMatchTuplesHasBeenSet() const { return m_byteMatchTuplesHasBeenSet; }
105 template <typename ByteMatchTuplesT = Aws::Vector<ByteMatchTuple>>
106 void SetByteMatchTuples(ByteMatchTuplesT&& value) {
107 m_byteMatchTuplesHasBeenSet = true;
108 m_byteMatchTuples = std::forward<ByteMatchTuplesT>(value);
109 }
110 template <typename ByteMatchTuplesT = Aws::Vector<ByteMatchTuple>>
111 ByteMatchSet& WithByteMatchTuples(ByteMatchTuplesT&& value) {
112 SetByteMatchTuples(std::forward<ByteMatchTuplesT>(value));
113 return *this;
114 }
115 template <typename ByteMatchTuplesT = ByteMatchTuple>
116 ByteMatchSet& AddByteMatchTuples(ByteMatchTuplesT&& value) {
117 m_byteMatchTuplesHasBeenSet = true;
118 m_byteMatchTuples.emplace_back(std::forward<ByteMatchTuplesT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_byteMatchSetId;
124
125 Aws::String m_name;
126
127 Aws::Vector<ByteMatchTuple> m_byteMatchTuples;
128 bool m_byteMatchSetIdHasBeenSet = false;
129 bool m_nameHasBeenSet = false;
130 bool m_byteMatchTuplesHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace WAF
135} // namespace Aws
ByteMatchSet & WithName(NameT &&value)
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(NameT &&value)
ByteMatchSet & WithByteMatchTuples(ByteMatchTuplesT &&value)
AWS_WAF_API ByteMatchSet(Aws::Utils::Json::JsonView jsonValue)
void SetByteMatchTuples(ByteMatchTuplesT &&value)
const Aws::Vector< ByteMatchTuple > & GetByteMatchTuples() const
ByteMatchSet & WithByteMatchSetId(ByteMatchSetIdT &&value)
const Aws::String & GetByteMatchSetId() const
AWS_WAF_API ByteMatchSet & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAF_API ByteMatchSet()=default
ByteMatchSet & AddByteMatchTuples(ByteMatchTuplesT &&value)
bool ByteMatchSetIdHasBeenSet() const
const Aws::String & GetName() const
void SetByteMatchSetId(ByteMatchSetIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue